Made fake op.

This commit is contained in:
5vl
2022-05-30 20:33:45 +02:00
parent 360f9b4fdc
commit ef729c29b7
2 changed files with 18 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ object TrollGui {
val gui = Bukkit.createInventory(null, 54, Utils.color("<color:#ff9e36>Troll Menu - ${target.name}</color>"))
gui.setItem(0, getYeetItem())
gui.setItem(1, getPigBombItem())
gui.setItem(2, getFakeOpItem())
inTrollGui[from] = target
return gui
}
@@ -34,4 +35,13 @@ object TrollGui {
item.itemMeta = meta
return item
}
private fun getFakeOpItem(): ItemStack {
val item = ItemStack(Material.BARRIER)
val meta = item.itemMeta
meta.displayName(Utils.color("<color:#ff462e>Fake Op</color>"))
meta.lore(Utils.loreBuilder("This will fake op the player."))
item.itemMeta = meta
return item
}
}