Well all this has to do is people with a permissions cant; set things on fire openchests destroy chests use lava use water no guest to guest pvp? no tnt placement creeper stopper - use something else. I hope this is easy enough for someone. also they can't pvp. then they can't be stop greifing. Edit again: if this is possible no Guest-to-Guest pvp? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
one for all would be prefrebale just to stop the guests greifing the easy ways - oh maybe no tnt placement.
I can give this a try, just give me an hour to get back to you, if I'm having to many problems I'll give up but it should be easy
That's fine Just give me more to do lol I'm currently wasting time wait for my gf to get off work in 4 hours Also, The no guest to guest thing.... I'm not sure how to go about that, and the creeper stopper, what do you mean by that? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
The guest update is something i can handle when i upgrade there group, the creeper thing is so creepers dont blow up the terain.
I suggest creeperheal for that, VERY good plugin that I used on my server when I ran one. It can also undo TNT damage.
Okay so I've just finished it. I haven't tested it though (mainly cause I'm lazy at the moment and don't wanna go get my mouse ) Just give yourself the GB.* permission, and try all the things you wanted added. I included the plugin.yml in the .zip so you can see what the different permissions are.
Testing now. Thanks ill report back in a couple of mins. Doesnt seem to work. this is in the permissions: PHP: superpermbridge.GB.*: true Do you give the permissions to the guest? @Perdog are you meant to give the permissions to the guest? The no chest break works. You can test it on my server i uploaded it: 31.3.250.162:25643 EDIT by Moderator: merged posts, please use the edit button instead of double posting.
is it for permissions 3.0 or permissionsbukkit Ignore all that now, i did it wrong but i can't open the chests or use tnt and fire but everything else still works. So lava, water, and destroying the chest
So the only thing not working is placing water and lava with a bucket and destroying chests? And you have the GB.* permission?
Im not sure if this was possible but could guests use the chests they place? If thats too hard just leave it. Code: 2011-10-01 01:54:29 [SEVERE] Could not pass event BLOCK_BREAK to GuestBlocker java.lang.ClassCastException: me.Perdog.GuestBlocker.GuestBlockerPlayerListener cannot be cast to org.bukkit.event.block.BlockListener at org.bukkit.plugin.java.JavaPluginLoader$39.execute(JavaPluginLoader.java:511) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338) at net.minecraft.server.ItemInWorldManager.c(ItemInWorldManager.java:195) at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:159) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:500) at net.minecraft.server.Packet14BlockDig.a(SourceFile:43) at net.minecraft.server.NetworkManager.b(NetworkManager.java:226) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92) at net.minecraft.server.NetworkListenThread.a(SourceFile:108) at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374) at net.minecraft.server.ThreadServerApplication.run(SourceFile:417) This is a error i noticed that keeps happening. ill be back tomorrow. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Hold on got the new one, simple mistake on my part, here it is I could attempt this, not sure how I'm going to do it though, will try it though. This was happening because I put the BlockBreakEvent into the player listener when I SHOULD have put it into the block listener, fixed though
Why not just use ModifyWorld which comes with PermissionsEx? It disallows guests to destroy -anything- with a single permission.
Because i want them to play, oh and you don't even need a plugin for it same things not working for some reason Code: 2011-10-01 13:04:14 [SEVERE] Could not pass event PLAYER_INTERACT to GuestBlocker java.lang.NullPointerException at me.Perdog.GuestBlocker.GuestBlockerPlayerListener.onPlayerInteract(GuestBlockerPlayerListener.java:17) at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:314) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338) at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:168) at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:139) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:824) at net.minecraft.server.Packet18ArmAnimation.a(SourceFile:36) at net.minecraft.server.NetworkManager.b(NetworkManager.java:226) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92) at net.minecraft.server.NetworkListenThread.a(SourceFile:108) at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374) at net.minecraft.server.ThreadServerApplication.run(SourceFile:417) This looks diffrent. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Null Pointer Exceptions are sometimes not that difficult as they look. Code: Material block = event.getClickedBlock().getType(); This is line 17. The problem is here: If the player clicks in the air, the event 'onPlayerInteract' will be called, too. If you want to get the block then it says 'null', because the player did not click any block. you could change line 17 to: Code: Block block = event.getClickedBlock(); and line 26 following to: Code: if(block != null) { if (((player.hasPermission("GB.OpenChest")) || (player.hasPermission("GB.*"))) && (action == Action.RIGHT_CLICK_BLOCK) && (block.getType() == Material.CHEST)) { event.setCancelled(true); } } and everything would be okay, if there aren't any other misstakes.