mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
GRAAAAAAAAAAAAAAAAADLE
This commit is contained in:
1 parent
40777efc9e
commit
4bcf9a5605
57 files changed
+73
-40
No files matched your search
@@ -0,0 +1,29 @@
|
||||
package net.draycia.carbon.commands;
|
||||
|
||||
import co.aikar.commands.BaseCommand;
|
||||
import co.aikar.commands.annotation.CommandAlias;
|
||||
import co.aikar.commands.annotation.CommandPermission;
|
||||
import co.aikar.commands.annotation.Default;
|
||||
import co.aikar.commands.annotation.Dependency;
|
||||
import net.draycia.carbon.CarbonChat;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
@CommandAlias("chatreload|creload")
|
||||
@CommandPermission("carbonchat.reload")
|
||||
public class ChatReloadCommand extends BaseCommand {
|
||||
|
||||
@Dependency
|
||||
private CarbonChat carbonChat;
|
||||
|
||||
@Default
|
||||
public void baseCommand(CommandSender sender) {
|
||||
carbonChat.reloadConfig();
|
||||
|
||||
Component message = carbonChat.getAdventureManager().processMessage(carbonChat.getConfig().getString("language.reloaded"),
|
||||
"br", "\n");
|
||||
|
||||
carbonChat.getAdventureManager().getAudiences().audience(sender).sendMessage(message);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user