Inactive [ADMN] Whitelisted v1.0.4 - Dynamic Whitelist with In-Game Commands [1.1-R7]

Discussion in 'Inactive/Unsupported Plugins' started by kantenkugel, Mar 3, 2012.

  1. Whitelisted - Dynamic Whitelist with In-Game Commands:
    Version: v1.0.4

    This Plugin lets you whitelist players by:
    • Editing a config-file or
    • Simply typing a command ingame or into the console
    The good thing about this is: You dont have to reload the plugin or server. Your changes take effect as soon as you edit the file / type the command

    Features:
    • Dynamic
    • Easy Commands
    • Notify-System
    • Configurateable whitelist messages
    • Permission to allow join
    If you want me to add something (maybe SQL-Support) just write it down in this thread
    Notify-System (open)

    If the Notify-System is enabled and a player not whitelisted tries to join, instead of just showing them the standard whitelist message the plugin will notify every player online with the permission "whitelisted.admin" that this player wanted to join. Now those admins may add him to the whitelist or deny him by typing "/wl deny PLAYER". This will not show chatmessages anymore if that player wants to join and print him the standard whitelist-message.
    The Notify-System has a built-in spam-protection of 20 seconds

    Commands:
    The base command is /whitelisted or /wl
    Subcommands:
    • add - Adds a Player to the Whitelist (e.g. /wl add Kantenkugel)
    • deny - See section Notify-System
    • rem or remove or rm - Deletes a Player from the Whitelist (e.g. /wl rem Kantenkugel)
    • list - Lists all players whitelisted.
    Permissions:
    • whitelisted.admin - lets you execute the Commands listed above. Also makes you see notify-messages
    • whitelisted.join - lets you join the server even if your not in the whitelist
    Note:You can also use whitelist.* permission to grant both of the above permissions

    Configuration (open)

    • Whitelist - a YAML-formatted list of players whitelisted (if you edit the whitelist in the file, make sure that all names are lowercase only)
    • Config.ShowLog - Wheather to show or hide messages in the log when a player joins (useful if you want to know why a player is allowed to join)
    • Config.Notify - Enable the Notify-System
    • Config.Msg.NotWhitelisted - This Message is shown if a player was denied(if notify-system is enabled) or if notify-system is disabled and the player is not whitelisted
    • Config.Msg.Notified - This Message is shown if there were admins online and they were notified about the player joining (only shown when notify-system is enabled)
    • Config.Msg.NoAdminOnline - This Message is shown if no admin is online that may whitelist you (only shown when notify-system is enabled)
    • Config.Msg.TryLater - Shown if spam-protection triggers (player not whitelisted joins a second time within 20 seconds)

    Download: Plugin --- Source Code

    Changelog:
    Version 1.0.4
    • Added Notify System
    • Added "deny" subcommand
    • Added "reload" subcommand
    • Rewriting the config file, adding more things
    • When executing the subcommands add and remove the playername is shown in the message
    Version 1.0.3
    • Fixed the Permission names.
    Version 1.0.2
    • Added Config entry for the whitelist message
    • Added SQL-Connector class
    • Config is now created on onEnable rather than onDisable
    Version 1.0.1
    • First Release
     
  2. Offline

    Chiller

    Hmmmm sounds like Bukkits whitelist?!
     
  3. Offline

    OzoneBuu

    Worth saying 1.2.3 has whitelist commands built in, but a good plugin regardless.
     
  4. Chiller yea but Bukkits whitelist has no ingame-commands (atm) and i think it does not update instantly if you change the file

    OzoneBuu thank you i didn't know that... ill leave it here for 1.1 then :)
     
  5. Offline

    md_5

    /whitelist I'm fairly certain does all that, but approved
     
  6. md_5 the /whitelist command is new in 1.2? and I think its a lil different cause you can edit the config file of my plugin and then the player is instantly whitelisted. I think if you change the bukkit whitelist-file you have to type /whitelist reload to apply those changes.

    Also im planing to add MySQL support
     
  7. Offline

    xDeeKay

    I noticed this is a new plugin. I tested it and it works great :)
    One thing that would be awesome is the ability to set the whitelist message in the config.
    For example: 'You are not whitelisted. Apply here: www.example.com'
    Thanks!
     
  8. xDeeKay I think ill add it in the next version

    Updated to 1.0.2 ...
    Added Config entry for Whitelist-message
    Config file is now created on startup

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

    xDeeKay

    There is a typo above. I tried using the permission 'whitelisted.admin' but I did not have permission to add a player to the whitelist. I then changed the permission to 'whitelist.admin' without 'ed' and it worked fine. I'm not sure about 'whitelisted.join' but i'm guessing its the same for that permission to. Thanks for adding a a whitelist message :)
     
  10. xDeeKay thank you... I looked into the code and yea whitelisted.join is also wrong... ill fix it as soon as im home
     
  11. Offline

    411skateboarder

    How to fix so they need to regiser 0n the website for beeing whitelisted? ...
     
  12. I'm working on a sql-connector for this plugin. So if your website stores the accounts in a mysql-database my plugin could read the whitelisted players out of there

    New Version Whitelisted 1.0.3 aviable...
    Fix: Fixed the permission names in the script itself :)

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

    Milkywayz

    I think the only point for this is the message it sends to the player, this would have been nice when i needed it about a week ago but we went public not long ago.
     
  14. Offline

    MiniBaa!!!

    Well what about if someone is trying to join your server but their not whitelisted,the owner or some certain group gets a message thats says: (player) tried to join,allow?
    and then you could type in /whitelist accept/deny?
    If you typed in accept it would allow them in and add them to the whitelist.
    idk its just a suggestion...
     
  15. MiniBaa!!! sounds great! I think ill add something like that soon. I just have to figure out a way to keep them in the login screen while the players online can accept/deny him.
    At least I will add it that you can add him to the whitelist this way so he only has to join another time.
     
  16. Offline

    FunCraft

    SQL support will be great!That's the only thing I need in order to use this plugin for my server!And it will also be a good idea if the user will be able to change the field from the database the username is into so I could integrate this plugin with a website running WordPress or something else.
     
  17. FunCraft Im planing to include MySQL with 2 modes:
    1. Plugin uses own database and writes the whitelist into the database
    2. Plugin uses external database (e.g. Forum account database) with a custom field for the name and automaticly whitelists everyone in this table. the ingame-commands will write into the config-file in this mode and use the config-file as a seperate whitelist
     
  18. Offline

    411skateboarder

    Can you maybe make a vid? iam new with mysql and that stuff !
     
  19. 411skateboarder the sql-connector is not integrated atm. I'm rewriting the source first to make it easier
     
  20. Offline

    411skateboarder

    Dude, xd sorry for beeing so newbi. But i seriusly dont understand anything u wroted up there "without source and mysql" , whats sql-connector and that stuff iam tottaly new with this!
     
  21. It has to do with the programming. I'm rewriting the code to make it possible to use a mysql-database.
    But it is not yet finished so you cant use mysql yet.
     
  22. Offline

    Desolater_IV

    Is there a way for you to change the whitelist so it doesn't include the "hyphen space"
    Change from:
    - Desolater
    Change to:
    Desolater

    So I could simply copy/paste the names from my current whitelist to your plugin without having to add "- " to every name. I have over 1000+ names on my whitelist so adding the "- " to every name is tedious, and shouldn't even need to be included.
     
  23. Desolater_IV i made you a simple web-scipt: LINK
    Just insert the old whitelist and press go... every line should now start with a "-"

    Updated to version 1.0.4:
    + Added Notify-System
    + Added Subcommands "reload" and "deny"
    + When executing /wl add or /wl rem the playername is shown in the message
    Edit Changed the Config-File

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

    Desolater_IV

    Insert it into the config file? It doesn't update the names with the "- ", so they don't get whitelisted.
     
  25. Desolater_IV i changed the script to insert a space too. (forgot it :oops:)
    If you have a old Whitelist in the format:
    Name1
    Name2
    ...

    You just have to insert the whole old whitelist into the webscript linked above and press "GO".
    It should convert it into a list of the format:
    - name1
    - name2

    Hope that helps.
     
  26. Offline

    SieniFani

    LOL There isn't configurable kick mssage -.-
     
  27. Offline

    Speedyboy235

    Great, works perfectly! Thanks!
     
  28. Offline

    Marvs87

    I get this error in my server log when I start my server with the .jar file in the plugin map:
    Code:
    14:13:59 [INFO] Starting minecraft server version 1.2.5
    14:13:59 [INFO] Loading properties
    14:13:59 [INFO] Starting Minecraft server on *:25565
    14:13:59 [INFO] This server is running CraftBukkit version git-Bukkit-1.2.5-R1.0
    -b2149jnks (MC: 1.2.5) (Implementing API version 1.2.5-R1.0)
    14:13:59 [SEVERE] Could not load 'plugins\Whitelisted.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError
    : me/kantenkugel/serveress/whitelisted/Whitelisted : Unsupported major.minor ver
    sion 51.0
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:150)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:305)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:230)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:207)
            at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:183)
            at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigur
    ationManager.java:53)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:156)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:422)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.UnsupportedClassVersionError: me/kantenkugel/serveress/whit
    elisted/Whitelisted : Unsupported major.minor version 51.0
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClassCond(Unknown Source)
            at java.lang.ClassLoader.defineClass(Unknown Source)
            at java.security.SecureClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.access$000(Unknown Source)
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:41)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:29)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:139)
            ... 8 more
     
  29. Offline

    ewized

    So how would I get this is work with SQL.
     
  30. Offline

    rmbl21

    Hey, im using this plugin and its been working great! I have a question by the way, i changed the all the msg lines to the same text, it does work when someone isnt whitelisted and there are no admins on but if there is any admin online it does write the default msg " Your not whitelisted. An admin may add you. Try again in 20 secs" Why isnt that changing!
    Thanks!
     

Share This Page