[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

    That only applies if you tried general.teleport.basic.
     
  3. Offline

    Bannanas

    Okay so basic, spawn, teleport.to.spawn all those ones don't work, I've changed the basic just to spawn.
    Still get the "You do not have permission to tp"
     
  4. Offline

    Celtic Minstrel

    I suspect you need to add the 'general.teleport' permission. I guess subpermissions should really imply that, but I don't think they do.
     
  5. Offline

    DaddyCool64

    If i disconnect from Server i get this in console:
    Code:
    2011-07-08 17:04:56 [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:26)
     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
     
  6. Offline

    Celtic Minstrel

    That's one of two incompatibilities with 1.7 (the other is /item map). It appears to have resulted not from disconnecting but from using the /who command.

    Since I've said this a few times, I added a "Known bugs" section to the opening post. I'll try to remember to keep it up-to-date, so please check if your bug is listed there before reporting it. :)
     
  7. Offline

    DeathQueen

    I'm not sure how the iConomy thing fixed the problem, but it did! The help was appreciated! Thanks so much!!
     
  8. Offline

    Bannanas

    @Celtic Minstrel Please fix spawn.... the general.teleport is the only tp node that works... But all I wan't is /spawn (/tp spawn) Please enable spawn back :)
     
  9. Offline

    Celtic Minstrel

    @Bannanas – Install CommandHelper, move the command-helper.txt in the General download into the CommandHelper folder, and rename it config.txt. Then give the permissions nodes 'general.teleport' and 'general.teleport.to.spawn'.
     
  10. Offline

    Black_Fox

    Hi, thank you for this plugin :)

    I have found a cosmetic issue in log when reloading plugins:
    Code:
    12:02:50 [INFO] [General-3.4.5] Plugin disabled!
    (...)
    12:02:50 [INFO] [General-0.0] Loaded.
     
  11. Offline

    Celtic Minstrel

    I have known about that forever and never cared enough to fix it. I think I've since removed the message altogether, since it's not really useful anyway.
     
  12. Offline

    Celtic Minstrel

    Version 3.5

    • There's a new set of permissions for teleporting between worlds. The general.teleport.into.<world> permission is required to teleport into <world> from any other world, while general.teleport.from.<world> is required to teleport from <world> to any other world. This does not affect teleporting within a world.
      • (Similar permissions exist for setting the spawn location; I don't expect them to be much use, but their existence is a side-effect of the teleport permissions.)
    • Added /masstake command, which is to /take as /items is to /give.
    • New config file for kits; your general.kits will be automatically converted to kits.yml when you start your server with General 3.5.
    • Expanded economy support!
      • Added a /general cost command which will "dry-run" a command and tell you what the cost of running it would be.
      • You can assign each item an individual price for use with the /give and /items commands. The same prices are used by the /take, /masstake, and /clear commands to make them function as selling items. This feature can be disabled so that you don't get money from them, or you can configure it so that selling only earns a percentage of their full value.
      • The /heal and /hurt commands support assigning a cost to them.
      • The /time command supports assigning a separate cost to each named time of day, plus a separate cost for setting the time to anything else.
      • The /weather command supports separate costs for storms, thunder, and lightning.
      • Fixed issue where General would crash if it didn't recognize the economy system you asked it to use.
      • The /teleport and /setspawn commands support setting a cost for the target (the type of thing you're teleporting or setting the spawn of).
      • The /teleport and /setspawn commands also support setting a cost for the destination, which is on top of the target-based cost. The destination cost can be based on the generic type of the destination; for teleporting across worlds, however, you can instead set the cost based on the source and destination world.
      • The /kit command supports costing either based on the contents of the kits (using the individual item costs as with /give) with an optional discount, or a per-kit cost as configured in the kits.yml.
      • The /mobspawn command supports assigning a cost on a number of factors, such as the type of mob, the variation of the mob, whether it's riding something, and the former two for whatever it's riding.
    • Proper support for 1.7 items.
    • Only allows Creaturebox data values in the /give command if Creaturebox is actually present.
    • Bugfix: /who and /item map now work.
    • Made the /away command optionally mark players as ignoring sleep.
    • Allow setting a pig zombie's anger level as well as just setting them arbitrarily to angry.
    • Partial name matches supported for spawning tamed wolves with a specific owner.
    • Added "natural" and "random" as valid sheep data values; both result in spawning a random colour of sheep.
    • Added individual permissions for each colour of sheep (except white), plus one for sheared sheep and a permission for just natural colours.
    • Op-based permissions now have a rudimentary understanding of wildcards.
    • Added optional support for native Bukkit permissions; if you want to use them, set your permissions system to Bukkit.
    • Added BookWorm support; you can summon a copy of any existing book provided you know its ID.
    • The permissions for /setspawn are now of the form general.setspawn.<target>, where <target> is one of self, other, or world. The old permissions are still supported, for now.
    • More subcommands of /general; apart from help, cost and motd, each one has its own permissions node under general.admin.
      • If you use ops-based permissions, you can dynamically alter which permissions require op status to use via the /general restrict and /general release commands.
      • Use the /general kit command to view and alter the definitions of kits.
      • Use the /general economy command to alter the cost of commands. This may be buggy.
      • Use the /general cost command to check the cost of any command.
      • Use the /general set command to set configuration values.
      • Use the /general item group command to view and alter the item white/blacklist groups.
    • Added an auto-save option to the config; if true, kits.yml and config.yml will be saved whenever the server stops. (The items.yml file is currently always saved regardless of this setting.)
    • Trying to use the /away command at the console will now tell you that this is impossible rather than just printing usage notes.
    • Added option for adding a per-player warmup period to the /teleport command
    • Fixed /weather thunder; it now works, and you can even specify a duration.
    • Weather info function added; use /weather <world> to see a weather report for <world>.
    • Some versions of General did nothing when you made a mistake in a command. Later versions showed the usage notes. Now, you can choose which [behaviour you'd like.
    • You can provide an argument to /playerlist to restrict the scope to a specific world.
    • Added a per-world cooldown option to the /time and /weather commands.
    • The /time and /weather commands now give appropriate errors when used in the nether or in skylands.

    This is also the last version for which I will officially support Permissions and WorldEdit as permissions systems; unofficial support will remain until version 4.0, and then it will be removed. For your permissions system, you should transition to Bukkit; you may still use Basic if you prefer, though.

    I have done my best to update the documentation on the wiki, but there have been so many changes that it's quite possible I missed one.
     
    Jan Tojnar and Black_Fox like this.
  13. Offline

    Black_Fox

    @Celtic Minstrel: Thank you for this release, there is probably a new bug in /clear command (CB build is #953).
    Only in-between change made to server config is adding a CommandHelper plugin with only copying the aliases from General's folder, so that shouldn't cause it.

    Code:
    14:25:50 [SEVERE] [General-3.5] There was a big problem executing command [inven
    .clear]! Please report this error!
    14:25:50 [SEVERE] [General-3.5] Full command string: [clear]
    14:25:50 [SEVERE] java.lang.NullPointerException
    14:25:50 [SEVERE]       at net.craftstars.general.items.ItemID.<init>(ItemID.jav
    a:61)
    14:25:50 [SEVERE]       at net.craftstars.general.command.inven.clearCommand.doC
    lean(clearCommand.java:113)
    14:25:50 [SEVERE]       at net.craftstars.general.command.inven.clearCommand.fro
    mPlayer(clearCommand.java:65)
    14:25:50 [SEVERE]       at net.craftstars.general.command.CommandBase.runCommand
    (CommandBase.java:23)
    14:25:50 [SEVERE]       at net.craftstars.general.General.onCommand(General.java
    :263)
    14:25:50 [SEVERE]       at org.bukkit.command.PluginCommand.execute(PluginComman
    d.java:35)
    14:25:50 [SEVERE]       at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCo
    mmandMap.java:129)
    14:25:50 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.dispatchCommand(Cr
    aftServer.java:298)
    14:25:50 [SEVERE]       at net.minecraft.server.NetServerHandler.handleCommand(N
    etServerHandler.java:711)
    14:25:50 [SEVERE]       at net.minecraft.server.NetServerHandler.chat(NetServerH
    andler.java:676)
    14:25:50 [SEVERE]       at net.minecraft.server.NetServerHandler.a(NetServerHand
    ler.java:669)
    14:25:50 [SEVERE]       at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:3
    3)
    14:25:50 [SEVERE]       at net.minecraft.server.NetworkManager.b(NetworkManager.
    java:226)
    14:25:50 [SEVERE]       at net.minecraft.server.NetServerHandler.a(NetServerHand
    ler.java:84)
    14:25:50 [SEVERE]       at net.minecraft.server.NetworkListenThread.a(SourceFile
    :105)
    14:25:50 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:451)
    14:25:50 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:361)
    14:25:50 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:422)
     
  14. Offline

    Celtic Minstrel

    Will be fixed in 3.5.1.
     
  15. Offline

    Satros

    Hey not sure if your aware of this bug but it is a pretty big one that should be pretty easy to fix. Kit cooldown does not work if a person relogs. Should be pretty easy to fix though.

    Basically I have my time set to 6 hours of cooldown, but if a person relogs they can just use it instantly again, which as you can guess is creating some unbalance in my server.

    Should be easy to fix though, just need to store the player name and the time they last successfully used the kit command somewhere
     
  16. Offline

    Celtic Minstrel

    Odd, because that's pretty much just what I do...
     
  17. Offline

    Satros

    Hmm and it works correctly for you?
     
  18. Offline

    Celtic Minstrel

    Not sure, I'll have to test it and figure it out.
     
  19. Offline

    Mountaineer

    Whenever I use a command in General, I get one of these. Only reporting because it said to. If it's partially a PermissionsBukkit issue, forgive me because I'm having a lot of trouble with that plugin.

    Code:
    2011-07-21 15:29:28 [SEVERE] [General-3.5] There was a big problem executing command [info.playerlist]! Please report this error!
    2011-07-21 15:29:28 [SEVERE] [General-3.5] Full command string: [list]
    2011-07-21 15:29:28 [SEVERE] java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
    2011-07-21 15:29:28 [SEVERE]     at org.bukkit.permissions.PermissibleBase.calculateChildPermissions(PermissibleBase.java:179)
    2011-07-21 15:29:28 [SEVERE]     at org.bukkit.permissions.PermissibleBase.calculateChildPermissions(PermissibleBase.java:185)
    2011-07-21 15:29:28 [SEVERE]     at org.bukkit.permissions.PermissibleBase.calculatePermissions(PermissibleBase.java:163)
    2011-07-21 15:29:28 [SEVERE]     at org.bukkit.permissions.PermissibleBase.hasPermission(PermissibleBase.java:65)
    2011-07-21 15:29:28 [SEVERE]     at org.bukkit.craftbukkit.entity.CraftHumanEntity.hasPermission(CraftHumanEntity.java:80)
    2011-07-21 15:29:28 [SEVERE]     at com.platymuus.bukkit.permcompat.PermissionHandler.internalHasPermission(PermissionHandler.java:23)
    2011-07-21 15:29:28 [SEVERE]     at com.platymuus.bukkit.permcompat.PermissionHandler.has(PermissionHandler.java:40)
    2011-07-21 15:29:28 [SEVERE]     at net.craftstars.general.security.PermissionsPermissionsHandler.hasPermission(PermissionsPermissionsHandler.java:36)
    2011-07-21 15:29:28 [SEVERE]     at net.craftstars.general.util.Toolbox.hasPermission(Toolbox.java:143)
    2011-07-21 15:29:28 [SEVERE]     at net.craftstars.general.util.Toolbox.lacksPermission(Toolbox.java:133)
    2011-07-21 15:29:28 [SEVERE]     at net.craftstars.general.command.info.playerlistCommand.fromPlayer(playerlistCommand.java:26)
    2011-07-21 15:29:28 [SEVERE]     at net.craftstars.general.command.CommandBase.runCommand(CommandBase.java:23)
    2011-07-21 15:29:28 [SEVERE]     at net.craftstars.general.General.onCommand(General.java:263)
    2011-07-21 15:29:28 [SEVERE]     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    2011-07-21 15:29:28 [SEVERE]     at org.bukkit.command.SimpleCommandMap.dispatch
     
  20. Offline

    Celtic Minstrel

    Ah, although I said I added support for PermissionsBukkit, it's actually not working in this version. If you use SuperpermsBridge along with PermissionsBukkit and set Permissions instead of Bukkit as your permissions system, it should work fine, and in 3.5.1 the Bukkit permissions will be properly supported.
     
  21. Offline

    chsiao999

    I get this error whenever I use /clear on myself, but it works fine when I use it on other players in my server? Nothing major but it does kinda get annoying. Thanks! :D

    Code:
    22:14:28 [SEVERE] [General-3.5] There was a big problem executing command [inven.clear]! Please report this error!
    22:14:28 [SEVERE] [General-3.5] Full command string: [clear chsiao999 pack]
    22:14:28 [SEVERE] java.lang.NullPointerException
    22:14:28 [SEVERE]     at net.craftstars.general.util.Messaging.earned(Messaging.java:156)
    22:14:28 [SEVERE]     at net.craftstars.general.command.inven.clearCommand.doClean(clearCommand.java:138)
    22:14:28 [SEVERE]     at net.craftstars.general.command.inven.clearCommand.fromPlayer(clearCommand.java:90)
    22:14:28 [SEVERE]     at net.craftstars.general.command.CommandBase.runCommand(CommandBase.java:23)
    22:14:28 [SEVERE]     at net.craftstars.general.General.onCommand(General.java:263)
    22:14:28 [SEVERE]     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    22:14:28 [SEVERE]     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    22:14:28 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:320)
    22:14:28 [SEVERE]     at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:713)
    22:14:28 [SEVERE]     at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677)
    22:14:28 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
    22:14:28 [SEVERE]     at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    22:14:28 [SEVERE]     at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    22:14:28 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    22:14:28 [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    22:14:28 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    22:14:28 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    22:14:28 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
     
  22. Offline

    Celtic Minstrel

    Yes, I accidentally broke /clear, though that's different from the other error someone reported... it'll be fixed in 3.5.1, which I'll upload in a few minutes.

    Version 3.5.1
    • Fixed null pointer exception from /clear trying to sell empty slots
    • Fixed null pointer exception from /clear trying to use economy when it wasn't enabled
    • Fixed support for Bukkit permissions
    • Removed workarounds for incorrect max stack sizes and durability values that existed prior to build 1000

    If you're not on build 1000, General will still work. It just won't let you do things such as giving damaged shears, for example.
     
  23. Offline

    chsiao999

    I love you. Thanks so much for getting this out... <3

    We have a server event over the weekend so I kinda depended on 3.5.1 to be released today. :p

    ==EDIT==
    After the 3.5.1 Update, do we still need SuperPerms?
    Code:
    17:14:47 [SEVERE] [General-3.5.1] There was a big problem loading permissions system [PermissionsBukkit]! Please report this error!
    17:14:47 [SEVERE] java.lang.ClassNotFoundException: net.craftstars.general.security.PermissionsBukkitPermissionsHandler
    17:14:47 [SEVERE]     at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    17:14:47 [SEVERE]     at java.security.AccessController.doPrivileged(Native Method)
    17:14:47 [SEVERE]     at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    17:14:47 [SEVERE]     at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
    17:14:47 [SEVERE]     at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
    17:14:47 [SEVERE]     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    17:14:47 [SEVERE]     at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    17:14:47 [SEVERE]     at net.craftstars.general.General.setupPermissions(General.java:188)
    17:14:47 [SEVERE]     at net.craftstars.general.General.loadAllConfigs(General.java:129)
    17:14:47 [SEVERE]     at net.craftstars.general.General.onEnable(General.java:115)
    17:14:47 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    17:14:47 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:878)
    17:14:47 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:272)
    17:14:47 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:162)
    17:14:47 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:146)
    17:14:47 [SEVERE]     at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
    17:14:47 [SEVERE]     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
    17:14:47 [SEVERE]     at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
    17:14:47 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    17:14:47 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    17:14:47 [SEVERE] Error occurred while enabling General v3.5.1 (Is it up to date?): null
    
    ~chsiao999
     
  24. Offline

    Celtic Minstrel

    If by SuperPerms you mean CraftBukkit 1000, then the answer is "only if you set you permissions system to Bukkit in the config.yml".
     
  25. It really wasn't very nice of you to remove /spawn and forcing us to download worldedit, and the other plugin to use it again...

    I don't want to install two big plugins, just to get ONE alias :mad:
     
  26. Offline

    Lord_Raptor

    The /give commands behaves strange on my server. Items to not appear in the inventory, only after you click a free slot, do they appear. I was using TooManyItems at that time.
     
  27. Offline

    Mr_Mellow

    Is the spawn problem fixed?
     
  28. Offline

    Celtic Minstrel

    Then just use /tp spawn. It's only three more keystrokes.

    It works fine for me, maybe the problem is with TooManyItems?

    Which problem?
     
  29. Offline

    Lord_Raptor

    From what I understand, TooManyItems simply sends the appropriate command to the server, but I'll doublecheck anyway. I'll report back after I get some results
     
  30. Offline

    Mr_Mellow

    My spawn command wont work, says its not a command.
     
  31. Offline

    Lord_Raptor

    Ok, the problem lies with TooManyItems, anyone else got the same problem?
     

Share This Page