mirror of
https://github.com/5vl/Troll.git
synced 2025-05-24 02:17:03 +00:00
Added ignite feature
This commit is contained in:
parent
e07dd455b8
commit
526d2f71a3
@ -33,4 +33,9 @@ object Trolls {
|
||||
ps.teleport(loc)
|
||||
p.sendMessage(Utils.color("<color:#4747ff>${ps.name} has been spun!</color>"))
|
||||
}
|
||||
|
||||
fun ignite(p: Player, ps: Player) {
|
||||
ps.fireTicks = 200
|
||||
p.sendMessage(Utils.color("<color:#4747ff>${ps.name} has been ignited!</color>"))
|
||||
}
|
||||
}
|
@ -15,6 +15,7 @@ object TrollGui {
|
||||
gui.setItem(1, getPigBombItem())
|
||||
gui.setItem(2, getFakeOpItem())
|
||||
gui.setItem(3, getSpinItem())
|
||||
gui.setItem(4, getIgniteItem())
|
||||
inTrollGui[from] = target
|
||||
return gui
|
||||
}
|
||||
@ -54,4 +55,23 @@ object TrollGui {
|
||||
item.itemMeta = meta
|
||||
return item
|
||||
}
|
||||
|
||||
private fun getIgniteItem(): ItemStack {
|
||||
val item = ItemStack(Material.FLINT_AND_STEEL)
|
||||
val meta = item.itemMeta
|
||||
meta.displayName(Utils.color("<color:#ff8000>Ignite</color>"))
|
||||
meta.lore(Utils.loreBuilder("This will ignite the player", "for 10 seconds."))
|
||||
item.itemMeta = meta
|
||||
return item
|
||||
}
|
||||
|
||||
/* ITEM DEFAULT SETUP
|
||||
private fun item(): ItemStack {
|
||||
val item = ItemStack(Material.)
|
||||
val meta = item.itemMeta
|
||||
meta.displayName(Utils.color(""))
|
||||
meta.lore(Utils.loreBuilder(""))
|
||||
item.itemMeta = meta
|
||||
return item
|
||||
}*/
|
||||
}
|
@ -19,6 +19,7 @@ class InvClickListener : Listener {
|
||||
1 -> Trolls.pigBomb(p, ps)
|
||||
2 -> Trolls.fakeOp(p, ps)
|
||||
3 -> Trolls.spin(p, ps)
|
||||
4 -> Trolls.ignite(p, ps)
|
||||
}
|
||||
TrollGui.inTrollGui.remove(p)
|
||||
p.closeInventory()
|
||||
|
Loading…
x
Reference in New Issue
Block a user