Fix errors *again

This commit is contained in:
boy0001 2015-07-27 19:14:28 +10:00
parent 58ebf9d232
commit dce25ba07a
16 changed files with 22 additions and 21 deletions

View File

@ -74,7 +74,7 @@ public class Add extends SubCommand {
if (args[0].equalsIgnoreCase("*")) {
uuid = DBFunc.everyone;
} else {
uuid = UUIDHandler.getUUID(args[0]);
uuid = UUIDHandler.getUUID(args[0], null);
}
if (uuid == null) {
if (UUIDHandler.implementation instanceof SQLUUIDHandler) {

View File

@ -332,7 +332,7 @@ public class Cluster extends SubCommand {
}
}
// check uuid
final UUID uuid = UUIDHandler.getUUID(args[1]);
final UUID uuid = UUIDHandler.getUUID(args[1], null);
if (uuid == null) {
MainUtil.sendMessage(plr, C.INVALID_PLAYER, args[2]);
return false;
@ -373,7 +373,7 @@ public class Cluster extends SubCommand {
}
}
// check uuid
final UUID uuid = UUIDHandler.getUUID(args[1]);
final UUID uuid = UUIDHandler.getUUID(args[1], null);
if (uuid == null) {
MainUtil.sendMessage(plr, C.INVALID_PLAYER, args[1]);
return false;
@ -468,7 +468,7 @@ public class Cluster extends SubCommand {
MainUtil.sendMessage(plr, C.NOT_IN_CLUSTER);
return false;
}
final UUID uuid = UUIDHandler.getUUID(args[2]);
final UUID uuid = UUIDHandler.getUUID(args[2], null);
if (uuid == null) {
MainUtil.sendMessage(plr, C.INVALID_PLAYER, args[2]);
return false;

View File

@ -121,7 +121,7 @@ public class DebugClaimTest extends SubCommand {
}
}
if (uuid == null) {
uuid = UUIDHandler.getUUID(line);
uuid = UUIDHandler.getUUID(line, null);
}
if (uuid != null) {
MainUtil.sendMessage(null, " - &aFound plot: " + plot.id + " : " + line);

View File

@ -221,7 +221,7 @@ public class DebugExec extends SubCommand {
if (args.length != 2) {
return MainUtil.sendMessage(player, "Use /plot debugexec seen <player>");
}
final UUID uuid = UUIDHandler.getUUID(args[1]);
final UUID uuid = UUIDHandler.getUUID(args[1], null);
if (uuid == null) {
return MainUtil.sendMessage(player, "player not found: " + args[1]);
}

View File

@ -73,7 +73,7 @@ public class Deny extends SubCommand {
if (args[0].equalsIgnoreCase("*")) {
uuid = DBFunc.everyone;
} else {
uuid = UUIDHandler.getUUID(args[0]);
uuid = UUIDHandler.getUUID(args[0], null);
}
if (uuid == null) {
if (UUIDHandler.implementation instanceof SQLUUIDHandler) {

View File

@ -63,7 +63,7 @@ public class Purge extends SubCommand {
caller.message("/plot purxe x;z &l<world>");
return false;
}
final UUID uuid = UUIDHandler.getUUID(args[0]);
final UUID uuid = UUIDHandler.getUUID(args[0], null);
if (uuid != null) {
caller.message("/plot purge " + args[0] + " &l<world>");
return false;
@ -149,7 +149,7 @@ public class Purge extends SubCommand {
DBFunc.purge(worldname, ids);
return finishPurge(length);
}
final UUID uuid = UUIDHandler.getUUID(args[0]);
final UUID uuid = UUIDHandler.getUUID(args[0], null);
if (uuid != null) {
final Set<Plot> plots = PS.get().getPlots(worldname, uuid);
final Set<PlotId> ids = new HashSet<>();

View File

@ -112,7 +112,7 @@ public class Remove extends SubCommand {
break;
}
default:
UUID uuid = UUIDHandler.getUUID(args[0]);
UUID uuid = UUIDHandler.getUUID(args[0], null);
if (uuid != null) {
if (plot.getTrusted().contains(uuid)) {
if (plot.removeTrusted(uuid)) {

View File

@ -56,7 +56,7 @@ public class SetOwner extends SubCommand {
}
private UUID getUUID(final String string) {
return UUIDHandler.getUUID(string);
return UUIDHandler.getUUID(string, null);
}
@Override

View File

@ -73,7 +73,7 @@ public class Trust extends SubCommand {
if (args[0].equalsIgnoreCase("*")) {
uuid = DBFunc.everyone;
} else {
uuid = UUIDHandler.getUUID(args[0]);
uuid = UUIDHandler.getUUID(args[0], null);
}
if (uuid == null) {
if (UUIDHandler.implementation instanceof SQLUUIDHandler) {

View File

@ -88,7 +88,7 @@ public class Undeny extends SubCommand {
}
break;
default:
UUID uuid = UUIDHandler.getUUID(args[0]);
UUID uuid = UUIDHandler.getUUID(args[0], null);
if (uuid != null) {
if (plot.removeDenied(uuid)) {
count++;

View File

@ -90,7 +90,7 @@ public class Untrust extends SubCommand {
}
break;
default:
UUID uuid = UUIDHandler.getUUID(args[0]);
UUID uuid = UUIDHandler.getUUID(args[0], null);
if (uuid != null) {
if (plot.removeTrusted(uuid)) {
count++;

View File

@ -66,7 +66,7 @@ public class Visit extends SubCommand {
public boolean onCommand(CommandCaller caller, String[] args) {
PlotPlayer plr = (PlotPlayer) caller.getSuperCaller();
ArrayList<Plot> plots = new ArrayList<>();
UUID user = UUIDHandler.getUUID(args[0]);
UUID user = UUIDHandler.getUUID(args[0], null);
if (user != null ) {
// do plots by username
plots.addAll(PS.get().getPlots(user));

View File

@ -301,7 +301,7 @@ public class list extends SubCommand {
plots = new ArrayList<>(PS.get().getPlots(args[0]).values());
break;
}
UUID uuid = UUIDHandler.getUUID(args[0]);
UUID uuid = UUIDHandler.getUUID(args[0], null);
if (uuid != null) {
if (!Permissions.hasPermission(plr, "plots.list.player")) {
MainUtil.sendMessage(plr, C.NO_PERMISSION, "plots.list.player");

View File

@ -92,7 +92,7 @@ public class ClassicPlotMeConnector extends APlotMeConnector {
setMerged(merges, world, id, 0);
}
}
UUID owner = UUIDHandler.getUUID(name);
UUID owner = UUIDHandler.getUUID(name, null);
if (owner == null) {
if (name.equals("*")) {
owner = DBFunc.everyone;
@ -149,7 +149,7 @@ public class ClassicPlotMeConnector extends APlotMeConnector {
final PlotId id = new PlotId(r.getInt("idX"), r.getInt("idZ"));
final String name = r.getString("player");
final String world = LikePlotMeConverter.getWorld(r.getString("world"));
UUID denied = UUIDHandler.getUUID(name);
UUID denied = UUIDHandler.getUUID(name, null);
if (denied == null) {
if (name.equals("*")) {
denied = DBFunc.everyone;
@ -170,7 +170,7 @@ public class ClassicPlotMeConnector extends APlotMeConnector {
final PlotId id = new PlotId(r.getInt("idX"), r.getInt("idZ"));
final String name = r.getString("player");
final String world = LikePlotMeConverter.getWorld(r.getString("world"));
UUID helper = UUIDHandler.getUUID(name);
UUID helper = UUIDHandler.getUUID(name, null);
if (helper == null) {
if (name.equals("*")) {
helper = DBFunc.everyone;

View File

@ -94,7 +94,7 @@ public class PlotMeConnector_017 extends APlotMeConnector {
setMerged(merges, world, id, 0);
}
}
UUID owner = UUIDHandler.getUUID(name);
UUID owner = UUIDHandler.getUUID(name, null);
if (owner == null) {
if (name.equals("*")) {
owner = DBFunc.everyone;

View File

@ -36,6 +36,7 @@ import com.intellectualcrafters.plot.util.InventoryUtil;
import com.intellectualcrafters.plot.util.PlayerManager;
import com.intellectualcrafters.plot.util.TaskManager;
import com.intellectualcrafters.plot.util.UUIDHandler;
import com.intellectualcrafters.plot.util.UUIDHandlerImplementation;
import com.intellectualcrafters.plot.uuid.UUIDWrapper;
import com.plotsquared.bukkit.listeners.APlotListener;
import com.plotsquared.bukkit.util.SetupUtils;
@ -279,7 +280,7 @@ public class SpongeMain implements IPlotMain, PluginContainer {
}
@Override
public UUIDWrapper initUUIDHandler() {
public UUIDHandlerImplementation initUUIDHandler() {
// TODO Auto-generated method stub
return null;
}