Inactive [ADMN/GEN] Whitelist v2.7 [1337]

Discussion in 'Inactive/Unsupported Plugins' started by Silence, Jan 15, 2011.

     
  1. Offline

    Silence

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Whitelist
    Version: v2.7

    This plugin allows only people on your whitelist to join the server.

    Features:
    • Simple and easy to use
    • Whitelist is automatically reloaded when changed outsite of minecraft (e.g. with a texteditor)
    • Whitelist supports console commands
    • SQL support
    • Support for every SQL database, that has a JDBC implementation available
    • User-defined table and database layouts supported
    Download Whitelist
    Source Code
    Donate

    Changelog:
    Version 2.7
    • Fixed SQL injections with malformed player names (thanks to Uroz for reporting!)
    Version 2.6
    • Fixed null ptr exception introduced with 2.5
    Version 2.5
    • (Possible) fix for some SQL related errors
    Version 2.4
    • Improved SQL connector handling with new settings directive
    Version 2.3
    • Fixed an unhandled exception (thx to Puremin0rez for reporting!)
    Version 2.2
    • Removed TSLPC
    • Support for build #415
    Version 2.1
    • Add/Remove commands are working in SQL mode now
    Version 2.0
    • Added SQL support
    • Minor fixes
    Version 1.9
    • Support for build #287
    Version 1.8
    • Fixed fix for non working permissions.
    Version 1.7
    • Fixed non working permissions (thanks to Kainzo for reporting!)
    Version 1.6
    • Support for Bukkit #186 (also confirmed to work with #230)
    Version 1.5
    • Fixed a null pointer error.
    Roadmap:
    • Add permissions, once implemented in Bukkit
    Installation / configuration:
    Copy Whitelist.jar in your plugins folder and start your server. The plugin will create new configuration files in plugins\whitelist.
    In plugins\whitelist.properties you can set the following options:
    • kick-message - The message that will be displayed, when a player is kicked from the server because he is not on the whitelist
    • disable-list-command - Disables the /whitelist list command.
    • whitelist-admins - A comma separated list of players, who are allowed to modify the whitelist ingame.
    Commands:
    These commands can be used by Ops ingame or in the server console. When used with the server console don't type '/' before the command.
    • /whitelist help - Shows the help ;-)
    • /whitelist reload - Reloads the whitelist and it's settings
    • /whitelist add [playername] - Adds a player to the whitelist)
    • /whitelist remove [playername] - Removes a player from the whitelist)
    • /whitelist on|off - Activates/deactivates the whitelist
    • /whitelist list - Lists all whitelisted players
    SQL configuration:
    To support as many different database configurations as possible, Whitelist sets flexibility over simplicity.
    This way virtually every existing database can be used as a base for authentification.

    For the following example I will assume you are using a MySQL Database with the following configuration:
    • Username: root
    • Passwort: fun
    • Database name: Bukkit
    • Table name: tbl_names with one column named "name"
    Because we are using MySQL, we need the MySQL Connector/J. It can be found here.

    Now that we have the connector up and running, it is time to configure Whitelist. This is done in plugins\whitelist.properties.
    1) Activate SQL mode
    sql-enable=true
    2) Set the correct JDBC driver. Because we are using MySQL in our example we choose:
    sql-driver=com.mysql.jdbc.Driver
    3) Set the connection string. It depends on the database system and layout used.
    In our example it is jdbc:mysql://localhost/Bukkit?user=root&password=fun.
    Because we have to escape some characters in *.propertie files, we add:
    sql-driver-connection=jdbc\:mysql\://localhost/Bukkit?user\=root&password\=fun
    4)We have to specify a query, that will be executed on the given database. If the query's result has at least one element, the user is allowed to access the server. There is a placeholder that will be replaced with the name of the person that is trying to join: <%USERNAME%>.
    We add:
    sql-query=SELECT name FROM tbl_names WHERE name\='<%USERNAME%>'
    5)Optional: If /whitelist add should be available in SQL mode, we have to specify a query for it:
    sql-query-add=INSERT INTO tbl_users (Id, Name, Waa, Naaa) VALUES (NULL, '<%USERNAME%>', '1', '2')
    6)Optional: If /whitelist remove should be available in SQL mode, we have to specify a query for it:
    sql-query-remove=DELETE FROM tbl_users WHERE Name\='<%USERNAME%>'

    Help, I get a 'class not found error'
    Put the following line in your whitelist.properties file: sql-driver-jar={path to the connector}
    The base path is the directory your craftbukkit.jar is placed in, so if you have named the connector "mysql-connector.jar" and placed it in the same directory as craftbukkit.jar you would add
    sql-driver-jar=mysql-connector.jar

    I need more informations!
    There is a very nice written guide by MrDylan (thx!) on using Whitelist and MySQL with SMF boards, get it here.
    Thats all!
    Grovert11, MaMaxGER, DannyDog and 2 others like this.
  2.  
  3. Offline

    M3t

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    PLEASE UPDATE THIS SO WE CAN PLAY ^_^
  4. Offline

    Jasin

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    You can't expect them to update their plugin every 5 minutes. It was working before I updated to latest bukkit. Once I get all the plugins working I don't plan to update bukkit until all plugins are changed again. Easier then sitting with them all broke.
  5. Offline

    Silence

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I'm not at home right now, so I'll fix it when I'm back tomorrow.
    As Jasin said, Bukkit was updated which then broke the plugin, but I can't fix it without a PC ;-)

    @Sourceode: Not so sure - I always released my stuff (not minecraft related) and got pissed of because every one used it in their own projects without follow the rules of GPL...event commercial ones. But as this stuff is so simple I think I'll release it.

    @/whitelist list and whitelist on|off -> will implement that tomorrow.
  6. Offline

    McSpuds

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    It worked when nothing else was available.
    --- merged: Jan 15, 2011 11:23 PM ---

    BTW, last time I checked, 30 minutes ago, your plugin didn't even load up!
    --- merged: Jan 15, 2011 11:26 PM ---
    Yes, me too. I grew tired of chasing plugins with HMod, and now we are doing again. We are going to just stay with Emerg"a"cy Whitelist for now and stay vanilla.
  7. Offline

    M3t

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Around what time? We got a community of 50+ players (all 22+ age mature, paying-to-play players).

    I need to tell them something - what time will this be out??
  8. Offline

    Silence

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    10hrs from now on :confused:
  9. Offline

    McSpuds

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME

    You mean a community of 50+ players (all 22+ age mature, paying-to-not-play players).
  10. Offline

    M3t

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Silence please hurry =) I'd love to have you check out our server. We pay $120/mo to host it on the same server as Blizzard hosts WoW, and Sony hosts PS3 network ^_^ That means you'll get 20ping or less anywhere in the continental US! It's a vanilla server. All we need is whitelist and sethome. I'll pay you money to make mods for us. We have $400 in the bank :)
  11. Offline

    Vegarg

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    This plugin works very nicely thanks! :D
  12. Offline

    McSpuds

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME

    Not for build #41
  13. Offline

    Vegarg

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Hmmm I probobly need to update my bukkit then lol. Thanks for the info :D
  14. Offline

    Jasin

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    M3t, Since he isn't going to update for 10 more hours, I'd recommend reverting your craftbukit to an earlier build before it broke.
    Edit or use one of the other whitelists for now.
  15. Offline

    M3t

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    That's a good idea USMC, but I'd like to stay current, we're doing a world-wide server reset tomorrow and I want everything to be perfect before then.
  16. Offline

    M3t

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    god i need this whitelist SO BAD...

    so hey Silence can I hire you to do some more plugins / update them for us
  17. Offline

    Silence

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Its 9 in the morning here, starting to fix :O

    Edit: Fixed the changed namespaces, should work, but the latest bukkit server isn't starting at all for me (not whitelist related)
  18. Offline

    Silence

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Done, new version released.
    Will work with latest bukkit build.
    Also implemented two new commands:
    /whitelist on|off
    and
    /whitelist list
    Downloadlink @first post
  19. Offline

    Fishcake

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Awesome, works like a charm. Thanks for this :)
  20. Offline

    saiek

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    yes! thank youuu
  21. Offline

    Pitcher

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Brilliant plugin.
    Exactly what I was looking for. Thank you for your work.
    I just working 2 Days with the Minecraft server, and I have another question
    I can write manualy players in the Whitelist.txt - goes without problems.
    But i cannot write commands - if i try "/ whitelist help" there is no response.
    I got my self in OP.txt ... help?
  22. Offline

    Silence

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    There is a file called "whitelist.properties" in plugins/whitelist.
    This file gets created after you run the plugin for the first time.
    In there you can set the kick message, and also the playernames who can use the whitelist commands
    Code:
    kick-message=Sorry, you are not on the whitelist\!
    whitelist-admins=Name1,Name2,Name3
    Just replace Name1,Name2,Name3 with the users you want to be able to use the commands ingame :)
  23. Offline

    jimmyhendr0x

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Thanks, working great =D
  24. Offline

    Pitcher

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Thank a lot !!! - i will try this :)
  25. Offline

    Silence

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    :)

    @M3t Drop me a PM when you are back.
  26. Offline

    theotheoderich

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    It´s working great, thanks a lot!
  27. Offline

    Profanwolf

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Any way you could make it work with txt's as well, so you can keep each name for whitelisting entry on one row of it's own, would be much easier for me with >800 whitelist entries
  28. Offline

    Silence

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    It already is: Whitelisted names are put in whitelist.txt, one name per row.
    The Entrys in whitelist.properties are the admins.
  29. Offline

    lowbeat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    awesome plugin mate, could you add in next version, ip verification, so for users that have static ip adress, and want to protect their account even better, you could add ip they are allowed to connect with ?
  30. Offline

    KoBRaAndrey

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I copy you plugin to plugins. And he doesn't work :( I not at whitelist and can connect to server.
  31. Offline

    Silence

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @KoBRaAndrey: Do you have the latest version of bukkit?
    What does the console say?

    @lowbeat: Given that Bukkit can give you the IP this function is trivial to implement, its more a question of policy: I have to think off a way to make it easy to configure without breaking the current withlist.txt (or making it more complex).
    I thought about binding whitelist optionaly to a SQL database and I will keep your request in mind and add it when possible :)
  32. Offline

    cartman-2000

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    b50 is broken, it doesn't start for me either, and this doesn't work on my older build b44 I think..

Share This Page