mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-20 23:21:33 +01:00
Fixes bug where any player can reset island settings.
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1219
This commit is contained in:
parent
34ce9d3fc2
commit
9f046be8f6
@ -163,7 +163,7 @@ public class SettingsTab implements Tab, ClickHandler {
|
||||
.build());
|
||||
}
|
||||
// Add the reset everything to default - it's only in the player's settings panel
|
||||
if (island != null) {
|
||||
if (island != null && user.getUniqueId().equals(island.getOwner())) {
|
||||
icons.put(8, new PanelItemBuilder().icon(Material.TNT)
|
||||
.name(user.getTranslation(PROTECTION_PANEL + "reset-to-default.name"))
|
||||
.description(user.getTranslation(PROTECTION_PANEL + "reset-to-default.description"))
|
||||
|
Loading…
Reference in New Issue
Block a user