Anti Glowstone Xray
Anti Glowstone Xray
This lightweight plugin fixes and prevents the exploit with glowstone that allows players to see through blocks. This prevents an unfair advantage commonly used in factions to find secret parts of bases or in survival to scout out caves. It can allow the exploiter to find minerals such as gold far faster than it would take them normally. Faction servers can benefit from this too, as secret parts of bases will actually be hidden.
How it works
A check is run every 25 ticks on each player to check if there is a glowstone/TnT/Redstone Block 1 block above them (their head). If a player has glowstone a block above them, they will be killed to prevent the player from cheating.
Installation
ticks: the amount of tick before the server checks for player punishment: Blindness or death to the player that uses the exploit
No more of this!
As you can see by the picture, I found a dungeon and a large cave system with gold. Players will no longer be able to cheat their way to wealthiness.
not working (latest)
You forgot ".AntiGlowstoneXray" in your main (plugin.yml
This plugin can makes server lag with a lot of players online?
@BillyGalbreath
Thanks for the idea, I'll implement this
@ct63960
@CommodoreAlpha
I make blindness a different option
Better idea: give blineness effect.
Isn't instantly killing players a bit too harsh? I could imagine THIS being exploited to make insta-death piston traps. You could try a punishment based on running a command (basically, let another plugin deal the punishment). It would be more configurable that way without you actually having to add lots of configurability.
Would be lovely if you included TNT and Redstone Blocks to this exploit fix. Also, could you make the task delay configurable? 25 ticks seems kinda high for small servers and too low for big servers. ;)
@Maximvdw
@RemyPas
I think that this has to do with the older version. Ill update it now
Same issue as below.
I get this error: 2013-10-13 19:14:31 [SEVERE] Could not load 'plugins/AntiGlowstoneXray.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.ClassNotFoundException: com.gmail.birchyboy.s.AntiGlowstoneXray at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230) at org.bukkit.craftbukkit.v1_6_R3.CraftServer.loadPlugins(CraftServer.java:239) at org.bukkit.craftbukkit.v1_6_R3.CraftServer.<init>(CraftServer.java:217) at net.minecraft.server.v1_6_R3.PlayerList.<init>(PlayerList.java:56) at net.minecraft.server.v1_6_R3.DedicatedPlayerList.<init>(SourceFile:11) at net.minecraft.server.v1_6_R3.DedicatedServer.init(DedicatedServer.java:107) at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:393) at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583) Caused by: java.lang.ClassNotFoundException: com.gmail.birchyboy.s.AntiGlowstoneXray at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173) ... 9 more
@NinjaAssassin864
Thats what it does, you just read it wrong
This is stupid though. 1 block above their head. What if your in the nether mining glowstone like most of the ppl do on my server. Then u will get killed for no reason. :/ Make change it to where they should be killed if the player is IN a block that can produce "xray"?
@FireBreath15
I'll fix this
Have a piston push you into TNT - you get the same issue. It also works with fences
@orodai
No, that doesn't work with TNT when I tried
Awesome but cant you still do ti with tnt blocks? I seem to remember pushing myself into tnt blocks and it working quite the same fashion though dangerous.