AutoKick Help?

Discussion in 'Plugin Development' started by greaperc4, Dec 5, 2013.

Thread Status:
Not open for further replies.
  1. Hello,
    I tried to make my Own Whitelist plugin
    and this is what happend:

    [​IMG]

    And this is the Code i used:

    Code:java
    1. @EventHandler
    2. public void onJoin(PlayerJoinEvent event) {
    3.  
    4. Player player = event.getPlayer();
    5. player.kickPlayer("&aSorry this server is WhiteListed");
    6. }


    btw, Yes I registered the Events, Yes the Class has Listener implemented
     
  2. Offline

    Wolfey

    This makes no sense, whatsoever. This will just kick anyone who joins.

    also try using chatcolor instead of &a, I don't think that's the problem, but with the code you have supplied, there doesn't seem to be anything wrong with it.
     
  3. Offline

    The_Doctor_123

    Looks like you're using a snapshot. Snapshots aren't compatible with releases.
     
  4. [​IMG]


    Yep, and this is what happend in 1.7.2.
    it just changed bjs to bit
     
  5. Offline

    The_Doctor_123

    greaperc4
    This occurs only when your plugin is on the server?
     
  6. yep, I asked my friend, and he got the same result
     
  7. Offline

    The_Doctor_123

    greaperc4
    I think this could be a good Bukkit bug report. I don't see any problems with your code.
     
  8. Me neither xD, also, I'm not really new anymore to Bukkit.... soYeah
     
Thread Status:
Not open for further replies.

Share This Page