From f3187a465c8d9273617e7f7a8090530420134334 Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Fri, 10 Jan 2020 19:38:38 +0100 Subject: [PATCH] Oops --- .../intellectualsites/plotsquared/plot/commands/Add.java | 3 +-- .../intellectualsites/plotsquared/plot/commands/Trust.java | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/commands/Add.java b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/commands/Add.java index b35c0f50d..6c2423021 100644 --- a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/commands/Add.java +++ b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/commands/Add.java @@ -1,6 +1,5 @@ package com.github.intellectualsites.plotsquared.plot.commands; -import com.github.intellectualsites.plotsquared.commands.Argument; import com.github.intellectualsites.plotsquared.commands.Command; import com.github.intellectualsites.plotsquared.commands.CommandDeclaration; import com.github.intellectualsites.plotsquared.plot.config.Captions; @@ -35,7 +34,7 @@ import java.util.concurrent.CompletableFuture; checkTrue(plot.isOwner(player.getUUID()) || Permissions .hasPermission(player, Captions.PERMISSION_ADMIN_COMMAND_TRUST), Captions.NO_PLOT_PERMS); - checkTrue(args.length == 1, Captions.COMMAND_SYNTAX, "/plot add "); + checkTrue(args.length == 1, Captions.COMMAND_SYNTAX, getUsage()); final Set uuids = MainUtil.getUUIDsFromString(args[0]); checkTrue(!uuids.isEmpty(), Captions.INVALID_PLAYER, args[0]); Iterator iterator = uuids.iterator(); diff --git a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/commands/Trust.java b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/commands/Trust.java index 7d4d3a20e..345fe8851 100644 --- a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/commands/Trust.java +++ b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/commands/Trust.java @@ -37,7 +37,7 @@ import java.util.concurrent.CompletableFuture; checkTrue(currentPlot.isOwner(player.getUUID()) || Permissions .hasPermission(player, Captions.PERMISSION_ADMIN_COMMAND_TRUST), Captions.NO_PLOT_PERMS); - checkTrue(args.length == 1, Captions.COMMAND_SYNTAX, "/plot trust "); + checkTrue(args.length == 1, Captions.COMMAND_SYNTAX, getUsage()); final Set uuids = MainUtil.getUUIDsFromString(args[0]); checkTrue(!uuids.isEmpty(), Captions.INVALID_PLAYER, args[0]); Iterator iterator = uuids.iterator();