Update the resourcepack
This commit is contained in:
parent
b092642391
commit
b07a830a4d
3 changed files with 8 additions and 6 deletions
BIN
resourcepack.zip
BIN
resourcepack.zip
Binary file not shown.
|
@ -5,13 +5,13 @@ import org.bukkit.Material
|
|||
|
||||
object Resourcepack {
|
||||
const val url = "https://github.com/moritzruth/spigot-ttt/raw/master/resourcepack.zip"
|
||||
val checksum = Hex.decodeHex("9333ca9c1e5f6ade64575b6007ded85a94450753")
|
||||
val checksum = Hex.decodeHex("bdca89e23401ec196aa3e3dbba36a1526754591d")!!
|
||||
private const val NAMESPACE = "ttt:"
|
||||
|
||||
object Items {
|
||||
val textureless = Material.WHITE_STAINED_GLASS_PANE
|
||||
val deathReason = Material.GRAY_STAINED_GLASS_PANE
|
||||
val questionMark = Material.STONE
|
||||
val censored = Material.STONE
|
||||
val time = Material.CLOCK
|
||||
val dot = Material.GRAY_STAINED_GLASS
|
||||
val arrowDown = Material.WHITE_STAINED_GLASS
|
||||
|
@ -29,10 +29,9 @@ object Resourcepack {
|
|||
val teleporter = Material.SPRUCE_WOOD
|
||||
val martyrdomGrenade = Material.BIRCH_LOG
|
||||
val fakeCorpse = Material.SPRUCE_LOG
|
||||
val boomBody = Material.BIRCH_WOOD
|
||||
val boomBody = Material.TNT
|
||||
val defibrillator = Material.IRON_INGOT
|
||||
val secondChance = Material.GOLD_INGOT
|
||||
val beeBomb = Material.BEEHIVE
|
||||
|
||||
// Weapons
|
||||
val deagle = Material.IRON_HOE
|
||||
|
|
|
@ -96,13 +96,16 @@ class TTTCorpse private constructor(
|
|||
|
||||
private fun setReasonItem() {
|
||||
if (status == Status.INSPECTED) {
|
||||
val reasonItemStack = if (reason is DeathReason.Item) reason.item.templateItemStack.clone() else ItemStack(Resourcepack.Items.deathReason)
|
||||
val reasonItemStack =
|
||||
if (reason is DeathReason.Item) reason.item.templateItemStack.clone()
|
||||
else ItemStack(Resourcepack.Items.deathReason)
|
||||
|
||||
inventory.setItem(REASON_SLOT, reasonItemStack.applyMeta {
|
||||
setDisplayName("${ChatColor.RESET}" + reason.displayText)
|
||||
lore = listOf("${ChatColor.GRAY}Grund des Todes")
|
||||
})
|
||||
} else {
|
||||
inventory.setItem(REASON_SLOT, ItemStack(Resourcepack.Items.questionMark).applyMeta {
|
||||
inventory.setItem(REASON_SLOT, ItemStack(Resourcepack.Items.censored).applyMeta {
|
||||
setDisplayName("${ChatColor.GRAY}${ChatColor.MAGIC}##########")
|
||||
lore = listOf("${ChatColor.GRAY}Grund des Todes")
|
||||
})
|
||||
|
|
Reference in a new issue