[CraftBukkit] Jsonapi - Reliez votre serveur à votre site !

Pour un site (vous utilisez tous presque craftmycms …) Et qui est crée par un mec de 20ans ! Regardez les codes sources 2 secondes et vous verez que craftmycms n’est pas très sécuriser ! Il est toujours préférable d’utiliser un Domaine OVH et pour votre site une platforme WordPress !

Qui peut aider a relier mon serveur a mon site [Boutique] svp c’est urgent
ajouter moi skype svp MrOmega21

si je fait cela çà doit marcher ?

test <?require('JSONAPI.php');

function preint_r($array)
{
echo ‘

’;
print_r($array);
echo ‘
’;
echo ‘
’;
}

$ip = “**********”; // Ip du serveur
$port = ; //port du plugin )
$port2 = ; //port du serveur
$utilisateur = "
"; //nom d’utilisateur jsonapi
$motdepasse ="
"; //mot de passe jsonapi
$salt =“salt”;
$timeout = “10”;
$api = new JSONAPI($ip, $port, $utilisateur, $motdepasse, $salt);

//recup info joueur en ligne
$result_getPlayers = $api->call(“getPlayerCount”);
$playercount = $result_getPlayers[“success”];

//recup info joueur max
$result_getPlayerLimit = $api->call(“getPlayerLimit”);
$playermax = $result_getPlayerLimit[“success”];

//ip du serv
echo ‘

IP: *****

’;

//etat serv (online/offline)
if ($ip and $port2 and $timeout) {
$verbinding = @fsockopen("$ip", $port2, $errno, $errstr, $timeout);
}
if($verbinding) {
echo " Online

";
}
else {
echo " Offline";
}

//joueur en ligne
echo ‘

Joueurs en ligne

’;
echo ’

‘.$playercount.’ / ‘.$playermax.’

’;

?>

ps je conai le html mais pas dutous le php donc voila merci pour les reponce ci ya

Je n’arrive pas moi sa ne marche pas tu peut m’aider mon skype : kebsygames

bonjour j’aimerais que quelqu’un m’explique ce message d’erreur svp :
[20:30:40] [Server thread/INFO]: [JSONAPI] Enabling JSONAPI v5.7.0
[20:30:40] [Server thread/INFO]: [JSONAPI] Logging to file: true
[20:30:40] [Server thread/INFO]: [JSONAPI] Logging to console: true
[20:30:40] [Server thread/INFO]: [JSONAPI] IP Whitelist = None, all requests are allowed.
[20:30:40] [Server thread/ERROR]: [JSONAPI] Couldn’t start server!

[20:30:40] [Server thread/WARN]: java.net.BindException: Adresse déjà utilisée
[20:30:40] [Server thread/WARN]: at java.net.PlainSocketImpl.socketBind(Native Method)
[20:30:40] [Server thread/WARN]: at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)
[20:30:40] [Server thread/WARN]: at java.net.ServerSocket.bind(ServerSocket.java:376)
[20:30:40] [Server thread/WARN]: at java.net.ServerSocket.(ServerSocket.java:237)
[20:30:40] [Server thread/WARN]: at java.net.ServerSocket.(ServerSocket.java:128)
[20:30:40] [Server thread/WARN]: at com.alecgorge.minecraft.jsonapi.NanoHTTPD.(NanoHTTPD.java:277)
[20:30:40] [Server thread/WARN]: at com.alecgorge.minecraft.jsonapi.NanoHTTPD.(NanoHTTPD.java:302)
[20:30:40] [Server thread/WARN]: at com.alecgorge.minecraft.jsonapi.JSONServer.(JSONServer.java:61)
[20:30:40] [Server thread/WARN]: at com.alecgorge.minecraft.jsonapi.JSONAPI.onEnable(JSONAPI.java:540)
[20:30:40] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:271)
[20:30:40] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:329)
[20:30:40] [Server thread/WARN]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:404)
[20:30:40] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_11_R1.CraftServer.enablePlugin(CraftServer.java:360)
[20:30:40] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_11_R1.CraftServer.enablePlugins(CraftServer.java:322)
[20:30:40] [Server thread/WARN]: at net.minecraft.server.v1_11_R1.MinecraftServer.t(MinecraftServer.java:411)
[20:30:40] [Server thread/WARN]: at net.minecraft.server.v1_11_R1.MinecraftServer.l(MinecraftServer.java:372)
[20:30:40] [Server thread/WARN]: at net.minecraft.server.v1_11_R1.MinecraftServer.a(MinecraftServer.java:327)
[20:30:40] [Server thread/WARN]: at net.minecraft.server.v1_11_R1.DedicatedServer.init(DedicatedServer.java:244)
[20:30:40] [Server thread/WARN]: at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:521)
[20:30:40] [Server thread/WARN]: at java.lang.Thread.run(Thread.java:745)
[20:30:40] [Server thread/ERROR]: Permission node ‘default’ in permissions.yml is invalid
java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Map
at org.bukkit.permissions.Permission.loadPermissions(Permission.java:233) [craftbukkit-1.11-R0.1.jar:git-Bukkit-4602331]
at org.bukkit.craftbukkit.v1_11_R1.CraftServer.loadCustomPermissions(CraftServer.java:779) [craftbukkit-1.11-R0.1.jar:git-Bukkit-4602331]
at org.bukkit.craftbukkit.v1_11_R1.CraftServer.enablePlugins(CraftServer.java:330) [craftbukkit-1.11-R0.1.jar:git-Bukkit-4602331]
at net.minecraft.server.v1_11_R1.MinecraftServer.t(MinecraftServer.java:411) [craftbukkit-1.11-R0.1.jar:git-Bukkit-4602331]
at net.minecraft.server.v1_11_R1.MinecraftServer.l(MinecraftServer.java:372) [craftbukkit-1.11-R0.1.jar:git-Bukkit-4602331]
at net.minecraft.server.v1_11_R1.MinecraftServer.a(MinecraftServer.java:327) [craftbukkit-1.11-R0.1.jar:git-Bukkit-4602331]
at net.minecraft.server.v1_11_R1.DedicatedServer.init(DedicatedServer.java:244) [craftbukkit-1.11-R0.1.jar:git-Bukkit-4602331]
at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:521) [craftbukkit-1.11-R0.1.jar:git-Bukkit-4602331]
at java.lang.Thread.run(Thread.java:745) [?:1.7.0_101]