mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-12-30 17:57:53 +01:00
Fix #516 and a related problem
This commit is contained in:
parent
b88c6d8d26
commit
94df643e6e
@ -72,14 +72,11 @@ public class Add extends SubCommand {
|
||||
if (args[0].equalsIgnoreCase("*")) {
|
||||
uuid = DBFunc.everyone;
|
||||
} else {
|
||||
// TODO have a runnable for fetch
|
||||
uuid = UUIDHandler.getUUID(args[0], null);
|
||||
}
|
||||
if (uuid == null) {
|
||||
if (UUIDHandler.implementation instanceof SQLUUIDHandler) {
|
||||
MainUtil.sendMessage(plr, C.INVALID_PLAYER_WAIT, args[0]);
|
||||
} else {
|
||||
MainUtil.sendMessage(plr, C.INVALID_PLAYER, args[0]);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if (plot.isOwner(uuid)) {
|
||||
|
@ -40,7 +40,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
|
||||
description = "Comment on a plot",
|
||||
category = CommandCategory.ACTIONS,
|
||||
requiredType = RequiredType.NONE,
|
||||
permission = "plot.comment"
|
||||
permission = "plots.comment"
|
||||
)
|
||||
public class Comment extends SubCommand {
|
||||
|
||||
|
@ -42,7 +42,6 @@ public class Unclaim extends SubCommand {
|
||||
|
||||
@Override
|
||||
public boolean onCommand(final PlotPlayer plr, final String[] args) {
|
||||
|
||||
final Location loc = plr.getLocation();
|
||||
final Plot plot = MainUtil.getPlot(loc);
|
||||
if (plot == null) {
|
||||
|
@ -38,7 +38,7 @@ import com.plotsquared.general.commands.CommandDeclaration;
|
||||
@CommandDeclaration(
|
||||
command = "untrust",
|
||||
aliases = {"ut"},
|
||||
permission = "plot.untrust",
|
||||
permission = "plots.untrust",
|
||||
description = "Remove a trusted user from a plot",
|
||||
usage = "/plot untrust <player>",
|
||||
requiredType = RequiredType.NONE,
|
||||
|
Loading…
Reference in New Issue
Block a user