[GEN] General 3.6.2 (Webern) -- A plugin for general commands, now on BukkitDev! [1060]

Discussion in 'Inactive/Unsupported Plugins' started by Celtic Minstrel, Mar 6, 2011.

  1. Offline

    Celtic Minstrel

    General 3.6.2 [Webern]
    NOTE: If you are updating from 3.4.1 or earlier, you must copy the aliases section from the sample config file into your own config file. If you don't do this, many commands will not work.
    Download from the BukkitDev page (Older versions | Source)

    General provides a small set of basic commands for your server. See more details on the BukkitDev page.

    General is a fork of Nijikokun's plugin. It adds a few commands to the original set provided by General.

    Without Nijikokun's original General plugin, this plugin would never have been possible. Or at least, I would not have made it. General Essentials (the source of the /kit command) was created by wjykk and has had some input from cjc343. The SpawnMob plugin, from which I adapted the code for the /mobspawn command, was created by xmlns and is now maintained by jordanneil23.

    I recommend using sk89q's CommandHelper in conjunction with this plugin. Starting from 3.4.5, there is a command-helper.txt file included with the download which you can copy to CommandHelper's config.txt for some handy aliases, such as /spawn and /home.

    Differences from cjc343's now-inactive fork
    • Does not detect that another plugin has registered the same command.
    • /playerlist and /who are two separate commands
    • Different items.db format
    • Does not support setting or viewing the raw time.
     
  2. Offline

    Celtic Minstrel

    Should be fixed in 3.4.4.

    EDIT: Actually it's not. Don't download 3.4.4.

    Okay, now it's fixed.

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

    freezer

    why the part / help, writes "help topic unavailable"?
     
  4. Offline

    Celtic Minstrel

    Presumably because the help topic is available? Each help topic is a file in your General folder; you have to create them if you want to use them.
     
  5. Offline

    DaddyCool64

    thx
    But the money bug ...
     
  6. Offline

    Celtic Minstrel

    Money still doesn't work? Argh...
     
  7. Offline

    Celtic Minstrel

    I have no idea why balance is not working, unless it's an issue of case.

    Anyway, I have released a new version.

    Version 3.4.5
    • The /spawn command is gone altogether; I don't think it'll be returning. The same applies to /summon (/tphere, /s, etc). However, see the next point.
    • If you use CommandHelper (which I recommend), I have some aliase definitions compatible with it which you can put in CommandHelper's config.txt file. They are found in the command-helper.txt file included with the download and include /summon, /spawn, /home, /sethome, and /reply. Of course you can pick and choose which ones your want.
    • Added a /worldinfo command which is like /playerinfo (canonically, /who) but for worlds instead. This is the new way to view a world's spawn location.
    • You will no longer suffocate slightly if you teleport next to a wall; you're automatically placed at the centre of the target block.
    • I have updated the help entries. This means both the ones sent to the Help plugin and the default ones available for some commands by typing '/command help'.
    • I decided not to accept data for tall grass, after all. It seems the data values are only effective for blocks.
    • Thanks to Bukkit soft dependencies, all plugins that General needs are now guaranteed to load first. This also makes it quite likely that General will load last, though, which means other plugins may steal its commands.
    • The alias handler gives a warning if you haven't defined any aliases in the config.
    • The alias handler informs you which plugin has stolen a given command.
    • The alias handler no longer erroneously claims that some other plugin has stolen the "general" command.
    • There is now a randomization factor on the /mobspawn location. This means that if you spawn multiple mobs with a single command, you won't get the effect of a single mob suddenly "exploding" into many, because each one will appear in a slightly different location (within 1 block of the "official" target).
    • Double teleport messages fixed.
    • The teleport command now fully supports partial name matching both for worlds and players.
    • The /tell command now supports @ as target. If you use this, it sends the message to the last person you sent you a /tell message. If you have just logged in, it won't work.
     
    boxxertrumps likes this.
  8. Offline

    boxxertrumps

    Theoretically, what would happen if I spawned 30 pigs? Would they all pop out of the same 3x3 square? or would it just expand the spawning area so that each mob occupies one block?
     
  9. Offline

    Celtic Minstrel

    Theoretically they'd all appear in the same 3x3 square, though in testing they seemed to appear in more of a 5x5 square for some reason. It definitely does not make each mob occupy one block; you'll almost certainly get multiple mobs on the same block.
     
    boxxertrumps likes this.
  10. Offline

    DeathQueen

    Any way to get at this new update? Also, none of the general commands work. I made sure I have the updated jar, and I went through my entire permissions file, but I have no idea why it doesn't work. Here is my group that I set myself in with all commands:
    Code:
        SuperAdmins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
            - '*'
    Any help appreciated. Oh, and is general supposed to be compatible with iConomy 5.0.1? It consistently tells me:
    Code:
    2011-06-29 22:51:39 [SEVERE] [General-3.4.4] There was a big problem loading economy system [iConomy]! Please report this error!
    2011-06-29 22:51:39 [SEVERE] java.lang.ClassNotFoundException: net.craftstars.general.money.iConomyEconomyHandler
    2011-06-29 22:51:39 [SEVERE]     at java.net.URLClassLoader$1.run(Unknown Source)
    2011-06-29 22:51:39 [SEVERE]     at java.security.AccessController.doPrivileged(Native Method)
    2011-06-29 22:51:39 [SEVERE]     at java.net.URLClassLoader.findClass(Unknown Source)
    2011-06-29 22:51:39 [SEVERE]     at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
    2011-06-29 22:51:39 [SEVERE]     at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
    2011-06-29 22:51:39 [SEVERE]     at java.lang.ClassLoader.loadClass(Unknown Source)
    2011-06-29 22:51:39 [SEVERE]     at java.lang.ClassLoader.loadClass(Unknown Source)
    2011-06-29 22:51:39 [SEVERE]     at net.craftstars.general.General.setupEconomy(General.java:144)
    2011-06-29 22:51:39 [SEVERE]     at net.craftstars.general.General.loadAllConfigs(General.java:126)
    2011-06-29 22:51:39 [SEVERE]     at net.craftstars.general.General.onEnable(General.java:110)
    2011-06-29 22:51:39 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    2011-06-29 22:51:39 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:857)
    2011-06-29 22:51:39 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:264)
    2011-06-29 22:51:39 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
    2011-06-29 22:51:39 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136)
    2011-06-29 22:51:39 [SEVERE]     at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
    2011-06-29 22:51:39 [SEVERE]     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
    2011-06-29 22:51:39 [SEVERE]     at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
    2011-06-29 22:51:39 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    2011-06-29 22:51:39 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-06-29 22:51:39 [SEVERE] Error occurred while enabling General v3.4.4 (Is it up to date?): null
    java.lang.NullPointerException
        at net.craftstars.general.General.setupEconomy(General.java:159)
        at net.craftstars.general.General.loadAllConfigs(General.java:126)
        at net.craftstars.general.General.onEnable(General.java:110)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:857)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:264)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
     
  11. Offline

    Celtic Minstrel

    If you're getting a "no such command" message, then copy the "aliases" section from the example config file over to your config. If you're getting a "no permissions" message, the only suggestion I can think of is to use the permissions commands to verify that you really are in that group.

    There is token support for iConomy 5. This means that I build against it and have an interface to it, but have not yet tested it. General 3.5 will be the version in which economy support is really hammered out; I'm currently testing on iConomy 4, but intend to test against iConomy 5 and BOSEconomy too. (And iConomy 6 if such a thing comes out before then.)

    That said, the error you are getting is kind of an odd one, since it claims my iConomy bridge class is missing. I suggest at least upgrading to 3.4.5 to see if it fixes it. (Although 3.4.5 has technically been released for a day or so, it appears that I forgot to edit the new link into the opening post, so I doubt anyone has actually downloaded it. Sorry about that.)
     
  12. Offline

    sunkid

    This just popped up in a 1.7+ build of CB (I know, it's not supported, but may be an indication of what's to come):
    Code:
    org.bukkit.command.CommandException: Unhandled exception executing command 'tp' in plugin General v3.4.1
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:298)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:711)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:676)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:669)
            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:84)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NoSuchMethodError: net.minecraft.server.EntityPlayer.M()Lnet/minecraft/server/ChunkCoordinates;
            at net.craftstars.general.teleport.Destination.homeOf(Destination.java:182)
            at net.craftstars.general.teleport.Destination.get(Destination.java:98)
            at net.craftstars.general.command.teleport.goCommand.fromPlayer(goCommand.java:29)
            at net.craftstars.general.command.CommandBase.runCommand(CommandBase.java:23)
            at net.craftstars.general.General.onCommand(General.java:244)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    
     
  13. Offline

    DeathQueen

    The update did nothing to help as far as I could tell for either problem. And to be more specific about the command problem, I used /item 1 for example, and it told me "Unknown console command. Type "help" for help." Hope that clarifies anything. If you need anything else posted like my permissions stuff or the config file, just tell me. Once more, any help is appreciated.
     
  14. Offline

    Celtic Minstrel

    @DeathQueen – The canonical name for the command is inven.give, so try /inven.give 1 and see if that works. If it does, please post your config.yml; you probably have something misconfigured. If not, then I'm not sure what the problem could be.

    In any case, any messages that General prints when you start up the server could also help me.

    @sunkid – If you were trying /tele home, then yes, that's expected.
     
  15. Offline

    DeathQueen

    Here's my config since that command worked, but the only error message I ever got about general besides it saying I have no file called general.kits(which I fixed) was the one I had mention before. Anyhow, here is the config:
    Code:
    # The ops-only flag is used if the permissions system is set to Basic, and specifies which actions
    # should be restricted to ops. If any other permissions system is specified, it is ignored.
    # Valid permission systems: Basic, Permissions, GroupManager, WorldEdit, CraftBukkit
    
    permissions:
      system: Permissions
      ops-only:
       - general.time.set
       - general.teleport
       - general.teleport.other
       - general.teleport.coords
       - general.teleport.other.mass
       - general.summon
       - general.give
       - general.give.infinite
       - general.give.group.notitem
       - general.give.group.bedrock
       - general.give.group.fluid
       - general.spawn.set
       - general.spawn.other
       - general.getpos.other
       - general.clear.other
       - general.take.other
       - general.heal
       - general.mobspawn
       - general.kit.<kitname>
       - general.kit-now
       - general.admin
    
    # This section lets you restrict certain items to particular groups in the /give command.
    # The default configuration shown here restricts items that either are not an item (ie they
    # have a different ID for the corresponding inventory item) or are duplicates of another
    # item (eg the burning furnace). It also restricts bedrock and fluids.
    #
    # Note that this only blocks the user from using the /give command to get these items.
    # If they are obtained in any other way, there is nothing to prevent the user from
    # placing them. Use WorldGuard for that.
    #
    # The others-for-all setting specifies whether items not in a group are accessible by default.
    # If false, items not in a group can be considered as belonging to the group "other".
    
    give:
      groups:
        notitem: [26, 55, 59, 62, 63, 64, 68, 71, 74, 75, 83, 90, 93, 94]
        bedrock: [7]
        fluid: [8, 9, 10, 11]
      others-for-all: true
      mass: 256
    
    playerlist:
      show-health: false
      show-coords: false
      show-world: false
      show-ip: false
    
    # If true, show the message of the day on login.
    show-motd: true
    
    time:
      format-24-hour: false
      show-ticks: true
    
    # This section is for if you want economy enabled. Currently the only accepted option is system,
    # which should be either None or iConomy.
    
    economy:
      system: iConomy
      commands:
        timeset: 0
        heal: 0
        mobspawn: 0
        kit: 0
      items:
        351: 0
        276: 0
        # etc
    
    # The format that a chat message's first word must take for General to assume that the player
    # may be tagging another player. For example, if you set it to '@name', it will use Twitter-style
    # tagging. Tagging currently only means that the tagger will be informed if the player is away.
    tag-fmt: 'name:'
    
    # If this is changed to true, successful commands will be logged to the console.
    log-commands: false
    
    # The range of the /weather zap command.
    #lightning-range: 50
    
    # Other options in this list are target, compass, coords
    teleport-basics: [world, player, home, spawn]
    
    # Command aliases
    aliases:
      info:
        playerlist: [list, online]
        who: [whois, playerinfo]
        getpos: []
        where: [coords, pos]
        compass: []
        worldinfo: [about]
      misc:
        time: []
        heal: []
        mobspawn: [mob]
        weather: []
      inven:
        give: [i, item]
        clear: [clean]
        take: []
        kit: []
        items: []
      chat:
        tell: [msg, pm, whisper]
        away: [afk]
      teleport:
        setspawn: []
        go: [teleport, tele, tp]
        summon: [tphere, teleporthere, s]
    
     
  16. Offline

    Celtic Minstrel

    Hm. You don't get any messages related to aliases when General loads, then? You're using 3.4.5, and General confirms that on load? Does it work if you type '/inven.give 1'? If you type /plugins, is General's name green? You mentioned a problem related to iConomy; does it work if you set the economy system to "none" instead of "iConomy"?

    Actually, I've located the issue; it's that you need to specify iConomy5 rather than just iConomy, and the failure to located the iConomy handler caused General to fail to load properly. The latter issue will be fixed in 3.5, but all you need to do is add that 5 to your config file and it should all work.

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

    Tatsu-Kan

    Bukkit 953 :

    /who is not working :

    Config :

     
  18. Offline

    Celtic Minstrel

    Ah, I knew about that but forgot that it would affect the /who command. It's a result of the update to 1.7 and will be fixed in 3.5.
     
  19. Offline

    TheTallest

    @Celtic Minstrel First off AWESOME revamp on the plugin. Second I Must be loosing my mind how do I code kits everything I try tells me ( I am sorry you are dumb and should be hit on the head with a bat please try again ) but here is the actual error

    Code:
    14:31:53 [WARNING] [General-3.4.5] Note: line 1 in general.kits is improperly defined and is ignored (java.lang.ArrayIndexOutOfBoundsException, 2)
    14:31:53 [SEVERE] [General-3.4.5] First exception loading the kits:
    14:31:53 [SEVERE] java.lang.ArrayIndexOutOfBoundsException: 2
    14:31:53 [SEVERE]     at net.craftstars.general.items.Kits.loadKits(Kits.java:105)
    14:31:53 [SEVERE]     at net.craftstars.general.General.loadAllConfigs(General.java:127)
    14:31:53 [SEVERE]     at net.craftstars.general.General.onEnable(General.java:114)
    14:31:53 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    14:31:53 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:857)
    14:31:53 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:264)
    14:31:53 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
    14:31:53 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136)
    14:31:53 [SEVERE]     at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
    14:31:53 [SEVERE]     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
    14:31:53 [SEVERE]     at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
    14:31:53 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    14:31:53 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
     
  20. Offline

    Celtic Minstrel

     
  21. Offline

    TheTallest

    Yep I have the same file but no matter what syntax I use it comes and tells me NOPE Sorry I use with the <> and without making sure I have commas and no go

    EDIT I have tried this
    newbie:compass-1,diamondsword-1,diamondpickaxe-1,diamondshovel-1,torch-64
    and this
    <newbie>:<compass-1>,<diamondsword-1>,<diamondpickaxe-1>,<diamondshovel-1>,<torch-64>

    EDIT2: I r knot Stooopid butt eye r knot gitting et

    EDIT3: Do I have to define the delay value if even I do not want or need one ?

    EDIT4: nevermind I figured it out just a suggestion you might want to specify that they have to put the delay value at the end or it will not work right. For those of us who do not want a delay we would leave that off so I figured it out.
     
  22. Offline

    Celtic Minstrel

    Not going to follow the suggestion, because I intend to switch to a kits.yml file in which the delay will be optional.
     
  23. Offline

    TheTallest

    Understood

    When my players execute /who from the command it throws the following in game error
    An Internal error has occurred while attempting to perform this command

    and in my console window I get this

    Code:
    15:47:31 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'who' in plugin General v3.4.5
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:298)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:711)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:676)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:669)
        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:84)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NoSuchMethodError: net.minecraft.server.EntityPlayer.M()Lnet/minecraft/server/ChunkCoordinates;
        at net.craftstars.general.teleport.Destination.homeOf(Destination.java:182)
        at net.craftstars.general.command.info.whoCommand.getInfo(whoCommand.java:54)
        at net.craftstars.general.command.info.whoCommand.fromPlayer(whoCommand.java:32)
        at net.craftstars.general.command.CommandBase.runCommand(CommandBase.java:23)
        at net.craftstars.general.General.onCommand(General.java:252)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    
    EDIT: Unless I missed a permissions node /spawn does not work unless there is a general.spawn node I did not see in your permissions list
     
  24. Offline

    Celtic Minstrel

    There is no longer a /spawn command. The same effect can be obtained by /tele spawn (or /tp spawn or /go spawn). You can use CommandHelper to alias that if you like; I've even provided a file that CommandHelper will understand.

    The /who command is broken in 1.7 due to bad design. Sorry.
     
  25. Offline

    findyourexit

    Just wanted to stop by to let you know that my server's members and I really appreciate the work you put in developing this plugin. Thanks and keep up the awesome work :D
     
  26. Offline

    Firepun

    I need halp! My server is a creative server, and I let everybody spawn blocks and items to build with. But the thing is, everybody but the ops say they cant spawn things with the /i command. can someone tell me what i can do about this?
     
  27. Offline

    TheTallest

    Make sure you have the following permissions nodes in your permissions file

    - general.give
    - general.give.mass
    - general.give.item.*

    Those are the ones I have set and it seems to work
     
  28. Offline

    Celtic Minstrel

    Alternatively, if you don't have a Permissions plugin, remove the relevant nodes from your config.yml file.

    ...I really need to make that permission-less system understand wildcards. Oh well.
     
  29. Offline

    Bannanas

    Erm, whats the permission nodes for /go spawn or /tp spawn, I've try general.spawn, general.teleport.spawn.basic, what D:, and so who won't work, what about player list... Also how do I edit the motd, CHEERS!
     
  30. Offline

    Celtic Minstrel

    For /go spawn, the permissions node is general.teleport.to.spawn. Unless you've changed this in your config.yml, general.teleport.basic will also give spawn, along with a couple of other things.

    /who and /playerlist are the same command, so they'll have the same errors.

    The MOTD is taken from the general.motd file in your General config directory. You will need to create the file, since I don't provide a sample one in the download.

    Good news is that the economy support for 3.5 for mobs is nearly finished, after which I just need to do economy support for teleporting. So, it'll probably be released before the end of the week.
     
  31. Offline

    Bannanas

    What do you mean change in the config because I've try general.teleport.to.spawn?​

    Oh and how to use color tags? Cheers

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

Share This Page