mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-04 06:28:53 +00:00
Fix setcolor command
This commit is contained in:
1 parent
7978ee296d
commit
75ff948a26
1 file changed
+1
-1
@@ -37,7 +37,7 @@ public class SetColorCommand {
|
|||||||
.withAliases(commandSettings.getAliasesArray())
|
.withAliases(commandSettings.getAliasesArray())
|
||||||
.withPermission(CommandPermission.fromString("carbonchat.setcolor"))
|
.withPermission(CommandPermission.fromString("carbonchat.setcolor"))
|
||||||
.executesPlayer((player, args) -> {
|
.executesPlayer((player, args) -> {
|
||||||
TextColor color = (TextColor)args[1];
|
TextColor color = (TextColor)args[0];
|
||||||
ChatUser user = carbonChat.getUserService().wrap(player);
|
ChatUser user = carbonChat.getUserService().wrap(player);
|
||||||
|
|
||||||
if (!player.hasPermission("carbonchat.setcolor." + channel.getKey())) {
|
if (!player.hasPermission("carbonchat.setcolor." + channel.getKey())) {
|
||||||
|
|||||||
Reference in new issue
Block a user