Filled [ACCEPTED] Chest Commands

Discussion in 'Archived: Plugin Requests' started by InflamedSebi, Nov 25, 2012.

  1. Offline


    I'm looking for Lightweight plugin, that adds commands to chests.
    Mechanics[​IMG], Fun[​IMG], Role Playing[​IMG], Admin Tools[​IMG]

    How to set up a chest:

    type "/chestcommands create [commandtable]" and punch or rightklick a chest.
    this will store the chest with the specified "commandtable" leave blank to use a default one.
    type "/chestcommands remove" and punch or rightklick a chest.
    this will remove a chest from the watchlist.

    Commandtables should be defined in the config or a "commandtables.yml"
        - /me founds a chest.
      consolecommands: {}
        - /me founds a treasure chest.
        - wait 60000
        - /spawn
        - /pex user %player% add permission teleport.cave2
        - /me founds a death chest.
        - /kill %player%
      consolecommands: {}
    So you can see there should some features in the tables ... :
    - multiple tables
    - a "Wait [milliseconds]" option, so it is waiting for some time before the next command is executed ( i know you need to do this in a async task and ist hard to do, so it would be ok to leave it out)
    - variables like %player% to run a commands with the playername, who opend the chest
    - define seperate console and playercommands.

    default: op

    some other features:
    - chests can't get destroyed if there are commands specified to it
  2. Offline


    I am fairly sure that this is possible with the Skript plugin :D
  3. Offline


    maybe, but i want a lightweigth one ... and script is all, but not lightweight xD

    Bump :D still noone?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 30, 2016
  4. Offline


    I think i can do that for you. maybe today ;P
  5. Offline


    awesome :D when u are ready, can u please show me the sourcecode? I'm learning java atm and it would be great to learn from u :)
  6. Offline


    So, finally 99% finshed.

    and sorry for the long wait time yesterday my internet was so extrem laggy :(
    and now i will short add multiworld support then i will upload and send you the link

    //edit: !update!

    Here you got. An example is in the commandtables.yml that will generated at the first start.

    Little Guide:

    How to create a chest:

    look at the chest you want to change in a commandchest, then type /chestcommandscreate <commandtable>

    Finshed ;D

    How to perform commands on chest open:

    Do nothing :D if the chest opens it will automaticly perform the console-/player-commands

    How to remove a chest:

    look at the chest then type /chestcommandsremove

    if you have an other question. ask me ;D

    To Do before Realease on Bukkit Dev:

    - an language file
    - an command for creating commandtables


    Source will come in the next hour



    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 30, 2016
  7. Offline


  8. Offline


    For now the variable %player% isn't working, but i will fix now
  9. Offline


    fixed some time ago.

    bukkitdev: google it :D

Share This Page