mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 21:26:45 +01:00
DB
This commit is contained in:
parent
bb5eb55761
commit
8ccee322c6
@ -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() {
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user