mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
2 MB bug fixes
This commit is contained in:
commit
ba2b636e04
@ -46,7 +46,22 @@ public class Command_mbconfig extends FreedomCommand
|
|||||||
}
|
}
|
||||||
|
|
||||||
final Player player = getPlayer(args[1]);
|
final Player player = getPlayer(args[1]);
|
||||||
PlayerData data = plugin.pl.getData(player);
|
|
||||||
|
PlayerData data;
|
||||||
|
|
||||||
|
if (player == null)
|
||||||
|
{
|
||||||
|
data = plugin.pl.getData(args[1]);
|
||||||
|
if (data == null)
|
||||||
|
{
|
||||||
|
msg(PLAYER_NOT_FOUND);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
data = plugin.pl.getData(player);
|
||||||
|
}
|
||||||
|
|
||||||
if (data.isMasterBuilder() && plugin.pl.isPlayerImpostor(player))
|
if (data.isMasterBuilder() && plugin.pl.isPlayerImpostor(player))
|
||||||
{
|
{
|
||||||
|
@ -334,11 +334,7 @@ public class SQLite extends FreedomService
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
ResultSet resultSet = connection.createStatement().executeQuery("SELECT * FROM players WHERE master_builder=true");
|
return connection.createStatement().executeQuery("SELECT * FROM players WHERE master_builder=true");
|
||||||
if (resultSet.next())
|
|
||||||
{
|
|
||||||
return resultSet;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
catch (SQLException e)
|
catch (SQLException e)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user