more cleanup

This commit is contained in:
Draycia committed 2021-05-07 15:38:54 -07:00
1 parent 6681c22288
commit 12167674e9
8 files changed
+1 -367

No files matched your search

@@ -1,4 +1,4 @@
package net.draycia.carbon.common.utils;
package net.draycia.carbon.bukkit.util;
import net.kyori.adventure.text.format.NamedTextColor;
import net.kyori.adventure.text.format.TextColor;
-23
View File
@@ -1,23 +0,0 @@
description "CarbonChat-Common"
dependencies {
checkstyle("ca.stellardrift:stylecheck:${vers["stylecheck"]}")
api project(":CarbonChat-API")
implementation("io.lettuce:lettuce-core:${vers["lettuce-core"]}") {
exclude group: "io.netty"
}
implementation "org.spongepowered:configurate-hocon:${vers["configurate"]}"
implementation "org.spongepowered:configurate-yaml:${vers["configurate"]}"
implementation "com.proximyst.moonshine:core:${vers["moonshine"]}"
implementation "co.aikar:idb-core:${vers["idb-core"]}"
implementation "com.zaxxer:HikariCP:${vers["hikari"]}"
compileOnly "com.google.code.gson:gson:${vers["gson"]}"
compileOnly "org.slf4j:slf4j-api:${vers["slf4j-api"]}"
}
@@ -1,71 +0,0 @@
channel-options:
global:
# What this channel is identified as. This is used in command arguments (/channel global)
key: global
# The command aliases for this channel (/global /g)
aliases:
- global
- g
# The display name of this channel, supports minimessage. Used in command feedback ("You switched to the Global channel")
name: Global
# This is what the <color> placeholder will typically be replaced with.
# Hex RGB (#B19CD9), named colors (light_purple), legacy (&d), and legacy RGB (&x&b&1&2&c&d&9) are all supported.
# If on a platform that supports PlaceholderAPI, this option will be ran through that as well.
# Note that the <color> placeholder is also used for personal and global user colors.
color: "#FFFFFF"
# The order in which colors are chosen for the <color> tag.
# Options:
# PLAYER: The color the player has set with /setcolor
# CUSTOM: The color the player has set with /setchannelcolor
# CHANNEL: The color the channel has set in its settings
color-priorities:
- PLAYER
- CUSTOM
- CHANNEL
# The contexts for this channel, which can modify the behaviour of channels and how/when players can use them.
contexts: {}
# The name of the format that the plugin will fall back to when it cannot find a matching format for the player's groups.
default-format-name: default
# The formats for this channel. The key is the name of the group as your permissions plugin reports it.
formats:
default: "<color><<displayname><reset><color>> <message>"
# If this channel is the default channel players join in.
# Also used as a fallback in case the player's selected channel cannot be found.
is-default: true
# If the player's chat message starts with whatever this is set to, the player speaks in this channel instead of their selected one
message-prefix: ''
# Used for message formats - custom tags that are replaced in descending order
# For example, in the default config, <group> wil be replaced with <green>%vault_group%
custom-placeholders:
group: "<green>%vault_group%"
prefix: "<gray>[<group><gray>]"
# All options here act like the defaults for all channels.
# Adding any of these options to any channel overrides the relevant defaults.
shared-channel-options:
cannot-ignore-message: "<red>You cannot ignore that channel!"
cannot-use-message: You cannot use that channel!
color: "#FFFFFF"
color-priorities: []
contexts: {}
cross-server: true
default-format-name: default
formats:
default: "<color><<displayname><reset><color>> <message>"
staff: "<#00CED1>[Staff] <color><<displayname><reset><color>> <message>"
group-overrides: []
honors-recipient-list: false
ignorable: true
permission-group-matching: false
primary-group-only: false
should-cancel-chat-event: false
switch-failure-message: "<red>You cannot use channel <channel>!"
switch-message: "<gray>You are now in <color><channel> <gray>chat!"
switch-other-message: "<gray><player> <reset><gray>is now in <color><channel> <gray>chat!"
toggle-off-message: "<gray>You can no longer see <color><channel> <gray>chat!"
toggle-on-message: "<gray>You can now see <color><channel> <gray>chat!"
toggle-other-off-message: "<gray><player> <reset><gray>can no longer see <color><channel>
<gray>chat!"
toggle-other-on-message: "<gray><player> <reset><gray>can now see <color><channel>
<gray>chat!"
@@ -1,97 +0,0 @@
registry:
channel:
aliases:
- ch
- switch
- join
enabled: true
name: channel
channellist:
aliases:
- chlist
enabled: true
name: channellist
chatreload:
aliases:
- creload
- cr
enabled: true
name: chatreload
clearchat:
aliases:
- clear
- cc
enabled: true
name: clearchat
ignore:
aliases:
- block
enabled: true
name: ignore
me:
aliases:
- rp
enabled: true
name: me
message:
aliases:
- msg
- whisper
- w
enabled: true
name: message
msgtoggle:
aliases:
- messagetoggle
enabled: true
name: msgtoggle
mute:
aliases:
- m
enabled: true
name: mute
nickname:
aliases:
- nick
enabled: true
name: nickname
reply:
aliases:
- r
enabled: true
name: reply
setcolor:
aliases:
- setcolor
enabled: true
name: setcolor
shadowmute:
aliases:
- sm
- smute
enabled: true
name: shadowmute
spy:
aliases:
- spych
- spychannel
enabled: true
name: spy
sudochannel:
aliases:
- sch
- sudoch
- schannel
- chsudo
- channelsudo
enabled: true
name: sudochannel
toggle:
aliases:
- togglechannel
- tch
- togglech
- tchannel
- togglec
enabled: true
name: toggle
@@ -1,90 +0,0 @@
# Sets the player's channel to the specified channel when they join
# Set to "" or remove to disable
# Set to DEFAULT to set the player's channel to the default channel on join
# Otherwise, set to a channel to set the player's channel to it on join
# For example, channel-on-join: "global" sets their channel to global on join
channel-on-join: ''
# Plays a sound and highlights the message when someone types your name
channel-pings:
# If player names are case sensitive, if true you must type Player to ping Player, 'player' will not work
case-sensitive: false
# The way players will see the ping
display: "<bold><red><ping></red><bold>"
# Determines if this feature is enabled
enabled: true
# The text that pings must begin with. A prefix of '@' means you have to type '@Player' to ping Player
prefix: '@'
# The sound played to the pinged player
sound:
name: minecraft:entity.experience_orb.pickup
pitch: 1
source: PLAYER
volume: 10
# The list of regex patterns to show items in chat. '\\Q' and '\\E' just denote that the content isn't regex.
item-link-patterns:
- "\\Q[item]\\E"
# Options: NONE, REDIS, BUNGEECORD
# 'BUNGEECORD' - Uses bungee plugin messaging, requires BungeeCord or another proxy which supports it (Velocity, Waterfall!)
# 'REDIS' - Uses redis for cross server syncing, does not require a server proxy
# 'NONE' - Do not sync anything cross server, this is the default
# Note: In order for channels to sync cross server, you'll need to enable is-cross-server for the
# channel as well as this setting.
messaging-type: NONE
# The credentials necessary to connect to your redis server
redis-credentials:
database: 0
host: localhost
password: ''
port: 6379
# Used for <server> placeholder in formats
server-name: Server
# Set this to false to disable warnings and tips when the plugin thinks there may be configuration issues.
show-tips: true
# The prefix shown when spying on a user's message
spy-prefix: "<color>[SPY] "
# The credentials used to connect to your database. Requires storageType=MYSQL
sql-credentials:
database: database
host: host
password: password
port: 3306
username: username
# Options: JSON, MYSQL
storage-type: JSON
# Various options relating to the /whisper command
whisper-options:
cannot-ignore-message: "<red>You cannot ignore that channel!"
cannot-use-message: You cannot use that channel!
console-format: "<gold>[<white><sender> <gray>-> <white><receiver><gold>] <message>"
log-to-console: true
now-whispering-player: "<white>You are now whispering <green><player><white>!"
pings:
enabled: true
sound:
name: minecraft:entity.experience_orb.pickup
pitch: 1
source: PLAYER
volume: 10
receiver-format: "<gold>[<white><sender> <gray>-> <white>Me<gold>] <message>"
receiver-toggled-off: "<red><receiver> <red>has whispers toggled off!"
sender-format: "<gold>[<white>Me <gray>-> <white><receiver><gold>] <message>"
sender-toggled-off: "<red>You have whispers toggled off!"
switch-failure-message: "<red>You cannot use channel <channel>!"
switch-message: "<gray>You are now in <color><channel> <gray>chat!"
switch-other-message: "<gray><player> <reset><gray>is now in <color><channel> <gray>chat!"
toggle-off-message: "<gray>You can no longer see <color><channel> <gray>chat!"
toggle-on-message: "<gray>You can now see <color><channel> <gray>chat!"
toggle-other-off-message: "<gray><player> <reset><gray>can no longer see <color><channel>
<gray>chat!"
toggle-other-on-message: "<gray><player> <reset><gray>can now see <color><channel>
<gray>chat!"
@@ -1,47 +0,0 @@
available-channels-list: "<green>Available Channels:<reset> <list>."
cannot-set-color: "<red>You do not have permission to set a color for this channel!"
cannot-whisper-self: "<yellow>You cannot whisper yourself!"
channel-color-set: "<green>You have set <color><channel> <green>color to <hex>!"
channel-list-separator: ", "
channel-ping-changed: "<green>Channel ping settings changed!"
clear-exempt: "<yellow>You were exempt from the clear due to your permissions!"
clear-notify: "<yellow>Chat has been cleared by <player>."
context-messages:
mcmmo-party-not-in-party: "<red>You are not in a party!"
towny-town-not-in-town: "<red>You are not in a town!"
vault-balance-not-enough: "<red>You do not have enough balance, required: <balance><red>."
vault-cost-not-enough: "<red>You do not have enough balance, cost: <balance><red>."
exception-messages:
channel-not-found: Channel not found!
channel-not-public: Channel is not public!
player-not-found: Player not found!
ignore-exempt: "<red>User <player> <red>is exempt from being ignored!"
ignoring-user: "<green>You are now ignoring <gold><player><reset><green>!"
invalid-color: "<red>The input <input> is not a valid color!"
mute-exempt: "<red>Player <player> is exempt from being muted!"
nickname-reset: "<green>Your nickname was reset!"
nickname-set: "<green>Your nickname was set to <nickname><reset><green>!"
no-longer-muted: "<yellow>Player <player> is no longer muted!"
no-longer-shadow-muted: "<yellow>Player <player> is no longer shadow muted!"
no-reply-target: "<red>You have no one to reply to!"
not-ignoring-user: "<green>You are no longer ignoring <gold><player><reset><green>!"
now-muted: "<yellow>Player <player> is now muted!"
now-shadow-muted: "<yellow>Player <player> is now shadow muted!"
other-nickname-reset: "<green><user><reset>'s nickname was reset!"
other-nickname-set: "<green><user><reset>''s nickname was set to <nickname><green>!"
other-player-offline: "<red>That player is offline!"
reloaded: "<yellow>Chat config has been reloaded!"
reply-message-blank: "<red>Your reply message was blank!"
roleplay-format: "<italic><dark_purple>*<displayname> <reset><message>*</dark_purple></italic>"
shadow-mute-exempt: "<red>Player <player> is exempt from being shadow muted!"
spy-everything-off: "<gray>All spying toggled off!"
spy-everything-on: "<gray>All spying toggled on!"
spy-toggled-off: "<gray>You are no longer spying on <color><channel> <gray>chat!"
spy-toggled-on: "<gray>You are now spying on <color><channel> <gray>chat!"
spy-whispers: "<yellow>Spy [<gray><sender><reset> <gold>-> <gray><target><reset><yellow>]
<message>"
spy-whispers-off: "<gray>You are no longer spying on whispers!"
spy-whispers-on: "<gray>You are now spying on whispers!"
unavailable-channels-list: "<red>Unavailable Channels:<reset> <list>."
user-must-be-online: "<red><player> must be online!"
whisper-ping-changed: "<green>Whisper ping settings changed!"
@@ -1,37 +0,0 @@
caps-protection:
# If true, stops message from sending. If false, simply changes the message to lowercase
block-message: false
# If caps protection is enabled
enabled: true
# The minimum message length for caps protection to activate
minimum-length: 10
# The amount of letters in the message for it to trigger the protection
percent-caps: 0.80
clear-chat:
# The message sent to clear chat, you probably want to leave this blank
message: ''
# How many messages will be sent in order to clear chat
message-count: 100
filters:
# Anything in blocked-words will prevent the message from being sent at all.
# Set to blocked-patterns: [] if you want to disable the blocked words feature.
blocked-patterns:
- pineapple doesn't belong on pizza
# If filtering / replacements is enabled
enabled: true
# Regex based filtering
# The keys ("****" for example) are what the text is replaced with.
# The strings in the lists ("lag" etc) are what's replaced.
# Set to filters: {} if you want to disable the filter feature.
# Set the key to "_" for the replacement to be blank (remove the filtered pattern).
replacements:
"****":
- la[g]+
# If true, muted users will be unable to use /whisper /msg
mute-stops-whispers: true
# The text that's prepended to someone else's shadowmuted messages.
shadow-mute-prefix: "[SM] "
-1
View File
@@ -1,4 +1,3 @@
include("CarbonChat-API")
include("CarbonChat-Common")
include("CarbonChat-Bukkit")