mirror of
https://github.com/TotalFreedomMC/TFGuilds.git
synced 2024-12-22 16:05:00 +00:00
Fix Codacy issues
This commit is contained in:
parent
9d58522fc6
commit
c4d65c21d2
2 changed files with 5 additions and 7 deletions
|
@ -24,6 +24,11 @@ import org.bukkit.plugin.java.JavaPlugin;
|
||||||
|
|
||||||
public final class TFGuilds extends JavaPlugin
|
public final class TFGuilds extends JavaPlugin
|
||||||
{
|
{
|
||||||
|
|
||||||
|
// TEMP FIX UNTIL REWRITE
|
||||||
|
public Map<String, Guild> guilds;
|
||||||
|
public Map<String, GuildWarp> warps;
|
||||||
|
|
||||||
private static TFGuilds plugin;
|
private static TFGuilds plugin;
|
||||||
|
|
||||||
public static TFGuilds getPlugin()
|
public static TFGuilds getPlugin()
|
||||||
|
@ -40,11 +45,6 @@ public final class TFGuilds extends JavaPlugin
|
||||||
public SQLWarpData warpData;
|
public SQLWarpData warpData;
|
||||||
public SQLWorldData worldData;
|
public SQLWorldData worldData;
|
||||||
|
|
||||||
|
|
||||||
// TEMP FIX UNTIL REWRITE
|
|
||||||
public Map<String, Guild> guilds;
|
|
||||||
public Map<String, GuildWarp> warps;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onEnable()
|
public void onEnable()
|
||||||
{
|
{
|
||||||
|
|
|
@ -10,7 +10,6 @@ import me.totalfreedom.tfguilds.TFGuilds;
|
||||||
public class SQLDatabase
|
public class SQLDatabase
|
||||||
{
|
{
|
||||||
private static final String DATABASE_FILENAME = "database.db";
|
private static final String DATABASE_FILENAME = "database.db";
|
||||||
private final File FILE;
|
|
||||||
private Connection connection;
|
private Connection connection;
|
||||||
|
|
||||||
public SQLDatabase()
|
public SQLDatabase()
|
||||||
|
@ -28,7 +27,6 @@ public class SQLDatabase
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.FILE = file;
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
connection = DriverManager.getConnection("jdbc:sqlite:" + file.getAbsolutePath());
|
connection = DriverManager.getConnection("jdbc:sqlite:" + file.getAbsolutePath());
|
||||||
|
|
Loading…
Reference in a new issue