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


    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. 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


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


  4. Offline


    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