[ADMN] TikiToolkit v1.1.7 - Inventory slot based admin tools [1060]

Discussion in 'Inactive/Unsupported Plugins' started by Verrier, Mar 2, 2011.

  1. Offline

    Verrier

    TikiToolkit - Toolbar / Slot Based Administration Tools
    Version: v1.1.7
    [​IMG]
    TikiToolkit allows you to bind a plugin command to the left and right click function of any item on your toolbar. By using a simple configuration file you can define tools per player, per slot, per item. Which means a huge amount of customization for each user. Want to use a fish to access WorldEdit's teleport commands? NO PROBLEM!

    This plugin is an alternative to Wandmin by Nathanwolf, and will work nicely with his Spells plugin. I found that with Wandmin, I was only binding a couple commands to each wand and spending more time cycling through wands than it would take to type the command.This fixes that problem by limiting you to two commands per tool, but you can define up to 9 tools of any type (18 possible commands, if you don't want any hotbar slots)

    There is no method to actually modify the tools in game, it must be done through the config file. However if enough people want that feature, I will add it. But I think the config file editing works nicely since I personally never touch my tools once they're set up.

    [​IMG]
    (See the example config at the bottom to see this screenshot's config file)
    If you do not like the "ToolName Selected" messages. Either remove the "name: ToolName" option in the config for the tool you don't want to show the message, or set "selected_msg: false" for the player (see example config).
    Features:
    • Bind any item or block to a function
    • Respawn with your admin tools when you die (configurable)
    • Prevents you from dropping inventory when killed (configurable)
    • Allows you to chain commands together (eg: /hpos 1, /hpos 2, /expand 1 up, /set 1) for 1 tool
    Download:
    Due to major breaking changes in Bukkit, I split it into two different versions. If you're using an old CraftBukkit, you will want version 1.0.X. If you're using the latest recommended build, you will want version 1.1.X .

    [CraftBukkit 733] (561+): * Recommended Release Build *

    [CraftBukkit 560-]: * Version for old(er) CraftBukkit builds *

    Source Code:

    Commands:
    • /tiki reload - Reload the configuration file
    • /tiki identify - Identify the item you're currently holding (for use in config file)
    • /tiki tools - Adds your configured tools to your hotbar
    Example Config:

    Issues, Bugs, and Features:
    Please post all issues and feature requests on the github issue page:

    Changelog:
    Version 1.1.7:
    - Updated for to support PLAYER_INTERACT changes, CraftBukkit 561+
    Version 1.0.7:
    - Last version that supports any craftbukkit prior to 561
    - Fixes an issue with command chains not working for some plugins
    Version 1.0.6:
    - Selected tool messages can be turned off with "selected_msg: false", see example config.
    Version 1.0.5:
    - Now uses player.chat() to send commands. Which means you can send chat messages and perform native minecraft commands
    - Improved help syntax for invalid commands
    - Switched to syncTasks when restoring inventory on respawn
    Version 1.0.4:
    - Fixed some commands not working if they only registered in plugin.yml
    Version 1.0.3:
    - Only ops can /tiki reload the config now (and the console)
    - Added a /tiki tools command to restore the configured tools without killing yourself
    Version 1.0.2:
    - All commands require leading / now (eg.. /thru instead of thru)
    - Plugins that use PLAYER_COMMAND_PREPROCESS now supported
    Version 1.0.1:
    - Added command chaining (see config example)
    Version 1.0.0:
    - Initial Release
     
    ksevelyar and lysandergray like this.
  2. Offline

    Serengaeth

    I've a question about how this plugin works, so I pose to you the following hypothetical situation;
    I use the myHome plugin, currently. Typing /home teleports someone to their previously set Home location. I also use permissions to give users access to this command.
    1. With your plugin, could I set the compass, for example, to execute the /home command when the player left-clicks while holding a compass?
    2. If so, would it be possible to remove permission to use the /home command itself, but still have the players be able to use the compass to execute the command?
    If it's possible for this plugin to allow other plugin's commands to be issued with in-game actions, it's -perfect-!
     
  3. Offline

    Verrier

    Hmm! Interesting idea...
    1. Yes, however you would have to define each and every player in the config file, there's no "global" player.. and it is per slot, so the compass would have to be in a specific slot. This was more designed for admin tools to perform repeated commands, you may want to look at Wandmin and see if that is closer to what you want.

      I THINK wandmin lets you define just a general item, but it might be per player also... I could add that functionality in if Wandmin doesn't do it, just let me know :)
    2. As for removing permission, unfortunately not, there is no way (by Bukkit design) to interfere with other plugins commands, so they would always be able to use /home
     
  4. Offline

    sk8r2k11

    Right. Im on CB Build 493 (recommended build and one in title) and i cant seem to assign /commands to any of the tools. when i respawn it gives me them, and when i switch to them it tells me what im holding but it doesnt let me use the command i want. for example:
    Code:
            slot_4:
                type: DIAMOND_PICKAXE
                name: SuperPicaxe
                click_left:
                click_right: //  
    this is to activate the // (super picaxe in worldedit) command with a superpicaxe equiped (diamond pickaxe) BUT when i right click nothing happens. no lines in the talk box, no effect, nothing.

    There are no errors. Help?
     
  5. Offline

    Verrier

    I'm just about to upload a new build that fixes that problem. The issue is that it doesn't require the preceding slash, (ie your command only needs to be click_right: /) ... but I'll up load 1.0.2 which will fix that bug! Give me just a couple minutes :)
     
  6. Offline

    sk8r2k11

    Oh cool :) Thanks for the snappy reply!
     
  7. Offline

    Verrier

    Give it a shot now. My internet was being screwy, but I think I got it uploaded okay!

    Edit: You also may want to just remove click_left: option entirely, it won't look for it if it's not there, but shouldn't make a huge difference either way! :)
     
  8. Offline

    sk8r2k11

    Awesome! :D Thanks its workin perfectly now!
     
  9. Offline

    meep

    plz can anyone make a video how everything of this plugin works? o:
    i installed it.. put the config in plugins/tikki tools/
    and i don't know what should i write to get my tools?
     
  10. Offline

    Verrier

    Did you change the name to your player name in the example config? If so, just type, /tiki tools
    and you should get a list of your configured tools assuming the ITEM_TYPE stuff is correct.
     
  11. Offline

    meep

    admins:
    meep:
    respawn_wands: true
    drop_items: false
    slot_0:
    type: PAPER
    name: Teleporter
    click_left: /jumpto
    click_right: /thru
    slot_1:
    type: STICK
    name: WorldEdit Selector
    click_left: //hpos1
    click_right: //hpos2
    slot_2:
    type: STICK
    name: Command Chain Example
    click_left: [//hpos1, //hpos2, //shift 1 up, //set 1]

    thats the config....so i think i changed the name at the right place
    ..but i don't know what to wrtie first in game o:

    do i get the tools automaticly whe i write something? o:

    and what can i do whit this tools.. are there more functions then teleport and world edit? o:
     
  12. Offline

    Verrier

    The config looks fine at first glance, are you getting any errors when you start the server?

    Type "/tiki tools" or die in game and you'll get your tools.

    This mod lets you bind any /command (or multiple /commands) to a left or right click of an item. If you don't have teleport or world edit installed.. it won't work with those commands you have set. Just change the commands to any /command such as "/time add 100" should be built in to bukkit to quickly scroll through the time.
     
  13. Offline

    meep

    aah , it works <:

    it's great :D
    flower teleporter xD

    can i make my diamond pickaxe that it destroys everything with one hit or something like this ? o:
     
  14. Offline

    Verrier

    If you have WorldEdit installed, you can do something like this:
    slot_1:
    type: DIAMOND_PICKAXE
    name: Superpick
    click_right: //

    Which when you right click the pickaxe, it'll put it in instant destroy mode.. right click again and it'll turn it back to normal. But again, you need to have WorldEdit or a similar plugin that has an instant destory mode for the pickaxe
     
  15. Offline

    meep

    ah that..yes i know and have it :D i did this sometime before..without knowing how i did it xD
    ..damn.. now it don't works.. i write /tiki tools and only in chat : the tiki gods restored your tools or something like this .. but i don't get my tools.. when i die..nothing happens.. nothin in chat , no tools ):
     
  16. Offline

    Verrier

    There is probably an error in your config then, although it usually displays errors in the server console if it cant parse the config. Make sure there are no errors there. Also, make sure that the item type is correct (ie DIAMOND_PICKAXE, if you have an invalid one, it won't give you the items), and that you're using only spaces in the config (YML doesn't like tabs).
     
  17. Offline

    meep

    ..i maked the whole server new.. and now it works perfectly :)

    .. i have a plugin to repead the last command when i write /.
    .. i did /jumpto on left klick and /. on right klick to my YELLOW_FLOWER ... but it don'T works everytime o:

    but i like your plugin *-*
     
  18. Offline

    Piercing Goblin

    Is this incompatible with CB build 544? I have my config file like this this, but when I die or type '/tiki tools', my tools aren't restored (although I do get the "tiki gods have restored your admin tools" message when I use /tiki).
     
  19. Offline

    Verrier

    It should work just fine with 544, just updating the topic with the latest recommended build to comply with the plugin submission rules (staying up to date with the latest recommended build).

    Did you /tiki reload or /reload the plugin after adding the config file? Your config looks okay, also make sure that your name is spelled the same as it is in game... (eg PiErCINGGoblin instead of piercinggoblin). Not sure if that would cause an issue or not.
     
  20. Offline

    Piercing Goblin

    Okay, turns out it was case sensitive. Also, any way you could disable the messages that pop up when you switch tools?
     
  21. Offline

    Verrier

    Sure, I can make that a config option. I'll try and get that done later tonight or tomorrow :)
     
  22. Offline

    Piercing Goblin

    Thanks for the speedy reply!
     
  23. Offline

    Verrier

    Thar you go! Version 1.0.6 has the "selected_msg: false" option, which turns off those messages. Just add it in the same hierarchy spot as "drop_items" and "respawn_wands" (you can look at the example config linked in the orig post if you need an example). Hope that helps! :D

    Edit: Actually, after I added that option, I remembered you can just leave the name: option out, and it won't display a name. Figures.. oh well. Now you have TWO ways to remove the message. Options are good! Right?
     
  24. Offline

    Piercing Goblin

    Loving V1.0.6! Working flawlessly!
     
  25. Offline

    Piercing Goblin

    I ran into a problem. I want to use my item (clock/watch) in order to change the time on 2 worlds in my server. I am using the command for left click [/time world1 9am, /time world2 9am], but it doesnt work. It works when I use it as single commands, but I would like to bind those to 1 click.

    Note: Those commands are from CommandBook
     
  26. Offline

    Verrier

    Hmmm! Do other commands work in that chain? Such as.. [/time world1 9am, /god] or somesuch? I guess what I am asking is does it only fail when two /time commands are issued back to back, and neither time command executes?
     
  27. Offline

    Piercing Goblin

    The chain I used in your example (worldedit one) worked, but none of the other ones do. I've been testing ones out that use CommandBook. It would appear that WorldEdit command chains work, but not CommandBook ones.
     
  28. Offline

    Verrier

    Interesting! Okay, when I sit down to update this for the bukkit changes that were introduced today, I'll see if I can figure out what's going on that makes WorldEdit work, but CommandBook not. Give me a couple days (at most) and I'll let you know! Thanks for finding that

    Alright! The issue should be fixed in 1.0.7, see if that works for you.

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

    Piercing Goblin

    Yay! It works beautifully! I will report any more bugs if I find any.

    EDIT / Request: Any way you could add delays into chain commands, for example:
    [/spawnmob chicken, .2, /spawnmob cow]
    So it would spawn a chicken, wait .2 seconds, and then spawn a cow?
    I'm not sure if its even possible, but I thought it's worth asking for.
     
  30. Offline

    Verrier

    Glad to hear it! Hmmm... it would technically be possible to do the delay, but it would be a little complicated.. not TOO bad though. I'll keep it in mind, that would be a nice feature, I agree! No promises, but if I get some free time I'll see if I can add that :)
     

Share This Page