[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

    Kainzo

    damn, didnt realize you did TikiTools Verrier ;)
     
  3. Offline

    Xye

    doesnt work :(
     
  4. Offline

    Verrier

    I'm slowly working on rewriting the whole plugin, hopefully the new version will be a little more intuitive to use and include more workness to it :)
     
  5. Offline

    Xye

    Okay... :)
     
  6. Offline

    mario00037

    Can we get a link for the skin? I really like it. :D
     
  7. My config file is returning errors. My goal is to have a pickaxe in the first slot that will trigger WorldEdits's Super Pickaxe, and a Feather in the last that switches my gamemode.
    Config:
    Code:
    admins:
    
        salinimpedimenta:
    
            selected_msg: true
    
            respawn_wands: true
    
            drop_items: false
            slot_0:
                type: DIAMOND_PICKAXE
                name: PickAxe
                click_left:
                click_right: //
            slot_8:
                type: FEATHER
                name: GameMode
                click_left: /gamemode salinimpedimenta 0
                click_right: /gamemode salinimpedimenta 1
     
  8. Offline

    Verrier

    Try removing the extra spaces between the lines (if they infact exist), and you can leave out the "click_left: " thing entirely if you don't have any action attached to it.

    That should hopefully solve the problem, if not, see if you can paste the error here :)



    Someone linked / uploaded it previously in a post on this thread somewhere, I don't have it anymore :(
     
  9. No dice. Here's the error:
    Code:
    [SEVERE] Error occurred while enabling TikiToolkit v1.1.7 (Is it up to date?): null; mapping values are not allowed here
    mapping values are not allowed here
     in "<reader>", line 18, column 23:
                    click_left: /gamemode salinimpedimenta 0
                              ^
    
        at org.yaml.snakeyaml.scanner.ScannerImpl.fetchValue(ScannerImpl.java:733)
        at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:305)
        at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:179)
        at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:563)
        at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161)
        at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:123)
        at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106)
        at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:121)
        at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480)
        at org.yaml.snakeyaml.Yaml.load(Yaml.java:423)
        at org.bukkit.util.config.Configuration.load(Configuration.java:89)
        at org.bukkit.plugin.java.JavaPlugin.getConfiguration(JavaPlugin.java:118)
        at com.minecarts.verrier.tikitoolkit.TikiToolkit.onEnable(TikiToolkit.java:47)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:188)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:968)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:186)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:169)
        at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:348)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:335)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:165)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:399)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    Edit: Saved the config file as a .txt and uploaded. I don't see what's wrong, but you might catch something.
     

    Attached Files:

  10. Offline

    Verrier

    Try this version, I think whatever editor you were using was doing some weird stuff. There were some extra newline characters and one of the lines had tabs (tabs + yml = booms)
     

    Attached Files:

  11. Works brilliantly. :)
    Thank you!
    EDIT: Incidentally, what editor do you use? Obviously Notepad isn't the best. :p
     
  12. Offline

    Verrier

    I use Notepad++ and turn the "View -> Show Symbol -> Show show white space and tab" option on which makes little dots for spaces and arrows for tabs
     
  13. Offline

    io_europa

    No way to bind different commands to different dyes?
     

Share This Page