mirror of
https://github.com/plexusorg/Plex.git
synced 2024-12-22 17:17:37 +00:00
Fix more SQL
This commit is contained in:
parent
3608e8e825
commit
88f10ef9cc
@ -54,7 +54,6 @@ public class PlexCMD extends PlexCommand
|
|||||||
send(sender, "Reloaded indefinite bans");
|
send(sender, "Reloaded indefinite bans");
|
||||||
plugin.commands.load();
|
plugin.commands.load();
|
||||||
send(sender, "Reloaded blocked commands file");
|
send(sender, "Reloaded blocked commands file");
|
||||||
send(sender, "Imported ranks");
|
|
||||||
if (!plugin.getServer().getPluginManager().isPluginEnabled("Vault"))
|
if (!plugin.getServer().getPluginManager().isPluginEnabled("Vault"))
|
||||||
{
|
{
|
||||||
throw new RuntimeException("Vault is required to run on the server if you use permissions!");
|
throw new RuntimeException("Vault is required to run on the server if you use permissions!");
|
||||||
|
@ -21,7 +21,6 @@ import org.jetbrains.annotations.Nullable;
|
|||||||
public class SetLoginMessageCMD extends PlexCommand
|
public class SetLoginMessageCMD extends PlexCommand
|
||||||
{
|
{
|
||||||
private final boolean nameRequired = plugin.getConfig().getBoolean("loginmessages.name");
|
private final boolean nameRequired = plugin.getConfig().getBoolean("loginmessages.name");
|
||||||
private final boolean rankRequired = plugin.getConfig().getBoolean("loginmessages.rank");
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Component execute(@NotNull CommandSender sender, @Nullable Player playerSender, String[] args)
|
protected Component execute(@NotNull CommandSender sender, @Nullable Player playerSender, String[] args)
|
||||||
|
@ -73,8 +73,6 @@ public class SQLConnection implements PlexBase
|
|||||||
"`name` VARCHAR(18), " +
|
"`name` VARCHAR(18), " +
|
||||||
"`login_msg` VARCHAR(2000), " +
|
"`login_msg` VARCHAR(2000), " +
|
||||||
"`prefix` VARCHAR(2000), " +
|
"`prefix` VARCHAR(2000), " +
|
||||||
"`rank` VARCHAR(20), " +
|
|
||||||
"`adminActive` BOOLEAN, " +
|
|
||||||
"`staffChat` BOOLEAN, " +
|
"`staffChat` BOOLEAN, " +
|
||||||
"`ips` VARCHAR(2000), " +
|
"`ips` VARCHAR(2000), " +
|
||||||
"`coins` BIGINT, " +
|
"`coins` BIGINT, " +
|
||||||
|
@ -20,8 +20,8 @@ import java.util.UUID;
|
|||||||
public class SQLPlayerData
|
public class SQLPlayerData
|
||||||
{
|
{
|
||||||
private final String SELECT = "SELECT * FROM `players` WHERE uuid=?";
|
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 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`, `rank`, `adminActive`, `ips`, `coins`, `vanished`, `commandspy`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?);";
|
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
|
* 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);
|
PlexPlayer plexPlayer = new PlexPlayer(UUID.fromString(set.getString("uuid")), loadExtraData);
|
||||||
String loginMSG = set.getString("login_msg");
|
String loginMSG = set.getString("login_msg");
|
||||||
String prefix = set.getString("prefix");
|
String prefix = set.getString("prefix");
|
||||||
boolean adminActive = set.getBoolean("adminActive");
|
|
||||||
long coins = set.getLong("coins");
|
long coins = set.getLong("coins");
|
||||||
boolean vanished = set.getBoolean("vanished");
|
boolean vanished = set.getBoolean("vanished");
|
||||||
boolean commandspy = set.getBoolean("commandspy");
|
boolean commandspy = set.getBoolean("commandspy");
|
||||||
|
Loading…
Reference in New Issue
Block a user