Add UserService and relocate private message sending

This commit is contained in:
Draycia committed 2020-07-01 13:24:57 -07:00
1 parent a57254aa6a
commit 554775ba13
17 files changed
+87 -117

No files matched your search

@@ -6,7 +6,6 @@ import co.aikar.commands.annotation.CommandCompletion;
import co.aikar.commands.annotation.CommandPermission;
import co.aikar.commands.annotation.Default;
import net.draycia.simplechat.SimpleChat;
import net.draycia.simplechat.managers.UserManager;
import net.draycia.simplechat.storage.ChatUser;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.minimessage.MiniMessage;
@@ -26,7 +25,7 @@ public class ShadowMuteCommand extends BaseCommand {
@Default
@CommandCompletion("@players")
public void baseCommand(CommandSender sender, OfflinePlayer target) {
ChatUser targetUser = UserManager.wrap(target.getUniqueId());
ChatUser targetUser = simpleChat.getUserService().wrap(target.getUniqueId());
String format;