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:
speed
2020-11-30 18:17:27 -05:00
parent 6cd995ff52
commit c1d4e126a3
8 changed files with 350 additions and 12 deletions

View File

@ -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;
}