MACIEJNIERZWICKI.PL
MINECRAFT PLUGINS
TrashChest
Give wasted items a second life
Configuration – config.yml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 | STORAGE: # Supported storage types: SQLite, MySQL TYPE: SQLite # MySQL settings HOST: "localhost" PORT: 3306 DATABASE: "trashchest" USERNAME: "serveruser" PASSWORD: "userpassword" # Trash chest window size. Supported values: 18, 27, 36, 45, 54 PAGE_SIZE: 54 # Material used to display help item MAIN_HELP_ITEM: PAPER # Material used to display count item COUNT_ITEM: PAPER # Material used to display exit item EXIT_ITEM: OAK_DOOR # Material used to display page switch item PAGE_ITEM: ARROW # Material used to display 'Add item' item ADD_ITEM: LIME_STAINED_GLASS_PANE # List of locations where clicking on containers will trigger opening TrashChest window. Format: <world>:<x>:<y>:<z> CONTAINER_LOCATIONS: - "awesome_world:0:64:0" - "awesome_world_nether:100:90:-300" # List of worlds where players will not be able to open TrashChest containers. WORLDS_EXCLUDED_FROM_PLAYER_ACCESS: - "excluded_world" # List of worlds where destroyed items will not be transferred to TrashChest containers. WORLDS_EXCLUDED_FROM_DESTROYED_ITEMS_TRANSFER: - "excluded_world" # Here you can specify which damage causes will not result in destroyed items being transferred to TrashChest containers. # Example causes: LAVA, FIRE_TICK, VOID, ENTITY_EXPLOSION # All possible damage causes can be found here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/EntityDamageEvent.DamageCause.html DAMAGE_CAUSES_EXCLUDED_FROM_DESTROYED_ITEMS_TRANSFER: - LAVA - VOID # Here you can specify materials of items that will not be transferred to TrashChest containers when destroyed. ITEM_MATERIALS_EXCLUDED_FROM_DESTROYED_ITEMS_TRANSFER: - COMMAND_BLOCK - REPEATING_COMMAND_BLOCK - CHAIN_COMMAND_BLOCK - COMMAND_BLOCK_MINECART # Time in milliseconds after which items in TrashChest containers will be automatically deleted. Default is 30 days. # Making changes to this value will not affect items that are already in TrashChest containers. ITEM_LIFETIME_MILLIS: 2592000000 # When true, items that despawn due to reaching their lifetime will also be transferred to TrashChest containers. INCLUDE_DESPAWNED_ITEMS: true # Interval in milliseconds at which old items cleanup task will run. Default value is 60000 (1 minute). OLD_ITEMS_CLEANUP_TASK_INTERVAL_MILLIS: 60000 DATETIME_FORMAT: "MM.dd.yyyy HH:mm" DATETIME_ZONE: "Europe/Warsaw" # When true, after entering /trashchest command without any arguments, the TrashChest inventory will open instead of displaying the help message. Help is still available by entering /trashchest help. MAIN_CMD_OPENS_TRASHCHEST: false # When true, access to TrashChest is locked globally. Use /trashchest lock/unlock to change this state. LOCK_ACCESS_GLOBALLY: false # Supported values: "en", "en-legacy", "pl", "pl-legacy", "ru", "ru-legacy" # Values without "-legacy" work on Paper servers only LANG: "en-legacy" # Requires Paper or compatible fork. Enabling this will make TrashChest use MiniMessage formatting for sending messages to players and presenting text inside inventories. # https://docs.papermc.io/adventure/minimessage MODERN_CHAT_FORMATTING: false # Whether to enable sending metrics to bStats. METRICS: true # Time in milliseconds since last TrashChest inventory generation after which it can be regenerated. # Not recommended to set this value low with extreme high amount of items stored in TrashChest. MAIN_MENU_LIFETIME_MILLIS: 10000 # Maximum number of item entries that can be stored in TrashChest. This is number of inventory slots occupied, not absolute number of items. # For example, a stack of 64 dirt blocks counts as 1. # Set to 0 to disable limit. TRASH_ITEMS_TARGET: 10000 # What to do when TRASH_ITEMS_TARGET is reached and new items are about to be added. Possible values: "DELETE_OLDEST", "PREVENT_NEW" # DELETE_OLDEST - delete oldest items to make space for new ones # PREVENT_NEW - prevent new items from being added to TrashChest TRASH_ITEMS_TARGET_REACHED_ACTION: "DELETE_OLDEST" PLAY_SOUND_ON_ITEM_ADD: true SOUND_ON_ITEM_ADD: "ENTITY_EXPERIENCE_ORB_PICKUP" PLAY_SOUND_ON_ITEM_TAKE: true SOUND_ON_ITEM_TAKE: "ENTITY_ITEM_PICKUP" # Experimental feature - turn it off if you experience issues with navigating through TrashChest pages. # When enabled, TrashChest will load only a part of the items in trash at once (requested page + several pages behind / after) which results in significant performance boost. USE_PARTIAL_TRASH_LOADING: false Integration: WorldGuard: AllowPlayersDisableDestroyedItemsTransfer: true PlotSquared: AllowPlayersDisableDestroyedItemsTransfer: true Residence: AllowPlayersDisableDestroyedItemsTransfer: true SimpleClaimSystem: AllowPlayersDisableDestroyedItemsTransfer: true Homestead: AllowPlayersDisableDestroyedItemsTransfer: true GriefPrevention: AllowPlayersDisableDestroyedItemsTransfer: true # Set to true to enable debugging mode, which will print additional information to console. # Enable this only when troubleshooting issues, as this may lead to console spam. DEBUG: false # Do not change this line CONFIG_VERSION: 1 |