mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-04 06:28:53 +00:00
Refactor context handling (#80)
* Refactor context handling * Misc bug fixes * Add Number support to context * Various bug fixes
This commit is contained in:
1 parent
28994664f2
commit
49693b4570
37 files changed
+467
-367
No files matched your search
@@ -61,11 +61,6 @@ public class AliasedChannelCommand {
|
||||
}
|
||||
|
||||
user.selectedChannel(this.chatChannel());
|
||||
|
||||
user.sendMessage(this.carbonChat.adventureManager().processMessageWithPapi(player, this.chatChannel().switchMessage(),
|
||||
"br", "\n",
|
||||
"color", "<" + this.chatChannel().channelColor(user).toString() + ">",
|
||||
"channel", this.chatChannel().name()));
|
||||
}
|
||||
|
||||
private void sendMessage(@NonNull final Player player, @NonNull final Object @NonNull [] args) {
|
||||
|
||||
@@ -66,11 +66,6 @@ public class ChannelCommand {
|
||||
}
|
||||
|
||||
user.selectedChannel(channel);
|
||||
|
||||
user.sendMessage(this.carbonChat.adventureManager().processMessageWithPapi(player, channel.switchMessage(),
|
||||
"br", "\n",
|
||||
"color", "<" + channel.channelColor(user).toString() + ">",
|
||||
"channel", channel.name()));
|
||||
}
|
||||
|
||||
private void sendMessage(@NonNull final Player player, @NonNull final Object @NonNull [] args) {
|
||||
|
||||
Reference in new issue
Block a user