mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-09-10 14:27:59 +02:00
Simplified the selectBundle(...) method in IslandResetCommand
This commit is contained in:
parent
54756e97e0
commit
efbdcfc587
@ -13,6 +13,7 @@ import world.bentobox.bentobox.api.events.island.IslandEvent.Reason;
|
|||||||
import world.bentobox.bentobox.api.localization.TextVariables;
|
import world.bentobox.bentobox.api.localization.TextVariables;
|
||||||
import world.bentobox.bentobox.api.user.User;
|
import world.bentobox.bentobox.api.user.User;
|
||||||
import world.bentobox.bentobox.database.objects.Island;
|
import world.bentobox.bentobox.database.objects.Island;
|
||||||
|
import world.bentobox.bentobox.managers.BlueprintsManager;
|
||||||
import world.bentobox.bentobox.managers.island.NewIsland;
|
import world.bentobox.bentobox.managers.island.NewIsland;
|
||||||
import world.bentobox.bentobox.panels.IslandCreationPanel;
|
import world.bentobox.bentobox.panels.IslandCreationPanel;
|
||||||
|
|
||||||
@ -104,7 +105,7 @@ public class IslandResetCommand extends ConfirmableCommand {
|
|||||||
// Show panel
|
// Show panel
|
||||||
IslandCreationPanel.openPanel(this, user, label);
|
IslandCreationPanel.openPanel(this, user, label);
|
||||||
} else {
|
} else {
|
||||||
resetIsland(user, getPlugin().getBlueprintsManager().getBlueprintBundles((GameModeAddon) getAddon()).keySet().toArray(new String[]{})[0]);
|
resetIsland(user, BlueprintsManager.DEFAULT_BUNDLE_NAME);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user