Dynamic Effect Whitelist
Dynamic Effect Whitelist
This is a simple whitelist mod using MySQL/HTTP/File. To add users ingame to the whitelist permissionsBukkit is required (included in bukkit), you also need to use the File or MySQL mode. The plugin can run without any changes to the config, if you want it simple or you can edit the config to personalize the disconnect message etc.
The whitelist uses PluginMetrics which means it will send server info (plugin version, number of players on the server, server version, server location (country)), to PluginMetrics server (http://mcstats.org/plugin/DynamicEffectWhitelist) so I can get plugin usage. It can be turned off in PluginMetrics config (plugins/PluginMetrics/config.yml), but it's recommended to let it be on, so I can see the usage.
If a new minecraft version has recently been released then try the plugin instead of asking if it works. Before reporting a bug, check so you have the latest version and check the changelog
Features
- Whitelist using MySQL/HTTP/File
- Updates the whitelist at an interval and not just at server start
- Add users to the whitelist ingame or integrate with your forum/website
- The file data source uses the same format as Minecraft´s built-in whitelist system.
- Custom disconnect message (if not on whitelist)
- Notification for OP' s and players with the right permission, when someone joins and is not on the whitelist (Needs to be enabled in the config (General.PrintConnectFails))
- Support for custom SQL queries & custom database structure
- Built-in importer/exporter allows importing/exporting from/to file, sql & url to file, world & sql. (1)
- Reload plugin on the run (without restarting the server)
- Refresh the whitelist on the run (without waiting for the automated refresh or restarting the server)
- Whitelist can be turned on/off while the server is running
- (Allowed sources: sql, file, url, world Allowed destinations: sql, file)
Todo
- Nothing
Dependencies
- MySQL JDBC (If you are going to use sql as data source) - Download the mysql connector and place mysql-connector-java-5.1.15-bin.jar in C:\Program Files\Java\jre6\lib\ext or /java/packages/lib/ext on linux (http://docs.oracle.com/javase/tutorial/ext/basics/install.html)
Pages
Permissions
Permission | Description |
---|---|
dewhitelist.add | permission to add users to the whitelist |
dewhitelist.remove | permission to remove users from the whitelist |
dewhitelist.displayfails | permission to see all failed joins (shown in the chat if activated in config) |
dewhitelist.reload | permission to reload the plugin |
dewhitelist.refresh | permission to refresh the whitelist (check for new players in the whitelist) |
dewhitelist.import | permission to import from a source to another (Can be used to backup the whitelist) |
dewhitelist.mode | permission to turn on/off the whitelist |
Chat commands
Command | Description |
---|---|
/whitelist add [player] | adds the entered player to the whitelist. |
/whitelist remove [player] | removes the entered player to the whitelist. |
/whitelist reload | Reloads the plugin |
/whitelist import [source] [destination] | imports whitelist from source to destination (1) (2) |
/whitelist refresh | Refreshes the whitelist (checks for new players in the whitelist) |
/whitelist <on/off> | Turns on/off the whitelist |
- (Allowed sources: sql, file, url, world Allowed destinations: sql, file)
- (Uses a third argument when using world as source, the last world is the name of the world's name. Example "/whitelist import world file world")
Source
The source is hosted on Github: https://github.com/BlackVoid/DynamicEffectWhitelist
Download
- JAR Only (Version 1.5.2)
- Full package (Version 1.5.2) - Includes JAR, SQL-file (database), php-file (if you use url as data source)
Changelog
Version 1.5.2
- All debug messages are now shown with the prefix [DEWhitelist-debug]
- No longer prints entire whitelist in debug mode, instead it prints the number of players in the whitelist.
- Checks if other plugin has already disallowed the player and if so it lets the other plugin handle the event.
- In debug mode it now prints if another plugin has handled the join event.
Version 1.5.1
- Quick fix for the refresh timer which didn't work.
Version 1.5.0
- /whitelist <on/off> added - Can turn on/off the whitelist on the run
- Print connection fails should be fixed and should no longer print in console nor to players multiple times.
- debug option moved from General.debug to Other.debug
- Option in the config to set which mode the whitelist should be at startup (on or off)
- PluginMetrics added, sends anonymous stats (player count, bukkit version, plugin version), can be turned off in the pluginMetrics config (plugins/PluginMetrics/config.yml)
If you use my plugin on your server(s) please consider donating :)
@NeoMine
The plugin can't parse JSON, so you need to make a php script that parses it and use the URL datasource in the plugin, this is however nothing I will code.
@OtterTrotter
If you use /whitelist <on/off> it's only that state until the server restarts. If you want the whitelist to be off/on at startup you can change it in the config. So /whitelist <on/off> does not modify the config, it only changes the whitelists mode temporary (until server restart).
@xclucky
I will check if the metrics class has been updated to fix this.
@FerusGrim
But a lot of my plugins have metrics and this is the only one that gets spammed. I also read a developer once said "recoded plugin to not spam when it can not connect to metrics."
@xclucky
This is not a problem with DEW.
DEW is one of many plugins configured to send user usage data (Ever wonder what the "Plugin Metrics" folder is?) to mcstats.org.
When MCStats goes down, you get that response, because your server can't reach it. Other than that error, it has absolutely no adverse affects on your server.
@BlackVoidRules
I turned my whitelist off and noticed it eventually came back on by itself, although im not sure how. Does it turn back on every time you add someone to the whitelist or on a server restart? Not sure if this is intentional.
This keeps spamming my console, any possibility it can be fixed:
how can i set a configure....
I want to use this mysql DB.
DB:Xe_member
Table:extra_vars
and... the 'extra_vars' 's content is O:8:"stdClass":2:{s:6:"mineid";s:4:"neo6633";s:6:"adress";a:2:{i:0;s:34:"aaadbv (210-100)";i:1;s:9:"ㅁㄴㅇ";}}
I want to use "neo6633".....
then how can I fix Configuration?
@C1hrisin
You can not enter the adders to the file on a web server, if you want to do that you need to use the URL data-source and each name should be separated with "|" excluding the quotation marks.
@C1hrisin
If you want help, you should really paste the contents of your PHP file, as well. You can hide the log-in information. Also, you should use a site like PasteBin, which makes reading things much easier. :)
Anyways, the error is saying that it can't, for whatever reason, find your file.
"2013-01-04 04:11:14 [SEVERE] java.io.FileNotFoundException: http://www.c1a1.tk/whitelist.txt"
http://pastebin.com/
Hey, its the first time I have actually asked for help but Ive made my own PHP code to output a .txt file, which you should be able to access www.c1a1.tk/whitelist.txt, yet when I run this plugin to get to contents of this text file (which I have checked contains the needed names) it comes up with an error:
" [DynamicEffectWhitelist] Enabling DynamicEffectWhitelist v1.5.2 2013-01-04 04:11:14 [INFO] [DEWhitelist] Whitelist is on 2013-01-04 04:11:14 [INFO] [DEWhitelist-debug] Debug mode is on! Turn it off in the config if you do not want to see debug messages. 2013-01-04 04:11:14 [SEVERE] java.io.FileNotFoundException: http://www.c1a1.tk/whitelist.txt 2013-01-04 04:11:14 [SEVERE] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) 2013-01-04 04:11:14 [SEVERE] at com.dynamiceffect.whitelist.DynamicEffectWhitelist.GetWhitelist(DynamicEffectWhitelist.java:349) 2013-01-04 04:11:14 [SEVERE] at com.dynamiceffect.whitelist.DynamicEffectWhitelist.access$0(DynamicEffectWhitelist.java:278) 2013-01-04 04:11:14 [SEVERE] at com.dynamiceffect.whitelist.DynamicEffectWhitelist$UpdateWhitelist.run(DynamicEffectWhitelist.java:716) 2013-01-04 04:11:14 [SEVERE] at com.dynamiceffect.whitelist.DynamicEffectWhitelist.RefreshWhitelist(DynamicEffectWhitelist.java:697) 2013-01-04 04:11:14 [SEVERE] at com.dynamiceffect.whitelist.DynamicEffectWhitelist.onEnable(DynamicEffectWhitelist.java:91) 2013-01-04 04:11:14 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) 2013-01-04 04:11:14 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) 2013-01-04 04:11:14 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) 2013-01-04 04:11:14 [SEVERE] at org.bukkit.craftbukkit.v1_4_6.CraftServer.loadPlugin(CraftServer.java:278) 2013-01-04 04:11:14 [SEVERE] at org.bukkit.craftbukkit.v1_4_6.CraftServer.enablePlugins(CraftServer.java:260) 2013-01-04 04:11:14 [SEVERE] at net.minecraft.server.v1_4_6.MinecraftServer.j(MinecraftServer.java:321) 2013-01-04 04:11:14 [SEVERE] at net.minecraft.server.v1_4_6.MinecraftServer.e(MinecraftServer.java:300) 2013-01-04 04:11:14 [SEVERE] at net.minecraft.server.v1_4_6.MinecraftServer.a(MinecraftServer.java:259) 2013-01-04 04:11:14 [SEVERE] at net.minecraft.server.v1_4_6.DedicatedServer.init(DedicatedServer.java:149) 2013-01-04 04:11:14 [SEVERE] at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java:399) 2013-01-04 04:11:14 [SEVERE] at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:849) 2013-01-04 04:11:14 [SEVERE] Error occurred while enabling DynamicEffectWhitelist v1.5.2 (Is it up to date?) java.lang.NullPointerException at com.dynamiceffect.whitelist.DynamicEffectWhitelist$UpdateWhitelist.run(DynamicEffectWhitelist.java:717) at com.dynamiceffect.whitelist.DynamicEffectWhitelist.RefreshWhitelist(DynamicEffectWhitelist.java:697) at com.dynamiceffect.whitelist.DynamicEffectWhitelist.onEnable(DynamicEffectWhitelist.java:91) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.v1_4_6.CraftServer.loadPlugin(CraftServer.java:278) at org.bukkit.craftbukkit.v1_4_6.CraftServer.enablePlugins(CraftServer.java:260) at net.minecraft.server.v1_4_6.MinecraftServer.j(MinecraftServer.java:321) at net.minecraft.server.v1_4_6.MinecraftServer.e(MinecraftServer.java:300) at net.minecraft.server.v1_4_6.MinecraftServer.a(MinecraftServer.java:259) at net.minecraft.server.v1_4_6.DedicatedServer.init(DedicatedServer.java:149) at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java:399) at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:849)"
Please Help, and happy new year!
@BenniFeatOne
Can I see your config file?
Sry my english is not so good.
So I stop a Bukkit Minecraft server and would like to connect it with the help of the Dynamic Effect Whitlist with my WBB WortLab Burning Board (http://www.woltlab.com/de/wbb/) forum system to the database.
I have seen in a video with someone that makes a CMS system. Have basically the same as he made. There have my MySQL database. And the kick message is also displayed. Troz I have it connected to my user table in wbb and also the correct name was unfortunately nothing happened. Kick will be kicked with my message. It works just only when I'm in the White List of Bukkit itself but not otherwise.
Do you understand?
And they know one probably Council?
@BenniFeatOne
Im sorry, but I do not understand your question.
@FerusGrim
Hi, I will look in to this, but I have been using the default query for a very long time without any issues.
Hello,
I guess that's a very stupid question. I would like to connect the plugin Dynamic Effect Whitelist with my WBB3 database. Does this in itself. I'm just not at all left on the server, the message that I will enter, but no matter what I do whether in the database or config. nothing changes.
Why might this be?
@BlackVoidRules
Hello! I made a comment here around August 9th, and I've come back while working on my new server to use this plugin (because I love it!), and I've noticed that the information I gave you went unnoticed!
I've found that the error I gave a temporary fix for is still in effect and plagues anyone who attempts to use this with mySQL. Did you miss it, or forget about my post? ^.^;;
My Post: @FerusGrim
FeursGrim~
I like this plugin and I used to use it on my Minecraft server but now because I have a Tekkit server this does not suite my needs...What I need is the exact thing regarding database setup,but instead of whitelisting the users when they join,I need them to be promoted to a configurable permission group...
@orkun1675
Modified the download so it says it's for the latest RB.
Recompile for RB 1.4.5 please?
It's working alright, just for the look of it.
@WaLLy3K
You can't point the plugin to the file if you are using URL and datasource. If you want to have a white-list file it needs to use "|" for each member instead of a new row. Example
instead of
I tried working with SQL and PHPBB to no avail, but I believe that's because of my game server rather than the mod.
I'm attempting to host a whitelist on an external site, with a copy of my white-list.txt from my server sitting on the web. When I point DEW at it, I get this message:
and I'm not able to join, saying that I'm not on the whitelist. What could have gone wrong here?
Where was this sample php code that allowed you to add yourself through site