Fix more SQL

This commit is contained in:
Telesphoreo 2023-10-29 23:07:36 -05:00
parent 3608e8e825
commit 88f10ef9cc
4 changed files with 2 additions and 7 deletions

View File

@ -54,7 +54,6 @@ public class PlexCMD extends PlexCommand
send(sender, "Reloaded indefinite bans");
plugin.commands.load();
send(sender, "Reloaded blocked commands file");
send(sender, "Imported ranks");
if (!plugin.getServer().getPluginManager().isPluginEnabled("Vault"))
{
throw new RuntimeException("Vault is required to run on the server if you use permissions!");

View File

@ -21,7 +21,6 @@ import org.jetbrains.annotations.Nullable;
public class SetLoginMessageCMD extends PlexCommand
{
private final boolean nameRequired = plugin.getConfig().getBoolean("loginmessages.name");
private final boolean rankRequired = plugin.getConfig().getBoolean("loginmessages.rank");
@Override
protected Component execute(@NotNull CommandSender sender, @Nullable Player playerSender, String[] args)

View File

@ -73,8 +73,6 @@ public class SQLConnection implements PlexBase
"`name` VARCHAR(18), " +
"`login_msg` VARCHAR(2000), " +
"`prefix` VARCHAR(2000), " +
"`rank` VARCHAR(20), " +
"`adminActive` BOOLEAN, " +
"`staffChat` BOOLEAN, " +
"`ips` VARCHAR(2000), " +
"`coins` BIGINT, " +

View File

@ -20,8 +20,8 @@ import java.util.UUID;
public class SQLPlayerData
{
private final String SELECT = "SELECT * FROM `players` WHERE uuid=?";
private final String UPDATE = "UPDATE `players` SET name=?, login_msg=?, prefix=?, rank=?, adminActive=?, ips=?, coins=?, vanished=?, commandspy=? WHERE uuid=?";
private final String INSERT = "INSERT INTO `players` (`uuid`, `name`, `login_msg`, `prefix`, `rank`, `adminActive`, `ips`, `coins`, `vanished`, `commandspy`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?);";
private final String UPDATE = "UPDATE `players` SET name=?, login_msg=?, prefix=?, ips=?, coins=?, vanished=?, commandspy=? WHERE uuid=?";
private final String INSERT = "INSERT INTO `players` (`uuid`, `name`, `login_msg`, `prefix`, `ips`, `coins`, `vanished`, `commandspy`) VALUES (?, ?, ?, ?, ?, ?, ?, ?);";
/**
* Checks if a player exists in the SQL database
@ -163,7 +163,6 @@ public class SQLPlayerData
PlexPlayer plexPlayer = new PlexPlayer(UUID.fromString(set.getString("uuid")), loadExtraData);
String loginMSG = set.getString("login_msg");
String prefix = set.getString("prefix");
boolean adminActive = set.getBoolean("adminActive");
long coins = set.getLong("coins");
boolean vanished = set.getBoolean("vanished");
boolean commandspy = set.getBoolean("commandspy");