WorldGuard

WorldGuard

8M Downloads

[1.9] Chorus Fruit flag

LadyCailinBot opened this issue ยท 19 comments

commented

WORLDGUARD-3646 - Reported by Sikatsu

I would like to see a flag like the enderpearl one, for the Chorus Fruit. They currently can teleport in bases/buildings and stuff in the spawn where they should not be.

commented

Comment by Noble

Yeah this needs fixed. Already have kids using them to exit PvP during fights...

commented

Comment by PseudoKnight

Ben, that sounds like a PvP design problem. Either it's vanilla-style PvP where that's not an issue or it's not vanilla-style and you can restrict Chorus Fruit usage.

commented

Comment by Noble

Pseudo, I mean if a player is in a formal PvP arena with all the regions and flags set, and wants out without going through the main door they can stand near the PvP wall inside, eat the fruit, then it can tp them outside the arena, where they can no longer be harmed. Which is typically cheating for PvP gameplay. All that is asked here is that there is a flag to deny chorus fruits tp effect as it creates loopholes for players to abuse.

commented

Comment by Anthony

I really want this for similar reasons. People are using them in spawn to teleport to restricted areas, and I don't like it. I will really be looking forward to this flag being implemented.

commented

Comment by Sikatsu

I have the exact same issue as AntZaro with restricted areas in my spawn.

commented

Comment by wizjany

you can already just set entry deny for restricted areas, this shouldn't be necessary for that specific usage. movement is completely client side, so even if they can't teleport in via natural means a modified client can just walk in anyway.

commented

Comment by Noble

Im trying to figure out how the build perms even work. I gave myself the perm worldguard.build.block.place.dirt after turning build-permission-nodes: enable: true

And now it denies all block place and break even placing dirt. Where did I go wrong? I was going to figure out how it works then try to deny using chorus fruit somehow with it in just my spawn world.

commented

Comment by Noble

I just ended up doing this in my spawn world blacklist

[chorus_Fruit]
on-use=deny

Awesome problem solved for me.
I wish I knew about this blacklist feature before, it can do a TON of things! Awesome!

commented

Comment by Noble

Would it be possible to deny the consumption of chorus fruits in an entire world for a temporary solution?

commented

Comment by Anthony

I don't have one or two restricted squares in spawn. I have closed off hallways, rooms, underground areas, etc. all over spawn that help me plan things and coordinate staff. I don't want random players finding these places using chorus fruit. It would be so easy to just add a flag for chorus fruit to the spawn region and be done with the issue. As far as clients go, those are not allowed on my server, and I doubt many of the players would know how to do that anyway.

commented

Comment by wizjany

you can try with the blacklist in theory, that should be able to globally deny using them.

commented

Comment by PseudoKnight

If players are cheating out of a duel, then they should be appropriately dealt with as a cheater. However, if you want to do this systematically, you could make it undesirable to risk such a teleportation by placing traps below the duel arena (you might actually find this an enjoyable solution). Otherwise, just restrict chorus fruit usage if you have a ton of places you don't want people to be able to go.

I designed around these types of problems by not putting my formal PVP arenas inside a survival world or trying to restrict movement there. I did that briefly in 2012 before I realized how much of a problem it was.

commented

Comment by Noble

From a coding standpoint is it possible to deny consumption of a chorus fruit if your in a worldgaurd region with a new flag? I'm not sure how a dev would even go about tackling such an issue.

commented

Comment by PseudoKnight

There's a consume event, which should trigger here. In WorldGuard this is abstracted to a UseItemEvent. This, in turn, is passed to build permission, blocked-potion, and blacklist listeners. So you should be able to block it with blacklist or build permissions. I recommend blacklist for this case.

commented

Comment by Sikatsu

I have a lot of places they should not be. Creating a region for every one to deny acces for chorus fruit? What's the problem by adding a flag for it like enderpearl actually? I don't seem to get it.

And how can I otherwise blacklist chorus fruit consumption PseudoKnight?

commented

Comment by Anthony

I'll probably blacklist it for now. However, I hate to completely disable something that I just don't want working in my one spawn area. If I have to, I have to, but I would much rather prefer there be a flag (like the ender pearl one).

commented

Comment by PseudoKnight

I wish some of the flags would just accept string lists like deny-spawn and blocked-cmds. It'd be cool if instead of having a flag for enderpearls and a flag for chorus fruit, we could have a flag that cancel teleports if the cause is in the list. Perhaps the reason so few of those flags exist is performance.

commented

Comment by Noble

Which plugin or where is this blacklist feature? Part of worldgaurd? Can it be done per world?