Hey guys, I was on <Removed advertising - Necrodoom> and I saw that they had blue carpet and red carpet to define the pvp regions Anyone know of any plugins like this? if there isnt, can anyone make a plugin like this? <3
hey i have a tip use : worldguard with worldguard you can make regions and make their pvp ore not you do it like this: Install worldedit and worldguard (worldedit is needed) make with a wooden axe a selection and type /rg define <regionname> then type /rg flag <regionname> pvp deny/allow i hope it helps you ( : ow sry i fergot when you make your selection then type //expand vert and then /rg define EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Yeah but... how can I make it in lets say a circular area? lets say I made a place with //hcyl <block> <radius> how can I make that cyl area a region, not a square...
Unfortunately you can't, you'd have to individually select lines of the circle and turn them into regions and disable pvp. EpicZones did allow you to do this but it hasn't been updated since 1.4.6.
well as far as i know you only can make a region selection with straight lines so you just download worldedit : http://dev.bukkit.org/bukkit-plugins/worldedit/ worldguard : http://dev.bukkit.org/bukkit-plugins/worldguard/ once you dragd the .jar files in your plugins folder go into your server. than pick a wooden axe out of your inventory and make a region selection p01 : right click p02 : left click then type //expand vert then type /rg define <regionname> as last type /rg flag <regionname> pvp deny/allow
I think you can make spheral selections with WorldEdit and then protect them with WorldGuard having red wool as an effect , but it could be a custom plugin too...
well, it will be a pain in the ass to set it up, on my server we have cirular areas as you see in the pic -.-
MCTutorialist What on earth r u pll talking about, it one of the simplest things to do in the world Code:java public void PlayerMove(PlayerMoveEvent e){Location spawn = e.getPlayer().getWorld().getSpawnLocation();List<Entity> ent = e.getPlayer().getWorld().getEntities();for(Entity entity : ent){ if(entity.getLocation().distance(spawn) <= 10D){ if(entity instanceof Player){ Player p = (Player) entity;//do something to the player here This code here check if a player is within 10 blocks of spawn, if they r then it does somthing to them
@AndyMcB1 How would You do that, i never really bothered with memory usage. seeings as i only coded for my own server network. and memory was never an issue there each server had 8gbs dedicated to it
Ok I am done trying to help you. If you are going to be THAT GOD DAMN lazy, then I shall no longer help you. Good luck
Da_Pepsi_Monster why are you so mad on all the people? he said circles, then he wants circles. not your dumb answers of using worldedit or worldguard. they just dont have that feature! by the way, its not all the others that is lazy, its your suggestions. good luck with life! Herman - SnapyT
Uhm.... why is everyone saying you can't make circles with world guard?? //sel poly nrs23 Why are you iterating over entities in a player move event? Imagine it on a hundred player server, or when the player is by xp orbs. Also, player move event isn't just moving, but also rotating (change in pitch/yaw). On a medium sized server you'd be iterating over like 500 entities every single tick, not a good idea.
SNAPY AND WHAT IS YOUR BEST IDEA i mean there is right now no other plugin where you can do what he wants what he maybe can de WITH WORLDEDIT is maken straight lines in the shape of a round
MCTutorialist no problem :3 if you go on some factions pvp servers, yoy can see that they have claimed a circled spawn. i have been trying to find out how to do this for a long time. the yoy was meant to be "you" by the way :3 and how exactly does this "//sel poly" work with making a circle region?
I expected you to read the documentation first... but what it sounds like. It creates a polygonal selection by selecting x amount of corners.
Get the player inital location, store it in a HashMap. Then on PlayerMoveEvent check if the BLOCK location is different, and then run the normal code. This way each time they move but are still in the same block it i only running 1 if statement as opposed to two. That being said, when they do move a block it's running 3 if's. If you have 1 player, then sure - not much difference. However it's good practice to think like this because if you have lots of players (not really suitable in this scenario)
SnapyT After some looking into WorldEdit and WorldGuard, we can make circular regions by: //sel cyl or //sel ellipsoid but... I dont know how to turn it into a region, it gives an error when I do /rg define <name> Hope this helped
MCTutorialist can you paste a secreenshot of your console? (the error) it should be just like normal.
In WorldGuard we cant make cylindrical regions only cuboid or poly regions, thats what the problem is, I'm going to try and recommend that they add cylindrical regions to WorldGuard
I co-run that server and it is simply worldguard //sel poly, left click to set starting position and right click to set all the others (adds one each time)