mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
Fixed 2 references
This commit is contained in:
parent
706e63979b
commit
077994d8f7
@ -20,8 +20,6 @@
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
package com.intellectualcrafters.plot.commands;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import com.intellectualcrafters.plot.PlotSquared;
|
||||
import com.intellectualcrafters.plot.config.C;
|
||||
import com.intellectualcrafters.plot.database.DBFunc;
|
||||
@ -33,6 +31,8 @@ import com.intellectualcrafters.plot.util.MainUtil;
|
||||
import com.intellectualcrafters.plot.util.Permissions;
|
||||
import com.intellectualcrafters.plot.util.bukkit.UUIDHandler;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
public class Deny extends SubCommand {
|
||||
public Deny() {
|
||||
super(Command.DENY, "Deny a user from a plot", "deny <player>", CommandCategory.ACTIONS, true);
|
||||
@ -89,7 +89,7 @@ public class Deny extends SubCommand {
|
||||
}
|
||||
MainUtil.sendMessage(plr, C.DENIED_ADDED);
|
||||
if (!uuid.equals(DBFunc.everyone)) {
|
||||
PlotSquared.IMP.handleKick(uuid, C.YOU_GOT_DENIED);
|
||||
PlotSquared.getInstance().IMP.handleKick(uuid, C.YOU_GOT_DENIED);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -20,15 +20,11 @@
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
package com.intellectualcrafters.plot.database;
|
||||
|
||||
import com.intellectualcrafters.plot.PlotSquared;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.sql.Connection;
|
||||
import java.sql.DriverManager;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
import java.sql.Statement;
|
||||
|
||||
import com.intellectualcrafters.plot.PlotSquared;
|
||||
import java.sql.*;
|
||||
|
||||
/**
|
||||
* Connects to and uses a SQLite database
|
||||
@ -55,8 +51,8 @@ public class SQLite extends Database {
|
||||
if (checkConnection()) {
|
||||
return this.connection;
|
||||
}
|
||||
if (!PlotSquared.IMP.getDirectory().exists()) {
|
||||
PlotSquared.IMP.getDirectory().mkdirs();
|
||||
if (!PlotSquared.getInstance().IMP.getDirectory().exists()) {
|
||||
PlotSquared.getInstance().IMP.getDirectory().mkdirs();
|
||||
}
|
||||
final File file = new File(this.dbLocation);
|
||||
if (!(file.exists())) {
|
||||
|
Loading…
Reference in New Issue
Block a user