Implements world-specific permissions

Accounts for world specifiers where necessary
Makes the reload command work?
Stores the world as part of temporary permissions
Fixes sign break protection
Allows sign interaction with both right- and left-click
Fixes temporary permissions sometimes colliding
Cleans the main class a bit
Adds a "star" permission
Adds missing check for the use permission
This commit is contained in:
2022-01-15 14:49:46 +01:00
parent 112fd0d53d
commit 67e967a264
11 changed files with 243 additions and 99 deletions

View File

@ -18,6 +18,12 @@ commands:
description: Used for all permission sign commands
usage: /<command> <about/create/cancel/reload> - Used for all permission sign commands
permissions:
permissionsigns.*:
description: Grants all PermissionSigns permissions
default: false
children:
permissionsigns.use: true
permissionsigns.admin: true
permissionsigns.use:
description: Allows players to use the permission signs
default: true

View File

@ -16,4 +16,6 @@ en:
ALREADY_HAS_PERMISSIONS: "&7You already have all permissions given by this permission sign"
PERMISSIONS_GRANTED: "&7You have been granted the following permission nodes: {permissions} for {time}"
PERMISSION_SIGN_CREATED: "&7Permission sign successfully created!"
PERMISSION_WORLD_INVALID: "&7The world {world} is not a valid world name on this server!"
INTERACT_PERMISSION_MISSING: "&7You do not have the necessary permissions required to use permission signs"
CREATION_REQUEST_CANCELLED: "&7Your last permission sign creation request has been cancelled"