Résolu Problème en java

LorDbox4

Architecte en herbe
5 Octobre 2015
66
0
83
Bonjour, je souhaite que quand un joueur déclenche une plaque de pression au sol ça lui give l'item "returnjump"..


J'ai déjà essayer de faire ça :

discord.png


Mais l'item ne se give pas.. Je ne sais pas comment faire.. ( PS : Ce screen à été pris dans l'InteractEvent car j'ai dû déplacé la méthode qui crée le returnjump)

Si quelqu'un aurait une idée, merci !
 
Dernière édition:

ShE3py

Enbogueuse
Support
26 Septembre 2015
4 087
157
456
247
21
Mìlhüsa
Bonsoir,

Envois toute ta méthode, car là je n'ai aucune idée de l'évènement que tu traites ainsi que le type de ta variable action.
Et copie-colle ton code entre des balises code, au lieu d'envoyer un screenshot :
Java:
[code=java]
void foo() {
    bar.baz();
}
[*/code]

Sans l'astérisque « * ».
Et au lieu de demander directement de l'aide sur les forums, tente d'abord de déboguer ton code, avec des System.out.println/logger.info, ou en utilisant le débogueur intégré à IntelliJ en remote.

Cordialement,
ShE3py.
 

LorDbox4

Architecte en herbe
5 Octobre 2015
66
0
83
Java:
public class InventoryListener implements Listener {

    @EventHandler
    public void onInteract(PlayerInteractEvent e){
        Player player = e.getPlayer();
        ItemStack it = e.getItem();
        Action action = e.getAction();

        if(it == null) return;

ItemStack returnjump = new ItemStack(Material.CONCRETE_POWDER, 1);
ItemMeta returnM = returnjump.getItemMeta();
returnM.setDisplayName("§cRetourner au début");
returnM.setLore(Arrays.asList("§8§l> &cRetourner au début", "", "", "§6> Clique droit pour intéragir"));
returnjump.setItemMeta(returnM);

if (action == Action.PHYSICAL) {
    Location blockUnder = player.getLocation();
    blockUnder.setY(blockUnder.getY() - 1);
    if (player.getLocation().getBlock().getType().equals(Material.WOOD_PLATE) && blockUnder.getBlock().getType().equals(Material.STONE)) {
        player.getInventory().setItemInMainHand(returnjump);
        player.updateInventory();
    }

Je n'ai jamais essayer de déboguer mon code.. Je ne sais pas comment faire :/ @ShE3py
 
Dernière édition:

ShE3py

Enbogueuse
Support
26 Septembre 2015
4 087
157
456
247
21
Mìlhüsa
Le principe est simple ; tu rajoutes simplement des messages après chaque if pour vérifier si la condition est validée, et que donc il a exécuté ton code :
Java:
public class InventoryListener implements Listener {
    @EventHandler
    public void onPlayerInteract(PlayerInteractEvent e){
        Player player = e.getPlayer();
        ItemStack ittem = e.getItem();
        Action action = e.getAction();
        
        System.out.println("onPlayerInteract");

        if(item == null)
            return;
        
        System.out.println("item != null");

        ItemStack restartItem = new ItemStack(Material.CONCRETE_POWDER, 1);
        ItemMeta itemMeta = restartItem.getItemMeta();
        itemMeta.setDisplayName("§cRetourner au début");
        itemMeta.setLore(Arrays.asList("§8§l> &cRetourner au début", "", "", "§6> Clique droit pour intéragir"));
        restartItem.setItemMeta(itemMeta);

        if(action == Action.PHYSICAL) {
            System.out.println("action == PHYSICAL");
            
            Block block = player.getWorld().getBlock(player.getLocation());
            
            if(block.getType() == Material.WOOD_PLATE) {
                System.out.println("block == WOOD_PLATE");
                
                if(block.getRelative(BlockFace.DOWN).getType() == Material.STONE) {
                    System.out.println("downedBlock == STONE");
                    
                    player.getInventory().setItemInMainHand(restartItem);
                    player.updateInventory();
                }
            }
        }
    }
}

Puis tu regardes où ça bloque.
Après tu peux aussi utiliser le déboguer d'IntelliJ, mais il faut faire une manip spéciale.

P.S.: Désolé pour le temps de réponse
 

LorDbox4

Architecte en herbe
5 Octobre 2015
66
0
83
Java:
[15:49:55] [Server thread/INFO]: Starting minecraft server version 1.12
[15:49:55] [Server thread/INFO]: Loading properties
[15:49:55] [Server thread/INFO]: Default game type: SURVIVAL
[15:49:55] [Server thread/INFO]: This server is running CraftBukkit version git-Spigot-596221b-9a1fc1e (MC: 1.12) (Implementing API version 1.12-R0.1-SNAPSHOT)
[15:49:56] [Server thread/INFO]: Debug logging is disabled
[15:49:56] [Server thread/INFO]: Using 4 threads for Netty based IO
[15:49:56] [Server thread/INFO]: Server Ping Player Sample Count: 12
[15:49:56] [Server thread/INFO]: Generating keypair
[15:49:56] [Server thread/INFO]: Starting Minecraft server on localhost:25565
[15:49:56] [Server thread/INFO]: Using default channel type
[15:49:58] [Server thread/INFO]: Set PluginClassLoader as parallel capable
[15:49:58] [Server thread/INFO]: [BanGui] Loading BanGui v1.0.0
[15:49:58] [Server thread/INFO]: [JumpPlugin] Loading JumpPlugin v1.0.0
[15:49:58] [Server thread/INFO]: [Essentials] Loading Essentials v2.17.1.0
[15:49:58] [Server thread/INFO]: [EssentialsProtect] Loading EssentialsProtect v2.17.1.0
[15:49:58] [Server thread/INFO]: [QuickBoard] Loading QuickBoard v4.3.0
[15:49:58] [Server thread/INFO]: [EssentialsChat] Loading EssentialsChat v2.17.1.0
[15:49:58] [Server thread/INFO]: [EssentialsGeoIP] Loading EssentialsGeoIP v2.17.1.0
[15:49:58] [Server thread/INFO]: [EssentialsAntiBuild] Loading EssentialsAntiBuild v2.17.1.0
[15:49:58] [Server thread/INFO]: [Fly] Loading Fly v1.0
[15:49:58] [Server thread/INFO]: [ViaVersion] Loading ViaVersion v2.2.3
[15:49:58] [Server thread/INFO]: [ViaVersion] ViaVersion 2.2.3 is now loaded, injecting!
[15:49:58] [Server thread/INFO]: [ViaVersion] Loading 1.12.2 -> 1.13 block mapping...
[15:49:59] [Server thread/INFO]: [ViaVersion] Loading 1.12.2 -> 1.13 item mapping...
[15:49:59] [Server thread/INFO]: [ViaVersion] Loading new 1.13 tags...
[15:49:59] [Server thread/INFO]: [ViaVersion] Loading 1.12.2 -> 1.13 enchantment mapping...
[15:49:59] [Server thread/INFO]: [ViaVersion] Loading 1.12.2 -> 1.13 sound mapping...
[15:49:59] [Server thread/INFO]: [ViaVersion] Loading translation mapping
[15:49:59] [Server thread/INFO]: [ViaVersion] Loading 1.13.2 -> 1.14 blockstate mapping...
[15:49:59] [Server thread/INFO]: [ViaVersion] Loading 1.13.2 -> 1.14 block mapping...
[15:49:59] [Server thread/INFO]: [ViaVersion] Loading 1.13.2 -> 1.14 item mapping...
[15:49:59] [Server thread/INFO]: [ViaVersion] Loading 1.13.2 -> 1.14 sound mapping...
[15:49:59] [Server thread/INFO]: [ViaVersion] Loading 1.14 blockstates...
[15:49:59] [Server thread/INFO]: [ViaVersion] Loading 1.14 heightmap data...
[15:49:59] [Server thread/INFO]: [ViaVersion] Loading 1.14.4 -> 1.15 blockstate mapping...
[15:50:00] [Server thread/INFO]: [ViaVersion] Loading 1.14.4 -> 1.15 block mapping...
[15:50:00] [Server thread/INFO]: [ViaVersion] Loading 1.14.4 -> 1.15 item mapping...
[15:50:00] [Server thread/INFO]: [ViaVersion] Loading 1.14.4 -> 1.15 sound mapping...
[15:50:00] [Server thread/INFO]: [NametagEdit] Loading NametagEdit v4.4.6
[15:50:00] [Server thread/INFO]: [Divers] Loading Divers v1.0.0
[15:50:00] [Server thread/INFO]: [EssentialsSpawn] Loading EssentialsSpawn v2.17.1.0
[15:50:00] [Server thread/INFO]: [APIBukkit] Loading APIBukkit v1.0.0
[15:50:00] [Server thread/INFO]: [TitleManager] Loading TitleManager v2.1.6
[15:50:00] [Server thread/INFO]: [EssentialsXMPP] Loading EssentialsXMPP v2.17.1.0
[15:50:00] [Server thread/WARN]: **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
[15:50:00] [Server thread/WARN]: The server will make no attempt to authenticate usernames. Beware.
[15:50:00] [Server thread/WARN]: Whilst this makes it possible to use BungeeCord, unless access to your server is properly restricted, it also opens up the ability for hackers to connect with any username they choose.
[15:50:00] [Server thread/WARN]: Please see http://www.spigotmc.org/wiki/firewall-guide/ for further information.
[15:50:00] [Server thread/WARN]: To change this, set "online-mode" to "true" in the server.properties file.
[15:50:00] [Server thread/INFO]: **** Beginning UUID conversion, this may take A LONG time ****
[15:50:00] [Server thread/INFO]: Preparing level "world"
[15:50:00] [Server thread/INFO]: -------- World Settings For [world] --------
[15:50:00] [Server thread/INFO]: Item Merge Radius: 2.5
[15:50:00] [Server thread/INFO]: Item Despawn Rate: 6000
[15:50:00] [Server thread/INFO]: Arrow Despawn Rate: 1200
[15:50:00] [Server thread/INFO]: View Distance: 10
[15:50:00] [Server thread/INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
[15:50:00] [Server thread/INFO]: Experience Merge Radius: 3.0
[15:50:00] [Server thread/INFO]: Nerfing mobs spawned from spawners: false
[15:50:00] [Server thread/INFO]: Zombie Aggressive Towards Villager: true
[15:50:00] [Server thread/INFO]: Custom Map Seeds:  Village: 10387312 Feature: 14357617 Monument: 10387313 Slime: 987234911
[15:50:00] [Server thread/INFO]: Cactus Growth Modifier: 100%
[15:50:00] [Server thread/INFO]: Cane Growth Modifier: 100%
[15:50:00] [Server thread/INFO]: Melon Growth Modifier: 100%
[15:50:00] [Server thread/INFO]: Mushroom Growth Modifier: 100%
[15:50:00] [Server thread/INFO]: Pumpkin Growth Modifier: 100%
[15:50:00] [Server thread/INFO]: Sapling Growth Modifier: 100%
[15:50:00] [Server thread/INFO]: Wheat Growth Modifier: 100%
[15:50:00] [Server thread/INFO]: NetherWart Growth Modifier: 100%
[15:50:00] [Server thread/INFO]: Vine Growth Modifier: 100%
[15:50:00] [Server thread/INFO]: Cocoa Growth Modifier: 100%
[15:50:00] [Server thread/INFO]: Mob Spawn Range: 4
[15:50:00] [Server thread/INFO]: Random Lighting Updates: false
[15:50:00] [Server thread/INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
[15:50:00] [Server thread/INFO]: Hopper Transfer: 8 Hopper Check: 1 Hopper Amount: 1
[15:50:00] [Server thread/INFO]: Structure Info Saving: true
[15:50:00] [Server thread/INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16
[15:50:00] [Server thread/INFO]: Max TNT Explosions: 100
[15:50:00] [Server thread/INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
[15:50:01] [Server thread/INFO]: -------- World Settings For [world_nether] --------
[15:50:01] [Server thread/INFO]: Item Merge Radius: 2.5
[15:50:01] [Server thread/INFO]: Item Despawn Rate: 6000
[15:50:01] [Server thread/INFO]: Arrow Despawn Rate: 1200
[15:50:01] [Server thread/INFO]: View Distance: 10
[15:50:01] [Server thread/INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
[15:50:01] [Server thread/INFO]: Experience Merge Radius: 3.0
[15:50:01] [Server thread/INFO]: Nerfing mobs spawned from spawners: false
[15:50:01] [Server thread/INFO]: Zombie Aggressive Towards Villager: true
[15:50:01] [Server thread/INFO]: Custom Map Seeds:  Village: 10387312 Feature: 14357617 Monument: 10387313 Slime: 987234911
[15:50:01] [Server thread/INFO]: Cactus Growth Modifier: 100%
[15:50:01] [Server thread/INFO]: Cane Growth Modifier: 100%
[15:50:01] [Server thread/INFO]: Melon Growth Modifier: 100%
[15:50:01] [Server thread/INFO]: Mushroom Growth Modifier: 100%
[15:50:01] [Server thread/INFO]: Pumpkin Growth Modifier: 100%
[15:50:01] [Server thread/INFO]: Sapling Growth Modifier: 100%
[15:50:01] [Server thread/INFO]: Wheat Growth Modifier: 100%
[15:50:01] [Server thread/INFO]: NetherWart Growth Modifier: 100%
[15:50:01] [Server thread/INFO]: Vine Growth Modifier: 100%
[15:50:01] [Server thread/INFO]: Cocoa Growth Modifier: 100%
[15:50:01] [Server thread/INFO]: Mob Spawn Range: 4
[15:50:01] [Server thread/INFO]: Random Lighting Updates: false
[15:50:01] [Server thread/INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
[15:50:01] [Server thread/INFO]: Hopper Transfer: 8 Hopper Check: 1 Hopper Amount: 1
[15:50:01] [Server thread/INFO]: Structure Info Saving: true
[15:50:01] [Server thread/INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16
[15:50:01] [Server thread/INFO]: Max TNT Explosions: 100
[15:50:01] [Server thread/INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
[15:50:01] [Server thread/INFO]: -------- World Settings For [world_the_end] --------
[15:50:01] [Server thread/INFO]: Item Merge Radius: 2.5
[15:50:01] [Server thread/INFO]: Item Despawn Rate: 6000
[15:50:01] [Server thread/INFO]: Arrow Despawn Rate: 1200
[15:50:01] [Server thread/INFO]: View Distance: 10
[15:50:01] [Server thread/INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
[15:50:01] [Server thread/INFO]: Experience Merge Radius: 3.0
[15:50:01] [Server thread/INFO]: Nerfing mobs spawned from spawners: false
[15:50:01] [Server thread/INFO]: Zombie Aggressive Towards Villager: true
[15:50:01] [Server thread/INFO]: Custom Map Seeds:  Village: 10387312 Feature: 14357617 Monument: 10387313 Slime: 987234911
[15:50:01] [Server thread/INFO]: Cactus Growth Modifier: 100%
[15:50:01] [Server thread/INFO]: Cane Growth Modifier: 100%
[15:50:01] [Server thread/INFO]: Melon Growth Modifier: 100%
[15:50:01] [Server thread/INFO]: Mushroom Growth Modifier: 100%
[15:50:01] [Server thread/INFO]: Pumpkin Growth Modifier: 100%
[15:50:01] [Server thread/INFO]: Sapling Growth Modifier: 100%
[15:50:01] [Server thread/INFO]: Wheat Growth Modifier: 100%
[15:50:01] [Server thread/INFO]: NetherWart Growth Modifier: 100%
[15:50:01] [Server thread/INFO]: Vine Growth Modifier: 100%
[15:50:01] [Server thread/INFO]: Cocoa Growth Modifier: 100%
[15:50:01] [Server thread/INFO]: Mob Spawn Range: 4
[15:50:01] [Server thread/INFO]: Random Lighting Updates: false
[15:50:01] [Server thread/INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
[15:50:01] [Server thread/INFO]: Hopper Transfer: 8 Hopper Check: 1 Hopper Amount: 1
[15:50:01] [Server thread/INFO]: Structure Info Saving: true
[15:50:01] [Server thread/INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16
[15:50:01] [Server thread/INFO]: Max TNT Explosions: 100
[15:50:01] [Server thread/INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
[15:50:01] [Server thread/INFO]: Preparing start region for level 0 (Seed: 0)
[15:50:02] [Server thread/INFO]: Preparing start region for level 1 (Seed: -4997909714740272161)
[15:50:03] [Server thread/INFO]: Preparing spawn area: 91%
[15:50:03] [Server thread/INFO]: Preparing start region for level 2 (Seed: -4997909714740272161)
[15:50:03] [Server thread/INFO]: [BanGui] Enabling BanGui v1.0.0
[15:50:04] [Server thread/INFO]: [JumpPlugin] Enabling JumpPlugin v1.0.0
[15:50:04] [Server thread/INFO]: [JumpPlugin] Demarrage du plugin ... OK ! Cree par RHT_LorDbox4
[15:50:04] [Server thread/INFO]: [Essentials] Enabling Essentials v2.17.1.0
[15:50:04] [Server thread/ERROR]: [Essentials] You are running an unsupported server version!
[15:50:04] [Server thread/INFO]: Attempting to convert old kits in config.yml to new kits.yml
[15:50:04] [Server thread/INFO]: No kits found to migrate.
[15:50:04] [Server thread/INFO]: [Essentials] Using legacy item data provider as mob spawner provider.
[15:50:04] [Server thread/INFO]: [Essentials] Using Reflection based provider as spawn egg provider.
[15:50:04] [Server thread/INFO]: [Essentials] Using 1.9+ BasePotionData provider as potion meta provider.
[15:50:04] [Server thread/INFO]: Loaded 852 items from items.csv.
[15:50:04] [Server thread/INFO]: Using locale fr_FR
[15:50:04] [Server thread/INFO]: [Essentials] ServerListPingEvent: Spigot iterator API
[15:50:04] [Server thread/INFO]: [Essentials] Starting Metrics. Opt-out using the global bStats config.
[15:50:04] [Server thread/INFO]: [Essentials] Using superperms-based permissions.
[15:50:04] [Server thread/INFO]: [EssentialsProtect] Enabling EssentialsProtect v2.17.1.0
[15:50:04] [Server thread/INFO]: [EssentialsProtect] Continuing to enable Protect.
[15:50:04] [Server thread/INFO]: [QuickBoard] Enabling QuickBoard v4.3.0
[15:50:04] [Server thread/INFO]: [QuickBoard] ------------------------------
[15:50:04] [Server thread/INFO]: [QuickBoard]           QuickBoard        
[15:50:04] [Server thread/INFO]: [QuickBoard] Listeners registered
[15:50:04] [Server thread/INFO]: [QuickBoard] Loading scoreboards
[15:50:04] [Server thread/INFO]: [QuickBoard] Loaded 'permission.yml' with permission 'permission'
[15:50:04] [Server thread/INFO]: [QuickBoard] Loaded 'scoreboard.default.yml' with permission 'scoreboard.default'
[15:50:04] [Server thread/INFO]: [QuickBoard] Scoreboards loaded
[15:50:04] [Server thread/INFO]: [QuickBoard] Config registered
[15:50:04] [Server thread/INFO]: [QuickBoard] Update Tasks started
[15:50:04] [Server thread/INFO]: [QuickBoard] Command 'quickboard' enabled
[15:50:04] [Server thread/INFO]: [QuickBoard]           QuickBoard        
[15:50:04] [Server thread/INFO]: [QuickBoard] ------------------------------
[15:50:04] [Server thread/INFO]: [EssentialsChat] Enabling EssentialsChat v2.17.1.0
[15:50:04] [Server thread/INFO]: [EssentialsGeoIP] Enabling EssentialsGeoIP v2.17.1.0
[15:50:04] [Server thread/INFO]: Téléchargement de la base de données GeoIP... Cela peut prendre un moment (pays : 1.7 Mo, villes : 30 MB)
[15:50:05] [Server thread/ERROR]: Échec de la connexion.
java.net.UnknownHostException: geolite.maxmind.com
    at java.net.AbstractPlainSocketImpl.connect(Unknown Source) ~[?:1.8.0_211]
    at java.net.PlainSocketImpl.connect(Unknown Source) ~[?:1.8.0_211]
    at java.net.SocksSocketImpl.connect(Unknown Source) ~[?:1.8.0_211]
    at java.net.Socket.connect(Unknown Source) ~[?:1.8.0_211]
    at sun.security.ssl.SSLSocketImpl.connect(Unknown Source) ~[?:1.8.0_211]
    at sun.net.NetworkClient.doConnect(Unknown Source) ~[?:1.8.0_211]
    at sun.net.www.http.HttpClient.openServer(Unknown Source) ~[?:1.8.0_211]
    at sun.net.www.http.HttpClient.openServer(Unknown Source) ~[?:1.8.0_211]
    at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source) ~[?:1.8.0_211]
    at sun.net.www.protocol.https.HttpsClient.New(Unknown Source) ~[?:1.8.0_211]
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source) ~[?:1.8.0_211]
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source) ~[?:1.8.0_211]
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) ~[?:1.8.0_211]
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source) ~[?:1.8.0_211]
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Source) ~[?:1.8.0_211]
    at com.earth2me.essentials.geoip.EssentialsGeoIPPlayerListener.downloadDatabase(EssentialsGeoIPPlayerListener.java:182) [EssentialsXGeoIP-2.17.1.0.jar:?]
    at com.earth2me.essentials.geoip.EssentialsGeoIPPlayerListener.reloadConfig(EssentialsGeoIPPlayerListener.java:140) [EssentialsXGeoIP-2.17.1.0.jar:?]
    at com.earth2me.essentials.geoip.EssentialsGeoIPPlayerListener.<init>(EssentialsGeoIPPlayerListener.java:43) [EssentialsXGeoIP-2.17.1.0.jar:?]
    at com.earth2me.essentials.geoip.EssentialsGeoIP.onEnable(EssentialsGeoIP.java:28) [EssentialsXGeoIP-2.17.1.0.jar:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:402) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugin(CraftServer.java:374) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugins(CraftServer.java:323) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at net.minecraft.server.v1_12_R1.MinecraftServer.t(MinecraftServer.java:421) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at net.minecraft.server.v1_12_R1.MinecraftServer.l(MinecraftServer.java:382) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at net.minecraft.server.v1_12_R1.MinecraftServer.a(MinecraftServer.java:337) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:272) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:544) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_211]
[15:50:05] [Server thread/ERROR]: Échec de la lecture de la base de données GeoIP !
java.io.FileNotFoundException: plugins\EssentialsGeoIP\GeoIP2-Country.mmdb (Le fichier spécifié est introuvable)
    at java.io.RandomAccessFile.open0(Native Method) ~[?:1.8.0_211]
    at java.io.RandomAccessFile.open(Unknown Source) ~[?:1.8.0_211]
    at java.io.RandomAccessFile.<init>(Unknown Source) ~[?:1.8.0_211]
    at com.maxmind.db.BufferHolder.<init>(BufferHolder.java:19) ~[EssentialsXGeoIP-2.17.1.0.jar:?]
    at com.maxmind.db.Reader.<init>(Reader.java:116) ~[EssentialsXGeoIP-2.17.1.0.jar:?]
    at com.maxmind.geoip2.DatabaseReader.<init>(DatabaseReader.java:66) ~[EssentialsXGeoIP-2.17.1.0.jar:?]
    at com.maxmind.geoip2.DatabaseReader.<init>(DatabaseReader.java:54) ~[EssentialsXGeoIP-2.17.1.0.jar:?]
    at com.maxmind.geoip2.DatabaseReader$Builder.build(DatabaseReader.java:160) ~[EssentialsXGeoIP-2.17.1.0.jar:?]
    at com.earth2me.essentials.geoip.EssentialsGeoIPPlayerListener.reloadConfig(EssentialsGeoIPPlayerListener.java:157) [EssentialsXGeoIP-2.17.1.0.jar:?]
    at com.earth2me.essentials.geoip.EssentialsGeoIPPlayerListener.<init>(EssentialsGeoIPPlayerListener.java:43) [EssentialsXGeoIP-2.17.1.0.jar:?]
    at com.earth2me.essentials.geoip.EssentialsGeoIP.onEnable(EssentialsGeoIP.java:28) [EssentialsXGeoIP-2.17.1.0.jar:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:402) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugin(CraftServer.java:374) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugins(CraftServer.java:323) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at net.minecraft.server.v1_12_R1.MinecraftServer.t(MinecraftServer.java:421) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at net.minecraft.server.v1_12_R1.MinecraftServer.l(MinecraftServer.java:382) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at net.minecraft.server.v1_12_R1.MinecraftServer.a(MinecraftServer.java:337) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:272) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:544) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_211]
[15:50:05] [Server thread/INFO]: [EssentialsGeoIP] This product includes GeoLite2 data created by MaxMind, available from http://www.maxmind.com/.
[15:50:05] [Server thread/INFO]: [EssentialsAntiBuild] Enabling EssentialsAntiBuild v2.17.1.0
[15:50:05] [Server thread/INFO]: [Fly] Enabling Fly v1.0
[15:50:05] [Server thread/INFO]: [ViaVersion] Enabling ViaVersion v2.2.3
[15:50:05] [Server thread/INFO]: [NametagEdit] Enabling NametagEdit v4.4.6
[15:50:05] [Server thread/INFO]: [Divers] Enabling Divers v1.0.0
[15:50:05] [Server thread/ERROR]: Error occurred while enabling Divers v1.0.0 (Is it up to date?)
java.lang.IllegalArgumentException: Plugin already initialized!
    at org.bukkit.plugin.java.PluginClassLoader.initialize(PluginClassLoader.java:122) ~[spigot.jar:git-Spigot-596221b-9a1fc1e]
    at org.bukkit.plugin.java.JavaPlugin.<init>(JavaPlugin.java:60) ~[spigot.jar:git-Spigot-596221b-9a1fc1e]
    at fr.rht_lordbox4.divers.commands.PlayerVanished.<init>(PlayerVanished.java:15) ~[?:?]
    at fr.rht_lordbox4.divers.Main.onEnable(Main.java:20) ~[?:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[spigot.jar:git-Spigot-596221b-9a1fc1e]
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:402) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugin(CraftServer.java:374) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugins(CraftServer.java:323) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at net.minecraft.server.v1_12_R1.MinecraftServer.t(MinecraftServer.java:421) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at net.minecraft.server.v1_12_R1.MinecraftServer.l(MinecraftServer.java:382) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at net.minecraft.server.v1_12_R1.MinecraftServer.a(MinecraftServer.java:337) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:272) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:544) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_211]
Caused by: java.lang.IllegalStateException: Initial initialization
    at org.bukkit.plugin.java.PluginClassLoader.initialize(PluginClassLoader.java:125) ~[spigot.jar:git-Spigot-596221b-9a1fc1e]
    at org.bukkit.plugin.java.JavaPlugin.<init>(JavaPlugin.java:60) ~[spigot.jar:git-Spigot-596221b-9a1fc1e]
    at fr.rht_lordbox4.divers.Main.<init>(Main.java:14) ~[?:?]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_211]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_211]
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_211]
    at java.lang.reflect.Constructor.newInstance(Unknown Source) ~[?:1.8.0_211]
    at java.lang.Class.newInstance(Unknown Source) ~[?:1.8.0_211]
    at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:76) ~[spigot.jar:git-Spigot-596221b-9a1fc1e]
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:129) ~[spigot.jar:git-Spigot-596221b-9a1fc1e]
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:326) ~[spigot.jar:git-Spigot-596221b-9a1fc1e]
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:248) ~[spigot.jar:git-Spigot-596221b-9a1fc1e]
    at org.bukkit.craftbukkit.v1_12_R1.CraftServer.loadPlugins(CraftServer.java:298) ~[spigot.jar:git-Spigot-596221b-9a1fc1e]
    at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:205) ~[spigot.jar:git-Spigot-596221b-9a1fc1e]
    ... 2 more
[15:50:05] [Server thread/INFO]: [EssentialsSpawn] Enabling EssentialsSpawn v2.17.1.0
[15:50:05] [Server thread/INFO]: [APIBukkit] Enabling APIBukkit v1.0.0
[15:50:06] [Server thread/WARN]: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Base 'apibukkit' inconnue
[15:50:06] [Server thread/WARN]:     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[15:50:06] [Server thread/WARN]:     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
[15:50:06] [Server thread/WARN]:     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
[15:50:06] [Server thread/WARN]:     at java.lang.reflect.Constructor.newInstance(Unknown Source)
[15:50:06] [Server thread/WARN]:     at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
[15:50:06] [Server thread/WARN]:     at com.mysql.jdbc.Util.getInstance(Util.java:408)
[15:50:06] [Server thread/WARN]:     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:943)
[15:50:06] [Server thread/WARN]:     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3973)
[15:50:06] [Server thread/WARN]:     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3909)
[15:50:06] [Server thread/WARN]:     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:873)
[15:50:06] [Server thread/WARN]:     at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1710)
[15:50:06] [Server thread/WARN]:     at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1226)
[15:50:06] [Server thread/WARN]:     at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2194)
[15:50:06] [Server thread/WARN]:     at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2225)
[15:50:06] [Server thread/WARN]:     at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2024)
[15:50:06] [Server thread/WARN]:     at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:779)
[15:50:06] [Server thread/WARN]:     at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
[15:50:06] [Server thread/WARN]:     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[15:50:06] [Server thread/WARN]:     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
[15:50:06] [Server thread/WARN]:     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
[15:50:06] [Server thread/WARN]:     at java.lang.reflect.Constructor.newInstance(Unknown Source)
[15:50:06] [Server thread/WARN]:     at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
[15:50:06] [Server thread/WARN]:     at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:389)
[15:50:06] [Server thread/WARN]:     at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:330)
[15:50:06] [Server thread/WARN]:     at java.sql.DriverManager.getConnection(Unknown Source)
[15:50:06] [Server thread/WARN]:     at java.sql.DriverManager.getConnection(Unknown Source)
[15:50:06] [Server thread/WARN]:     at fr.rht_lordbox4.api.mysql.DataBaseManager.connexion(DataBaseManager.java:69)
[15:50:06] [Server thread/WARN]:     at fr.rht_lordbox4.api.GameAPI.onEnable(GameAPI.java:18)
[15:50:06] [Server thread/WARN]:     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264)
[15:50:06] [Server thread/WARN]:     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337)
[15:50:06] [Server thread/WARN]:     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:402)
[15:50:06] [Server thread/WARN]:     at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugin(CraftServer.java:374)
[15:50:06] [Server thread/WARN]:     at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugins(CraftServer.java:323)
[15:50:06] [Server thread/WARN]:     at net.minecraft.server.v1_12_R1.MinecraftServer.t(MinecraftServer.java:421)
[15:50:06] [Server thread/WARN]:     at net.minecraft.server.v1_12_R1.MinecraftServer.l(MinecraftServer.java:382)
[15:50:06] [Server thread/WARN]:     at net.minecraft.server.v1_12_R1.MinecraftServer.a(MinecraftServer.java:337)
[15:50:06] [Server thread/WARN]:     at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:272)
[15:50:06] [Server thread/WARN]:     at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:544)
[15:50:06] [Server thread/WARN]:     at java.lang.Thread.run(Unknown Source)
[15:50:06] [Server thread/INFO]: [TitleManager] Enabling TitleManager v2.1.6
[15:50:07] [Server thread/INFO]: [EssentialsXMPP] Enabling EssentialsXMPP v2.17.1.0
[15:50:07] [Server thread/WARN]: config broken for xmpp
[15:50:07] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it
[15:50:07] [Server thread/INFO]: Done (6,638s)! For help, type "help" or "?"
[15:50:07] [Server thread/INFO]: [ViaVersion] ViaVersion detected server version: 1.12(335)
[15:50:08] [Craft Scheduler Thread - 1/INFO]: Trying to get new version of QuickBoard...
[15:50:08] [Craft Scheduler Thread - 1/INFO]: Current QuickBoard version: 4.3.0
[15:50:08] [Craft Scheduler Thread - 1/INFO]: Web QuickBoard version: 4.3.0

Mmhh.. C'est bizarre.. Aucunes traces des messages.. ( Je sais il y a d'autres erreurs d'autres plugins )
 

ShE3py

Enbogueuse
Support
26 Septembre 2015
4 087
157
456
247
21
Mìlhüsa
Tu as bien enregistré ton listener avec
Java:
Bukkit.getPluginManager().registerEvents(new InventoryListener(), this);
dans la méthode onEnable de ton plugin ?
 

LorDbox4

Architecte en herbe
5 Octobre 2015
66
0
83
Oui, enfin moi c'est

Java:
getServer().getPluginManager().registerEvents(new InventoryClick(), this);
 

ShE3py

Enbogueuse
Support
26 Septembre 2015
4 087
157
456
247
21
Mìlhüsa
Le nom de ta classe est InventoryListener (à moins que tu l'es renommée), et puis ton plugin ne charge pas :
Code:
[15:50:05] [Server thread/INFO]: [Divers] Enabling Divers v1.0.0
[15:50:05] [Server thread/ERROR]: Error occurred while enabling Divers v1.0.0 (Is it up to date?)
java.lang.IllegalArgumentException: Plugin already initialized!
    at org.bukkit.plugin.java.PluginClassLoader.initialize(PluginClassLoader.java:122) ~[spigot.jar:git-Spigot-596221b-9a1fc1e]
    at org.bukkit.plugin.java.JavaPlugin.<init>(JavaPlugin.java:60) ~[spigot.jar:git-Spigot-596221b-9a1fc1e]
    at fr.rht_lordbox4.divers.commands.PlayerVanished.<init>(PlayerVanished.java:15) ~[?:?]
    at fr.rht_lordbox4.divers.Main.onEnable(Main.java:20) ~[?:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[spigot.jar:git-Spigot-596221b-9a1fc1e]
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:402) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugin(CraftServer.java:374) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at org.bukkit.craftbukkit.v1_12_R1.CraftServer.enablePlugins(CraftServer.java:323) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at net.minecraft.server.v1_12_R1.MinecraftServer.t(MinecraftServer.java:421) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at net.minecraft.server.v1_12_R1.MinecraftServer.l(MinecraftServer.java:382) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at net.minecraft.server.v1_12_R1.MinecraftServer.a(MinecraftServer.java:337) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:272) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:544) [spigot.jar:git-Spigot-596221b-9a1fc1e]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_211]
Caused by: java.lang.IllegalStateException: Initial initialization
    at org.bukkit.plugin.java.PluginClassLoader.initialize(PluginClassLoader.java:125) ~[spigot.jar:git-Spigot-596221b-9a1fc1e]
    at org.bukkit.plugin.java.JavaPlugin.<init>(JavaPlugin.java:60) ~[spigot.jar:git-Spigot-596221b-9a1fc1e]
    at fr.rht_lordbox4.divers.Main.<init>(Main.java:14) ~[?:?]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_211]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_211]
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_211]
    at java.lang.reflect.Constructor.newInstance(Unknown Source) ~[?:1.8.0_211]
    at java.lang.Class.newInstance(Unknown Source) ~[?:1.8.0_211]
    at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:76) ~[spigot.jar:git-Spigot-596221b-9a1fc1e]
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:129) ~[spigot.jar:git-Spigot-596221b-9a1fc1e]
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:326) ~[spigot.jar:git-Spigot-596221b-9a1fc1e]
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:248) ~[spigot.jar:git-Spigot-596221b-9a1fc1e]
    at org.bukkit.craftbukkit.v1_12_R1.CraftServer.loadPlugins(CraftServer.java:298) ~[spigot.jar:git-Spigot-596221b-9a1fc1e]
    at net.minecraft.server.v1_12_R1.DedicatedServer.init(DedicatedServer.java:205) ~[spigot.jar:git-Spigot-596221b-9a1fc1e]
    ... 2 more

À moins que ta classe soit d'un 3ème plugin ?[/icode]