[INACTIVE][GEN] General 2.2.11 (Chernobyl) -- A plugin for general commands [860]

Discussion in 'Inactive/Unsupported Plugins' started by cjc343, Mar 2, 2011.

  1. Offline

    cjc343

    I fully recommend that you use Celtic Minstrel's General and cease to use this version.

    Celtic Minstrel's General (and Bukkit) now support command aliasing in a form that makes this version of General redundant. I am working on a final release which will attempt to upgrade existing 2.x users to the new version, but it will be faster to switch yourself (and potentially easier as well) rather than wait for this to be available.


    When switching, you should be aware that your existing configurations will not have an effect. You should take some time to familiarize yourself with the new config options available, as well as making sure that you copy in the new config files.

    If you have localized your items.db, you will need to transfer this to the new format.

    Sorry for the slow movement on this, I have been moving, on vacation, and then starting a new job and it has left my days quite full for some time now.

    Show Spoiler

    General 2.2.11 [Chernobyl] (Requires CraftBukkit 818-860+ & Permissions 2.x or 3)
    Downloads:
    Zip File (Contains items.db, general.help, general.motd, config.yml)​
    Old


    This fork of General provides basic commands while allowing other plugins to override them automatically. If another plugin registers a command, General will not use it. This allows you to replace only specific features with a different plugin simply by adding the other plugin as well. General will notify you at start-up when it gives a command to another plugin.

    General is a fork of Nijikokun's original General plugin, without which, this plugin would never have been possible.
    Features:

    Features:
    Commands:
    1. /afk | away (message) -- Set you AFK or set your AFK status.
    2. /playerlist | online | who (player) -- List players or info about a player.
    3. /spawn -- Return to spawn.
    4. /setspawn -- Change spawn to current location.
    5. /time help -- Provides more info about changing the time.
    6. /tp | teleport -- Teleport players or to a player. Type /tp for more info.
    7. /tphere | s (player) -- Teleports a player to you.
    8. /i | give | item [item ID | name in items.db] (amount) -- Gives an item by name or ID#.
    9. /msg | tell [player] [message] -- Send a message to another online user.
    10. /compass -- Direction reading.
    11. /getpos -- Detailed location information.
    12. /motd -- Re-display the MOTD.
    13. /reloaditems | rlidb -- Reload items.db.
    14. /help | ? (page) -- Prints help file.
    Permission Nodes:
    1. general.items: Controls /i, /give, /item

    2. general.spawn: Controls ability to use /spawn

    3. general.spawn.set: Controls ability to use /setspawn

    4. general.teleport: Controls ability to use /tp, /teleport

    5. general.teleport.here: Controls ability to use /tphere, /summon

    6. general.teleport.to: Controls ability to use /tp * [destination]

    7. general.teleport.silent: Prevents notifications when teleporting.

    8. general.time: Controls ability to use /time

    9. general.player-info: Controls ability to use /playerlist, /online, /who

    10. general.reloaditems: Controls ability to use /reloaditems, /rlidb

    MOTD:
    Functions Available:
    +dname | +d​
    Player display name.​
    +name | +n​
    Player name.​
    +location | +l​
    Player location.​
    +health | +h​
    Player health.​
    +balance​
    Player iConomy balance.​
    +ip​
    Player IP address.​
    +online​
    # of online users.​
    Color Codes (Put either '&' or 'ยง' in front of the color code):
    0: Black​

    1: Dark Blue​

    2: Dark Green​

    3: Teal​

    4: Dark Red​

    5: Purple​

    6: Gold​

    7: Light Grey​

    8: Dark Gray​

    9: Light Blue​

    a: Light Green​

    b: Turquoise​

    c: Light Red​

    d: Pink​

    e: Yellow​

    f: White​

    Config Files:
    items.db -- Goes in the root directory with your server.properties. On most setups, this will be the same folder as the CraftBukkit jar. If you are using MineOS, this is the 'one' 'two' or 'three' folder. A template for this file, and the other config files, is available in the ".zip" download.​

    general.help -- Contains general's help information.​

    general.motd -- Contains the Message of the Day. Leave blank for no message.​

    config.yml -- Allows you to change playerlist settings.​

    Change Log:

    Change Log:

    Version 2.2.11
    - Proper isCancelled checks.​

    Version 2.2.10
    - Fixed case-sensitivity issue with dynamic commands​

    Version 2.2.9
    - Built against Permissions 3​




    - Added support for 1.6 items​




    Version 2.2.8
    - iConomy 5 support.​

    Version 2.2.7
    - Added silence support to primary teleport case.​

    Version 2.2.6
    - Added general.teleport.silent Permission node.​

    Version 2.2.5
    - Updated items.db in zip file​
    - Added sapling variants​
    - Added TP messages​
    - Added check for command aliases that conflict with General​

    Version 2.2.4
    - Updated for 594+​
    - Added dependency to plugin.yml​
    - Fixed command checking for plugins loading before General.​

    Version 2.2.3.1
    - Fixed Permissions loading​
    - Changed iConomy loading method​

    Version 2.2.3
    - Changed Permissions loading method.​
    - Added 'general.teleport.to' permission node.​
    - Fixed error when using /who for an offline or nonexistent player.​
    - Updated example items.db to demonstrate 'damage' attributes, as mentioned (and implemented?) by Celtic Minstrel.​

    Version 2.2.2
    - Properly cancelled events that actually happen.​

    Version 2.2.1
    - Changed the way General checks other plugins for commands.​

    Version 2.2
    - Code Refactoring​
    - Uses new method to set spawn​
    - Eliminates direct access to CraftBukkit​

    Version 2.1.2.1
    - Fixed loop when permissions not present.​
    - Other small fixes and optimizations that I don't remember​
    - Old code cleanup​
    - Actually uploaded to github

    Version 2.1.2
    - Actually fixed iConomy (4.0) support.​
    - Fixed MOTD not appearing from some version​

    Version 2.1.1.2
    - Added support for 454+​
    - No longer throws NPE if config isn't present​

    Version 2.1.1.1
    - Fixed setspawn​
    - Fixed iConomy 3.0 iirc.​

    Version 2.1.1
    - Added Permissions 2.1 support.​

    Version 2.1.0.2 - By Tatsu-Kan
    - Added Beta 1.3 items.​

    Version 2.1.0.1
    - First release of "Unofficial General"​
    - Built for build 432+​

    Version 2.1 and Earlier are by Nijikokun with contributions from Celtic Minstrel, verrier, OniTux, and others? Celtic Minstrel has also created a fork of General. I will use it myself and stop updating this once Bukkit provides any interface for overriding other plugins. One method of achieving this is currently a low priority issue for the Bukkit team.

     
    Darkspear and Tazzernator like this.
  2. Offline

    cullyn

    Testing your plugin now, CB484 perms 2.51

    So far so good, no issues
     
  3. Error while trying to set a new spawn.

    Code:
    10:39:33 [SEVERE] Could not pass event PLAYER_COMMAND_PREPROCESS to General
    java.lang.NoSuchMethodError: org.bukkit.World.setSpawnLocation(III)Z
            at com.nijikokun.cjcfork.bukkit.General.iListen.onPlayerCommandPreprocess(iListen.java:430)
            at org.bukkit.plugin.java.JavaPluginLoader$6.execute(JavaPluginLoader.java:150)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:225)
            at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:641)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:612)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:606)
            at net.minecraft.server.Packet3Chat.a(SourceFile:24)
            at net.minecraft.server.NetworkManager.a(SourceFile:230)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    10:39:33 [INFO] eXifreXi tried command: setspawn
    
    Don't know how to fix this. Only using Permissions 2.5.1!
     
  4. Offline

    cjc343

     
  5. I downloaded the Recommend Build of Bukkit from the documentation-site. Isn't that higher than 480? oO
     
  6. Offline

    cjc343

    @eXifreXi
    Recommended build was 440 last I checked. The only thing that doesn't work is /setspawn as that's what uses a new interface. 2.1.2.1, which I linked to, should work fine on 440.
     
  7. Hm ok, but if i download a higher Build, which isn't recommend, it would work? ^^ Sorry for my bad english.

    EDIT: Ok sorry :) it's working now. It's hard to find the new builds. Don't know why where's no link on the mainpage.
     
  8. Offline

    cjc343

    @eXifreXi
    NP. Recommended Builds are good if you're running a server. They have usually been tested more than other builds.

    Newer builds can be less stable. They're good if you're testing, but may not be best if you're running an 'actual server' unless you've tested it yourself and found that it works well.

    If you want to actually run a server right now, stick with 440. 2.1.2.1 should work fine with it.

    If you want to test the latest CraftBukkit, then you're more likely not to run the RB.
     
  9. @cjc343

    Ok, but i've got a problem :( sorry for asking.

    I managed to set the permissions in the Permission Plugin and i can give me items, setspawn and all of that, but it tells me that i don't have the rights to change the time.

    I added the generel.time to my permissions, because i thought general.* isn't enough, but i keeps telling me that i dont have the permission to use it =(
     
  10. Offline

    cjc343

    I'm logging off right now, but post your permissions config inside a code block in the permissions thread. If someone else doesn't look at it, I'll be back eventually.

    Spacing is VERY important. NEVER use tabs. Always indent 4 spaces per level.

    Don't inherit another group if you have '*' permission.

    Everything is case sensitive.

    E: Try the config I posted in the Permissions thread. Don't delete the stuff at the top of your config file that you didn't include.
     
  11. Ok, i will post it in the Permission-Thread. Thx 4 help, here is the config, if you come back later and no one could help me.

    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'myhome.home.basic.*'
                - 'general.spawn'
                - 'general.player-info'
                - 'DeathChest.use'
                - 'DeathChest.allowQuickLoot'
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
                - 'myhome.*'
                - 'general.*'
                - 'worldedit.*'
                - 'DeathChest.freeChest'
                - 'DeathChest.freeSign'
                - 'DeathChest.allowQuickLoot'
                - 'general.time'
    
    
    users:
        eXifreXi:
            group: Admins
            permissions:
                - 'general.time'

    EDIT: Ok, the 2 craftbukkit plugins caused the problem.
     
  12. Offline

    MaverickHunter

    Running 2.1.2.1 on my CB 440 smoothly and awesomely. Works with 12 other plugins I'm running.
     
  13. Offline

    Riley Sykes

    I am running the newest working build of craftbukkit [493] and the newest general.
    I get this error:
     
  14. Offline

    Tyler Ferm

    @cjc343

    with build #493 which is the new RB, I want to also use nSpleef on my server which is why i'm trying to upgrade the bukkit version and was wondering if this is a quick fix or if I should wait for awhile for a new patch and not use nSpleef.

    Code:
    12:33:55 [INFO] [General] version [2.2] (Chernobyl) loaded
    12:33:55 [SEVERE] PLAYER_COMMAND loading General v2.2 (Is it up to date?)
    java.lang.NoSuchFieldError: PLAYER_COMMAND
            at com.nijikokun.bukkit.Permissions.Permissions.registerEvents(Permissio
    ns.java:118)
            at com.nijikokun.bukkit.Permissions.Permissions.onEnable(Permissions.jav
    a:111)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:414)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:187)
            at com.nijikokun.cjcfork.bukkit.General.General.setupPermissions(General
    .java:169)
            at com.nijikokun.cjcfork.bukkit.General.General.onEnable(General.java:11
    9)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:414)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:187)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:83)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:61)
            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)
     
  15. Offline

    cjc343

    java.lang.NoSuchFieldError: PLAYER_COMMAND
    at nl.xupwup.LightVote.LightVote.onEnable(LightVote.java:108)

    LightVote needs to be updated.

    Either Permissions needs to be updated, or I need to know what version of Permissions you're using to test further.
     
  16. Offline

    mrmaniacal

    I'm running into this:
    Code:
    java.lang.NullPointerException
            at com.dinnerbone.bukkit.scrap.ScrapBukkit.onEnable(ScrapBukkit.java:32)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:414)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:187)
            at com.nijikokun.cjcfork.bukkit.General.iListen.setupCmds(iListen.java:116)
            at com.nijikokun.cjcfork.bukkit.General.General.onEnable(General.java:122)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:414)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:187)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:83)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:61)
            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)
    Running build 493
     
  17. Offline

    Strongit

    This thread makes me very happy. :D Thanks for picking up General. So far, so good.
     
  18. Offline

    Celtic Minstrel

    Well, this is interesting, because I was working on my own fork, and in fact released my own version 2.2 just before (or possibly just after) you posted this thread. If anyone is interested, my version can be found here. (Should work on 440.)

    It doesn't really have much to distinguish it from yours though, at this point; /time dawn and /time dusk are supported, but that's the only truly new thing I can think of. I am however working on a version with improved /spawn and /give as well as a couple of extra commands, and hopefully GroupManager support.

    I'd like to know if there is anything that cjc's 2.2 has that mine does not, apart from the commands in mine that are "on suspension" (which are /setspawn, /motd, /help, /reloaditems, and /afk), since if there is anything else new it'd probably be advisable to merge the two. Having two forks of General floating around is... well... somewhat redundant. I don't see any signs of having added anything in his commit logs, though.
     
  19. Offline

    Tyler Ferm

    I am using version 2.1, wasn't sure if i wanted to step on to unofficial builds of other things as well. No problems with any other plugins.
     
  20. Offline

    cjc343

    Remove ScrapBukkit.

    2.1 is broken for both General and Permissions in the latest builds, sorry.
     
  21. Offline

    Malzbier

    Genaral 2.2 is broken on build 495.
    It kills my old help Command and ignores all other plugins working with the version 2.0

    The Error:

    Code:
    14:31:12 [SCHWERWIEGEND] PLAYER_COMMAND loading General v2.2 (Is it up to date?)
    java.lang.NoSuchFieldError: PLAYER_COMMAND
            at cjc.generalessentials.GeneralEssentials.onEnable(GeneralEssentials.java:65)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:414)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:187)
            at com.nijikokun.cjcfork.bukkit.General.iListen.setupCmds(iListen.java:116)
            at com.nijikokun.cjcfork.bukkit.General.General.onEnable(General.java:122)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:414)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:187)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:83)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:61)
            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)

    All other Plugins are working fine!
     
  22. Offline

    cjc343

    GeneralEssentials is causing the error. I'll have it fixed in a bit.
     
  23. Offline

    tension69

    Tested 2.2 with build#514 tonight. No issues for me.
    Check my info tab on profile for plugins loaded at time of test[​IMG]
     
  24. Offline

    lolligertyp

    HEy,
    got some Problems with godPowers: http://forums.bukkit.org/threads/admin-misc-god-powers-for-bukkit-491.1097/page-7
    General works perfectly, but I can't use godPowers (It only shows /godmode in the chat when I type in /godmode)
    Code:
    21:48:41 [SEVERE] null loading General v2.2 (Is it up to date?)
    java.lang.NullPointerException
            at com.FriedTaco.taco.godPowers.godPowers.onEnable(godPowers.java:121)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:414)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:187)
            at com.nijikokun.cjcfork.bukkit.General.iListen.setupCmds(iListen.java:1
    16)
            at com.nijikokun.cjcfork.bukkit.General.General.onEnable(General.java:12
    2)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:414)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:187)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:83)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:61)
            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)
     
  25. Offline

    cjc343

    Did a bit of testing, and the result is that General now checks for other plugins in a different, more friendly way. This should be fixed with the latest version 2.2.1
     
  26. Offline

    Racha

    Well, is this working?
     
  27. Offline

    cjc343

    Yes. Unless you have an issue to report.
     
  28. Offline

    Riley Sykes

    What about general? is general not working anymore with the current build?
     
  29. Offline

    cjc343

    Nijikokun's General 2.1 doesn't work anymore. This should be working fine, but I have not yet tested with the newly released RB. That error was saying that LightVote is still trying to use an event, PLAYER_COMMAND, which doesn't exist anymore.
     
  30. Offline

    mattburnsey

    I'd love to add a /rules option. Great plugin!
     

Share This Page