Skip to content

Instantly share code, notes, and snippets.

import { Command } from '../../helpers/commands'
import { announce } from '../../utility/common'
const placeholders = {
// TODO: Add test to make sure it has % at end and start
essentials_Afk: '%essentials_afk%',
jobsReborn_Jobs: '%jobsr_user_jobs%',
}
const __undefined__ = '__undefined__'
export class MobDisguiseClass {
clone: () => MobDisguiseClass
}
export type MobDisguiseApi = {
new (disguise: DisguiseTypeItem): MobDisguiseClass
}
export class DisguiseTypeItem {}
export interface LibsDisguisesApi {
@MercerK
MercerK / SoundBrowser.ts
Last active September 23, 2021 03:49
SoundBrowser.ts
const Sound = core.type('org.bukkit.Sound')
const ItemStack = core.type('org.bukkit.inventory.ItemStack')
const NamespacedKey = core.type('org.bukkit.NamespacedKey')
const PersistentDataType = core.type('org.bukkit.persistence.PersistentDataType')
const Material = core.type('org.bukkit.Material')
const MAX_INVENTORY_COL = 9
const soundKeys = Object.keys(Sound)
const materialKeys = Object.keys(Material)