[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. There is no "kit" file that was generated into the folder. Theres spawn.yml and then home, warp, ban is this a known issue? Also how do I get thors hammer? I can enable it but I don't have anything to use it.
     
  3. Offline

    RGadelha

    I do have a kits.txt with this inside:
    kits.txt (open)

    #
    # This is the default kit file for CommandBook.
    #
    # Each kit requires the commandbook.kit.[name] permission, such as:
    # commandbook.kit.starter (as seen below).
    #
    # The name of the items are names that you can use with the /item command,
    # so you can do step:wood if you want. If you want to specify an amount, enter
    # the number after a comma, like "wood,64".
    #
    # If you put <name>=# for a kit, then you can choose a "cool down" period
    # in seconds. Players have to wait that amount of time before they can
    # use that particular kit.
    #
    [starter=20]
    woodpick
    woodaxe
    woodshovel
    wood,64

    Default Thor Hammer item IDs:
    278, 285, 257, 270
     
  4. What the hell I dont even have a config file for commandbook! redownloaded it and started the server, went to check and nothing is there but spawn home warp and bans.
     
  5. Offline

    RustyDagger

    Do not waste our time. Commandbook has a huge bug with homes and warps where if you reload or restart the server the warps always take you to the XYZ on the default map even if you set the warp say on the nether or another map.

    It has been a bug for some months now and it is on the issue tracker more than just my self have said that its an issue yet no1 has bothered to fix it.
     
  6. Nevermind got the dev build thanks to the chat.
     
  7. Offline

    mxm24

    I have
    Windows 7: 64 bit version
    Java 7 beta: 64 bit version
    Plugins: bpermissions, ichat, worldedit, commandbook.
    ---
    This is a bug or an error on my part;
    It is not generating the files for WorldEdit and CommandBook (config.yml for both, kits.txt for commandbook)hat
    I get a nullpointerexception with ichat and world edit when try to stop the server.

    Huh, that's weird.
    I don't get that nullpointerexception when i run the server with just world edit.
    It still does not generate the config.yml however.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 17, 2016
  8. Offline

    GimmeCookie

    Code:
    online-list:
        colored-names: true
        grouped-names: true
        show-max-players: true
    this is my config file.
    but when i write /online I only get:

    Default: GimmeCookie <- all in white


    Where did you get your Groupname and your Color for names?
    I am using permissionbukkit, and there i have the rank Player
     
  9. Offline

    nicatronTg

    Is it me or does respawning not send you to the spawn point set via /setspawn?
     
  10. Offline

    11RJB

    Same problem here. Apparently it's been a bug for a while, and I'm only now seeing the effects since the latest update.
     
  11. Offline

    bigggan

    You can edit it in xcel.
     
  12. Offline

    Jack Kleeman

    I have this:
    Code:
    users:
        p10jkle:
            groups:
            - admin
        gandalftheepic:
            groups:
            - admin
        commandertom123:
            groups:
            - vip
        coddleflopking:
            groups:
            - vip
    groups:
        default:
            permissions:
                commandbook.home: true
                permissions.build: true
                commandbook.time: true
                commandbook.spawn: true
                commandbook.warp.teleport: true
                nearestspawn.grave.use: true
                commandbook.motd: true
                commandbook.rules: true
                commandbook.teleport: true
                commandbook.kit.kits.starter: true
                lwc.protect: true
                craftbook.mech .*: true
        admin:
            permissions:
                ram.has: true
        vip:
            permissions:
                commandbook.teleport: true
                commandbook.call: true
                commandbook.return: true
                commandbook.kick: true
                commandbook.home.*: true
    messages:
        build: '&cYou do not have permission to build here.'
    
    But even so default users cannot use any commandbook commands. They can use all other commands (eg LWC) but not commandbook. I think this may have started when I installed LWC but removing it make no change so perhaps it was something else. Everything worked fine before today - as in default users could make commands with that config. Another thing, when this started there was a yml syntax error - but I have fixed it and no change.
     
  13. Offline

    Julianoz1224

    For some reason commandbook won't generate a config :/
    Its only generating the following files:
    bans.0.0.log
    bans.0.0.log.lck
    homes.csv
    spawns.yml
    warps.csv

    I tried but it didn't work :(

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Aug 23, 2018
  14. Offline

    Sayshal

    Make a new file called config.yml and see if it'll populate it. If it doesnt i'll upload mine as a template.
     
  15. Offline

    nala3

    you can do /call and there is an accept command for that as well :) so the teleport system is fine
     
  16. Offline

    justin shulman

    yea its fine but its not as easy as essentials. essentials commands are more consistent /tpa /tpaccept. I have a pretty big server and so manny people don't understand the commands. Just saying you should change the commands to something simpler and shorter like /tp (name) /tpaccept or /tp /br
     
  17. Offline

    Sayshal

    Here is my config.yml:
    Code:
    # Give ops all permissions
    op-permissions: true
    use-display-names: true
    online-on-join: true
    online-list:
        colored-names: true
        grouped-names: false
        show-max-players: true
    verify-name-format: true
    motd: |
        Welcome, `Y%name%`w.
        Please view our /rules!
        `RNotice: iConomy and LWC were reset! Administrators will reimburse you for your money loss.
    rules:  |
        `G[1] `rRespect admins.`RTheir word is final!
        `G[2] `YNo stealing/greifing! You are, however, allowed to 'grief' reeds and wheat but nothing else and you `Rmust `Yreplant.
        `G[2.5] `RException: `rYou cannot grief wheat or reeds that are being used in a disaplay.
        `G[3] `rNo spamming, trolling, or being annoying. `RNO CapsLock
        `G[4] `YNo use of any client hacks or cheats.
        `G[5] `rNo harassing others. `RAbsolutely NO racial slurs.
        `G[6] `YDo not wear offensive, or inappropriate skins.
        `G[7] `rYou are completely responsible for your account.
        `G[8] `YUse common sense.
        `G[9] `rDo not advertise other servers.
        `G[10] `YZero tolerance for racism,sexism, and prejudice.
        `G[11] `RNO item spawning! Visit the shop instead!
        `G[12] `YYou may pick up items found on the ground as long as they don't obviously belong to someone else.
        `G[13] `rYou will `Rnot `ruse gay/faggot or any other derogatory words for any reason. You `Rwill `rbe banned.
    # Force use of commandbook.items.<id> permissions for allowed/disallowed items
    item-permissions-only: false
    disallowed-items: []
    allowed-items: []
    item-names:
        goldblock: 41
        ice: 79
    # Makes /time and /weather broadcast a message
    broadcast-changes: true
    console-say-format: "`p[`rConsoleBot`p]`g W1n5t0n: `w%s"
    broadcast-format: "`p[`rConsoleBot`p]`g W1n5t0n: `w%s"
    default-item-stack-size: 1
    # As of writing, this does NOT fix spawning on first join (yet)
    exact-spawn: false
    # This makes CommandBook compatible with poorly written server wrappers
    crappy-wrapper-compat: true
    time-lock:
        # Example time lock:
        #world: 3am
     
  18. Offline

    Julianoz1224

    Thanks for the help :D
    But where is the option to set the Thor tool to a custom item?
     
  19. Offline

    resba

    @sk89q could you update the thread to the current RB and put a link to your bukkitdev project? thanks.
     
  20. Offline

    nala3

    um... lets see here.
    /tp <name> (target) √ Incase you did not know, things in ( ) are optional. so /tp <name> will work
    /bring √ (/br is for world edit brushes. 3 extra letters won't kill you)
    /call - Tells the receiving player EXACTLY what to type to accept (/bring <playername>)

    The point is, the CommandBook teleportation system is fine as long as you can read english and have the IQ of a banana
     
  21. Offline

    xbedestroyed

    Hello,

    As far as I know i have made ​​a kit and changed the rules, but when i typ in minecraft: /kit starter or /rules it tells me: No kit by that name exists and Rules not configured in commandbook yet!.

    This is what i got in Config and kits:
    Code:
    # Give ops all permissions
    op-permissions: true
    use-display-names: true
    online-on-join: true
    online-list:
        colored-names: true
        grouped-names: true
        show-max-players: true
    verify-name-format: true
    motd: |
        Hello, `Y%name%`w.
        The time now is `Y%time%`w and you're in world '%world%'.
        `2This is the default CommandBook MOTD! Adjust it in config.yml.
        `2See `bhttp://wiki.sk89q.com/wiki/CommandBook`2 for more configuration information and help!
    rules:  |
        `G[1] `rRespect admins.`RTheir word is final!
        `G[2] `YNo stealing/greifing! You are, however, allowed to 'grief' reeds and wheat but nothing else and you `Rmust `Yreplant.
        `G[2.5] `RException: `rYou cannot grief wheat or reeds that are being used in a disaplay.
        `G[3] `rNo spamming, trolling, or being annoying. `RNO CapsLock
        `G[4] `YNo use of any client hacks or cheats.
        `G[5] `rNo harassing others. `RAbsolutely NO racial slurs.
        `G[6] `YDo not wear offensive, or inappropriate skins.
        `G[7] `rYou are completely responsible for your account.
        `G[8] `YUse common sense.
        `G[9] `rDo not advertise other servers.
        `G[10] `YZero tolerance for racism,sexism, and prejudice.
        `G[11] `RNO item spawning! Visit the shop instead!
        `G[12] `YYou may pick up items found on the ground as long as they don't obviously belong to someone else.
        `G[13] `rYou will `Rnot `ruse gay/faggot or any other derogatory words for any reason. You `Rwill `rbe banned.
    # Force use of commandbook.items.<id> permissions for allowed/disallowed items
    item-permissions-only: false
    disallowed-items: []
    allowed-items: []
    item-names:
        goldblock: 41
        ice: 79
    # Allows use of custom items for Thor's hammer. Use brackets [] regardless of the amount of items.
    thor-hammer-items: [278, 285, 257, 270]
    # Makes /time and /weather broadcast a message
    broadcast-changes: true
    # Makes /kick and /ban broadcast a message
    broadcast-bans: false
    broadcast-kicks: false
    console-say-format: "<`r*Chris Vanaf Console*`w> %s"
    broadcast-format: "`r[Broadcast] %s"
    default-item-stack-size: 1
    # As of writing, this does NOT fix spawning on first join (yet)
    exact-spawn: false
    # This makes CommandBook compatible with poorly written server wrappers
    crappy-wrapper-compat: true
    time-lock:
        # Example time lock:
        #world: 3am
    time-lock-delay: 20
    per-world-warps: false
    per-world-homes: false
    


    Code:
    #
    # This is the default kit file for CommandBook.
    #
    # Each kit requires the commandbook.kit.[name] permission, such as:
    # commandbook.kit.starter (as seen below).
    #
    # The name of the items are names that you can use with the /item command,
    # so you can do step:wood if you want. If you want to specify an amount, enter
    # the number after a comma, like "wood,64".
    #
    # If you put <name>=# for a kit, then you can choose a "cool down" period
    # in seconds. Players have to wait that amount of time before they can
    # use that particular kit.
    #
    [starter=30]
    stonepick
    stoneaxe
    stoneshovel
    wood,32
    Where did I make the mistake?

    Hope to hear you soon.

    Thx
     
  22. Offline

    Sayshal

    Only thing I could think of is /cmdbook reload[/CODE][/COLOR][/FONT][/SIZE][/quote]
     
  23. Offline

    xbedestroyed

    Sayshal What do you mean with your reaction?

    Do i have to copy that?


    ahh nvm: Only thing I could think of is /cmdbook reload


    Did not work...

     
  24. Offline

    mahari3

    can someone tell me why i get this error?
    Code:
    12:02:04 [SEVERE] Could not load 'plugins\CommandBook.jar' in folder 'plugins':
    
    java.lang.NoClassDefFoundError: com/sk89q/minecraft/util/commands/CommandExcepti
    on
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:168)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:215)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:136)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:139)
            at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:104)
            at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigur
    ationManager.java:52)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:136)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.ClassNotFoundException: com.sk89q.minecraft.util.commands.C
    ommandException
            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:36)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:24)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source)
            ... 11 more
     
  25. Offline

    Owa13

    I get the same error message

    Could not load 'plugins\CommandBook.jar' in folder 'plugins':
    java.lang.NoClassDefFoundError: com/sk89q/minecraft/util/commands/CommandException
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:170)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:215)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:136)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:136)
    at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:112)
    at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:52)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:136)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.ClassNotFoundException: com.sk89q.minecraft.util.commands.CommandException
    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:36)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 11 more
     
  26. Offline

    iarspider

    @Owa13, @mahari13: did you install WorldEdit?
     
  27. Offline

    K900

    Download WorldEdit and save it *exactly* as WorldEdit.jar.
    @sk89q Maybe it's better to load from classpath, not from exact jar filename? Causes a lot of headache when you don't know about that quirk.
     
  28. Offline

    Owa13

    @iarspider@K900 Thank You !! It Work
     
  29. Offline

    Kuboken

    Hi i put in Command book to day and when i go to use it i keep geting


    Code:
    2011-10-31 18:53:27 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'rocket' in plugin CommandBook v1.6
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:355)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.NullPointerException
    at com.sk89q.commandbook.CommandBookPlugin.onCommand(CommandBookPlugin.java:266)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    ... 12 more
    
    any clue on how i can get it to work? i have World edit on there too and it works fine
     
  30. Offline

    Magge

    Any way to turn off broadcast - when someone uses /barrage and other power commands?
     
  31. Offline

    monir

    When i do /ret i sometimes get back to my death position but often i spawn random places when typing /ret after death why i that?
     
Thread Status:
Not open for further replies.

Share This Page