[ADMN/GEN] WhitelistPlus v0.2 - Whitelisting with permissions [818]

Discussion in 'Inactive/Unsupported Plugins' started by codename_B, May 9, 2011.

  1. Offline

    codename_B

    WhitelistPlus
    A whitelist plugin, plus more.

    Version: v0.2


    A fork of the Whitelist plugin to add permissions support.
    This plugin allows only people on your whitelist, or with the whitelist.permission.bypass node to join the server.

    Features:

    • Simple and easy to use
    • Broadcasts a message whenever someone tries to join that isn't whitelisted.
    • Uses permissions
    • 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
    Permission nodes:
    Code:
    whitelist.permission.bypass - bypass the whitelist check, don't have to be on the whitelist to join the server.
    whitelist.permission.use - base permission for users - necessary for these permissions to work.
    {
    whitelist.permission.add - permission to use the /whitelist add command.
    whitelist.permission.remove - permission to use the /whitelist remove command.
    whitelist.permission.onoff - permission to use the /whitelist on and /whitelist off commands.
    }
    
    Known bugs:
    • As of v0.2 you cannot use the commands in the server console.

    License:
    Distributed under the same license as the original Whitelist plugin. Full credit to the original author, I simply modified to suit my needs and distributed incase it suited anyone elses needs.
    Source and license included in the .jar file download.

    Download:
    Megaupload v0.2: Link

    Installation / configuration:
    Copy WhitelistPlus.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.
    In your world.yml you can assign the following permission to bypass the whitelist check for a user.
    • whitelist.permission.bypass
    Commands:
    These commands can be used by those with permission in-game. You cannot currently use these with the server console.
    • /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.jar7

    Changelog:
    Version 0.2
    • Fixed error in my use of permissions. Added to bukkit forums.
     
    robbydude and NEO like this.
  2. Offline

    Buckethead

    Anyone use this in 1.1 or 1.0 still?

    its not the same. This one also "Broadcasts a message whenever someone tries to join that isn't whitelisted."

    Also can u make it aperm where only certain people like admins see when not whitelisted people try to join?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 16, 2016
  3. Offline

    Himeki

    This one also had permissions where the other one originally didn't. That was the only difference at the start of it.
     
  4. Upload in mediafire please! SOPA deleted MEGAUPLOAD,
    so please upload in mediafire thank you and also my first post.

    At console you can see when someone joins it disconnect.

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

    Buckethead

    oh. well can what i said be a feature

    megaupload is back up. and no sopa did not. sopa has not passed yet or pipa. megaupload was just domb about the way they organized there servers. and by that i mean they had a server in the us so they were subject to our law then. sopa stops people outside our country

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 16, 2016
  6. So i cant download Whitelistplus to make a broadcast whitelist message?,
    Thats, Sad....
     
  7. Offline

    X_angelz_X

    Its still down?
     
  8. Offline

    Buckethead

    i guess idk
     
  9. Offline

    X_angelz_X

    Thats sucks, Anyone have a copy of the plugin, I really need it.

    Also, Please read the OP before you mouth off,

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 16, 2016
  10. Offline

    X_angelz_X

    Still down? Damn... Someone get a link out to it please.
     

  11. Upload in mediafire! man, SOPA/PIPA Blocked megaupload for UK still!
     
  12. Offline

    Himeki

    SOPA/PIPA didn't pass...it's just megaupload being stupid about it.
     
  13. Offline

    mati123se

    YaY! Thanks For a Megaupload link Xd

    its blocked For estonia alsoo!!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 16, 2016
  14. Offline

    imaxorz

    Anyone has a copy of this plugin?
     
  15. Offline

    md_5

    Long time no see codename_B. You will notice that this thread has now been placed into the Inactive Plugin subforum.
    If you wish to revive this plugin, please ensure that you update and test compatibility with the latest recommended Bukkit build before reporting your original post, asking for it to be moved back to the release forum.

    Thanks for your time.
    md_5
     
    codename_B likes this.

Share This Page