This commit is contained in:
boy0001 2015-02-22 17:14:37 +11:00
parent bb5eb55761
commit 8ccee322c6
2 changed files with 3 additions and 8 deletions

View File

@ -22,15 +22,12 @@ package com.intellectualcrafters.plot.commands;
import com.intellectualcrafters.plot.PlotSquared;
import com.intellectualcrafters.plot.config.C;
import com.intellectualcrafters.plot.generator.BukkitHybridUtils;
import com.intellectualcrafters.plot.generator.HybridPlotManager;
import com.intellectualcrafters.plot.generator.HybridPlotWorld;
import com.intellectualcrafters.plot.generator.HybridUtils;
import com.intellectualcrafters.plot.object.Location;
import com.intellectualcrafters.plot.object.Plot;
import com.intellectualcrafters.plot.object.PlotPlayer;
import com.intellectualcrafters.plot.util.MainUtil;
import com.intellectualcrafters.plot.util.bukkit.BukkitPlayerFunctions;
public class CreateRoadSchematic extends SubCommand {
public CreateRoadSchematic() {

View File

@ -7,8 +7,6 @@ import java.sql.SQLException;
import java.util.ArrayList;
import java.util.UUID;
import org.bukkit.entity.Player;
import com.intellectualcrafters.plot.PlotSquared;
import com.intellectualcrafters.plot.database.MySQL;
import com.intellectualcrafters.plot.database.SQLManager;
@ -35,7 +33,7 @@ public class Database extends SubCommand {
if (uuid == null) {
PlotSquared.log(msg);
} else {
final Player p = UUIDHandler.uuidWrapper.getPlayer(uuid);
final PlotPlayer p = UUIDHandler.getPlayer(uuid);
if ((p != null) && p.isOnline()) {
return MainUtil.sendMessage(p, msg);
} else {
@ -138,11 +136,11 @@ public class Database extends SubCommand {
return false;
}
private boolean sendMessage(final Player player, final String msg) {
private boolean sendMessage(final PlotPlayer player, final String msg) {
if (player == null) {
PlotSquared.log(msg);
} else {
MainUtil.sendMessage(BukkitUtil.getPlayer(player), msg);
MainUtil.sendMessage(player, msg);
}
return true;
}