Complete config redesign and feature additions
🎨 Config Redesign: - Unified style for all config files with beautiful headers - Consistent color scheme using gradients throughout - Improved readability with proper sections and comments - Fixed color formatting issues ✨ New Features: - SkinsRestorer integration for custom skins support - Head emoji system (:head_nickname: and @head nickname) - Clear chat message configuration command (/clearchatconfig) - Enhanced custom commands with more examples - Improved emoji system with 200+ emojis 📝 Documentation: - Completely rewritten README.md with modern styling - Added comprehensive feature descriptions - Detailed command and permission tables - Configuration examples and usage guides - Professional formatting and structure 🔧 Technical Improvements: - Fixed compilation errors - Improved code organization - Better error handling - Enhanced compatibility All configs now follow consistent MiniMessage gradient styling!
This commit is contained in:
parent
e616667c78
commit
01d8c3a2e7
34 changed files with 2650 additions and 1563 deletions
|
|
@ -80,6 +80,17 @@ public class ConfigManager {
|
|||
config.set("automessages.random", false);
|
||||
}
|
||||
|
||||
if (!config.contains("clearchat.message.enabled")) {
|
||||
config.set("clearchat.message.enabled", true);
|
||||
config.set("clearchat.message.text", "CADFЧат очищен администратором {player}");
|
||||
}
|
||||
|
||||
if (!config.contains("head-emoji.enabled")) {
|
||||
config.set("head-emoji.enabled", true);
|
||||
config.set("head-emoji.allow-player-heads", true);
|
||||
config.set("head-emoji.max-heads-per-message", 3);
|
||||
}
|
||||
|
||||
if (!config.contains("lopreff.enabled")) {
|
||||
config.set("lopreff.enabled", true);
|
||||
config.set("lopreff.use-gradient-name", true);
|
||||
|
|
@ -223,6 +234,25 @@ public class ConfigManager {
|
|||
public String getFilterReplacement() {
|
||||
return config.getString("filter.replacement", "***");
|
||||
}
|
||||
|
||||
// Clear chat
|
||||
public boolean isClearChatMessageEnabled() {
|
||||
return config.getBoolean("clearchat.message.enabled", true);
|
||||
}
|
||||
|
||||
public void setClearChatMessageEnabled(boolean enabled) {
|
||||
config.set("clearchat.message.enabled", enabled);
|
||||
plugin.saveConfig();
|
||||
}
|
||||
|
||||
public String getClearChatMessage() {
|
||||
return config.getString("clearchat.message.text", "CADFЧат очищен администратором {player}");
|
||||
}
|
||||
|
||||
public void setClearChatMessage(String message) {
|
||||
config.set("clearchat.message.text", message);
|
||||
plugin.saveConfig();
|
||||
}
|
||||
|
||||
// Anti-spam
|
||||
public boolean isAntiSpamEnabled() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue