Probably a dumb question but why is this returning the info tool

Discussion in 'Plugin Development' started by Hyperenci, Jul 21, 2016.

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

    Hyperenci

    Ok so here is the issue why is it binding the info tool to whatever block in hand when i try to warp the player to a location?
    Here is my source code
    private boolean tpInfo(CommandSender sender, String[] args) {
    Player player = (Player) sender;
    player.performCommand("warp info");
    return true;
    }
     
  2. Offline

    cwhit0814

    I suggest you put a little more of the source in here so people can actually see the what your doing wrong.
     
  3. Offline

    Hyperenci

    I figured it out, it was the when you do /info or whatever it uses the block info tool and binds it to blockInhand, so i just changed it to a different command.
    Also id rather avoid posting a full class seeing as mine has over 600 lines of code.
     
  4. Offline

    cwhit0814

    Oh yeah I see why you didn't post it now xD.
     
  5. Offline

    MordorKing78

    Please mark this post as solved as it is, if it isn't the code you provided is not enough for anyone to help.
     
Thread Status:
Not open for further replies.

Share This Page