More command progress aaaaa

This commit is contained in:
Draycia committed 2020-09-25 01:45:35 -07:00
1 parent 74ebee707c
commit e7088c6b56
24 files changed
+267 -283

No files matched your search

@@ -1,7 +1,7 @@
package net.draycia.carbon;
import com.intellectualsites.commands.PaperCommandManager;
import com.intellectualsites.commands.execution.CommandExecutionCoordinator;
import com.intellectualsites.commands.paper.PaperCommandManager;
import net.draycia.carbon.api.CarbonChat;
import net.draycia.carbon.api.CarbonChatProvider;
import net.draycia.carbon.api.adventure.CarbonTranslations;
@@ -178,6 +178,8 @@ public final class CarbonChatBukkit extends JavaPlugin implements CarbonChat {
// TODO: weeeeee fix this
throw new IllegalArgumentException("Non-players not supported yet!");
}
}, user -> {
return Bukkit.getPlayer(user.uuid());
});
CommandRegistrar.registerCommands(manager);
@@ -190,8 +192,8 @@ public final class CarbonChatBukkit extends JavaPlugin implements CarbonChat {
public void reloadConfig() {
super.reloadConfig();
this.loadModConfig();
this.loadLanguage();
this.loadModerationSettings();
this.loadCommandSettings();
}
@@ -208,6 +210,7 @@ public final class CarbonChatBukkit extends JavaPlugin implements CarbonChat {
}
private void loadCommandSettings() {
// TODO: probably redo this from scratch
if (!(new File(this.getDataFolder(), "carbon-commands.yml").exists())) {
this.saveResource("carbon-commands.yml", false);
}
@@ -223,6 +226,10 @@ public final class CarbonChatBukkit extends JavaPlugin implements CarbonChat {
}
}
private void loadModerationSettings() {
}
public void reloadFilters() {
this.filterContext.reloadFilters();
}
@@ -254,11 +261,6 @@ public final class CarbonChatBukkit extends JavaPlugin implements CarbonChat {
return this.permission;
}
@NonNull
public CommandRegistrar commandManager() {
return this.commandRegistrar;
}
@NonNull
public MessageManager messageManager() {
return this.messageManager;
@@ -1,14 +1,3 @@
caps-protection:
enabled: true
minimum-length: 10
percent-caps: 80
block-message: false
shadow-mute-prefix: '[SM] '
# If true, muted users will be unable to use /whisper /msg
mute-stops-whispers: false
filters:
enabled: true
case-sensitive: false
@@ -27,9 +16,3 @@ filters:
# Set to blocked-words: [] if you want to disable the blocked words feature.
blocked-words:
- "pineapple doesn't belong on pizza"
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