Makes some smaller changes
Some checks failed
EpicKnarvik97/Stargate/pipeline/head There was a failure building this commit

Replaces the mystery code in sendMessage with translateAlternateColorCodes and removes the TODO
Removes the TODO in deactivate() as it is actually necessary because fixed portals are always active
Moves conflictsWithExistingGate to PortalCreator and removes the TODO for now
Removes the extra spaces in >Random<
Adjusts some comments
Adds missing information about Economy and the requirement of UUIDs
This commit is contained in:
2021-10-31 14:05:06 +01:00
parent 1f1fef3054
commit d754247455
7 changed files with 40 additions and 42 deletions

View File

@ -50,9 +50,7 @@ public final class MessageSender {
if (message.isEmpty()) {
return;
}
//Replace color codes with green? What's the deal with the dollar sign?
//TODO: Figure out what this is actually supposed to do and do it in a better way
message = message.replaceAll("(&([a-f0-9]))", "\u00A7$2");
message = ChatColor.translateAlternateColorCodes('&', message);
if (error) {
sender.sendMessage(ChatColor.RED + languageLoader.getString("prefix") + ChatColor.WHITE + message);
} else {