MChest
MChest plugin automatically fill chests, created by a command, in dynamic time periods, with predefined items.
Usage:
Endless events, dungeons, PVP & PVM arenas,...
How to use:
- 1. We must add items which will be filled into chests.
- /mchest addis <ItemID:dmg,amount> <ItemID:dmg,amount> <ItemID:dmg,amount>
- /mchest addis 17:0,1 17:1,1 17:2,1
- 2. Then we find place in the world where we want place this chest.
- /mchest gen <ItemsStacksID> <dd-hh-mm>
- /mchest gen 1 00-01-30
- 3. From now will be this chest filled with these items every hour and half.
- /mchest info locs
- /mchest info items
Also if player have mchest.opopenport permission and parameter OpOpenTeleport in config file have value true, then player will be teleported to spawn after open Magic Chest and items from that will be given to him automatically.
Since 1.1 is Magic Chest compatible with plugin Residence. In case that player Enter Res with specific name (variable via config) then commands from config will be sent through consol. This plugin listen to three events - Enter Res, Leave Res and Death of Player. In case of Death event will be sent commands only if player have mchest.(specword) permission. To sum up with this you should prevent players from setting home position or setting warps near Magic Chest.
More info below.
Video:
Commands:
/mchest <help/addis/edit/gen/info/rmv/fill/stop/start/port> ...
- Help
- Show help to this plugin.
- /mchest help
- AddIS
- Add Items Stacks to the list.
- /mchest addis <ID:DMG,amount> [ID:DMG,amount] [...]
- Edit
- Edit already created Items Stacks.
- /mchest edit <ItemsStacksID> <ID:DMG,amount> [ID:DMG,amount] [...]
- Gen
- Generate Magic Chest with predefined time period and items.
- /mchest gen <ID> <dd-hh-mm>
- Rmv
- Remove from list of Items Stacks and Magic Chests one or more element.
- /mchest rmv <loc/items/see> [MagicChestID/ItemsStacksID/all]
- Info
- Show informations about Magic Chest(s) and Items Stacks.
- /mchest info <loc/items/see> [MagicChestID/ItemsStacksID]
- Stop
- Stop automatically filling of Magic Chest(s).
- /mchest stop <loc/items/see> [MagicChestID/ItemsStacksID/all]
- Start
- Start automatically filling of Magic Chest(s).
- /mchest start <loc/items/see> [MagicChestID/ItemsStacksID/all]
- Fill
- Fill Magic Chest(s) with items. (immediately)
- /mchest fill <loc/items/see> [MagicChestID/ItemsStacksID/all]
- Port
- Teleport to location of Magic Chest.
- /mchest port <MagicChestID>
Permissions:
mchest.*: Gives access to all MChest permissions and commands
- contians
- mchest.player
mchest.help.admin
mchest.save
mchest.info.locs
mchest.info.items
mchest.info.see
mchest.addis
mchest.edit
mchest.gen
mchest.rmv.locs
mchest.rmv.items
mchest.rmv.see
mchest.fill.locs
mchest.fill.items
mchest.fill.see
mchest.stop.see
mchest.stop.locs
mchest.stop.items
mchest.start.see - mchest.start.locs
- mchest.start.items
- mchest.port
mchest.player: Permission for Players.
- contains
- mchest.help.player
- mchest.opopenport
- Description
mchest.opopenport: Allow teleport player to spawn location after open chest.
mchest.port: Allow teleport player to MagicChest location.
mchest.help.player: Allow use help command for players.
mchest.help.admin: Allow use help command.
mchest.save: Allow save MagicChests and ItemsStacks lists.
mchest.info.locs: Allow show locations list.
mchest.info.items: Allow show ItemsStacks list.
mchest.info.see: Allow show info about seen spell on location;
mchest.addis: Allow add ItemsStacks to ItemsStacks list.
mchest.edit: Allow rewrite list of ItemsStacks.
mchest.gen: Allow generate MagicChest on player location.
mchest.rmv.locs: Allow remove Magic Spell from one or all locations.
mchest.rmv.items: Allow remove Magic Spell from ItemsStacks.
mchest.rmv.see: Allow remove Magic Spell from seen location.
mchest.fill.locs: Allow cast Magic Spell on (or another container) with ItemsStack determined by ItemsStack ID or all of them.
mchest.fill.items: Allow cast Magic Spell on (or another container) with ItemsStack determined by ItemsStack ID or all of them.
mchest.fill.see: Allow cast Magic Spell on seen location.
mchest.stop.see: Allow stop Magic Spell on seen location.
mchest.stop.locs: Allow stop Magic Spell on Chests (or another container) location (/mchest info loc - ID)
mchest.stop.items: Allow stop Magic Spell on (or another container) with ItemsStack determined by ItemsStack ID or all of them.
mchest.start.items: Allow fill Chest (or another container) with ItemsStack determined by ItemsStack ID or all of them.
mchest.start.locs: Allow fill Chest (or another container) on location (/mchest info loc - ID)
mchest.start.see: Allow fill chest on seen location.
Config.yml
# Messages and Config of CheckPoint plugin.
# If in any message is used <name> than <name> will be replaced with name of user or command sender.
# After first save it will repeat save with Repeat period.
Config:
Repeat: 6000
# If true than teleport to spawn location after open MagicChest, could be rewritten (if true) by -mchest.opopenport permission.
# False block all ports; true could be rewritten by permissions.
OnOpenTeleport: true
# Log of this plugin.
EnableLog: false
Messages:
NoPermission: You do not have permission for this.
LowArg: Not enough arguments.
BadArg: Bad arguments.
FileNotExist: File not exist or another error happend.
FileSuccesfulyDeleted: File successfuly deleted.
Teleported: You were teleported to Spawn location.
TeleportedToLoc: You were teleported to Magic Location.
OnCreateChest: You created MagicChest.
OnRemoveChest: MagicChest successfuly removed from list.
OnCreateFailedAlreadyExist: On this location is already Magic Spell.
OnRemoveItems: Items removed from chest.
NotMagicChest: On this location is no spell.
AddIS: ItemsStacks added to list.
MustBePlayer: Must be palyer.
ISEdit: ItemsStacks edited.
FillOn: Magic Spell actived.
FillOff: Magic Spell disactived.
FilledOne: Spell was cast on chest.
FilledMore: Spells were cast on chests.
Save: Save MagicChests and ItemsStacks.
# If equals 'null' than it will be blocked else if this word is in residence name it will
# cast commands from file onResEnter.txt onPlayerResidenceEnterEvent and onPlayerResidenceLeaveEvent
# it will cast commands from file onResLeave.txt
SpecResWord: specword
ResMessages:
onResEnter: Enter to special residence.
onResLeave: Leave to special residence.
onResLeaveDeath: Death in special residence.
onResEnter:
- manuaddp <name> -essentials.sethome
- manuaddp <name> mchest.specword
onResLeave:
- manudelp <name> -essentials.sethome
- manudelp <name> mchest.specword
onResLeaveDeath:
- manudelp <name> -essentials.sethome
- manudelp <name> mchest.specword
# Help
Help:
Help: (Empty)&7/mchest <addis/gen/rmv/info/start/stop/fill/port> (newLine) &o&nType just /mchest help or /mchest <argument> to show help
AddIS:
Help: /mchest addis <ID:DMG,amount> <ID:DMG,amount> ... <ID:DMG,amount> (newLine) Add ItemsStacks to list
Edit:
Help: /mchest edit <numebr> <ID:DMG,amount> <ID:DMG,amount> ... <ID:DMG,amount> (newLine) Edit ItemsStacks (ID = <number>)
Gen:
Help: /mchest gen <ID> <dd-hh-mm> (newLine) Create MagicChest which will be filled with ItemsStack - ID (/mchest info items) in defined interval (last <dd-hh-mm> )
Rmv:
Help: /mchest rmv <loc/items/see> (newLine) remove magic spell ...
Loc: /mchest rmv loc <all/number> (newLine) remove magic spell from location ( chests, dispensers,... ) or from all locations
Items: /mchest rmv items <all/number> (newLine) remove magic spell from all chests which contains or may contain these ItemsStacks or from all chests
See: /mchest rmv see (newLine) remove magic spell from Seen chest (in case it is MagicChest)
Info:
Help: /mchest info <loc/items/see>
Loc: /mchest info loc (newLine) show info about magic spells on locations
Items: /mchest info items (newLine) show info about ItemsStacks
See: /mchest info see (newLine) show info about Magic Spell on location which is seen by sender of command
Stop:
Help: /mchest stop <loc/items/see>
Loc: /mchest stop loc <number/all> (newLine) stop Magic Spell from filling chest on exactly location ( /mchest info loc )
Items: /mchest stop items <number/all> (newLine) stop Magic Spell on all locations which determined by ItemsStack ID ( /mchest info items )
See: /mchest stop see (newLine) stop Magic Spell on seen location
Start:
Help: /mchest start <loc/items/see>
Loc: /mchest start loc <number/all> (newLine) start Magic Spell from filling chest on exactly location ( /mchest info loc )
Items: /mchest start loc <number/all> (newLine) start Magic Spell on all locations which determined by ItemsStack ID ( /mchest info items )
See: /mchest start see (newLine) start Magic Spell on seen location
Fill:
Help: /mchest fill <loc/items/see>
Loc: /mchest fill loc <number/all> (newLine) immediately cast Magic Spell on chest on exactly location ( /mchest info loc )
Items: /mchest fill loc <number/all> (newLine) immediately cast Magic Spell on all locations which determined by ItemsStack ID ( /mchest info items )
See: /mchest fill see (newLine) immediately cast Magic Spell on seen location
Port:
Help: /mchest port <locID> (newLine) /mchest info locs
# END :)
- Planned
- Random filling items to chest
- Random time of filling chests
- Add possibility of create Magic Chest from already placed Chest.
So if you find this plugin useful you can also donate me some money, thanks. :)
I added your plugin, it didn't work right for me. I thought it migh have been outdated and didn't work on 1.4. I uninstalled your plugin and reloaded my server. That's when I started having problems. DisguiseCraft wouldn't work along with my shop plugin. My players didn't have access to /spawn, even though Pex said they did. Is there a chance that your plugin corrupted my files?
like this thought of this plugin be great for fast spawning of a premade chest from one of my events
right now im having a problem seeing how to add dyes,lapis,potions,heads, enchanted items
seeing as there id's are as seen 373:16394 (slowness potion)
: conflicts with the damage in the plugin 373:16394:1,1 just gives you (Bad arguments)
if this is somthing u may have plan hope to see from it soon would be very useful in alot of rpgs,pvp servers
I made a chest and sure it was made filled with predefined items but after i took items from it it never refilled again..? am i doing something wrong I set the time to 00-00-01 on one chest and 00-00-03 on another... so i guess it should refill every 1min the 1st and every 3mins the second chest but they do not refill.. :(
also when i run the info command its set to true fill:true like in you video so it should be working good...
any help appreciated thanks Andy PS: also does it check that it's full will it not refill so to prevent overflow i guess :) that is if get it to refill somehow
@MrTashafi
Hello, that is cool idea, now it is not possible, but I will add this as plan to new versions. Unfortunately I don't have so much time now. But anyway thanks for feedback :)
Does this also work whith signed books? or can i make an infinite chest which i already filled?
i am going to try it. it sounds great!
Will give it a swing. Thanks! :)