From 90de67961c1d5cce13c96dbfdb169803ce97941e Mon Sep 17 00:00:00 2001 From: gravityfox Date: Sat, 2 Jan 2016 12:25:35 -0800 Subject: [PATCH] Fixed Owners and some other text now showing up. --- .../sponge/foxguard/plugin/command/CommandModify.java | 8 ++++---- .../sponge/foxguard/plugin/handler/PassiveHandler.java | 2 +- .../sponge/foxguard/plugin/handler/SimpleHandler.java | 2 +- .../sponge/foxguard/plugin/region/CuboidRegion.java | 2 +- .../sponge/foxguard/plugin/region/ElevationRegion.java | 2 +- .../sponge/foxguard/plugin/region/RectangularRegion.java | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main/java/net/foxdenstudio/sponge/foxguard/plugin/command/CommandModify.java b/src/main/java/net/foxdenstudio/sponge/foxguard/plugin/command/CommandModify.java index a9ee5f3..afa6692 100644 --- a/src/main/java/net/foxdenstudio/sponge/foxguard/plugin/command/CommandModify.java +++ b/src/main/java/net/foxdenstudio/sponge/foxguard/plugin/command/CommandModify.java @@ -94,7 +94,7 @@ public CommandResult process(CommandSource source, String arguments) throws Comm if (result.isSuccess()) { if (result.getMessage().isPresent()) { if (!FCHelper.hasColor(result.getMessage().get())) { - source.sendMessage(result.getMessage().get().builder().color(TextColors.GREEN).build()); + source.sendMessage(result.getMessage().get().toBuilder().color(TextColors.GREEN).build()); } else { source.sendMessage(result.getMessage().get()); } @@ -104,7 +104,7 @@ public CommandResult process(CommandSource source, String arguments) throws Comm } else { if (result.getMessage().isPresent()) { if (!FCHelper.hasColor(result.getMessage().get())) { - source.sendMessage(result.getMessage().get().builder().color(TextColors.RED).build()); + source.sendMessage(result.getMessage().get().toBuilder().color(TextColors.RED).build()); } else { source.sendMessage(result.getMessage().get()); } @@ -122,7 +122,7 @@ public CommandResult process(CommandSource source, String arguments) throws Comm if (result.isSuccess()) { if (result.getMessage().isPresent()) { if (!FCHelper.hasColor(result.getMessage().get())) { - source.sendMessage(result.getMessage().get().builder().color(TextColors.GREEN).build()); + source.sendMessage(result.getMessage().get().toBuilder().color(TextColors.GREEN).build()); } else { source.sendMessage(result.getMessage().get()); } @@ -132,7 +132,7 @@ public CommandResult process(CommandSource source, String arguments) throws Comm } else { if (result.getMessage().isPresent()) { if (!FCHelper.hasColor(result.getMessage().get())) { - source.sendMessage(result.getMessage().get().builder().color(TextColors.RED).build()); + source.sendMessage(result.getMessage().get().toBuilder().color(TextColors.RED).build()); } else { source.sendMessage(result.getMessage().get()); } diff --git a/src/main/java/net/foxdenstudio/sponge/foxguard/plugin/handler/PassiveHandler.java b/src/main/java/net/foxdenstudio/sponge/foxguard/plugin/handler/PassiveHandler.java index 6e328e2..996b288 100644 --- a/src/main/java/net/foxdenstudio/sponge/foxguard/plugin/handler/PassiveHandler.java +++ b/src/main/java/net/foxdenstudio/sponge/foxguard/plugin/handler/PassiveHandler.java @@ -201,7 +201,7 @@ public ProcessResult modify(String arguments, SourceState state, CommandSource s @Override public Text getDetails(String arguments) { - Text.Builder builder = super.getDetails(arguments).builder(); + Text.Builder builder = super.getDetails(arguments).toBuilder(); builder.append(Text.of("\n")); builder.append(Text.of(TextColors.GOLD, TextActions.suggestCommand("/foxguard modify handler " + this.name + " set "), diff --git a/src/main/java/net/foxdenstudio/sponge/foxguard/plugin/handler/SimpleHandler.java b/src/main/java/net/foxdenstudio/sponge/foxguard/plugin/handler/SimpleHandler.java index 946d895..e4e1ab9 100644 --- a/src/main/java/net/foxdenstudio/sponge/foxguard/plugin/handler/SimpleHandler.java +++ b/src/main/java/net/foxdenstudio/sponge/foxguard/plugin/handler/SimpleHandler.java @@ -302,7 +302,7 @@ public String getUniqueTypeString() { @Override public Text getDetails(String arguments) { - Text.Builder builder = super.getDetails(arguments).builder(); + Text.Builder builder = super.getDetails(arguments).toBuilder(); builder.append(Text.of("\n")); builder.append(Text.of(TextColors.GREEN, TextActions.suggestCommand("/foxguard modify handler " + this.name + " group members add "), diff --git a/src/main/java/net/foxdenstudio/sponge/foxguard/plugin/region/CuboidRegion.java b/src/main/java/net/foxdenstudio/sponge/foxguard/plugin/region/CuboidRegion.java index a17e461..0b7b893 100644 --- a/src/main/java/net/foxdenstudio/sponge/foxguard/plugin/region/CuboidRegion.java +++ b/src/main/java/net/foxdenstudio/sponge/foxguard/plugin/region/CuboidRegion.java @@ -148,7 +148,7 @@ public String getUniqueTypeString() { @Override public Text getDetails(String arguments) { - Text.Builder builder = super.getDetails(arguments).builder(); + Text.Builder builder = super.getDetails(arguments).toBuilder(); builder.append(Text.of(TextColors.GREEN, "\nBounds: ")); try { this.lock.readLock().lock(); diff --git a/src/main/java/net/foxdenstudio/sponge/foxguard/plugin/region/ElevationRegion.java b/src/main/java/net/foxdenstudio/sponge/foxguard/plugin/region/ElevationRegion.java index de580f6..dfc9995 100644 --- a/src/main/java/net/foxdenstudio/sponge/foxguard/plugin/region/ElevationRegion.java +++ b/src/main/java/net/foxdenstudio/sponge/foxguard/plugin/region/ElevationRegion.java @@ -118,7 +118,7 @@ public boolean isInRegion(double x, double y, double z) { @Override public Text getDetails(String arguments) { - Text.Builder builder = super.getDetails(arguments).builder(); + Text.Builder builder = super.getDetails(arguments).toBuilder(); builder.append(Text.of(TextColors.GREEN, "\nBounds: ")); try { this.lock.readLock().lock(); diff --git a/src/main/java/net/foxdenstudio/sponge/foxguard/plugin/region/RectangularRegion.java b/src/main/java/net/foxdenstudio/sponge/foxguard/plugin/region/RectangularRegion.java index 878edc4..10da2b0 100644 --- a/src/main/java/net/foxdenstudio/sponge/foxguard/plugin/region/RectangularRegion.java +++ b/src/main/java/net/foxdenstudio/sponge/foxguard/plugin/region/RectangularRegion.java @@ -141,7 +141,7 @@ public String getUniqueTypeString() { @Override public Text getDetails(String arguments) { - Text.Builder builder = super.getDetails(arguments).builder(); + Text.Builder builder = super.getDetails(arguments).toBuilder(); builder.append(Text.of(TextColors.GREEN, "\nBounds: ")); try { this.lock.readLock().lock();