Skip to content

Commit

Permalink
Fixed Owners and some other text now showing up.
Browse files Browse the repository at this point in the history
  • Loading branch information
gravityfox committed Jan 2, 2016
1 parent 1419eca commit 90de679
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand All @@ -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());
}
Expand All @@ -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());
}
Expand All @@ -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());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 "),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 "),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 90de679

Please sign in to comment.