mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 06:28:54 +00:00
Fixes round 3000
This commit is contained in:
1 parent
58477c0b6a
commit
569cd78748
15 files changed
+583
-54
No files matched your search
@@ -5,6 +5,7 @@ import net.draycia.simplechat.SimpleChat;
|
||||
import net.draycia.simplechat.channels.ChatChannel;
|
||||
import net.draycia.simplechat.commands.*;
|
||||
import net.draycia.simplechat.storage.ChatUser;
|
||||
import org.bukkit.Bukkit;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
@@ -44,6 +45,10 @@ public class CommandManager {
|
||||
return null;
|
||||
});
|
||||
|
||||
commandManager.getCommandContexts().registerContext(ChatUser.class, (context) -> {
|
||||
return simpleChat.getUserService().wrap(Bukkit.getOfflinePlayer(context.popFirstArg()));
|
||||
});
|
||||
|
||||
commandManager.getCommandConditions().addCondition(ChatChannel.class,"canuse", (context, execution, value) -> {
|
||||
ChatUser user = simpleChat.getUserService().wrap(context.getIssuer().getPlayer());
|
||||
|
||||
|
||||
Reference in new issue
Block a user