1. Welcome to LilyPad. Download the project, explore the forums, and create your own LilyPad network.


    If you use the software and enjoy it or have a question, or would like to contribute to the future of the software directly or through resources, please sign up and join our little community.

Solved this is sending me twice

Discussion in 'Support' started by Shawshark, Nov 7, 2013.

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

    Shawshark Active Member Resource Contributor

    When ever I click on the sign it all works and stuff but it sends me twice and that causes to kick me and say I logged into another location there is the part or the code.
    Code (text):

        @EventHandler
         public void onPlayerInteract(PlayerInteractEvent e) {
           if ((e.getAction() == Action.LEFT_CLICK_BLOCK) || (e.getAction() == Action.RIGHT_CLICK_BLOCK))
             for (sendsign ls : signlist) {
               if (!ls.loc.equals(e.getClickedBlock().getLocation())) continue;
               Sign s = (Sign) e.getClickedBlock().getState();
               if(s.getLine(0).contains("[IN-GAME]") ){
                  e.getPlayer().sendMessage(ChatColor.GRAY + "[" + ChatColor.RED + "lobby" + ChatColor.GRAY + "] " + ChatColor.RED + "This game has already started! Please try another sign!");
               continue;  
               
               }else if(s.getLine(0).contains("[FULL]")){
                  e.getPlayer().sendMessage(ChatColor.GRAY + "[" + ChatColor.RED + "lobby" + ChatColor.GRAY + "] " + ChatColor.RED +"To be able to join full servers purchase VIP from www.craftshark.net"); // Chris changed this to www.
                  continue;
               
               
               }else if(s.getLine(0).contains("[RESTARTING]")){
                  e.getPlayer().sendMessage(ChatColor.GRAY + "[" + ChatColor.RED + "lobby" + ChatColor.GRAY + "] " + ChatColor.RED +"This game is restarting! Please try another sign");
                  continue;
               
               
               }else if(s.getLine(0).contains("[JOIN]")){
               

                    try {
                        connect.request(new RedirectRequest(s.getLine(1), e.getPlayer().getName()));
                    } catch (IndexOutOfBoundsException | RequestException e1) {
                        e1.printStackTrace();
                    }
                  continue;
               }
              }  
             }
    Is there anything there thats causing it to send me 2 times?
  2. Shawshark

    Shawshark Active Member Resource Contributor

    This has been solved.
Thread Status:
Not open for further replies.

Share This Page