[GEN/TP/ADMN] CommandBook 1.7 - Essential and useful commands (/item, etc.) [BukkitDev]

Discussion in 'Archived: Plugin Releases' started by sk89q, Feb 28, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    sk89q

    General commands as used on my server since '10. Warping, item giving, time changing, weather changing -- the usual.

    Thor command, one of many (video by Rubenbeebl):


    Note: You can remove any of these commands from CommandBook using the download link below.
    • General:
      • item [-d] <item[:data]> [amount]
      • give [-d] <target> <item[:data]> [amount]
      • more [-a] [-i] <target>
      • online [filter]
      • motd
      • intro (play intro music)
      • midi (play a MIDI file for yourself)
      • rules
      • setspawn [destination]
      • time [world] <time>
      • weather <'stormy'|'sunny'> [duration] [world]
      • thunder <'on'|'off'> [duration] [world]
      • spawnmob [-p] [-d] [-i] [-r] <mob> [count] [location]
      • kit <kit> [target]
    • Teleportation:
      • spawn
      • tp [target] <destination>
      • bring <target>
      • put <target>
      • call <target> (request a teleport)
    • Messaging:
      • broadcast <message>
      • say <message>
      • me <message>
      • msg <target> <message...>
      • reply <message...>
      • mute <target>
      • unmute <target>
    • Player:
      • whereami
      • compass
      • clear [-a] [target]
      • slap [-s] [-h|-v] [-d] [target]
      • rocket [-s] [-h] [target]
      • barrage [-s] [target]
      • shock [-s] [target]
      • thor [target] (get Thor's hammer)
      • unthor [target] (revoke Thor's hammer)
      • whois [target]
    • Utilities:
      • ping
      • debug info
      • debug clock (very accurate server lag benchmark)
    • Bans:
      • kick <target> [reason...]
      • ban [-e] <target> [reason...]
      • unban <target> [reason...]
    Complimentary plugins:

    Download

    [​IMG] CommandBook 1.7
    Requirements: Java 6+, WorldEdit, Bukkit build 753+

    You need WorldEdit: Install WorldEdit. If you don't want WorldEdit, put WorldEdit.jar in the root folder of your server or in the plugins/CommandBook folder.​

    If you find CommandBook useful, [​IMG]

    How to Use

    Check out my server too!
    [​IMG]

    [​IMG] (CommandBook is open source!)
     
    dragon8510, Psychoma, Goodi and 26 others like this.
  2. Offline

    DoomBunnyPwn

    Dude, how did you get to be so awesome at plugins and/or life?!
     
  3. Offline

    Jobsti

    aaahahaha, super great @sk89q
    The plugin which I want, Big thanks!

    making some tests with the /where/who cmds from "Interesting Places".
     
  4. Offline

    sk89q

    Could you post the log of your server's console on boot up plus relevent configuration?
     
  5. Offline

    koneko

    Sure thing. I hope this is the correct info; still feeling my way through it all.

    Code:
    2011-03-01 23:34:10 [INFO] Starting minecraft server version Beta 1.3
    2011-03-01 23:34:10 [INFO] Loading properties
    2011-03-01 23:34:10 [INFO] Starting Minecraft server on 192.168.1.106:25589
    2011-03-01 23:34:10 [INFO] This server is running Craftbukkit version git-Bukkit
    -0.0.0-458-g557f3d2-b440jnks (MC: 1.3)
    2011-03-01 23:34:10 [INFO] Preparing level "Logitech"
    2011-03-01 23:34:10 [INFO] Preparing start region
    2011-03-01 23:34:11 [WARNING] Using the stupidly long constructor com.WinSock.Mo
    bControl.MobControlPlugin(PluginLoader, Server, PluginDescriptionFile, File, Fil
    e, ClassLoader) is no longer recommended. Go nag the plugin author of MobControl
     to remove it! (Nothing is broken, we just like to keep code clean.)
    2011-03-01 23:34:11 [WARNING] Using the stupidly long constructor com.bukkit.Jor
    danske.MySignEdit.MySignEdit(PluginLoader, Server, PluginDescriptionFile, File,
    File, ClassLoader) is no longer recommended. Go nag the plugin author of MySignE
    dit to remove it! (Nothing is broken, we just like to keep code clean.)
    2011-03-01 23:34:11 [INFO] [Permissions] version [2.5] (Phoenix) was Initialized
    .
    2011-03-01 23:34:11 [INFO] WorldGuard loaded.
    2011-03-01 23:34:11 [INFO] [AutoSave] Version 1.0.2 is enabled!
    2011-03-01 23:34:11 [INFO] [AutoSave] Loading config file
    2011-03-01 23:34:11 [INFO] [AutoSave] AutoSaveThread Started: Interval is 1500 s
    econds
    2011-03-01 23:34:11 [INFO] Big Catch version 0.4 is enabled!
    2011-03-01 23:34:11 [INFO] bSwarm version 0.3.2 is enabled!
    2011-03-01 23:34:11 [INFO] [BukkitUp]: [Warning] auto-download-updates property
    not found, autodownloading updated builds by default
    2011-03-01 23:34:12 [INFO] [BukkitUp]: BukkitUp V.2.0 by Triii.ws, Now initializ
    ed & checking for updates....
    2011-03-01 23:34:12 [INFO] [BukkitUp]: Server is up to date!
    2011-03-01 23:34:12 [INFO] CommandBook 1.1 enabled.
    2011-03-01 23:34:12 [INFO] CommandBook: Permissions plugin detected! Using Permi
    ssions plugin for permissions.
    2011-03-01 23:34:12 [INFO] [DeathChest] version [1.31b] loaded.
    2011-03-01 23:34:12 [INFO] [DeathChest] Permission Plugin found. Using it for pe
    rmissions.
    2011-03-01 23:34:12 [INFO] [DeathChest] Loaded expiration time: 0
    2011-03-01 23:34:12 [INFO] [iConomy] Logging is currently disabled.
    2011-03-01 23:34:12 [INFO] [iConomy] v4.1 (Kristen) loaded.
    2011-03-01 23:34:12 [INFO] [iConomy] Developed by: [Nijikokun, Coelho] (Coelho i
    s Smexier)
    2011-03-01 23:34:12 [INFO] [InventorySort] version 1.5 is enabled!
    2011-03-01 23:34:12 [INFO] CommandBook: Permissions plugin detected! Using Permi
    ssions plugin for permissions.
    2011-03-01 23:34:12 [INFO] [iConomy] Successfully linked with Permissions.
    2011-03-01 23:34:12 [INFO] [Permissions] version [2.5] (Phoenix)  loaded
    2011-03-01 23:34:12 [INFO] MineralScanner version 1.1 is enabled!
    2011-03-01 23:34:12 [INFO] [MobControl] Version 1.5 is enabled!
    2011-03-01 23:34:12 [INFO] [PlugMan] Starting Up! - Version: 1.2.2 by bekvon
    2011-03-01 23:34:12 [INFO] [PlugMan] Found Permissions Plugin!
    2011-03-01 23:34:12 [INFO] Stackable: Configuration file loaded.
    2011-03-01 23:34:12 [INFO] Stackable: Version 0.4.5 enable.
    2011-03-01 23:34:12 [INFO] Warpz0r version 1.04 is enabled
    2011-03-01 23:34:12 [INFO] WorldEdit 4.0-beta8 enabled.
    2011-03-01 23:34:12 [INFO] WorldEdit: Permissions plugin detected! Using Permiss
    ions plugin for permissions.
    2011-03-01 23:34:12 [INFO] WorldGuard: Permissions plugin detected! Using Permis
    sions plugin for permissions.
    2011-03-01 23:34:12 [INFO] WorldGuard: Blacklist loaded.
    2011-03-01 23:34:12 [INFO] WorldGuard: Single session is enforced.
    2011-03-01 23:34:12 [INFO] WorldGuard: TNT ignition is blocked.
    2011-03-01 23:34:12 [INFO] WorldGuard: Lighters are blocked.
    2011-03-01 23:34:12 [INFO] WorldGuard: Lava fire is blocked.
    2011-03-01 23:34:12 [INFO] WorldGuard: All fire spread is disabled.
    2011-03-01 23:34:12 [INFO] WorldGuard 4.0-alpha1 enabled.
    2011-03-01 23:34:12 [INFO] Done (2115330579ns)! For help, type "help" or "?"
    
    Beyond that... I haven't adjusted anything in the setup for the CommandBook other than customizing the MOTD.

    For Permissions, below is an example of a recent attempt at setup:

    Code:
    groups:
        Default:
            default: true
            info:
                prefix: '#'
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'general.spawn'
                - 'BetterShop.user.*'
                - 'iConomy.payment'
                - 'DeathChest.use'
                - 'Deathchest.freeSign'
                - 'Deathchest.freeChest'
                - 'iSort.basic.all'
                - 'iSort.basic.top'
                - 'iSort.basic.range'
                - 'iSort.basic.chest'
                - 'iSort.adv.stack'
                - 'warpzor.warp'
                - 'warpzor.set'
                - 'warpzor.remove'
                - 'warpzor.list'
                - 'warpzor.warpto'
                - 'warpzor.home'
                - 'warpzor.sethome'
                - 'warpzor.worldwarp'
                - 'warpzor.worldhome'
                - '/whereami'
                - '/compass'
                - '/list'
                - '/online'
                - '/spawn'
                - '/where'
                - '/motd'
        Mods:
            default: false
            info:
                prefix: '(M)'
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'general.time'
                - 'general.teleport'
                - 'general.teleport.here'
                - 'general.player-info'
                - 'BetterShop.user.*'
                - 'BetterShop.admin.add'
                - 'BetterShop.admin.remove'
                - 'iConomy.rank'
                - 'iConomy.list'
                - 'iConomy.payment'
                - 'DeathChest.use'
                - 'Deathchest.freeSign'
                - 'Deathchest.freeChest'
                - '/locate'
                - '/reloadwg'
                - '/we reload'
                - '/cmdbook reload'
    My apologies if it's spammy at all. I try to avoid that. =/

    Thanks again!
     
  6. Offline

    nobotious

    i'm a big fan of your mods worldedit and worldguard. saved me tons on my multiplayer server.
    i'm hoping to replace my plgessentials plugin with your commandbook plugin, problem is...

    i cant seem to get it to work, very confused. running build 440, plugins: controllerblock, minecartmaniacore, multiinv, multiverse, permissions 2.1, warpzor, worldedit, worldguard, and yeditor.

    it wont load up at server start, i wouldnt think any of these plugins would interfere.

    logfile attached,

    edit: also, just looked over the logfile a bit on my own, says something about commandpermissionexception. might this be because i'm running permissions 2.1 and not the new 2.4/2.5?

    EDIT EDIT: updated my worldedit, and now it works flawlessly. hope this helps anyone else having trouble anyways :D
     

    Attached Files:

  7. Offline

    ThomasJ

    Thanks for this sk!

    Think it's time to send some beer your way :p
     
  8. Offline

    Draconicus

    I'd really like to move to this from "General", but I need to know if it can handle MOTD from a file like General does. I actually have a notepad with Minecraft's font specifically for editing our MOTD without hassle. :p

    Also, does the MOTD update in real-time like General's does, or must the plugin be reloaded?
     
  9. Offline

    Damager

    Thanks for your work Sk89q but I don't know why he doesn't work for me :(
    I've drag it in my Plugin folder, reboot my server but nothing happened...
    Just my "drop (not fully, miss wool color)" and "tp (friend to friend)" command are working.

    An idea ? :/
     
  10. Offline

    Stephen92

    does this plugin have /sethome./home and /help?? if so then I love you lol, I hate having like 6 different plugins with essentials, and if you could do warps that would be amazing, great job on all your plugins you really know how to make things perfect. My only thing is I need /home to work before I can upgrade to this.

    I also did't see any permissions nodes for this, I use group manager, but if there are a list of permissions for other groups ike default moderator and what not please link me to them.
     
  11. Offline

    dubca7

    Thanks for the plug-in! Works just like general did, but with more functions :)
     
  12. Offline

    sKuL1990

    Jeah the plugin is G R E A T! But i have a problem getting the Darkwood or colored wool with the /i command (No item type known by '35^11' ) is there any other way to get this? :>
     
  13. Offline

    Minorius



    doesn't work too ... :(
    i tried it with #444 and 440

    nvm, the problem was i didn't rename the config.yml into my world name :)
     
  14. Offline

    OkinKun

    heh, This is wonderful!
    Thank you for making it customizable!
     
  15. Offline

    TerraPlay

    Isn't working, error (CB #491):
    Code:
    2011-03-02 19:21:28 [SEVERE] Could not load plugins\CommandBook.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
    	at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:80)
    	at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:129)
    	at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:94)
    	at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:59)
    	at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
    	at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
    	at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
    	at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NoClassDefFoundError: com/sk89q/minecraft/util/commands/CommandPermissionsException
    	at java.lang.Class.forName0(Native Method)
    	at java.lang.Class.forName(Unknown Source)
    	at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:72)
    	... 8 more
    Caused by: java.lang.ClassNotFoundException: com.sk89q.minecraft.util.commands.CommandPermissionsException
    	at java.net.URLClassLoader$1.run(Unknown Source)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(Unknown Source)
    	at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:30)
    	at java.lang.ClassLoader.loadClass(Unknown Source)
    	at java.lang.ClassLoader.loadClass(Unknown Source)
    	... 11 more
    EDIT: Argh, sorry, forgot to install WorldEdit!
     
  16. Offline

    MIKUiqnw0

    Guess who just sent General packing.
     
  17. Offline

    koneko

    I
    In my experience with this mod thus far, I have to reload the plugin using the built in reload command to have the MOTD update.
     
  18. Offline

    nobotious

    when using /item its possible to spawn an item that doesnt exist, and while coupling this mod with multiinv mod, it can be an issue. any way to stop /item from taking item-ids that dont exist?

    for instance, i accidentally typed /item 378, instead of /item 278. and while using multiinv mod it crashed immediately, and then everytime they connected.

    not sure whether to nag you or pluckerpluck, just making a suggestion :D love your mods, keep up the good work!

    i could post my other setup info, but i believe all you need to know is that i'm running

    cb440, commandbook and wg,wedit, and multiverse, and multiinv.

    more info on the error
    on page three, we sort of problem solved it for a bit.
    http://forums.bukkit.org/threads/mech-multiinv-v1-3-1-per-world-inventories-440.4742/page-3
     
  19. Offline

    THEK

    Hi, Is it possible to get a custom "Give" command? So the layout of the command becomes "/give <ITEMID> <QTY> <USERNAME> like it was in hMod? Then we dont have to type the full username
     
  20. Offline

    sk89q

    You need to use the permission trees listed here:
    http://wiki.sk89q.com/wiki/CommandBook/Commands


    It currently stores the MOTD in the config.yml file, but I could also make it read from an external file.

    And you must use /cmdbook reload from either in-game or the server console to reload the MOTD. Java doesn't support a way to monitor when a file's changes, so if I am to add this, it would have to constantly poll the disk for changes.

    When you use the other commands, what happens? Post your server log.

    CommandBook doesn't do homes or warps. You can use one of the plugins that I linked to do that.

    The permission trees are listed here:
    http://wiki.sk89q.com/wiki/CommandBook/Commands

    You use a colon :)), like so: /item 35:11, or /item wool:brown.

    I'll add a check.

    The give command takes the username first, like so:
    /give <username> <itemid> <qty>
     
  21. Offline

    Damager

    Damager said:
    Thanks for your work Sk89q but I don't know why he doesn't work for me :(
    I've drag it in my Plugin folder, reboot my server but nothing happened...
    Just my "drop (not fully, miss wool color)" and "tp (friend to friend)" command are working.

    An idea ? :/​
    When you use the other commands, what happens? Post your server log.
    2011-03-02 21:23:38 [INFO] Starting minecraft server version Beta 1.3
    2011-03-02 21:23:38 [INFO] Loading properties
    2011-03-02 21:23:38 [INFO] Starting Minecraft server on *:25565
    2011-03-02 21:23:39 [INFO] This server is running Craftbukkit version git-Bukkit
    -0.0.0-458-g557f3d2-b440jnks (MC: 1.3)
    2011-03-02 21:23:39 [INFO] Preparing level "Damager's server"
    2011-03-02 21:23:39 [INFO] Preparing start region
    2011-03-02 21:23:39 [SEVERE] Could not load plugins\CommandBook.jar in plugins:
    null
    org.bukkit.plugin.InvalidPluginException
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:85)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:129)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:94)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:58)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:187)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:174)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:120)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:227)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NoClassDefFoundError: com/sk89q/minecraft/util/commands/Com
    mandPermissionsException
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:72)
    ... 8 more
    Caused by: java.lang.ClassNotFoundException: com.sk89q.minecraft.util.commands.C
    ommandPermissionsException
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:30)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 11 more
    2011-03-02 21:23:39 [WARNING] Using the stupidly long constructor com.bukkit.aut
    horblues.GroupUsers.GroupUsers(PluginLoader, Server, PluginDescriptionFile, File
    , File, ClassLoader) is no longer recommended. Go nag the plugin author of Group
    Users to remove it! (Nothing is broken, we just like to keep code clean.)
    2011-03-02 21:23:39 [INFO] [Permissions] version [2.4] (Phoenix) was Initialized
    .
    2011-03-02 21:23:40 [WARNING] Using the stupidly long constructor com.bukkit.sil
    ence.whitelist.Whitelist(PluginLoader, Server, PluginDescriptionFile, File, File
    , ClassLoader) is no longer recommended. Go nag the plugin author of Whitelist t
    o remove it! (Nothing is broken, we just like to keep code clean.)
    2011-03-02 21:23:40 [INFO] [GroupUsers] version [1.4.2] is loaded!
    2011-03-02 21:23:40 [INFO] [Permissions] version [2.4] (Phoenix) loaded
    2011-03-02 21:23:40 [INFO] Whitelist: Trying to load whitelist and settings...
    2011-03-02 21:23:40 [INFO] done.
    2011-03-02 21:23:40 [INFO] Whitelist version 1.1 is enabled!
    2011-03-02 21:23:40 [INFO] Done (991607174ns)! For help, type "help" or "?"
     
  22. Offline

    Orcworm

    Would it be possible for you to upload v1.0 again please? I've just about had enough of Essentials but would rather not move past #440 for the time being. Everything except /setspawn works on v1.1 so I'm hoping that v1.0 would work perfectly for my older build.
     
  23. Offline

    koneko

    @sk89q Woops! Don't I feel like a silly. I totally had the wrong permissions down. Thanks for taking the time to respond. :) I'll give the updated info a try.

    @Orcworm If it's any help, I'm using 1.1 on build 440 and just not touching the setspawn command and have had no issues using the other commands myself. (Of course, aside from my silliness of putting in wrong Permissions code.)
     
  24. Offline

    ultimak

    Would it be possible to create a /saypos command that would retrieve your position and put it into chat so that you can easily share it with other people?
     
  25. Offline

    DoomBunnyPwn

    Heads up: Your commands part of the wiki is griefed.
    Edit: It's down
     
  26. Offline

    Stephen92

    just a small suggestion, u should have a permission node for like non admins so someone doesnt have to put all these commands in 1 by 1, just a suggestion/request.
     
  27. Offline

    Jaiden207

    I'll gladly await your updates, you always release the plugins i want most.
     
  28. Offline

    Draconicus

    Oh jeeze. Is that what General was doing? I don't mind a simple reload command. :)
    May I suggest a /motdr or /cmdr alias for those of us lazy few who obsessively change MOTD with new news updates and stuff? :3
     
  29. Offline

    sk89q

    Install WorldEdit.jar.

    https://github.com/sk89q/commandbook/downloads

    Sure.

    Try now.


    Give "commandbook"
     
  30. Offline

    Damager

    Waaah that this is so stupid, why have no think to this -.-' it's finally working ! thanks a lot for your help and your work ♥
    You'r awesome !

    A last question, you'r command doesn't inclued the damage value for items ? ex : for the whool color.
     
  31. Offline

    Cattmy

    Thanks SK for the great mod. So much better than General.

    However, will being able to have a /help command be implemented sometime in the future?
     
Thread Status:
Not open for further replies.

Share This Page