Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davycraft648/itemlifetime
Adjust the time of dropped items to disappear | Pocketmine-MP 4 plugin
https://github.com/davycraft648/itemlifetime
pmmp-4 pmmp-plugin pmmp4 pocketmine-mp-plugin pocketmine-mp-plugins pocketmine-plugin pocketmine-plugins
Last synced: 3 months ago
JSON representation
Adjust the time of dropped items to disappear | Pocketmine-MP 4 plugin
- Host: GitHub
- URL: https://github.com/davycraft648/itemlifetime
- Owner: DavyCraft648
- License: gpl-2.0
- Created: 2021-12-26T20:14:05.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-17T18:41:46.000Z (almost 3 years ago)
- Last Synced: 2024-09-27T10:21:04.187Z (3 months ago)
- Topics: pmmp-4, pmmp-plugin, pmmp4, pocketmine-mp-plugin, pocketmine-mp-plugins, pocketmine-plugin, pocketmine-plugins
- Language: PHP
- Homepage: https://poggit.pmmp.io/ci/DavyCraft648/ItemLifeTime/~
- Size: 200 KB
- Stars: 3
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ItemLifeTime
Adjust the time of dropped items to disappear in your server## How does this plugin work?
Default time of dropped items to disappear in PocketMine is 5 minutes (300 seconds),
but you can change it with this plugin!## How to use?
- `item-lifetime` in config.yml is used to change dropped items' time to disappear in your whole server.- Use `worlds` in the config if you want a separated item lifetime on each world in your server,
Example:
```yaml
worlds:
MyPrettyWorld: 120 # Set item lifetime on MyPrettyWorld world to 120 second
MyDirtyWorld: 360 # Set item lifetime on MyDirtyWorld world to 360 second
```## Config
```yaml
--- # ItemLifeTime plugin configuration file# Set dropped item lifetime in your server (in second)
# Default is 300 seconds (5 minutes)
# Minimum value is 0, maximum is 1938
# Item will never despawn if this set to -1
item-lifetime: 300# Set different custom item lifetime on each of these worlds (optional)
# Value in item-lifetime will be used if the world is not set in this list
# Example configuration:
# worlds:
# MyPrettyWorld: 120
# MyDirtyWorld: 360
#
# This will set item lifetime in MyPrettyWorld world to 120 seconds, 360 seconds in MyDirtyWorld
worlds: {}# Show remaining time to disappear in item's nametag
display-time:
enabled: false
# Text to be set in item's nametag
# {MINUTE}, {SECOND}, {TIME}
# Set this to "{MINUTE}:{SECOND} {TIME}" will be shown as "01:20 01 minute" (example)
text: "{MINUTE}:{SECOND}"
...```