mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 22:15:45 +00:00
Move permissions to common yml
This commit is contained in:
5 files changed
+95
-98
No files matched your search
+7
-98
@@ -2,6 +2,7 @@ plugins {
|
||||
id("carbon.shadow-platform")
|
||||
id("net.minecrell.plugin-yml.bukkit")
|
||||
id("xyz.jpenilla.run-paper")
|
||||
id("carbon.permissions")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@@ -47,103 +48,11 @@ bukkit {
|
||||
depend = listOf("LuckPerms")
|
||||
softDepend = listOf("PlaceholderAPI", "EssentialsDiscord", "DiscordSRV")
|
||||
website = GITHUB_REPO_URL
|
||||
permissions {
|
||||
register("carbon.clearchat") {
|
||||
description = "Clears the chat for all players except those with carbon.chearchat.exempt."
|
||||
childrenMap = mapOf("carbon.clearchat.clear" to true)
|
||||
}
|
||||
register("carbon.clearchat.clear") {
|
||||
description = "Clears the chat for all players except those with carbon.chearchat.exempt."
|
||||
}
|
||||
register("carbon.clearchat.exempt") {
|
||||
description = "Exempts the player from having their chat cleared when /clearchat is executed."
|
||||
}
|
||||
register("carbon.debug") {
|
||||
description = "Allows the sender to quickly check what carbon think's the player's primary and non-primary groups are."
|
||||
}
|
||||
register("carbon.help") {
|
||||
description = "Shows Carbon's help menu, detailing each part of Carbon's commands."
|
||||
}
|
||||
register("carbon.hideidentity") {
|
||||
description = "Prevents messages from the player from being blocked clientside."
|
||||
}
|
||||
register("carbon.ignore") {
|
||||
description = "Ignores the player, hiding messages they send in chat and in whispers."
|
||||
}
|
||||
register("carbon.ignore.exempt") {
|
||||
description = "Prevents the player from being ignored."
|
||||
}
|
||||
register("carbon.ignore.unignore") {
|
||||
description = "Removes the player from the sender's ignore list."
|
||||
}
|
||||
register("carbon.itemlink") {
|
||||
description = "Shows the player's held or equipped item in chat."
|
||||
}
|
||||
register("carbon.mute") {
|
||||
description = "Mutes the player, preventing them from sending messages or whispers."
|
||||
}
|
||||
register("carbon.mute.exempt") {
|
||||
description = "Prevents the player from being muted."
|
||||
}
|
||||
register("carbon.mute.info") {
|
||||
description = "Shows if the player is muted or now."
|
||||
}
|
||||
register("carbon.mute.notify") {
|
||||
description = "Notifies the player when someone else has been mute."
|
||||
}
|
||||
register("carbon.mute.unmute") {
|
||||
description = "Unmutes the player, allowing them to use chat and send whispers."
|
||||
}
|
||||
register("carbon.nickname") {
|
||||
description = "Checks your nickname."
|
||||
}
|
||||
register("carbon.nickname.set") {
|
||||
description = "Set or remove your nickname."
|
||||
}
|
||||
register("carbon.nickname.others") {
|
||||
description = "Checks other player's nicknames."
|
||||
}
|
||||
register("carbon.nickname.others.set") {
|
||||
description = "Set or remove other player's nicknames."
|
||||
}
|
||||
register("carbon.nickname.style.color") {
|
||||
description = "Allows the use of colors in nicknames."
|
||||
}
|
||||
register("carbon.nickname.style.gradient") {
|
||||
description = "Allows the use of gradients in nicknames."
|
||||
}
|
||||
register("carbon.nickname.style.decorations") {
|
||||
description = "Allows the use of decorations in nicknames."
|
||||
}
|
||||
register("carbon.nickname.style.hoverEvent") {
|
||||
description = "Allows the use of hover events in nicknames."
|
||||
}
|
||||
register("carbon.nickname.style.clickEvent") {
|
||||
description = "Allows the use of click events in nicknames."
|
||||
}
|
||||
register("carbon.nickname.style.insertion") {
|
||||
description = "Allows the use of insertions in nicknames."
|
||||
}
|
||||
register("carbon.nickname.style.rainbow") {
|
||||
description = "Allows the use of the rainbow tag in nicknames."
|
||||
}
|
||||
register("carbon.nickname.style.reset") {
|
||||
description = "Allows the use of the reset tag in nicknames."
|
||||
}
|
||||
register("carbon.reload") {
|
||||
description = "Reloads Carbon's config, channel settings, and translations."
|
||||
}
|
||||
register("carbon.whisper") {
|
||||
description = "Sends private messages to other players."
|
||||
}
|
||||
register("carbon.whisper.continue") {
|
||||
description = "Sends a message to the last player you whispered."
|
||||
}
|
||||
register("carbon.whisper.reply") {
|
||||
description = "Sends a message to the last player who messaged you."
|
||||
}
|
||||
register("carbon.whisper.vanished") {
|
||||
description = "Allows the player to send messages to vanished players."
|
||||
}
|
||||
}
|
||||
|
||||
carbonPermission.permissions.get().forEach {
|
||||
bukkit.permissions.register(it.string) {
|
||||
description = it.description
|
||||
childrenMap = it.children
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user