Erro In e.getWhoClicked(), and Connection to BungeeCord

Discussion in 'Plugin Help/Development/Requests' started by david9874101, Sep 27, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    david9874101

    Pls help

    Code:java
    1. @EventHandler
    2. public void onInventoryClick1(InventoryClickEvent e) {
    3. if (!e.getInventory().getName().equalsIgnoreCase(inv.getName())) return;
    4. if (e.getCurrentItem().getItemMeta() == compass) return;
    5. if (e.getCurrentItem().getItemMeta().getDisplayName().equalsIgnoreCase("§f§lKit§4§lPvP")) {
    6. e.setCancelled(true);
    7. e.getWhoClicked();{
    8. if (plugin.getConfig().getBoolean("config.bungee.teleport_all_to_server_on_stop.tp")) {
    9. final String server = plugin.getConfig().getString("config.bungee.teleport_all_to_server_on_stop.server");
    10. Bukkit.getScheduler().runTaskLater((Plugin) this, new Runnable() {
    11. public void run() {
    12. for (Player p : Bukkit.getOnlinePlayers()) {
    13. connectToServer(p.getName(), server);
    14. }
    15. }
    16. }, 30L);
    17. return;
    18. }
    19. e.getWhoClicked().closeInventory();
    20. }
    21. }
    22. }
    23.  
    24. public static void connectToServer(String player, String server) {
    25. try {
    26. out.writeUTF("Connect");
    27. out.writeUTF(server);
    28. } catch (IOException e) {
    29. e.printStackTrace();
    30. }
    31. Bukkit.getPlayer(player).sendPluginMessage(plugin, "BungeeCord", stream.toByteArray());
    32. }

    test the plugin in mc.mineloods.in
     
  2. Offline

    Skionz

    Bungeecord isn't supported here.

    EDIT: Nevermind maybe the rules have changed? Your thread got moved instead of being locked so idk.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 10, 2016
  3. Offline

    Lolmewn

    Yeah idk what they're trying to do. They're making the Bukkit forums into... Minecraft multiplier modding forums?
     
  4. Offline

    Skionz

    Lolmewn Yea not sure. They made this whole new section for development/requests for alternatives. I think they should change it into a java development help section that has nothing to do with minecraft :p
     
  5. Offline

    mrCookieSlime

    Skionz Lolmewn
    Or what about turning Bukkit into an Ice Cream Flavour Testing Website? ^^
     
    Skionz likes this.
  6. Offline

    Lolmewn

    Might as well, it's not like Bukkit alternatives have anything to do with Bukkit anyway, and it's an idiotic idea to have forums for them. Then again, they can serve more ads so that's $$$ for them
     
    Skionz likes this.
  7. Offline

    david9874101

    help ¬.¬ :C
     
Thread Status:
Not open for further replies.

Share This Page