Added /press command, Dynmap nation color support #97

Merged
NorbiPeti merged 2 commits from dev into master 2019-02-01 16:08:22 +00:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 185b0df8e0 - Show all commits

View file

@ -43,7 +43,7 @@ public class HistoryCommand extends UCommandBase {
} else {
Optional<Channel> och = Channel.getChannels().filter(chan -> chan.ID.equalsIgnoreCase(args[0])).findAny();
if (!och.isPresent()) {
sender.sendMessage("§cChannel not found. Use the ID, for example: /" + (hc == null ? "u history" : hc.GetCommandPath()) + " ooc");
sender.sendMessage("§cChannel not found. Use the ID, for example: /" + (hc == null ? "u history" : hc.GetCommandPath()) + " g");
return true;
}
stream = Stream.of(och.get());

View file

@ -42,9 +42,9 @@ public class NationColorCommand extends AdminCommandBase {
val c = TownColorCommand.getColorOrSendError(args[1], sender);
if (!c.isPresent()) return true;
if (!c.get().getName().equals(Color.White.getName())) { //Default nation color
for (val nc : TownColorComponent.NationColor.values()) {
if (nc.getName().equals(c.get().getName())) {
sender.sendMessage("§cAnother nation already uses this color!");
for (val e : TownColorComponent.NationColor.entrySet()) {
if (e.getValue().getName().equals(c.get().getName())) {
sender.sendMessage("§The nation " + e.getKey() + " already uses this color!");
return true;
}
}