mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 22:56:45 +01:00
Fix /plot leave requiring an arg when none is needed
This commit is contained in:
parent
0745b03271
commit
aedf402c17
@ -59,10 +59,6 @@ public class Leave extends Command {
|
|||||||
final Plot plot = check(player.getCurrentPlot(), TranslatableCaption.of("errors.not_in_plot"));
|
final Plot plot = check(player.getCurrentPlot(), TranslatableCaption.of("errors.not_in_plot"));
|
||||||
checkTrue(plot.hasOwner(), TranslatableCaption.of("info.plot_unowned"));
|
checkTrue(plot.hasOwner(), TranslatableCaption.of("info.plot_unowned"));
|
||||||
checkTrue(plot.isAdded(player.getUUID()), TranslatableCaption.of("members.not_added_trusted"));
|
checkTrue(plot.isAdded(player.getUUID()), TranslatableCaption.of("members.not_added_trusted"));
|
||||||
if (args.length == 0) {
|
|
||||||
sendUsage(player);
|
|
||||||
return CompletableFuture.completedFuture(false);
|
|
||||||
}
|
|
||||||
if (plot.isOwner(player.getUUID())) {
|
if (plot.isOwner(player.getUUID())) {
|
||||||
checkTrue(plot.hasOwner(), TranslatableCaption.of("member.already_owner"));
|
checkTrue(plot.hasOwner(), TranslatableCaption.of("member.already_owner"));
|
||||||
// TODO setowner, other
|
// TODO setowner, other
|
||||||
|
Loading…
Reference in New Issue
Block a user