AlmuraDev / Almura

The official mod of the Almura Client and Server.
http://www.almuramc.com
Other
16 stars 10 forks source link

Prevents Non Admins From opening axs screens for other players #546

Closed Tharow closed 1 year ago

Tharow commented 2 years ago

This Fix Prevents Non Admins From opening the exchange & store management and normal screens for another play from the commands

WARNING This change hasn't been tested Because I'm making these changes in Github's visual studio online editor thing

Tharow commented 2 years ago

Switched use of player argument permission to .other from .admin to match how other plugins handle this. New permission allows the player argument to be used and cause that player to open that screen. For Example for the store npc who needs to open the exchange for the player in front of them ex. /am store open \@s almura.store.test -- needs almura.store.open.other. But we don't want players to be able to open the exchange for another player on the server. so they can only use /am store open almura.store.test to open it for them selves ex. /am store open almura.store.test -- needs only almura.store.open.

the following perms were added almura.store.manage.other almura.store.open.other almura.exchange.manage.other almura.exchange.open.other