Add permission check for spawn protection#10335
Conversation
5fd843a to
3ac6c93
Compare
|
What is the gain of this over just disabling spawn protection and e.g. locking it down with world guard? |
|
To keep the vanilla style and not be dependent on 2 plugins. |
|
Not fond of the perm node, we're not bukkit, it's it's a bypass, not an ignore I really dislike the notion of having a 1 liner patch for based around mechanism we generally do not encourage people to use, bleh |
Update paper comment for references
3ac6c93 to
5424ec2
Compare
|
Yea I mean "vanilla does not have that ability" I guess is true, but this isn't vanilla and spawn protection is far from a best practice to use when trying to limit build access. It doesn't have a flag system like world guard nor can you deploy it in different regions. It is also easily bypassed by pistons, had weird quirks like not being active without an operator etc. |
|
The goal is not to be the "best solution", but simply to give players the opportunity to build on the spawn without having to come straight to them with operators. |
|
I would like to point out that either nobody is allowed to have OP or the spawn protection must be set to 0. There is no in-between. This would be a way to allow this intermediate path and keep the server vanilla as much as possible. Because WorldEdit/FAWE and WorldGuard on top only to allow people to build on spawn via "flags". I think that's excessive from my admin and dev point of view |
|
I mean, this way you are adding a permissions plugin into the mix. I digress however, while I personally don't care for this patch, other members might so we can leave this up for discussion. |
|
With a heavy heart, I'll close this PR after some more discussion. If you want builders to be the only ones building and changing your spawn, you'll need a proper plugin like WG anyway. This patch makes sense in forks that care for such a niche usecase on their specific server setup, but on the broad spectrum that is paper I don't think it is worth adding 👍 |
|
Thanks for the feedback. I will hold it in my own fork |
Problem:
If you want to allow builders or other members to build at the spawn but don't want to give them an operator. So Vanilla does not currently offer any possibility.
Solution:
Without doing anything hacky, the PR adds a configuration option to Misc on Paper which overrides this problem in combination with a permission.
Test possibility:
Here is the JoinEvent test how to test this: