Plugin category: Fixes Suggested name: PvPLine What I want: Basically what i want is to have a line instead of jumping down off a building, And i want you to not be able to go back inside the line(Non-pvp zone) until you are out of combat. Heres an example: So now basically lets say i step out of the line and get hit i wont be able to go back into the line until i'm out of combat and also if i hit someone vice versa. Ideas for commands: Maybe intergrate world edit to set the line or something like that, any command will work just need someway to set the line Ideas for permissions: pvpline.bypass(Bypass the cooldown) When I'd like it by: Any time.
Jangilify Made a plugin like this already, is in Polish now but you can get an English version if you want
It's fine, My server wont be opening for another month. I'v got plenty of time, I appreciate your time spent!
https://www.dropbox.com/s/0tujj47c9envdrw/NoPVPSpawn.jar You can change the message color and message in the config, don't touch the "hasarea" thing! The time is configurable to. Command: /knock-area, defines the area based on worldedit selection, you need the permission nopvpspawn.use to be able to use the command, projectiles are supported
I know you did a lot of work but would be possible to take out the line of code where you fall in the void? I want them just not to be able to enter the area in combat
Will do after my dinner And was meant to be a knockback, didn't worked the way I thought it would do XD, maybe remove the y var
Thanks for telling, Updated the file, now no more void tp, knockback is removed though And yes, I delete the posts when I need to edit them: http://forums.bukkit.org/threads/latest-firefox-breaks-quick-edit.167997/
You sure that you restarted your server? Reload won't work for this, and tp to the void is really weird with this version, I just make sure that the player won't be in the region by placing them on their old location
https://www.dropbox.com/s/0tujj47c9envdrw/NoPVPSpawn.jar Try a complete restart, is always better than reload
Then you should know that reload is bad And I thank you for testing, bit hard with no offline accounts supported anymore...
When did I say i used /reload instead of a server restart? oh wait sorry my english... reload =/= restart .-.
I hate github, I am not able to use it, this is my code for checking the move: Code:java @EventHandlerpublic void onPlayerMove(PlayerMoveEvent event){String name = event.getPlayer().getName();if(hasRunner(name)){if(inArea(event.getTo(),area.getP1(),area.getP2(),false)/*area.isInBounds(event.getTo())*/){//event.getPlayer().sendMessage("You are in the area");if(hasRunner(name)){event.getPlayer().sendMessage(ChatColor.valueOf(config.getString("messagecolor"))+config.getString("message"));event.setCancelled(true);//Vector vel = event.getPlayer().getVelocity();//event.getPlayer().teleport(event.getFrom());//Location newloc = event.getFrom();//event.getPlayer().teleport(event.getFrom(), TeleportCause.PLUGIN);//event.getPlayer().setVelocity(vel.multiply(-5));}}}}
Either I downloaded the wrong file or you uploaded the wrong file. My jar doesn't have your code. Also, the event.setCancelled(true); is buggy as hell.
It would be cool if you extended the tag to 20 seconds, and create the knockback again (or set the location right outside of the no-pvp area). Right now the event.setCancelled(true); is buggy, if the old location is in the area, then you get sent back too. (can reproduce by walking in...)