Help with commands using player names?

Discussion in 'Plugin Development' started by James | Buchanan, Jan 13, 2012.

Thread Status:
Not open for further replies.
  1. Hello forums,

    I wanted to use a command like this for my banning plugin: /oban <playername>
    That also writes the <playername> to a list, i have the reading part finished already.
    Sorry for the bad post, i am just feeling really sick (food poisoning) :(
     
  2. So first check the length of the args and if it's > 0 use the first (0) as player name. Maybe verify that the player exists with the help of getOfflinePlayer.
     
  3. thanks violator! :D
     
Thread Status:
Not open for further replies.

Share This Page