Solved Making a command runnable by console

Discussion in 'Plugin Development' started by WampyCakes, May 28, 2015.

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

    WampyCakes

    Hello. I am making a master plugin for my server. I'm currently working on /kick. But, when I try to run it from console, it gives me an error. http://pastebin.com/4n5yckt0 I'm pretty sure it's saying that console can't be cast to a player. I understand that, but how can I make that command runnable by console, then?
     
  2. Offline

    teej107

    Don't blindly cast it.
     
    mine-care likes this.
  3. Offline

    mine-care

  4. Offline

    TehHypnoz

    For a kick command, you most likely won't need to cast the CommandSender to a Player. Also, check @mine-care's signature ;)
     
    mine-care likes this.
Thread Status:
Not open for further replies.

Share This Page