Nether Roof Protect
Discription
Tired of pesky players who take the easy route through the nether by walking on top of the bedrock roof? Well, here is a simple plugin that will will fix just that!
The plugin simply checks if a player in the nether is above the bedrock roof and will teleport them back to whatever spawn is defined in the configuration. It is efficient, simple, and lightweight yet also configurable.
Think your server is safe?
Think again! It is actually very simple to get on top of the nether roof, especially if you have warp plugins on your server. A player can set a warp (or their home) inside a 1x2 hole and put lava in it. This renders the warp too dangerous to teleport to and when a player attempts to warp, they instead warp above the nether! Vanilla Minecraft also has a method involving only ladders and enderpearls. The point is, it can be easy for players to get on top of the nether, but no matter which method they use, this plugin will stop them.
Permissions
Permission | Discription |
---|---|
netherroofprotect.allow | Allows the player to be on top of the nether bedrock layer (More commands may be created in the future) |
Configuration
Config Name | Discription | Default | Syntax |
---|---|---|---|
teleportMessage | Message is displayed when a user was caught above the nether roof | Too long, see file | String |
overrideTeleport | Set to true if you would like to run a custom command when somebody is above the ceiling rather than teleporting | false | boolean (Ex. true or false) |
overrideCommand | The command that will be ran if overrideTeleport is set to true | 'kill %PLAYER_NAME%' | String |
teleportWorldName | The player will spawn in this world's spawn when he goes on top of the nether | world_nether | String |
maxNetherHeight | The maximum height a player is allowed to be in the nether (Originally 127) | 126 | Integer (Ex. 2 but not 0.2) |
checkDelay | This is how often (in server ticks) that the plugin checks if any player is on top of the nether | 10 | Integer (Ex. 2 but not 0.2) |
Privacy Information
Plugin Metrics was added to the plugin in order to get a better understanding of what servers are using the plugin. It also can help with development, and only anonymous information is sent.
However, if you do not want to send this data, you can set opt-out to true under ...\plugins\PluginMetrics\config.yml.
Other
Message me if you find any bugs, performance issues, or suggestions about the plugin
@fungreenfox
Uh that wouldnt work. they can easilly exit the nether simply by building a nether portal up there. they dont need to smash any bedrock to get up or down. ive done it before....
Same bug about normal world here.
I have also had it happen where some one is above the Y threshold in the Overworld, and they cannot tp to a player. It will tp them for a moment, say 'Sorry if this is a mistake you are not allowed on top of the nether', and tp them back to spawn...
On Spigot 1.8-Buildtools update 2.27.15
Can confirm I have the same issue as @switorik @BustedEarLobes
I think I found a bug. If someone creates a nether portal in the main world higher than that allowed in the config and has it connected to a nether portal in the nether, it will trigger the plugin.
So say someone makes a portal at Y=60 in the nether and then makes one at Y=200 in the world. When someone enters that portal, it will think they got on the roof and teleport them away.
@LegendaryAdmin
It just got approved.
No worries, thanks for solving the issue! Where can I find that download?
@LegendaryAdmin
Sorry for not responding to your request. I've gotten busy lately and I haven't been able to work on my plugins. I uploaded a new version that will have a little more configuration including the maximum height a player is allowed to be in the Nether.
There is a bypass for this plugin, the player can get on a boat at the bedrock level and stay in said boat while riding in between the bedrock and below that top layer, (I think around y:127) not sure of the exact level they are on when they use the glitch
Can we set this so that if their feet position hit 126, or make it configureable, it tp's them to spawn
Hey there i love the plugin however on our server we have noticed that players sitting on boats can glitch through is there anyway you can fix this please ? ty.
Hate to pester, but would you happen to have an ETA on the next update?
@BustedEarLobes
glad to offer the idea, can't wait for it.
@marubal21 Hm, I always thought the other plugins actually changed the server spawns. Thanks for some ideas; option 2 is catching my attention. I think it would allow the plugin to be configured even more. Seems like an easy addition that should come soon.
I love the plugin, what it does and the simplicity of it. But for some reason it doesn't teleport my players to my set server spawn point, it seems to be taking them to what appears to be the default spawn point rather then my set spawn.
I use essentials and multiverse, so i'm not sure if that has something to do with it or if this plugin just doesn't recognize the spawn point set by them.
But would you be able to add an alternative feature for teleport location? i think anyone of of these would work nicely:
1- Option to set the coordinates to where i want players teleported to, including the direction the player would face when teleported.
or
2- issue a commnd, so instead of it just teleporting a player i can set it to issue a command i enter. ex. /kill %PLAYER_NAME%, or /tp %PLAYER_NAME% x, y, z
@fungreenfox
Are you implying that people cannot clip underneath the bedrock layer without breaking bedrock? There are instances of trees being able to destroy bedrock and people are able to leave the nether roof. On top of that, server warps make it so much easier to do that. There have been countless people on faction servers who use the nether roof to travel to far places without any negative consequences, giving their bases technically an unfair advantage.
Or just forbid bedrock smashing? that way, they cant get down anywhere, and will have been of no use to teleport.
Very nicely written code. Can definitely get some tips and tricks just from reading the code. Thanks so much for uploading this.
How does the plugin work? if you can answer my question in PM
Ahh, This would have been awesome a few weeks ago xD
nice, I want test it.