Refactor context handling (#80)

* Refactor context handling

* Misc bug fixes

* Add Number support to context

* Various bug fixes
This commit is contained in:
Josh (Vicarious) authored and GitHub committed 2020-09-14 02:17:12 -07:00
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) {