mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-06-29 03:36:42 +00:00
add block inspector for ops
* adds /inspect (or /ins) as a /co i replacement command for OPs. container and sign logging are still a WIP for this command. * replaces "Rank must be Trial Mod or higher." with "Rank must be Admin or higher." in slconfig * replaces "scripthead is the owner of TotalFreedom." with "Wild1145 is the owner of TotalFreedom." in the config
This commit is contained in:
@ -53,6 +53,8 @@ public class PlayerData
|
||||
@Getter
|
||||
@Setter
|
||||
private String loginMessage;
|
||||
@Setter
|
||||
private Boolean inspect = false;
|
||||
|
||||
public PlayerData(ResultSet resultSet)
|
||||
{
|
||||
@ -77,6 +79,7 @@ public class PlayerData
|
||||
displayDiscord = resultSet.getBoolean("display_discord");
|
||||
redditUsername = resultSet.getString("reddit_username");
|
||||
loginMessage = resultSet.getString("login_message");
|
||||
inspect = resultSet.getBoolean("inspect");
|
||||
}
|
||||
catch (SQLException e)
|
||||
{
|
||||
@ -231,6 +234,11 @@ public class PlayerData
|
||||
return masterBuilder;
|
||||
}
|
||||
|
||||
public boolean hasInspection()
|
||||
{
|
||||
return inspect;
|
||||
}
|
||||
|
||||
public Map<String, Object> toSQLStorable()
|
||||
{
|
||||
Map<String, Object> map = new HashMap<String, Object>()
|
||||
@ -250,6 +258,7 @@ public class PlayerData
|
||||
put("display_discord", displayDiscord);
|
||||
put("reddit_username", redditUsername);
|
||||
put("login_message", loginMessage);
|
||||
put("inspect", inspect);
|
||||
}};
|
||||
return map;
|
||||
}
|
||||
|
Reference in New Issue
Block a user