-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert commands to Brigadier commands
- Loading branch information
Showing
48 changed files
with
591 additions
and
801 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 29 additions & 3 deletions
32
pcbridge-paper/src/main/kotlin/com/projectcitybuild/pcbridge/paper/PermissionNode.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,33 @@ | ||
package com.projectcitybuild.pcbridge.paper | ||
|
||
enum class PermissionNode(val node: String) { | ||
BUILD_TELEPORT("pcbridge.builds.teleport"), | ||
BUILD_MANAGE("pcbridge.builds.manage"), | ||
BUILD_VOTE("pcbridge.builds.vote"), | ||
// Can teleport to a build | ||
BUILDS_TELEPORT("pcbridge.builds.teleport"), | ||
|
||
// Can create, edit or delete a build | ||
BUILDS_MANAGE("pcbridge.builds.manage"), | ||
|
||
// Can vote for a build | ||
BUILDS_VOTE("pcbridge.builds.vote"), | ||
|
||
// Can toggle nightvision mode | ||
BUILD_NIGHT_VISION("pcbridge.build.nightvision"), | ||
|
||
// Can rename an item via a command | ||
BUILD_ITEM_RENAME("pcbridge.items.rename"), | ||
|
||
// Can get an invisible item frame via a command | ||
BUILD_INVIS_FRAME("pcbridge.build.invisframe"), | ||
|
||
// Can send and receive staff messages | ||
STAFF_CHANNEL("pcbridge.chat.staff_channel"), | ||
|
||
// Can force sync another player (in addition to yourself) | ||
PLAYER_SYNC_OTHER("pcbridge.sync.other"), | ||
|
||
// Can force reload the remote config | ||
REMOTE_CONFIG_RELOAD("pcbridge.config.reload"), | ||
|
||
// Can teleport to a warp | ||
WARP_TELEPORT("pcbridge.warp.teleport"), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...cture/events/PlayerStateDestroyedEvent.kt → ...cture/events/PlayerStateDestroyedEvent.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...tecture/events/PlayerStateUpdatedEvent.kt → ...tecture/events/PlayerStateUpdatedEvent.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...chitecture/listeners/ExceptionListener.kt → ...chitecture/listeners/ExceptionListener.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...itecture/listeners/PlayerStateListener.kt → ...itecture/listeners/PlayerStateListener.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...re/listeners/PlayerSyncRequestListener.kt → ...re/listeners/PlayerSyncRequestListener.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...idge/paper/core/libs/store/ServerState.kt → ...e/paper/architecture/store/ServerState.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...d/pcbridge/paper/core/libs/store/Store.kt → ...cbridge/paper/architecture/store/Store.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.