Problems with executing a command from console

Discussion in 'Plugin Development' started by Neilnet, Nov 4, 2013.

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

    Neilnet

    A command works like a charm when it's being executed by a player, but when it's being executed by the console, I get an error.

    Java OnCommand code:http://pastebin.com/0DwsfmVk

    As you can see in the command: /token area, I made it send a message to console saying: " You must be an instance of a player to execute this command". But unfortunately, I don't get to see that message when I execute the command /tokens.

    This is the error that I'm faced with: http://pastebin.com/Yhq4HCmr

    Please help me, thanks to all who help me out :)

    Nevermind, found the answer: https://forums.bukkit.org/threads/console-command-error.117689/

    If a mod could lock this or close it to prevent future comments, it would be much appreciated.

    I want to thank the bukkit community for being so awesome!!!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 5, 2016
  2. You can mark it as solved.
     
Thread Status:
Not open for further replies.

Share This Page