j'ai un problème avec mon plugin (un timer ; oui je c on peut le faire avec des command block). Quant je le lance il ne démarre pas et je suis obligé de faire un /reload. Cependant mon ami a un serveur sur crystal serv et sa marche pas dessus (le /reload est compliqué dessus). Je vous fait suivre les logs lors du lancement de mon serv (hébergé sur mon pc).
[12:08:53] [Server thread/INFO]: Starting minecraft server version 1.8.8 [12:08:53] [Server thread/INFO]: Loading properties [12:08:53] [Server thread/INFO]: Default game type: ADVENTURE [12:08:54] [Server thread/INFO]: This server is running CraftBukkit version git-Spigot-fdc1440-53fac9f (MC: 1.8.8) (Implementing API version 1.8.8-R0.1-SNAPSHOT) [12:08:54] [Server thread/INFO]: Debug logging is disabled [12:08:54] [Server thread/INFO]: Server Ping Player Sample Count: 12 [12:08:54] [Server thread/INFO]: Using 4 threads for Netty based IO [12:08:54] [Server thread/INFO]: Generating keypair [12:08:55] [Server thread/INFO]: Starting Minecraft server on *:25565 [12:08:55] [Server thread/INFO]: Using default channel type [12:08:57] [Server thread/INFO]: Set PluginClassLoader as parallel capable [12:08:57] [Server thread/ERROR]: Could not load 'plugins\Timer.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.NullPointerException at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:135) ~[spigot_server.jar:git-Spigot-fdc1440-53fac9f] at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) ~[spigot_server.jar:git-Spigot-fdc1440-53fac9f] at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [spigot_server.jar:git-Spigot-fdc1440-53fac9f] at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugins(CraftServer.java:292) [spigot_server.jar:git-Spigot-fdc1440-53fac9f] at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:198) [spigot_server.jar:git-Spigot-fdc1440-53fac9f] at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:524) [spigot_server.jar:git-Spigot-fdc1440-53fac9f] at java.lang.Thread.run(Unknown Source) [?:1.8.0_66] Caused by: java.lang.NullPointerException at gassastsina.timer.main.<init>(main.java:22) ~[?:?] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_66] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_66] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_66] at java.lang.reflect.Constructor.newInstance(Unknown Source) ~[?:1.8.0_66] at java.lang.Class.newInstance(Unknown Source) ~[?:1.8.0_66] at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:76) ~[spigot_server.jar:git-Spigot-fdc1440-53fac9f] at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[spigot_server.jar:git-Spigot-fdc1440-53fac9f] ... 6 more [12:08:57] [Server thread/INFO]: **** Beginning UUID conversion, this may take A LONG time **** [12:08:58] [Server thread/INFO]: Preparing level "World" [12:08:58] [Server thread/INFO]: -------- World Settings For [World] -------- [12:08:58] [Server thread/INFO]: Chunks to Grow per Tick: 650 [12:08:58] [Server thread/INFO]: Clear tick list: false [12:08:58] [Server thread/INFO]: Experience Merge Radius: 3.0 [12:08:58] [Server thread/INFO]: Zombie Aggressive Towards Villager: true [12:08:58] [Server thread/INFO]: Arrow Despawn Rate: 1200 [12:08:58] [Server thread/INFO]: View Distance: 25 [12:08:58] [Server thread/INFO]: Item Merge Radius: 2.5 [12:08:58] [Server thread/INFO]: Item Despawn Rate: 6000 [12:08:58] [Server thread/INFO]: Custom Map Seeds: Village: 10387312 Feature: 14357617 [12:08:58] [Server thread/INFO]: Max Entity Collisions: 8 [12:08:58] [Server thread/INFO]: Allow Zombie Pigmen to spawn from portal blocks: true [12:08:58] [Server thread/INFO]: Mob Spawn Range: 4 [12:08:58] [Server thread/INFO]: Nerfing mobs spawned from spawners: false [12:08:58] [Server thread/INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16 [12:08:58] [Server thread/INFO]: Anti X-Ray: true [12:08:58] [Server thread/INFO]: Engine Mode: 1 [12:08:58] [Server thread/INFO]: Hidden Blocks: [14, 15, 16, 21, 48, 49, 54, 56, 73, 74, 82, 129, 130] [12:08:58] [Server thread/INFO]: Replace Blocks: [1, 5] [12:08:58] [Server thread/INFO]: Cactus Growth Modifier: 100% [12:08:58] [Server thread/INFO]: Cane Growth Modifier: 100% [12:08:58] [Server thread/INFO]: Melon Growth Modifier: 100% [12:08:58] [Server thread/INFO]: Mushroom Growth Modifier: 100% [12:08:58] [Server thread/INFO]: Pumpkin Growth Modifier: 100% [12:08:58] [Server thread/INFO]: Sapling Growth Modifier: 100% [12:08:58] [Server thread/INFO]: Wheat Growth Modifier: 100% [12:08:58] [Server thread/INFO]: NetherWart Growth Modifier: 100% [12:08:58] [Server thread/INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64 [12:08:58] [Server thread/INFO]: Hopper Transfer: 8 Hopper Check: 8 Hopper Amount: 1 [12:08:58] [Server thread/INFO]: Random Lighting Updates: false [12:08:58] [Server thread/INFO]: Structure Info Saving: true [12:08:58] [Server thread/INFO]: Sending up to 10 chunks per packet [12:08:58] [Server thread/INFO]: Max TNT Explosions: 100 [12:08:58] [Server thread/INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms [12:08:58] [Server thread/INFO]: Preparing start region for level 0 (Seed: -7367085678205687423) [12:08:59] [Server thread/INFO]: Preparing spawn area: 4% [12:09:00] [Server thread/INFO]: Preparing spawn area: 50% [12:09:01] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it [12:09:01] [Server thread/INFO]: Done (3,451s)! For help, type "help" or "?" [12:09:09] [Server thread/INFO]: Plugins (0): [m [12:09:32] [Server thread/INFO]: Stopping the server [12:09:32] [Server thread/INFO]: Stopping server [12:09:32] [Server thread/INFO]: Saving players [12:09:32] [Server thread/INFO]: Saving worlds [12:09:32] [Server thread/INFO]: Saving chunks for level 'World'/Overworld
de m'aider c assez urgent !
Pseudo supprimé
Niveau 5
06 février 2016 à 15:03:49
Pseudo supprimé
Niveau 5
07 février 2016 à 17:58:48
So:
ScoreboardManager manager = Bukkit.getScoreboardManager();
Scoreboard board = manager.getNewScoreboard();
Objective o = board.registerNewObjective("Nom", "morts");
public void onEnable()
{
}//onEnable
Should be:
ScoreboardManager manager;
Scoreboard board;
Objective o;
public void onEnable()
{
manager = Bukkit.getScoreboardManager();
board = manager.getNewScoreboard();
o = board.registerNewObjective("Nom", "morts");
}
and so on.