Welcome to Bukkit France

Inscrivez-vous maintenant pour profiter d'un accès total à tout le contenu offert par la meilleur communauté Bukkit française ! Une fois inscrit et connecté, vous pourrez contribuez à la communauté en postant vos propres sujets et questions ou en répondant à ceux existants. Vous pourrez aussi customiser votre profil, recevoir des points de réputations, communiquer avec les autres membres via le chat, et plus encore! 

Brigamers

Membres
  • Compteur de contenus

    524
  • Inscription

  • Dernière visite

Réputation sur la communauté

87 Fréquentable

À propos de Brigamers

  • Rang
    Apprenti Développeur
  • Date de naissance 06/03/2001

Me contacter

  • GitHub TheBrigamers
  • Minecraft Brigamers
  • Mail [email protected]il.com
  • Skype Brigamers

Informations de profil

  • Sexe Homme

Visiteurs récents du profil

733 visualisations du profil
  1. Apparition de block petit a petit

    Merci de ta reponse, malheureusement je pars en vacances, donc je ne pourrai t'envoyer mes résultats que dans un peu plus d'une semaine.    J'avoue également ne pas trop comprendre ta classe custom, le "comment elle est sensé fonctionner"   Merci  
  2. Apparition de block petit a petit

    [21:39:32 ERROR]: The server has stopped responding! [21:39:32 ERROR]: Please report this to http://www.spigotmc.org/ [21:39:32 ERROR]: Be sure to include ALL relevant console errors and Minecraft crash reports [21:39:32 ERROR]: Spigot version: git-Spigot-e4d4710-e1ebe52 (MC: 1.8.8) [21:39:32 ERROR]: ------------------------------ [21:39:32 ERROR]: Server thread dump (Look for plugins here before reporting to Spigot!): [21:39:32 ERROR]: ------------------------------ [21:39:32 ERROR]: Current Thread: Server thread [21:39:32 ERROR]: PID: 14 | Suspended: false | Native: false | State: RUNNABLE [21:39:32 ERROR]: Stack: [21:39:32 ERROR]: org.bukkit.craftbukkit.v1_8_R3.util.LongObjectHashMap.get(LongObjectHashMap.java:66) [21:39:32 ERROR]: net.minecraft.server.v1_8_R3.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:102) [21:39:32 ERROR]: net.minecraft.server.v1_8_R3.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:97) [21:39:32 ERROR]: org.bukkit.craftbukkit.v1_8_R3.CraftWorld.getChunkAt(CraftWorld.java:126) [21:39:32 ERROR]: org.bukkit.craftbukkit.v1_8_R3.CraftWorld.getBlockAt(CraftWorld.java:90) [21:39:32 ERROR]: be.brigamers.API.region.LentSet.<init>(LentSet.java:71) [21:39:32 ERROR]: be.brigamers.API.region.commands.RegionCommand.onCommand(RegionCommand.java:23) [21:39:32 ERROR]: org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [21:39:32 ERROR]: org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [21:39:32 ERROR]: org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) [21:39:32 ERROR]: net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [21:39:32 ERROR]: net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [21:39:32 ERROR]: net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [21:39:32 ERROR]: net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [21:39:32 ERROR]: net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [21:39:32 ERROR]: java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [21:39:32 ERROR]: java.util.concurrent.FutureTask.run(Unknown Source) [21:39:32 ERROR]: net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [21:39:32 ERROR]: net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [21:39:32 ERROR]: net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [21:39:32 ERROR]: net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [21:39:32 ERROR]: net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [21:39:32 ERROR]: java.lang.Thread.run(Unknown Source) [21:39:32 ERROR]: ------------------------------ [21:39:32 ERROR]: Entire Thread Dump: [21:39:32 ERROR]: ------------------------------ [21:39:32 ERROR]: Current Thread: pool-30-thread-1 [21:39:32 ERROR]: PID: 85 | Suspended: false | Native: false | State: WAITING [21:39:32 ERROR]: Stack: [21:39:32 ERROR]: sun.misc.Unsafe.park(Native Method) [21:39:32 ERROR]: java.util.concurrent.locks.LockSupport.park(Unknown Source) [21:39:32 ERROR]: java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source) [21:39:32 ERROR]: java.util.concurrent.LinkedBlockingQueue.take(Unknown Source) [21:39:32 ERROR]: java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source) [21:39:32 ERROR]: java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [21:39:32 ERROR]: java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [21:39:32 ERROR]: java.lang.Thread.run(Unknown Source) [21:39:32 ERROR]: ------------------------------ [21:39:32 ERROR]: Current Thread: Timer-4 [21:39:32 ERROR]: PID: 84 | Suspended: false | Native: false | State: TIMED_WAITING [21:39:32 ERROR]: Stack: [21:39:32 ERROR]: java.lang.Object.wait(Native Method) [21:39:32 ERROR]: java.util.TimerThread.mainLoop(Unknown Source) [21:39:32 ERROR]: java.util.TimerThread.run(Unknown Source) [21:39:32 ERROR]: ------------------------------ [21:39:32 ERROR]: Current Thread: pool-26-thread-1 [21:39:32 ERROR]: PID: 83 | Suspended: false | Native: false | State: WAITING [21:39:32 ERROR]: Stack: [21:39:32 ERROR]: sun.misc.Unsafe.park(Native Method) [21:39:32 ERROR]: java.util.concurrent.locks.LockSupport.park(Unknown Source) [21:39:32 ERROR]: java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source) [21:39:32 ERROR]: java.util.concurrent.LinkedBlockingQueue.take(Unknown Source) [21:39:32 ERROR]: java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source) [21:39:32 ERROR]: java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [21:39:32 ERROR]: java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [21:39:32 ERROR]: java.lang.Thread.run(Unknown Source) [21:39:32 ERROR]: ------------------------------ [21:39:32 ERROR]: Current Thread: pool-24-thread-1 [21:39:32 ERROR]: PID: 82 | Suspended: false | Native: false | State: WAITING [21:39:32 ERROR]: Stack: [21:39:32 ERROR]: sun.misc.Unsafe.park(Native Method) [21:39:32 ERROR]: java.util.concurrent.locks.LockSupport.park(Unknown Source) [21:39:32 ERROR]: java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source) [21:39:32 ERROR]: java.util.concurrent.LinkedBlockingQueue.take(Unknown Source) [21:39:32 ERROR]: java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source) [21:39:32 ERROR]: java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [21:39:32 ERROR]: java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [21:39:32 ERROR]: java.lang.Thread.run(Unknown Source) [21:39:32 ERROR]: ------------------------------ [21:39:32 ERROR]: Current Thread: pool-22-thread-1 [21:39:32 ERROR]: PID: 81 | Suspended: false | Native: false | State: WAITING [21:39:32 ERROR]: Stack: [21:39:32 ERROR]: sun.misc.Unsafe.park(Native Method) [21:39:32 ERROR]: java.util.concurrent.locks.LockSupport.park(Unknown Source) [21:39:32 ERROR]: java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source) [21:39:32 ERROR]: java.util.concurrent.LinkedBlockingQueue.take(Unknown Source) [21:39:32 ERROR]: java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source) [21:39:32 ERROR]: java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [21:39:32 ERROR]: java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [21:39:32 ERROR]: java.lang.Thread.run(Unknown Source) [21:39:32 ERROR]: ------------------------------ [21:39:32 ERROR]: Current Thread: pool-25-thread-1 [21:39:32 ERROR]: PID: 73 | Suspended: false | Native: false | State: WAITING [21:39:32 ERROR]: Stack: [21:39:32 ERROR]: sun.misc.Unsafe.park(Native Method) [21:39:32 ERROR]: java.util.concurrent.locks.LockSupport.park(Unknown Source) [21:39:32 ERROR]: java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source) [21:39:32 ERROR]: java.util.concurrent.LinkedBlockingQueue.take(Unknown Source) [21:39:32 ERROR]: java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source) [21:39:32 ERROR]: java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [21:39:32 ERROR]: java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [21:39:32 ERROR]: java.lang.Thread.run(Unknown Source) [21:39:32 ERROR]: ------------------------------ [21:39:32 ERROR]: Current Thread: Timer-3 [21:39:32 ERROR]: PID: 72 | Suspended: false | Native: false | State: TIMED_WAITING [21:39:32 ERROR]: Stack: [21:39:32 ERROR]: java.lang.Object.wait(Native Method) [21:39:32 ERROR]: java.util.TimerThread.mainLoop(Unknown Source) [21:39:32 ERROR]: java.util.TimerThread.run(Unknown Source) [21:39:32 ERROR]: ------------------------------ [21:39:32 ERROR]: Current Thread: pool-21-thread-1 [21:39:32 ERROR]: PID: 71 | Suspended: false | Native: false | State: WAITING [21:39:32 ERROR]: Stack: [21:39:32 ERROR]: sun.misc.Unsafe.park(Native Method) [21:39:32 ERROR]: java.util.concurrent.locks.LockSupport.park(Unknown Source) [21:39:32 ERROR]: java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source) [21:39:32 ERROR]: java.util.concurrent.LinkedBlockingQueue.take(Unknown Source) [21:39:32 ERROR]: java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source) [21:39:32 ERROR]: java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [21:39:32 ERROR]: java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [21:39:32 ERROR]: java.lang.Thread.run(Unknown Source) [21:39:32 ERROR]: ------------------------------ [21:39:32 ERROR]: Current Thread: Netty Server IO #3 [21:39:32 ERROR]: PID: 25 | Suspended: false | Native: true | State: RUNNABLE [21:39:32 ERROR]: Thread is waiting on monitor(s): [21:39:32 ERROR]: Locked on:sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source) [21:39:32 ERROR]: org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readCharacter(ConsoleReader.java:2145) [21:39:32 ERROR]: org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readLine(ConsoleReader.java:2349) [21:39:32 ERROR]: net.minecraft.server.v1_8_R3.DedicatedServer$2.run(DedicatedServer.java:79) [21:39:32 ERROR]: ------------------------------ [21:39:32 ERROR]: Current Thread: Thread-5 [21:39:32 ERROR]: PID: 18 | Suspended: false | Native: false | State: WAITING [21:39:32 ERROR]: Stack: [21:39:32 ERROR]: sun.misc.Unsafe.park(Native Method) [21:39:32 ERROR]: java.util.concurrent.locks.LockSupport.park(Unknown Source) [21:39:32 ERROR]: java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source) [21:39:32 ERROR]: java.util.concurrent.LinkedBlockingQueue.take(Unknown Source) [21:39:32 ERROR]: com.mojang.util.QueueLogAppender.getNextLogEvent(QueueLogAppender.java:77) [21:39:32 ERROR]: org.bukkit.craftbukkit.v1_8_R3.util.TerminalConsoleWriterThread.run(TerminalConsoleWriterThread.java:25 [21:39:32 ERROR]: java.lang.Thread.run(Unknown Source) [21:39:32 ERROR]: ------------------------------ [21:39:32 ERROR]: Current Thread: DestroyJavaVM [21:39:32 ERROR]: PID: 16 | Suspended: false | Native: false | State: RUNNABLE [21:39:32 ERROR]: Stack: [21:39:32 ERROR]: ------------------------------ [21:39:32 ERROR]: Current Thread: Server thread [21:39:32 ERROR]: PID: 14 | Suspended: false | Native: false | State: RUNNABLE [21:39:32 ERROR]: Stack: [21:39:32 ERROR]: net.minecraft.server.v1_8_R3.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:102) [21:39:32 ERROR]: net.minecraft.server.v1_8_R3.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:97) [21:39:32 ERROR]: org.bukkit.craftbukkit.v1_8_R3.CraftWorld.getChunkAt(CraftWorld.java:126) [21:39:32 ERROR]: org.bukkit.craftbukkit.v1_8_R3.CraftWorld.getBlockAt(CraftWorld.java:90) [21:39:32 ERROR]: be.brigamers.API.region.LentSet.<init>(LentSet.java:71) [21:39:32 ERROR]: be.brigamers.API.region.commands.RegionCommand.onCommand(RegionCommand.java:23) [21:39:32 ERROR]: org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [21:39:32 ERROR]: org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [21:39:32 ERROR]: org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) [21:39:32 ERROR]: net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [21:39:32 ERROR]: net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [21:39:32 ERROR]: net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [21:39:32 ERROR]: net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [21:39:32 ERROR]: net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [21:39:32 ERROR]: java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [21:39:32 ERROR]: java.util.concurrent.FutureTask.run(Unknown Source) [21:39:32 ERROR]: net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [21:39:32 ERROR]: net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [21:39:32 ERROR]: net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [21:39:32 ERROR]: net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [21:39:32 ERROR]: net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [21:39:32 ERROR]: java.lang.Thread.run(Unknown Source) [21:39:32 ERROR]: ------------------------------ [21:39:32 ERROR]: Current Thread: Server Infinisleeper [21:39:32 ERROR]: PID: 15 | Suspended: false | Native: false | State: TIMED_WAITING [21:39:32 ERROR]: Stack: [21:39:32 ERROR]: java.lang.Thread.sleep(Native Method) [21:39:32 ERROR]: net.minecraft.server.v1_8_R3.DedicatedServer$1.run(DedicatedServer.java:54) [21:39:32 ERROR]: ------------------------------ [21:39:32 ERROR]: Current Thread: NonBlockingInputStreamThread [21:39:32 ERROR]: PID: 12 | Suspended: false | Native: false | State: WAITING Il me met une erreur (quel que soit la taille, meme du 2x2)   elle vient de cette ligne : map.put(l1.getWorld().getBlockAt(x, y, z), b -> b.setType(Material.STONE)); Je pense qu'il s'agit du meme probleme que celui que j'ai rencontrer précédament pour mon Cuboid. C'est pour sa que j'avais essayer de faire sans enregistrer dans une Map/ArrayList, pour pouvoir faire de grande taille sans faire "bug" le serveur.   Merci  
  3. Apparition de block petit a petit

    Bonjour,   Version: 1.8.8 Logiciel: Eclipse.   J'aimerais faire une classe qui fait apparaitre petit a petit les blocks dans une zone définie par deux coordonée (ici, 1s entre chaque block). Mais je n'ai réussi qu'a faire que les blocks soit mis une seconde apres la commande, et non une seconde entre Chaque block.   int x1 = l1.getBlockX() ; int y1 = l1.getBlockY() ; int z1 = l1.getBlockZ() ; int x2 = l2.getBlockX() ; int y2 = l2.getBlockY() ; int z2 = l2.getBlockZ() ; int xPlus = 0 ; int xMoins = 0 ; int yPlus = 0 ; int yMoins = 0 ; int zPlus = 0 ; int zMoins = 0 ; if(x1>=x2){ xPlus = x1 ; xMoins = x2 ; }else{ xPlus = x2 ; xMoins = x1 ; } if(y1>=y2){ yPlus = y1 ; yMoins = y2 ; }else{ yPlus = y2 ; yMoins = y1 ; } if(z1>=z2){ zPlus = z1 ; zMoins = z2 ; }else{ zPlus = z2 ; zMoins = z1 ; } int x = xMoins ; int y = yMoins ; int z = zMoins ; while(z<=zPlus){ while(y<=yPlus){ while(x<=xPlus){ final Location l = new Location(l1.getWorld(),x,y,z) ; Bukkit.getScheduler().scheduleSyncDelayedTask(BrigamersAPI.getPlugin(), new Runnable() { @Override public void run() { l.getBlock().setType(Material.STONE); } }, 20) ; x++ ; } x = xMoins ; y++ ; } y = yMoins ; z++ ; } }   Merci  
  4. Plugin pas pris en compte

      deuxièmement : est tu sur de bien mettre le plugin dans le bon dossier ? car même si il y avais un problème dans le plugin.yml ou le main.java, il donnerait une erreur ou un "signe de vie". la tu n'as rien.    bonne journée.
  5. Plugin pas pris en compte

    Un autre plugin (qui n'est de toi et que tu est sur qu'il fonctionne (essentials par exemple)) sa fonctionne ?
  6. Plusieurs version

    Je le sais, mais il ne me l'affichait pas (j'étais en jeu)   De plus, en reppassant en 1.8.8, j'ai la meme erreur, mais dans l'autre sens   [21:43:42 ERROR]: Error occurred while enabling BrigamersAPI v1.0 (Is it up to date?) java.lang.NoClassDefFoundError: net/minecraft/server/v1_9_R1/Packet at be.brigamers.API.BrigamersAPI.onEnable(BrigamersAPI.java:17) ~[?:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[spigot.jar:git-Spigot-e4d4710-e1ebe52] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:357) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:317) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at org.bukkit.craftbukkit.v1_8_R3.CraftServer.reload(CraftServer.java:741) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at org.bukkit.Bukkit.reload(Bukkit.java:535) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:25) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_111] at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_111] at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at java.lang.Thread.run(Unknown Source) [?:1.8.0_111] Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_9_R1.Packet at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:91) ~[spigot.jar:git-Spigot-e4d4710-e1ebe52] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot.jar:git-Spigot-e4d4710-e1ebe52] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_111] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_111] ... 24 more  
  7. Plusieurs version

      Il ne m'affiche rien du tout. le broadcast ne s'execute meme pas .
  8. Plusieurs version

    Bonjour,   Version : 1.9 & 1.8.8 Logiciel : eclipse   J'aimerais faire un plugin qui accepte plusieurs version. seulement celui ci a besoin d'utiliser des classe appartenant a la 'version'. Voici le code que j'ai donc fait :   public class BrigamersAPI extends JavaPlugin { private static String version ; public void onEnable(){ version = Bukkit.getServer().getClass().getPackage().getName().split("\\.")[3]; //DEBUG Bukkit.broadcastMessage(version) ; for(Player p : Bukkit.getOnlinePlayers()){ Title.sendTitle(p, "Réussi !", "", 20); } } public static String getVersion(){ return version ; } } import java.lang.reflect.Field; import org.bukkit.Bukkit; import org.bukkit.entity.Player; import be.brigamers.API.BrigamersAPI; public class Title { public static void setPlayerList(Player player, String header, String footer) { if(BrigamersAPI.getVersion().equals("v1_8_R3")){ net.minecraft.server.v1_8_R3.IChatBaseComponent hj = net.minecraft.server.v1_8_R3.IChatBaseComponent.ChatSerializer.a("{\"text\": \"" + header + "\"}"); net.minecraft.server.v1_8_R3.IChatBaseComponent fj = net.minecraft.server.v1_8_R3.IChatBaseComponent.ChatSerializer.a("{\"text\": \"" + footer + "\"}"); net.minecraft.server.v1_8_R3.PacketPlayOutPlayerListHeaderFooter packet = (net.minecraft.server.v1_8_R3.PacketPlayOutPlayerListHeaderFooter) constructHeaderAndFooterPacket(hj, fj); ((org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer) player).getHandle().playerConnection.sendPacket(packet); }else if(BrigamersAPI.getVersion().equals("v1_9_R1")){ net.minecraft.server.v1_9_R1.IChatBaseComponent hj = net.minecraft.server.v1_9_R1.IChatBaseComponent.ChatSerializer.a("{\"text\": \"" + header + "\"}"); net.minecraft.server.v1_9_R1.IChatBaseComponent fj = net.minecraft.server.v1_9_R1.IChatBaseComponent.ChatSerializer.a("{\"text\": \"" + footer + "\"}"); net.minecraft.server.v1_9_R1.PacketPlayOutPlayerListHeaderFooter packet = (net.minecraft.server.v1_9_R1.PacketPlayOutPlayerListHeaderFooter) constructHeaderAndFooterPacket(hj, fj); ((org.bukkit.craftbukkit.v1_9_R1.entity.CraftPlayer) player).getHandle().playerConnection.sendPacket(packet); }else Bukkit.broadcastMessage("§cVous utisez une fonction réservé à la version 1.8.8") ; } private static Object constructHeaderAndFooterPacket(Object header, Object footer) { if(BrigamersAPI.getVersion().equals("v1_8_R3")){ try { Object packet =net.minecraft.server.v1_8_R3. PacketPlayOutPlayerListHeaderFooter.class.newInstance(); if (header != null) { Field field =net.minecraft.server.v1_8_R3. PacketPlayOutPlayerListHeaderFooter.class.getDeclaredField("a"); field.setAccessible(true); field.set(packet, header); field.setAccessible(false); } if (footer != null) { Field field = net.minecraft.server.v1_8_R3.PacketPlayOutPlayerListHeaderFooter.class.getDeclaredField("b"); field.setAccessible(true); field.set(packet, footer); field.setAccessible(false); } return packet; } catch (InstantiationException | IllegalAccessException | NoSuchFieldException e) { e.printStackTrace(); } }else if(BrigamersAPI.getVersion().equals("v1_9_R1")){ try { Object packet =net.minecraft.server.v1_9_R1. PacketPlayOutPlayerListHeaderFooter.class.newInstance(); if (header != null) { Field field =net.minecraft.server.v1_9_R1. PacketPlayOutPlayerListHeaderFooter.class.getDeclaredField("a"); field.setAccessible(true); field.set(packet, header); field.setAccessible(false); } if (footer != null) { Field field = net.minecraft.server.v1_9_R1.PacketPlayOutPlayerListHeaderFooter.class.getDeclaredField("b"); field.setAccessible(true); field.set(packet, footer); field.setAccessible(false); } return packet; } catch (InstantiationException | IllegalAccessException | NoSuchFieldException e) { e.printStackTrace(); } }else Bukkit.broadcastMessage("§cVous utisez une fonction réservé à la version 1.8.8") ; return null; } public static void sendTitle(Player player, String msgTitle, String msgSubTitle, int ticks) { if(BrigamersAPI.getVersion().equals("v1_8_R3")){ net.minecraft.server.v1_8_R3.IChatBaseComponent chatTitle = net.minecraft.server.v1_8_R3.IChatBaseComponent.ChatSerializer.a("{\"text\": \"" + msgTitle + "\"}"); net.minecraft.server.v1_8_R3.IChatBaseComponent chatSubTitle = net.minecraft.server.v1_8_R3.IChatBaseComponent.ChatSerializer.a("{\"text\": \"" + msgSubTitle + "\"}"); net.minecraft.server.v1_8_R3.PacketPlayOutTitle p = new net.minecraft.server.v1_8_R3.PacketPlayOutTitle(net.minecraft.server.v1_8_R3.PacketPlayOutTitle.EnumTitleAction.TITLE, chatTitle); net.minecraft.server.v1_8_R3.PacketPlayOutTitle p2 = new net.minecraft.server.v1_8_R3. PacketPlayOutTitle(net.minecraft.server.v1_8_R3.PacketPlayOutTitle.EnumTitleAction.SUBTITLE, chatSubTitle); ((org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer) player).getHandle().playerConnection.sendPacket(p); ((org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer) player).getHandle().playerConnection.sendPacket(p2); sendTime(player, ticks); }else if(BrigamersAPI.getVersion().equals("v1_9_R1")){ net.minecraft.server.v1_9_R1.IChatBaseComponent chatTitle = net.minecraft.server.v1_9_R1.IChatBaseComponent.ChatSerializer.a("{\"text\": \"" + msgTitle + "\"}"); net.minecraft.server.v1_9_R1.IChatBaseComponent chatSubTitle = net.minecraft.server.v1_9_R1.IChatBaseComponent.ChatSerializer.a("{\"text\": \"" + msgSubTitle + "\"}"); net.minecraft.server.v1_9_R1.PacketPlayOutTitle p = new net.minecraft.server.v1_9_R1.PacketPlayOutTitle(net.minecraft.server.v1_9_R1.PacketPlayOutTitle.EnumTitleAction.TITLE, chatTitle); net.minecraft.server.v1_9_R1.PacketPlayOutTitle p2 = new net.minecraft.server.v1_9_R1. PacketPlayOutTitle(net.minecraft.server.v1_9_R1.PacketPlayOutTitle.EnumTitleAction.SUBTITLE, chatSubTitle); ((org.bukkit.craftbukkit.v1_9_R1.entity.CraftPlayer) player).getHandle().playerConnection.sendPacket(p); ((org.bukkit.craftbukkit.v1_9_R1.entity.CraftPlayer) player).getHandle().playerConnection.sendPacket(p2); sendTime(player, ticks); }else Bukkit.broadcastMessage("§cVous utisez une fonction réservé à la version 1.8.8") ; } private static void sendTime(Player player, int ticks) { if(BrigamersAPI.getVersion().equals("v1_8_R3")){ net.minecraft.server.v1_8_R3.PacketPlayOutTitle p = new net.minecraft.server.v1_8_R3.PacketPlayOutTitle(net.minecraft.server.v1_8_R3.PacketPlayOutTitle.EnumTitleAction.TIMES, null, 20, ticks, 20); ((org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer) player).getHandle().playerConnection.sendPacket(p); }else if(BrigamersAPI.getVersion().equals("v1_9_R1")){ net.minecraft.server.v1_9_R1.PacketPlayOutTitle p = new net.minecraft.server.v1_9_R1.PacketPlayOutTitle(net.minecraft.server.v1_9_R1.PacketPlayOutTitle.EnumTitleAction.TIMES, null, 20, ticks, 20); ((org.bukkit.craftbukkit.v1_9_R1.entity.CraftPlayer) player).getHandle().playerConnection.sendPacket(p); }else Bukkit.broadcastMessage("§cVous utisez une fonction réservé à la version 1.8.8") ; } public static void sendActionBar(Player player, String message) { if(BrigamersAPI.getVersion().equals("v1_8_R3")){ net.minecraft.server.v1_8_R3.IChatBaseComponent cbc = net.minecraft.server.v1_8_R3.IChatBaseComponent.ChatSerializer.a("{\"text\": \"" + message + "\"}"); net.minecraft.server.v1_8_R3.PacketPlayOutChat ppoc = new net.minecraft.server.v1_8_R3.PacketPlayOutChat(cbc, (byte) 2); ((org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer) player).getHandle().playerConnection.sendPacket(ppoc); }else if(BrigamersAPI.getVersion().equals("v1_9_R1")){ net.minecraft.server.v1_9_R1.IChatBaseComponent cbc = net.minecraft.server.v1_9_R1.IChatBaseComponent.ChatSerializer.a("{\"text\": \"" + message + "\"}"); net.minecraft.server.v1_9_R1.PacketPlayOutChat ppoc = new net.minecraft.server.v1_9_R1.PacketPlayOutChat(cbc, (byte) 2); ((org.bukkit.craftbukkit.v1_9_R1.entity.CraftPlayer) player).getHandle().playerConnection.sendPacket(ppoc); }else Bukkit.broadcastMessage("§cVous utisez une fonction réservé à la version 1.8.8") ; } } Sur mon serveur 1.8.8, aucun probleme, tout fonctionne. Mais sur mon serveur 1.9, sa ne marche pas. sa me donne une erreur.   [21:02:11 INFO]: [BrigamersAPI] Disabling BrigamersAPI v1.0 [21:02:11 INFO]: [BrigamersAPI] Loading BrigamersAPI v1.0 [21:02:11 INFO]: [BrigamersAPI] Enabling BrigamersAPI v1.0 [21:02:11 ERROR]: Error occurred while enabling BrigamersAPI v1.0 (Is it up to d ate?) java.lang.NoClassDefFoundError: net/minecraft/server/v1_8_R3/Packet at be.brigamers.API.BrigamersAPI.onEnable(BrigamersAPI.java:16) ~[?:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:291) ~[s pigot.jar:git-Spigot-7d15d07-c194444] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader .java:340) [spigot.jar:git-Spigot-7d15d07-c194444] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage r.java:405) [spigot.jar:git-Spigot-7d15d07-c194444] at org.bukkit.craftbukkit.v1_9_R1.CraftServer.loadPlugin(CraftServer.jav a:361) [spigot.jar:git-Spigot-7d15d07-c194444] at org.bukkit.craftbukkit.v1_9_R1.CraftServer.enablePlugins(CraftServer. java:321) [spigot.jar:git-Spigot-7d15d07-c194444] at org.bukkit.craftbukkit.v1_9_R1.CraftServer.reload(CraftServer.java:74 5) [spigot.jar:git-Spigot-7d15d07-c194444] at org.bukkit.Bukkit.reload(Bukkit.java:539) [spigot.jar:git-Spigot-7d15 d07-c194444] at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java: 25) [spigot.jar:git-Spigot-7d15d07-c194444] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:14 1) [spigot.jar:git-Spigot-7d15d07-c194444] at org.bukkit.craftbukkit.v1_9_R1.CraftServer.dispatchCommand(CraftServe r.java:645) [spigot.jar:git-Spigot-7d15d07-c194444] at org.bukkit.craftbukkit.v1_9_R1.CraftServer.dispatchServerCommand(Craf tServer.java:631) [spigot.jar:git-Spigot-7d15d07-c194444] at net.minecraft.server.v1_9_R1.DedicatedServer.aL(DedicatedServer.java: 437) [spigot.jar:git-Spigot-7d15d07-c194444] at net.minecraft.server.v1_9_R1.DedicatedServer.D(DedicatedServer.java:4 01) [spigot.jar:git-Spigot-7d15d07-c194444] at net.minecraft.server.v1_9_R1.MinecraftServer.C(MinecraftServer.java:6 55) [spigot.jar:git-Spigot-7d15d07-c194444] at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java :554) [spigot.jar:git-Spigot-7d15d07-c194444] at java.lang.Thread.run(Unknown Source) [?:1.8.0_111] Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_8_R3.Packet at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader. java:91) ~[spigot.jar:git-Spigot-7d15d07-c194444] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader. java:86) ~[spigot.jar:git-Spigot-7d15d07-c194444] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_111] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_111] ... 17 more Pourtant je n'appelle a aucun moment des classes de la 1.8 durant la 1.9 il me semble.   Merci  
  9. Montures

    Bonjour,   Il no connais pas tout les petit "a,aO,b,..."  
  10. Cuboid selection

    Bonjour !   Version : 1.8.8 Logiciel Eclipse   J'essaye de faire une classe Cuboid. C'est a dire qui contient les positions entre deux locations.   J'ai fais ceci :   public class Cuboid { private ArrayList<Location> result = new ArrayList<Location>() ; private Location l1,l2 ; private int x1,y1,z1,x2,y2,z2 ; private World world ; public Cuboid(Location l1, Location l2){ Bukkit.broadcastMessage("0") ; l1 = new Location(l1.getWorld(), l1.getBlockX(), l1.getBlockY(), l1.getBlockZ()) ; l2 = new Location(l2.getWorld(), l2.getBlockX(), l2.getBlockY(), l2.getBlockZ()) ; if(!l1.getWorld().equals(l2.getWorld())) return ; int x1 = l1.getBlockX() ; int y1 = l1.getBlockY() ; int z1 = l1.getBlockZ() ; int x2 = l2.getBlockX() ; int y2 = l2.getBlockY() ; int z2 = l2.getBlockZ() ; this.x1 = x1 ; this.y1 = y1 ; this.z1 = z1 ; this.x2 = x2 ; this.y2 = y2 ; this.z2 = z2 ; this.world = l1.getWorld() ; this.l1 = l1 ; this.l2 = l2 ; int xPlus = 0 ; int xMoins = 0 ; int yPlus = 0 ; int yMoins = 0 ; int zPlus = 0 ; int zMoins = 0 ; if(x1>=x2){ xPlus = x1 ; xMoins = x2 ; }else{ xPlus = x2 ; xMoins = x1 ; } if(y1>=y2){ yPlus = y1 ; yMoins = y2 ; }else{ yPlus = y2 ; yMoins = y1 ; } if(z1>=z2){ zPlus = z1 ; zMoins = z2 ; }else{ zPlus = z2 ; zMoins = z1 ; } int x = xMoins ; int y = yMoins ; int z = zMoins ; while(z<=zPlus){ while(y<=yPlus){ while(x<=xPlus){ result.add(new Location(l1.getWorld(),x,y,z)) ; x++ ; } x = xMoins ; y++ ; } y = yMoins ; z++ ; } } public boolean contains(Location l){ if(result.contains(l)) { //DEBUG Bukkit.broadcastMessage("true") ; return true ; }else{ // DEBUG Bukkit.broadcastMessage("false") ; return false ; } } }   Pour mon plugin, je verifie a tout les ticks si le joueur est dans le cuboid :   Bukkit.getScheduler().scheduleSyncRepeatingTask(hub.getPlugin(), new Runnable(){ Cuboid c = new Cuboid(new Location(Bukkit.getWorld("world"),-100,0,-100), new Location(Bukkit.getWorld("world"),100,255,100)) ; @Override public void run() { for(Player p : Bukkit.getOnlinePlayers()){ if(c.contains(p.getLocation())){ float f = 1.0f ; p.setWalkSpeed(f); }else{ float f = 0.2f ; p.setWalkSpeed(f); } } } }, 0, 1) ; Seulement, sa ne marche pas : [11:57:03 ERROR]: Error occurred while enabling Hub v1.0.0 (Is it up to date?) java.lang.OutOfMemoryError: Java heap space at be.brigamers.hub.utils.Cuboid.<init>(Cuboid.java:81) ~[?:?] at be.brigamers.hub.utils.Boucle$1.<init>(Boucle.java:18) ~[?:?] at be.brigamers.hub.utils.Boucle.effect(Boucle.java:15) ~[?:?] at be.brigamers.hub.hub.onEnable(hub.java:34) ~[?:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[spigot.jar:git-Spigot-e4d4710-e1ebe52] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:357) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:317) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at org.bukkit.craftbukkit.v1_8_R3.CraftServer.reload(CraftServer.java:741) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at org.bukkit.Bukkit.reload(Bukkit.java:535) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:25) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_111] at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_111] at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot.jar:git-Spigot-e4d4710-e1ebe52] at java.lang.Thread.run(Unknown Source) [?:1.8.0_111]   Merci   Ps : la ligne "81" est la ligne d'ajout dans l'arraylist.
  11. Téléportation d'armor stand

    Bonjour !   Version : 1.8.8 Logiciel : eclipse   J'essaye de faire qu'une armor stand vous tourne autour de façon constante. J'ai fais ceci : public Diamond(Player p){ p.getWorld().getEntitiesByClasses(ArmorStand.class).stream().filter(a -> a.getCustomName() != null && a.getCustomName().equals("§c" + p.getName())).forEach(a -> a.remove()); Entity entity = p.getWorld().spawnEntity(p.getLocation(), EntityType.ARMOR_STAND); ArmorStand as = (ArmorStand) entity ; as.setGravity(false); as.setBasePlate(false); as.setCustomName("§c" + p.getName()); as.setItemInHand(new ItemStack(Material.DIAMOND)); Bukkit.getScheduler().scheduleSyncRepeatingTask(hub.getPlugin(), new Runnable(){ int count = 0 ; @Override public void run() { double valeur = (count * Math.PI)/20 ; Location l = p.getLocation() ; Location loc = new Location(l.getWorld(), l.getX() + Math.cos(valeur), l.getY() + Math.sin(valeur), l.getZ() + Math.sin(valeur) ); as.teleport(loc) ; if(count >= 40){ count = 0 ; } count ++ ; } },1,1) ; } Mais sa marche pas. L'armurStand tourne, mais semble "décaler" Voici le resultat :   De plus, si je change ceci : Location loc = new Location(l.getWorld(), l.getX() + 1 + Math.cos(valeur), l.getY() + Math.sin(valeur), l.getZ() + Math.sin(valeur) ); le "+1" n'est pas pris en compte. et toute autre valeur (j'ai essayer d'ajouter 2 en Y par exemple) ne marche pas non plus, alors que mes sinus et cosinus fonctionnent.   Merci   EDIT : Apres avoir fait des test, elle se met droit parfois, apres que j'ai couru :     EDIT #2: J'ai essayer de faire une simple "trainée" de diamant. J'ai fais ceci :   public class Diamond { private static int task = 0; public Diamond(Player p){ p.getWorld().getEntitiesByClasses(ArmorStand.class).stream().forEach(a -> a.remove()); Bukkit.getScheduler().scheduleSyncRepeatingTask(hub.getPlugin(), new Runnable(){ @Override public void run() { task(p) ; } },20,20); } private void task(Player p){ Entity entity = p.getWorld().spawnEntity(p.getLocation(), EntityType.ARMOR_STAND); ArmorStand as = (ArmorStand) entity ; as.setGravity(false); as.setBasePlate(false); String name = "§c" + Math.random() ; as.setCustomName(name); as.setVisible(false); as.setItemInHand(new ItemStack(Material.DIAMOND)); EulerAngle a = new EulerAngle(Math.toRadians(-90),0,0); as.setRightArmPose(a); Location l = p.getLocation() ; as.teleport(l) ; as.teleport(as.getLocation().add(0d,-1.0d,0d)) ; task = Bukkit.getScheduler().scheduleSyncRepeatingTask(hub.getPlugin(), new Runnable(){ int count = 0 ; @Override public void run() { as.teleport(as.getLocation().add(0d,-0.1d,0d)) ; if(count >= 20){ count = 0 ; Bukkit.getScheduler().cancelTask(task); p.getWorld().getEntitiesByClasses(ArmorStand.class).stream().filter(a -> a.getCustomName() != null && a.getCustomName().equals(name)).forEach(a -> a.remove()); } count ++ ; } },1,1) ; } } Sauf que voici le resultat (1s entre chaque, c'est normal, pour eviter une surcharge tant que tout ne fonctionne pas)     EDIT #3 : trainée de diamant réussi, j'ai séparé dans deux classe, et j'ai fais new Task(p) a chaque fois, comme sa c'est plus static, mais indépendant. Seul bémole, la trainée est a hauteur d'yeux. Et je n'arrive pas a l'abaissé.   int task = 0; public Task(Player p){ Entity entity = p.getWorld().spawnEntity(p.getLocation(), EntityType.ARMOR_STAND); ArmorStand as = (ArmorStand) entity ; as.setGravity(false); as.setBasePlate(false); String name = "§c" + Math.random() ; as.setCustomName(name); as.setVisible(false); as.setItemInHand(new ItemStack(Material.DIAMOND)); EulerAngle a = new EulerAngle(Math.toRadians(-90),0,0); as.setRightArmPose(a); Location l = p.getLocation() ; as.teleport(l) ; task = Bukkit.getScheduler().scheduleSyncRepeatingTask(hub.getPlugin(), new Runnable(){ int count = 0 ; @Override public void run() { if(count==0){ as.teleport(as.getLocation().add(0d,-0.2d,0d)) ; } as.teleport(as.getLocation().add(0d,-0.2d,0d)) ; if(count >= 10){ count = 0 ; Bukkit.getScheduler().cancelTask(task); p.getWorld().getEntitiesByClasses(ArmorStand.class).stream().filter(a -> a.getCustomName() != null && a.getCustomName().equals(name)).forEach(a -> a.remove()); } count ++ ; } },1,1) ; } Le  if(count==0){ as.teleport(as.getLocation().add(0d,-0.2d,0d)) ; } Ne change rien (et si je le met avant la boucle non plus)
  12. Montures

    Bonjour,   Version : 1.8.8 Logiciel: eclipse   J'essaye de faire un système de monture. J'ai commencer par un "facile", le cheval. J'ai fais ceci pour lui :   Pour monter : if(e.getCurrentItem().equals(ItemInventory.getCheval())){ Entity entity = p.getWorld().spawnEntity(p.getLocation(), EntityType.HORSE); Horse horse = (Horse) entity ; horse.setAdult(); horse.getInventory().addItem(new ItemStack(Material.SADDLE)) ; horse.getInventory().addItem(new ItemStack(Material.DIAMOND_BARDING)) ; horse.setColor(Color.WHITE); horse.setCustomName("§c" + p.getName()); horse.setMaxHealth(20); horse.setHealth(20); horse.setJumpStrength(1); horse.setPassenger(p) ; p.closeInventory(); } Pour desendre : @EventHandler public void onPlayer(VehicleExitEvent e){ if(e.getExited() instanceof Player){ Player p = (Player) e.getExited() ; p.sendMessage("++"); if(e.getVehicle() instanceof Horse){ p.getWorld().getEntitiesByClasses(Horse.class).stream().filter(a -> a.getCustomName() != null && a.getCustomName().equals("§c" + p.getName())).forEach(a -> a.remove()); } } } Sa marche bien (sauf que parfois j'ai une mule, donc sans armure  )   Puis j'essaye avec une vache. Sa se complique un peu ^^   Pour monter : if(e.getCurrentItem().equals(ItemInventory.getVache())){ Entity entity = p.getWorld().spawnEntity(p.getLocation(), EntityType.COW); Cow horse = (Cow) entity ; horse.setAdult(); horse.setCustomName("§c" + p.getName()); horse.setMaxHealth(20); horse.setHealth(20); horse.setPassenger(p) ; p.closeInventory(); } Sauf que contrairement au cheval, il n'a pas d'inventaire, ni de selle. Donc il est incontrolable. Je cherche une façon de la controler, sans succes pour l'instant.   Deuxieme probleme, je ne sais pas que faire pour le supprimer a la descente.   Ce n'est pas un Vehicule, donc l'event ne marche pas.   Merci  
  13. Récupéré un plugin present sur le serveur

    Il s'agit d'une classe .java dans mon plugin. Il est "important" car il y a beaucoup de variables/fonctions/events importants
  14. Bonjour,   Version : 1.8.8 Logiciel: Eclipse   J'ai supprimer, comme un bête, un fichier important dans mon Projet, et j'essaye de le récupéré, sans succes. J'ai mis du temps avant de m'en rendre compte  J'ai déja actualiser le plugin dans le dossier "Plugins" mais pas encore reload (donc ma class fonctionne encore, mais si je reload, elle ne fonctionnera plus)    Est il possible de la récupéré ?   Merci  
  15. Selection d'entité

    Bonjour !   Version: 1.8.8 Logiciel: Eclipse   J'aimerais selectionner toute mes entitées dans mon monde (un peu comme Bukkit.getOnlinePlayers() mais pour les entitées).   Pour pouvoir verifier leur type, puis leur custome name, et si le CustomName = "x" alors j'aimerais supprimer l'entité.   (c'est pour des armorStand invisible que j'aimerais détruire par leur customeName)   Merci