diff --git a/scripts/commands/utility/give.ts b/scripts/commands/utility/give.ts index 5d49fc2b3..06ac5e975 100644 --- a/scripts/commands/utility/give.ts +++ b/scripts/commands/utility/give.ts @@ -95,7 +95,7 @@ export function give(message: BeforeChatEvent, args: string[]) { * args[3] = data (optional) */ let confirmItem = false; - let itemStringConvert = toCamelCase(args[1]) + let itemStringConvert = toCamelCase(args[1]); for (let itemValidate in MinecraftItemTypes) { if (itemStringConvert === itemValidate) { confirmItem = true; diff --git a/scripts/penrose/beforeitemuseonevent/illegalitems/illegalitems_b.ts b/scripts/penrose/beforeitemuseonevent/illegalitems/illegalitems_b.ts index ff593780d..59b22c896 100644 --- a/scripts/penrose/beforeitemuseonevent/illegalitems/illegalitems_b.ts +++ b/scripts/penrose/beforeitemuseonevent/illegalitems/illegalitems_b.ts @@ -103,7 +103,7 @@ function illegalitemsb(object: BeforeItemUseOnEvent) { // No need to ban when we can just remove it entirely and it's not officially listed as an illegal item at this moment if (antiShulkerBoolean && item.id === "minecraft:shulker_box" || antiShulkerBoolean && item.id === "minecraft:undyed_shulker_box") { object.cancel = true; - let invContainer = source.getComponent('minecraft:inventory') as EntityInventoryComponent + let invContainer = source.getComponent('minecraft:inventory') as EntityInventoryComponent; invContainer.container.setItem(hand, new ItemStack(MinecraftItemTypes.air, 0)); sendMsg('@a[tag=notify]', `§r§4[§6Paradox§4]§r Removed ${item.id.replace("minecraft:", "")} from ${source.nameTag}.`); sendMsgToPlayer(source, `§r§4[§6Paradox§4]§r Shulker Boxes are not allowed!`); diff --git a/scripts/penrose/entitycreateevent/crasher_b.ts b/scripts/penrose/entitycreateevent/crasher_b.ts index 2559b061f..90651b363 100644 --- a/scripts/penrose/entitycreateevent/crasher_b.ts +++ b/scripts/penrose/entitycreateevent/crasher_b.ts @@ -6,8 +6,8 @@ const World = world; function nearestPlayer(entity: Entity) { if (!entity) { - return - }; + return; + } const allPlayers = World.getPlayers(); diff --git a/scripts/penrose/tickevent/illegalitems/illegalitems_a.ts b/scripts/penrose/tickevent/illegalitems/illegalitems_a.ts index 16ef1ae51..1af194758 100644 --- a/scripts/penrose/tickevent/illegalitems/illegalitems_a.ts +++ b/scripts/penrose/tickevent/illegalitems/illegalitems_a.ts @@ -283,7 +283,7 @@ function illegalitemsa() { } if (illegalEnchantmentBoolean) { // We get a list of enchantments on this item - let enchantContainer = inventory_item.getComponent("minecraft:enchantments") as ItemEnchantsComponent + let enchantContainer = inventory_item.getComponent("minecraft:enchantments") as ItemEnchantsComponent; let item_enchants = enchantContainer.enchantments; // List of allowed enchantments on item let enchantedSlot = enchantmentSlot[item_enchants.slot];