Filled [ACCEPTED] Chest Commands

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

  1. Offline

    InflamedSebi

    I'm looking for Lightweight plugin, that adds commands to chests.
    Categories:
    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"
    Code:
    default:
      playercommands:
        - /me founds a chest.
      consolecommands: {}
    commandtablename:
      playercommands:
        - /me founds a treasure chest.
        - wait 60000
        - /spawn
      consolecommands:
        - /pex user %player% add permission teleport.cave2
        -/someothercommands
    anothercommandtable:
      playercommands:
        - /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.

    Permissions:
    chestcommands.create
    default: op

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

    Zoroark173

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

    InflamedSebi

    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

    MexMaster

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

    InflamedSebi

    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

    MexMaster

    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! https://dl.dropbox.com/u/89360491/ChestCommands.jar

    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


    //edit:

    Source will come in the next hour

    //edit:

    Source: https://github.com/MexMasterCoder/ChestCommandsPlugin

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

    InflamedSebi

  8. Offline

    MexMaster

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

    MexMaster

    fixed some time ago.

    bukkitdev: google it :D
     

Share This Page