mirror of
https://github.com/darksaid98/Builders-Utilities.git
synced 2026-12-02 06:28:53 +00:00
Updated Secret blocks and added check for disabling NoClip in GUI to put you back into creative.
This commit is contained in:
1 parent
0fcf7cc0c9
commit
2ad5284a6d
2 files changed
+5
-1
No files matched your search
@@ -34,6 +34,7 @@ import net.arcaniax.buildersutilities.menus.inv.ClickableItem;
|
||||
import net.arcaniax.buildersutilities.menus.inv.content.InventoryContents;
|
||||
import net.arcaniax.buildersutilities.menus.inv.content.InventoryProvider;
|
||||
import net.arcaniax.buildersutilities.utils.Items;
|
||||
import org.bukkit.GameMode;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
@@ -189,6 +190,9 @@ public class UtilitiesMenuProvider implements InventoryProvider {
|
||||
"&6No Clip", ENABLED_LORE + NO_CLIP_LORE),
|
||||
inventoryClickEvent -> {
|
||||
NoClipManager.noClipPlayerIds.remove(player.getUniqueId());
|
||||
if (player.getGameMode().equals(GameMode.SPECTATOR)){
|
||||
player.setGameMode(GameMode.CREATIVE);
|
||||
}
|
||||
setNoClipItem(player, contents);
|
||||
}));
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user