mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
It compiles!
This commit is contained in:
1 parent
66aa6d6449
commit
c3df33f4b5
6 files changed
+15
-13
No files matched your search
@@ -50,7 +50,7 @@ public class SimpleChatChannel extends ChatChannel {
|
||||
|
||||
private SimpleChat simpleChat;
|
||||
|
||||
private Pattern itemPattern = Pattern.compile("[item]");
|
||||
private Pattern itemPattern = Pattern.compile(Pattern.quote("[item]"));
|
||||
|
||||
private SimpleChatChannel() { }
|
||||
|
||||
@@ -135,7 +135,7 @@ public class SimpleChatChannel extends ChatChannel {
|
||||
"server", event.getServer().get().getName(), "primaryrole", role);
|
||||
|
||||
for (Player player : getAudience(null)) {
|
||||
simpleChat.getPlatform().player(player).sendMessage(component);
|
||||
simpleChat.getAudiences().player(player).sendMessage(component);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -206,7 +206,7 @@ public class SimpleChatChannel extends ChatChannel {
|
||||
}
|
||||
|
||||
for (Player onlinePlayer : getAudience(player)) {
|
||||
simpleChat.getPlatform().player(onlinePlayer).sendMessage(formattedMessage);
|
||||
simpleChat.getAudiences().player(onlinePlayer).sendMessage(formattedMessage);
|
||||
}
|
||||
|
||||
// Log message to console
|
||||
@@ -229,7 +229,7 @@ public class SimpleChatChannel extends ChatChannel {
|
||||
@Override
|
||||
public void sendComponent(OfflinePlayer player, Component component) {
|
||||
for (Player onlinePlayer : getAudience(player)) {
|
||||
simpleChat.getPlatform().player(onlinePlayer).sendMessage(component);
|
||||
simpleChat.getAudiences().player(onlinePlayer).sendMessage(component);
|
||||
}
|
||||
|
||||
System.out.println(LegacyComponentSerializer.legacy().serialize(component));
|
||||
|
||||
Reference in new issue
Block a user