From 12167674e9cf47e7ec8d4aabcf45546da2192d6d Mon Sep 17 00:00:00 2001 From: Draycia Date: Fri, 7 May 2021 15:38:54 -0700 Subject: [PATCH] more cleanup --- .../carbon/bukkit/util}/ColorUtils.java | 2 +- CarbonChat-Common/build.gradle.kts | 23 ----- .../src/main/resources/channels.yml | 71 -------------- .../src/main/resources/commands.yml | 97 ------------------- .../src/main/resources/config.yml | 90 ----------------- .../src/main/resources/language.yml | 47 --------- .../src/main/resources/moderation.yml | 37 ------- settings.gradle.kts | 1 - 8 files changed, 1 insertion(+), 367 deletions(-) rename {CarbonChat-Common/src/main/java/net/draycia/carbon/common/utils => CarbonChat-Bukkit/src/main/java/net/draycia/carbon/bukkit/util}/ColorUtils.java (98%) delete mode 100644 CarbonChat-Common/build.gradle.kts delete mode 100644 CarbonChat-Common/src/main/resources/channels.yml delete mode 100644 CarbonChat-Common/src/main/resources/commands.yml delete mode 100644 CarbonChat-Common/src/main/resources/config.yml delete mode 100644 CarbonChat-Common/src/main/resources/language.yml delete mode 100644 CarbonChat-Common/src/main/resources/moderation.yml diff --git a/CarbonChat-Common/src/main/java/net/draycia/carbon/common/utils/ColorUtils.java b/CarbonChat-Bukkit/src/main/java/net/draycia/carbon/bukkit/util/ColorUtils.java similarity index 98% rename from CarbonChat-Common/src/main/java/net/draycia/carbon/common/utils/ColorUtils.java rename to CarbonChat-Bukkit/src/main/java/net/draycia/carbon/bukkit/util/ColorUtils.java index 74e93505..c47f35b4 100644 --- a/CarbonChat-Common/src/main/java/net/draycia/carbon/common/utils/ColorUtils.java +++ b/CarbonChat-Bukkit/src/main/java/net/draycia/carbon/bukkit/util/ColorUtils.java @@ -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; diff --git a/CarbonChat-Common/build.gradle.kts b/CarbonChat-Common/build.gradle.kts deleted file mode 100644 index 21ae5d78..00000000 --- a/CarbonChat-Common/build.gradle.kts +++ /dev/null @@ -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"]}" -} diff --git a/CarbonChat-Common/src/main/resources/channels.yml b/CarbonChat-Common/src/main/resources/channels.yml deleted file mode 100644 index 7211accd..00000000 --- a/CarbonChat-Common/src/main/resources/channels.yml +++ /dev/null @@ -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 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 placeholder is also used for personal and global user colors. - color: "#FFFFFF" - # The order in which colors are chosen for the 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: "<> " - # 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, wil be replaced with %vault_group% -custom-placeholders: - group: "%vault_group%" - prefix: "[]" - -# 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: "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: "<> " - staff: "<#00CED1>[Staff] <> " - group-overrides: [] - honors-recipient-list: false - ignorable: true - permission-group-matching: false - primary-group-only: false - should-cancel-chat-event: false - switch-failure-message: "You cannot use channel !" - switch-message: "You are now in chat!" - switch-other-message: " is now in chat!" - toggle-off-message: "You can no longer see chat!" - toggle-on-message: "You can now see chat!" - toggle-other-off-message: " can no longer see - chat!" - toggle-other-on-message: " can now see - chat!" diff --git a/CarbonChat-Common/src/main/resources/commands.yml b/CarbonChat-Common/src/main/resources/commands.yml deleted file mode 100644 index d961830f..00000000 --- a/CarbonChat-Common/src/main/resources/commands.yml +++ /dev/null @@ -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 diff --git a/CarbonChat-Common/src/main/resources/config.yml b/CarbonChat-Common/src/main/resources/config.yml deleted file mode 100644 index 319ab7d9..00000000 --- a/CarbonChat-Common/src/main/resources/config.yml +++ /dev/null @@ -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: "" - # 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 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: "[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: "You cannot ignore that channel!" - cannot-use-message: You cannot use that channel! - console-format: "[ -> ] " - log-to-console: true - now-whispering-player: "You are now whispering !" - pings: - enabled: true - sound: - name: minecraft:entity.experience_orb.pickup - pitch: 1 - source: PLAYER - volume: 10 - receiver-format: "[ -> Me] " - receiver-toggled-off: " has whispers toggled off!" - sender-format: "[Me -> ] " - sender-toggled-off: "You have whispers toggled off!" - switch-failure-message: "You cannot use channel !" - switch-message: "You are now in chat!" - switch-other-message: " is now in chat!" - toggle-off-message: "You can no longer see chat!" - toggle-on-message: "You can now see chat!" - toggle-other-off-message: " can no longer see - chat!" - toggle-other-on-message: " can now see - chat!" diff --git a/CarbonChat-Common/src/main/resources/language.yml b/CarbonChat-Common/src/main/resources/language.yml deleted file mode 100644 index 0db206c9..00000000 --- a/CarbonChat-Common/src/main/resources/language.yml +++ /dev/null @@ -1,47 +0,0 @@ -available-channels-list: "Available Channels: ." -cannot-set-color: "You do not have permission to set a color for this channel!" -cannot-whisper-self: "You cannot whisper yourself!" -channel-color-set: "You have set color to !" -channel-list-separator: ", " -channel-ping-changed: "Channel ping settings changed!" -clear-exempt: "You were exempt from the clear due to your permissions!" -clear-notify: "Chat has been cleared by ." -context-messages: - mcmmo-party-not-in-party: "You are not in a party!" - towny-town-not-in-town: "You are not in a town!" - vault-balance-not-enough: "You do not have enough balance, required: ." - vault-cost-not-enough: "You do not have enough balance, cost: ." -exception-messages: - channel-not-found: Channel not found! - channel-not-public: Channel is not public! - player-not-found: Player not found! -ignore-exempt: "User is exempt from being ignored!" -ignoring-user: "You are now ignoring !" -invalid-color: "The input is not a valid color!" -mute-exempt: "Player is exempt from being muted!" -nickname-reset: "Your nickname was reset!" -nickname-set: "Your nickname was set to !" -no-longer-muted: "Player is no longer muted!" -no-longer-shadow-muted: "Player is no longer shadow muted!" -no-reply-target: "You have no one to reply to!" -not-ignoring-user: "You are no longer ignoring !" -now-muted: "Player is now muted!" -now-shadow-muted: "Player is now shadow muted!" -other-nickname-reset: "'s nickname was reset!" -other-nickname-set: "''s nickname was set to !" -other-player-offline: "That player is offline!" -reloaded: "Chat config has been reloaded!" -reply-message-blank: "Your reply message was blank!" -roleplay-format: "* *" -shadow-mute-exempt: "Player is exempt from being shadow muted!" -spy-everything-off: "All spying toggled off!" -spy-everything-on: "All spying toggled on!" -spy-toggled-off: "You are no longer spying on chat!" -spy-toggled-on: "You are now spying on chat!" -spy-whispers: "Spy [ -> ] - " -spy-whispers-off: "You are no longer spying on whispers!" -spy-whispers-on: "You are now spying on whispers!" -unavailable-channels-list: "Unavailable Channels: ." -user-must-be-online: " must be online!" -whisper-ping-changed: "Whisper ping settings changed!" diff --git a/CarbonChat-Common/src/main/resources/moderation.yml b/CarbonChat-Common/src/main/resources/moderation.yml deleted file mode 100644 index d5c7d27e..00000000 --- a/CarbonChat-Common/src/main/resources/moderation.yml +++ /dev/null @@ -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] " diff --git a/settings.gradle.kts b/settings.gradle.kts index d26a9165..cc39e5de 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1,4 +1,3 @@ include("CarbonChat-API") -include("CarbonChat-Common") include("CarbonChat-Bukkit")