Coding a List Plugin

Discussion in 'Plugin Development' started by MCraftGamer35, Aug 20, 2014.

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

    MCraftGamer35

    Hey, I am kinda new to coding, been doing it for a month, I want to know how to approach a list plugin.
    Basically doing /list will show online players.
     
  2. Offline

    JWhy

    Use the Server's getOnlinePlayers() method, loop through it's result and sendMessage() each entry to the Command Sender.
     
  3. Offline

    EnderTroll68

    Or if you want to combine it on one line, then combine the strings of the player names and print it
     
  4. Offline

    MCraftGamer35

    Thanks I'll try it!

    I've done it, My message comes up with a null when you type /list

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
  5. Offline

    rfsantos1996

    Without code or anything like that, we can't do anything to help you );
     
Thread Status:
Not open for further replies.

Share This Page