pdaian / mcbouncer Goto Github PK
View Code? Open in Web Editor NEWA banning plugin for Minecraft which is open, modular, fair, and unbiased.
Home Page: http://mcbouncer.com/
A banning plugin for Minecraft which is open, modular, fair, and unbiased.
Home Page: http://mcbouncer.com/
Guide:
Right now the response you get from the API looks something like this:
{'totalcount': 1, 'data': [{'ip': '8.8.8.8', 'reason': 'Go away, Google', 'server': 'minecraft.lethal-zone.eu', 'issuer': 'morrolan'}], 'page': 0, 'success': True, 'error': ''}
As can be seen, the response does not contain the date a specific IP ban was issued.
Since the date a player ban was issued does get shown, I suppose that's not intended behaviour. :)
At some point, could a full listing of all bans for a server be added to the API? As it stands the only way to get all bans for a server is to ping the API for each user ever connected and check them. A list of users currently banned from the server updated on request would be wonderful.
How can I avoid this?
2013-03-20 15:06:19 [SEVERE] java.net.UnknownHostException: www.mcbouncer.com: Name or service not known
2013-03-20 15:06:19 [SEVERE] at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
2013-03-20 15:06:19 [SEVERE] at java.net.InetAddress$1.lookupAllHostAddr(Unknown Source)
2013-03-20 15:06:19 [SEVERE] at java.net.InetAddress.getAddressesFromNameService(Unknown Source)
2013-03-20 15:06:19 [SEVERE] at java.net.InetAddress.getAllByName0(Unknown Source)
2013-03-20 15:06:19 [SEVERE] at java.net.InetAddress.getAllByName(Unknown Source)
2013-03-20 15:06:19 [SEVERE] at java.net.InetAddress.getAllByName(Unknown Source)
2013-03-20 15:06:19 [SEVERE] at org.apache.http.impl.conn.DefaultClientConnectionOperator.resolveHostname(Unknown Source)
2013-03-20 15:06:19 [SEVERE] at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(Unknown Source)
2013-03-20 15:06:19 [SEVERE] at org.apache.http.impl.conn.AbstractPoolEntry.open(Unknown Source)
2013-03-20 15:06:19 [SEVERE] at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(Unknown Source)
2013-03-20 15:06:19 [SEVERE] at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(Unknown Source)
2013-03-20 15:06:19 [SEVERE] at org.apache.http.impl.client.DefaultRequestDirector.execute(Unknown Source)
2013-03-20 15:06:19 [SEVERE] at org.apache.http.impl.client.AbstractHttpClient.execute(Unknown Source)
2013-03-20 15:06:19 [SEVERE] at org.apache.http.impl.client.AbstractHttpClient.execute(Unknown Source)
2013-03-20 15:06:19 [SEVERE] at org.apache.http.impl.client.AbstractHttpClient.execute(Unknown Source)
2013-03-20 15:06:19 [SEVERE] at com.mcbouncer.http.Transport.sendURL(Unknown Source)
2013-03-20 15:06:19 [SEVERE] at com.mcbouncer.api.MCBouncerAPI.getAPIURL(Unknown Source)
2013-03-20 15:06:19 [SEVERE] at com.mcbouncer.api.MCBouncerAPI.updateUser(Unknown Source)
2013-03-20 15:06:19 [SEVERE] at com.mcbouncer.event.listener.JoinListener.onEvent(Unknown Source)
2013-03-20 15:06:19 [SEVERE] at com.mcbouncer.event.listener.JoinListener.onEvent(Unknown Source)
2013-03-20 15:06:19 [SEVERE] at net.lahwran.fevents.MCBEventHandler.callEvent(Unknown Source)
2013-03-20 15:06:19 [SEVERE] at com.mcbouncer.bukkit.BukkitPlayerListener.onPlayerPreLoginAsync(Unknown Source)
2013-03-20 15:06:19 [SEVERE] at sun.reflect.GeneratedMethodAccessor78.invoke(Unknown Source)
2013-03-20 15:06:19 [SEVERE] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2013-03-20 15:06:19 [SEVERE] at java.lang.reflect.Method.invoke(Unknown Source)
2013-03-20 15:06:19 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:392)
2013-03-20 15:06:19 [SEVERE] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
2013-03-20 15:06:19 [SEVERE] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
2013-03-20 15:06:19 [SEVERE] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459)
2013-03-20 15:06:19 [SEVERE] at iu.run(ThreadLoginVerifier.java:96)
2013-03-20 15:06:19 [SEVERE] [MCBouncer] MCBouncer timed out while looking up: recon_
2013-03-20 15:06:19 [INFO] Disconnecting recon_ [/XX.XX.XX.XX:51915]: MCBouncer timeout.
2013-03-20 15:06:28 recon_ [/XX.XX.XX.XX:51915] lost connection
Would it be possible to implement temporary timed bans at some point? These bans would automatically expire after a set amount of time. Certain punishments do not warrant a permanent ban, and it is much less administrative overhead to have such bans automatically expire, rather than manually removing them after a time.
What about an option to completly disable the lookups?
I want to get rid of the exceptions and the waiting time if the api is down.
Also you don't really need the lookups on whitelisted servers since most owners are checking players before accepting them.
If not I will just add it for my own server.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.