Simple List Plugin

Discussion in 'Archived: Plugin Requests' started by adam2255, Oct 2, 2012.

  1. Offline

    adam2255

    Nick Lists Plugin.

    What I want
    It'd be great if somebody could make me a plugin when player type the command /prenumerata saves the player's nickname in the list. And commnad 2 shows all players who typed the command /prenumerata in list.​


    Commands
    /prenumerata -> The command takes the name of player and save it in the list.And return the text "You have subscribed to the newsletter"​
    /prenumerata lista -> This command displays a list of all players who typed the command above.​

    Ideas for permissions
    Only ops should be able to use the /prenumerata lista.​



     
  2. Offline

    RingOfStorms

    What is the point of this? Why not just use /list
     
  3. Offline

    adam2255

    I do not want a list of all players.

    Players must enter the command to subscribe to the list.


    Something like sign up for newsletter.

    If there is a similar plugin that has even one of these options, and is OpenS, i will be grateful for links. Now i try write it myself but ... this is hard xD

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 29, 2016
  4. Offline

    GizmoRay

    I'll give it a try! Requires an ArrayList.
     
  5. Offline

    adam2255

    Omg, awesome!
    if you succeed to get a list of players and save it to a file and then read this list form 1 command, will be great !

    i only have problem with that ;/
     
  6. Offline

    jacklin213

    wait so this is ment to only list the players who used the command , then when a player uses the list command it lists the online players who have registerd with the command??
     
  7. Offline

    adam2255

    Yes, but player does not have to be online
    ./prenumerata lista just read all nicks from file, and this is command for OP/Permissions


    Ah, and
    ./prenumerata must be one use command
     
  8. Offline

    Sushi

    ArrayLists aren't persistent.
     
  9. Offline

    adam2255

    So what is persistent ? Do hasmaps gives me that opportunity?
     
  10. Offline

    PogoStick29

    I could make this. When someone types the command, they will be added to the list. The list will be stored in a config file so it will be persistant (save through reloads)
     
  11. Offline

    GizmoRay

    They are if you create a file loader along side it!.
     
  12. Offline

    PogoStick29

    Working on it now. Everything works, except that if you add a player via a command, it doesn't work for some reason.

    EDIT: Fixed!

    Fixed the one major problem I had. Expect a release on BukkitDev tonight (next few hours).

    adam2255 Done!
    BukkitDev Link http://dev.bukkit.org/server-mods/signup/
    Download (since it's not approved yet) http://dev.bukkit.org/server-mods/signup/files/1-signup-1-0/
    Please add the BukkitDev link to the plugin request so people can easily find it ;)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 29, 2016
  13. Offline

    adam2255

    WOW, big thanks !
     

Share This Page