Added new Admin reset command and cleaned up config.yml

This commit is contained in:
tastybento 2019-11-17 15:21:41 -08:00
parent 392f40bd40
commit e24d9a23d7
3 changed files with 6 additions and 5 deletions

View File

@ -212,7 +212,7 @@ public class Settings implements WorldSettings {
private int maxHomes = 5;
// Reset
@ConfigComment("How many resets a player is allowed (override with /bsbadmin clearresets <player>)")
@ConfigComment("How many resets a player is allowed (manage with /bsbadmin reset add/remove/reset/set command)")
@ConfigComment("Value of -1 means unlimited, 0 means hardcore - no resets.")
@ConfigComment("Example, 2 resets means they get 2 resets or 3 islands lifetime")
@ConfigEntry(path = "island.reset.reset-limit")

View File

@ -24,7 +24,7 @@ import world.bentobox.bentobox.api.commands.admin.blueprints.AdminBlueprintComma
import world.bentobox.bentobox.api.commands.admin.deaths.AdminDeathsCommand;
import world.bentobox.bentobox.api.commands.admin.purge.AdminPurgeCommand;
import world.bentobox.bentobox.api.commands.admin.range.AdminRangeCommand;
import world.bentobox.bentobox.api.commands.admin.resets.AdminResetsResetCommand;
import world.bentobox.bentobox.api.commands.admin.resets.AdminResetsCommand;
import world.bentobox.bentobox.api.commands.admin.team.AdminTeamAddCommand;
import world.bentobox.bentobox.api.commands.admin.team.AdminTeamDisbandCommand;
import world.bentobox.bentobox.api.commands.admin.team.AdminTeamKickCommand;
@ -67,7 +67,7 @@ public class AdminCommand extends CompositeCommand {
// Range
new AdminRangeCommand(this);
// Resets
new AdminResetsResetCommand(this);
new AdminResetsCommand(this);
// Delete
new AdminDeleteCommand(this);
// Why
@ -90,6 +90,7 @@ public class AdminCommand extends CompositeCommand {
new AdminPurgeCommand(this);
// Settings
new AdminSettingsCommand(this);
}
@Override

View File

@ -1,4 +1,4 @@
# BSkyBlock Configuration 1.6.0
# BSkyBlock Configuration ${version}
bskyblock:
command:
# Island Command. What command users will run to access their island.
@ -203,7 +203,7 @@ island:
# Accessed via /is sethome <number> or /is go <number>
max-homes: 1
reset:
# How many resets a player is allowed (override with /bsbadmin clearresets <player>)
# How many resets a player is allowed (manage with /bsbadmin reset add/remove/reset/set command)
# Value of -1 means unlimited, 0 means hardcore - no resets.
# Example, 2 resets means they get 2 resets or 3 islands lifetime
reset-limit: -1