Was bedeutet diese Fehlermeldung? [Gelöst]

Wenn ihr bei eurem Plugin nicht weiter kommt, könnt ihr hier euer Problem beschreiben und um Hilfe bitten.

Was bedeutet diese Fehlermeldung? [Gelöst]

Beitragvon Kampfprofessor » Mi 27. Apr 2016, 15:36

Code: Alles auswählen
  1. [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715)
  2. [spigot-1.8.8-java-7.jar:git-Spigot-5f38d38-18fbb24] 27.04 13:40:42
  3. [Server] INFO at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44)
  4. [spigot-1.8.8-java-7.jar:git-Spigot-5f38d38-18fbb24] 27.04 13:40:42
  5. [Server] INFO at java.util.concurrent.FutureTask.run(FutureTask.java:166)
  6. [?:1.7.0_04] 27.04 13:40:42 [Server] INFO at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
  7. [?:1.7.0_04] 27.04 13:40:42 [Server] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
  8. [?:1.7.0_04] 27.04 13:40:42 [Server] INFO at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13)
  9. [spigot-1.8.8-java-7.jar:git-Spigot-5f38d38-18fbb24] 27.04 13:40:42 [Server]
  10. INFO at net.minecraft.server.v1_8_R3.PacketPlayInFlying.a(SourceFile:8)
  11. [spigot-1.8.8-java-7.jar:git-Spigot-5f38d38-18fbb24] 27.04 13:40:42 [Server]
  12. INFO at net.minecraft.server.v1_8_R3.PacketPlayInFlying.a(SourceFile:126)
  13. [spigot-1.8.8-java-7.jar:git-Spigot-5f38d38-18fbb24] 27.04 13:40:42 [Server]
  14. INFO at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:382)
  15. [spigot-1.8.8-java-7.jar:git-Spigot-5f38d38-18fbb24] 27.04 13:40:42 [Server]
  16. INFO at net.minecraft.server.v1_8_R3.EntityPlayer.l(EntityPlayer.java:285)
  17. [spigot-1.8.8-java-7.jar:git-Spigot-5f38d38-18fbb24] 27.04 13:40:42 [Server]
  18. INFO at net.minecraft.server.v1_8_R3.EntityHuman.t_(EntityHuman.java:173)
  19. [spigot-1.8.8-java-7.jar:git-Spigot-5f38d38-18fbb24] 27.04 13:40:42 [Server]
  20. INFO at net.minecraft.server.v1_8_R3.EntityLiving.t_(EntityLiving.java:1487)
  21. [spigot-1.8.8-java-7.jar:git-Spigot-5f38d38-18fbb24] 27.04 13:40:42 [Server]
  22. INFO at net.minecraft.server.v1_8_R3.EntityHuman.m(EntityHuman.java:393)
  23. [spigot-1.8.8-java-7.jar:git-Spigot-5f38d38-18fbb24] 27.04 13:40:42 [Server]
  24. INFO at net.minecraft.server.v1_8_R3.EntityLiving.m(EntityLiving.java:1652)
  25. [spigot-1.8.8-java-7.jar:git-Spigot-5f38d38-18fbb24] 27.04 13:40:42 [Server]
  26. INFO at net.minecraft.server.v1_8_R3.EntityHuman.g(EntityHuman.java:1355)
  27. [spigot-1.8.8-java-7.jar:git-Spigot-5f38d38-18fbb24] 27.04 13:40:42 [Server]
  28. INFO at net.minecraft.server.v1_8_R3.EntityLiving.g(EntityLiving.java:1395)
  29. [spigot-1.8.8-java-7.jar:git-Spigot-5f38d38-18fbb24] 27.04 13:40:42 [Server]
  30. INFO at net.minecraft.server.v1_8_R3.Entity.move(Entity.java:407)
  31. [spigot-1.8.8-java-7.jar:git-Spigot-5f38d38-18fbb24] 27.04 13:40:42 [Server]
  32. INFO at net.minecraft.server.v1_8_R3.Entity.checkBlockCollisions(Entity.java:761)
  33. [spigot-1.8.8-java-7.jar:git-Spigot-5f38d38-18fbb24] 27.04 13:40:42 [Server]
  34. INFO at net.minecraft.server.v1_8_R3.BlockCactus.a(BlockCactus.java:90)
  35. [spigot-1.8.8-java-7.jar:git-Spigot-5f38d38-18fbb24] 27.04 13:40:42 [Server]
  36. INFO at net.minecraft.server.v1_8_R3.EntityPlayer.damageEntity(EntityPlayer.java:496)
  37. [spigot-1.8.8-java-7.jar:git-Spigot-5f38d38-18fbb24] 27.04 13:40:42 [Server]
  38. INFO at net.minecraft.server.v1_8_R3.EntityHuman.damageEntity(EntityHuman.java:800)
  39. [spigot-1.8.8-java-7.jar:git-Spigot-5f38d38-18fbb24] 27.04 13:40:42 [Server]
  40. INFO at net.minecraft.server.v1_8_R3.EntityLiving.damageEntity(EntityLiving.java:812)
  41. [spigot-1.8.8-java-7.jar:git-Spigot-5f38d38-18fbb24] 27.04 13:40:42 [Server]
  42. INFO at net.minecraft.server.v1_8_R3.EntityPlayer.die(EntityPlayer.java:417)
  43. [spigot-1.8.8-java-7.jar:git-Spigot-5f38d38-18fbb24] 27.04 13:40:42 [Server]
  44. INFO at org.bukkit.craftbukkit.v1_8_R3.event.CraftEventFactory.callPlayerDeathEvent(CraftEventFactory.java:396)
  45. [spigot-1.8.8-java-7.jar:git-Spigot-5f38d38-18fbb24] 27.04 13:40:42 [Server]
  46. INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
  47. [spigot-1.8.8-java-7.jar:git-Spigot-5f38d38-18fbb24] 27.04 13:40:42 [Server]
  48. INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
  49. [spigot-1.8.8-java-7.jar:git-Spigot-5f38d38-18fbb24] 27.04 13:40:42 [Server]
  50. INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
  51. ~[spigot-1.8.8-java-7.jar:git-Spigot-5f38d38-18fbb24] 27.04 13:40:42 [Server]
  52. INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310)
  53. ~[spigot-1.8.8-java-7.jar:git-Spigot-5f38d38-18fbb24] 27.04 13:40:42 [Server]
  54. INFO org.bukkit.event.EventException 27.04 13:40:42 [Server]
  55. ERROR Could not pass event PlayerDeathEvent to Projekt v1.0


Danke im Voraus :)
Zuletzt geändert von Kampfprofessor am Mi 27. Apr 2016, 19:02, insgesamt 1-mal geändert.
Benutzeravatar
Kampfprofessor
 
Beiträge: 71
Registriert: Fr 12. Feb 2016, 15:48

Re: Was bedeutet diese Fehlermeldung?

Beitragvon Letsplaybar » Mi 27. Apr 2016, 15:52

ein fehler im PlayerDeathEvent im plugin: Projekt v1.0.
genauer gibt der Code nicht aus an welcher stelle.
Bild
Helfe Wo ich kann.
Mein MinecraftServer: Letsplaybaro.de - Suchen Developer/Bilder

I hacked 127.0.0.1!!! :)
Benutzeravatar
Letsplaybar
 
Beiträge: 195
Registriert: Mo 1. Feb 2016, 17:21
Wohnort: Berlin

Re: Was bedeutet diese Fehlermeldung?

Beitragvon Kampfprofessor » Mi 27. Apr 2016, 15:59

Habe 2 Death Events, kannst du ein Fehler entdecken?

Code: Alles auswählen
  1. @EventHandler
  2.    public void onDeath(PlayerDeathEvent e) {
  3.       Player p = (Player) e.getEntity();
  4.       
  5.       String msg = e.getDeathMessage();
  6.       if(p.hasPermission("team.rot")) {
  7.          msg.replace(p.getName(), ChatColor.RED + "" + p.getName());
  8.       } else if(p.hasPermission("team.gelb")) {
  9.          msg.replace(p.getName(), ChatColor.YELLOW + "" + p.getName());
  10.       } else if(p.hasPermission("team.gruen")) {
  11.          msg.replace(p.getName(), ChatColor.GREEN + "" + p.getName());
  12.       } else if(p.hasPermission("team.blau")) {
  13.          msg.replace(p.getName(), ChatColor.BLUE + "" + p.getName());
  14.       } else {
  15.          msg.replace(p.getName(), ChatColor.GRAY + "" + p.getName());
  16.       }
  17.       
  18.       Player k = (Player) p.getKiller();
  19.       
  20.       if(k.hasPermission("team.rot")) {
  21.          msg.replace(k.getName(), ChatColor.RED + "" + k.getName());
  22.       } else if(k.hasPermission("team.gelb")) {
  23.          msg.replace(k.getName(), ChatColor.YELLOW + "" + k.getName());
  24.       } else if(k.hasPermission("team.gruen")) {
  25.          msg.replace(k.getName(), ChatColor.GREEN + "" + k.getName());
  26.       } else if(k.hasPermission("team.blau")) {
  27.          msg.replace(k.getName(), ChatColor.BLUE + "" + k.getName());
  28.       } else {
  29.          msg.replace(k.getName(), ChatColor.GRAY + "" + k.getName());
  30.       }
  31.       
  32.       e.setDeathMessage(msg);
  33.    }


Code: Alles auswählen
  1. @EventHandler
  2.    public void onDeath(PlayerDeathEvent e) {
  3.       FileConfiguration cfg = Main.getInstance().getConfig();
  4.       Player p = (Player) e.getEntity();
  5.       
  6.       if(cfg.get("red") == null) {
  7.          cfg.set("red", 0);
  8.       }
  9.       
  10.       if(cfg.get("yellow") == null) {
  11.          cfg.set("yellow", 0);
  12.       }
  13.       
  14.       if(cfg.get("green") == null) {
  15.          cfg.set("green", 0);
  16.       }
  17.       
  18.       if(cfg.get("blue") == null) {
  19.          cfg.set("blue", 0);
  20.       }
  21.       
  22.       Main.getInstance().saveConfig();
  23.       Main.getInstance().reloadConfig();
  24.       
  25.       FileConfiguration config = Main.getInstance().getConfig();
  26.       
  27.       int red = config.getInt("red");
  28.       int yellow = config.getInt("yellow");
  29.       int green = config.getInt("green");
  30.       int blue = config.getInt("blue");
  31.       
  32.       if(p.hasPermission("team.rot")) {
  33.          red++;
  34.       } else if(p.hasPermission("team.gelb")) {
  35.          yellow++;
  36.       } else if(p.hasPermission("team.gruen")) {
  37.          green++;
  38.       } else if(p.hasPermission("team.blau")) {
  39.          blue++;
  40.       } else {
  41.          return;
  42.       }
  43.       
  44.       for(Player all : Bukkit.getOnlinePlayers()) {
  45.          this.update(all, red, yellow, green, blue);
  46.       }
  47.       
  48.       Main.getInstance().saveConfig();
  49.    }


Danke im Vorraus :)
Benutzeravatar
Kampfprofessor
 
Beiträge: 71
Registriert: Fr 12. Feb 2016, 15:48

Re: Was bedeutet diese Fehlermeldung?

Beitragvon Kampfprofessor » Mi 27. Apr 2016, 18:33

Fehler gefunden:

Man muss überprüfen ob k != null ist:

Code: Alles auswählen
  1. Player p = (Player) e.getEntity();
  2. Player k = (Player) p.getKiller();
  3. if(k != null) {
  4. //Aktion
  5. }
Benutzeravatar
Kampfprofessor
 
Beiträge: 71
Registriert: Fr 12. Feb 2016, 15:48


Zurück zu Hilfe und Support

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 15 Gäste