Change text color

This commit is contained in:
mathiascode 2020-04-16 20:12:44 +03:00
parent 2e70511748
commit 099982d788
1 changed files with 5 additions and 5 deletions

View File

@ -56,9 +56,9 @@ public final class Main extends JavaPlugin implements CommandExecutor, Listener
if (Bukkit.getPlayer(uuid) != null) {
Bukkit.getPlayer(uuid).sendMessage(
ChatColor.YELLOW + ""
ChatColor.AQUA + ""
+ event.getPlayer().getName() + ""
+ ChatColor.YELLOW + ": "
+ ChatColor.AQUA + ": "
+ event.getMessage()
);
}
@ -72,13 +72,13 @@ public final class Main extends JavaPlugin implements CommandExecutor, Listener
if (Bukkit.getPlayer(uuid) != null) {
Bukkit.getPlayer(uuid).sendMessage(
ChatColor.YELLOW + ""
ChatColor.AQUA + ""
+ event.getPlayer().getName() + ""
+ ChatColor.YELLOW
+ ChatColor.AQUA
+ " created a sign with contents:"
);
for (String line: event.getLines()) {
Bukkit.getPlayer(uuid).sendMessage(ChatColor.YELLOW + " " + line);
Bukkit.getPlayer(uuid).sendMessage(ChatColor.AQUA + " " + line);
}
}
}