MinecraftCitiesNetwork / Bugs

0 stars 0 forks source link

Group perms-reveille-fly inherits ranger permissions #10

Open Technofied opened 4 days ago

Technofied commented 4 days ago

See title.

There are a few ways we can give fly without ranger permissions.

We can:

  1. Give the perms-reveille-fly group a separate command
  2. Rework /fly to broadcast different messages depending on who is doing /fly (recommended)
    • This is a huge change, it'd affect Staff, but it's the long term solution that I really would like.
    • Would be using MyCommand overlays.
adamloeffen commented 3 days ago

Number two might cause an issue if a player belongs to more then one group that has fly permissions. For example, I'm a ranger and staff, so when I do /fly, which of these two broadcast messages would show up? Or do you mean like /fly <ranger/staff/reveille-fly/etc> <reason>

Technofied commented 3 days ago

Number two might cause an issue if a player belongs to more then one group that has fly permissions. For example, I'm a ranger and staff, so when I do /fly, which of these two broadcast messages would show up? Or do you mean like /fly <ranger/staff/reveille-fly/etc> <reason>

We can get around that issue by using scripts, so we can have multiple overlays that use MyCommand's Scripting. i.e.

- "$Script$%if%%player_haspermission<permission%" - \

adamloeffen commented 2 days ago

Changed the following:

Footnotes,

adamloeffen commented 12 hours ago

So, the server was restarted without reviewing the changes and it doesn't work 💀 back to the drawing boards... interesting, unintended side effect was that everyone was able to see the "player is flying for reason" message which was one of the issues this bug was opened in the first place. Reverted for now pending restart and I'll try again tomorrow.

taylorhaight commented 12 hours ago

Number two might cause an issue if a player belongs to more then one group that has fly permissions. For example, I'm a ranger and staff, so when I do /fly, which of these two broadcast messages would show up? Or do you mean like /fly <ranger/staff/reveille-fly/etc> <reason>

We can get around that issue by using scripts, so we can have multiple overlays that use MyCommand's Scripting. i.e.

  • "$Script$%if%%player_haspermission<permission%" -

What if we're part of multiple? Like with me, it ran it for staff, DOI and DPA (idk why DPA) and it enabled, disabled, enabled, and showed global.