Plugin category: Anti-Griefing tools Suggested name: OneWayNether What I want: I would like the plugin to make Nether portals only work from World to nether, and no way back. So it would only allow you to go in the nether with normal nether portals. This would be usefull against people who go through other their portals to grief/steal. Ideas for commands: None Ideas for permissions: onewaynether.bypass (Can go back, not needed though.. just an idea) When I'd like it by: As soon as possible Thanks for reading, I have been looking for a plugin like this all over the web.. Didn't find what I was looking for..
Doesn't really seems to be useful and convenient for people. To prevent griefing use GriefPrevention or similar plugin.
well, if that plugin would be done, it should allow player to go through his portal to his base. I would actually like to record in which portal player entered last time and teleport him to that portal whenever he will walk through any portal. Actually I was gonna make that for my server, but I figured that there would be problems with entites walking through portal and I decided leave this idea for better times. Maybe I'll do simplified version soon.
On it http://uppit.com/ll4jqffgt6m1/OneWayNether.jar Permission node oneWayNether.bypass EDIT by Moderator: merged posts, please use the edit button instead of double posting.
clienthax Thank you so much! clienthax Oh and you may post it on dev bukkit if you want, I am sure there are more people out there who would love this. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
just finished it too here is the source Code:java import org.bukkit.World.Environment;import org.bukkit.entity.Player;import org.bukkit.event.EventHandler;import org.bukkit.event.HandlerList;import org.bukkit.event.Listener;import org.bukkit.event.player.PlayerPortalEvent;import org.bukkit.plugin.java.JavaPlugin; public class OneWayNether extends JavaPlugin implements Listener { public void onEnable() { this.getServer().getPluginManager().registerEvents(this, this); } public void onDisable() { HandlerList.unregisterAll((Listener) this); } @EventHandler public void onPlayerPortal(PlayerPortalEvent event) { Player p = event.getPlayer(); if (p.hasPermission("onewaynether.bypass") || p.isOp()) return; if (!event.getFrom().getWorld().getEnvironment() .equals(Environment.NETHER)) return; if (!event.getTo().getWorld().getEnvironment() .equals(Environment.NORMAL)) return; event.setCancelled(true); } }
I see. You have a very unsafe way to detect wheather it's nether or not. Here is my download link. You can configure the message for the player in the config.yml. Edit: Keep in mind, that this does not work with PermissionEX.. I will add support on demand Edit2: The permission is as wanted: "onewaynether.bypass" Now on Bukkit-Dev: http://dev.bukkit.org/bukkit-plugins/onewaynether/ http://up.ht/14mg0SF