[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

    cjc343

    /spawn is working just fine here, as is the general.spawn permission node.

    Do you get any errors? Could you paste your start-up log?
     
  3. Offline

    krnel

    Hello,

    Nice plugin.

    can you add online plyaerlist to the motd, in addition to the #?

    +online​
    # of online users.​

    Maybe +users

    Thanks!
     
  4. Offline

    PepijnPro

    Can only ops use the commands?
     
  5. Offline

    Kevin Forte

    Code:
    09:15:13 [INFO] General is giving s to Stackable
    Thank you!
     
  6. Offline

    MajorVictory

    It might be worth mentioning that '/setspawn' is no longer a command.
    Turns out the new command is '/spawn set'

    Any chance you could update the thread and the plugin's help menu to reflect this?
     
  7. Offline

    cjc343

    /setspawn is still a command. You likely have another plugin installed which overrides /spawn. There should be a message about it when you start the server.

    E: Alternatively, you are likely using an older version of Celtic Minstrel's General, see two posts down.

    Permission nodes are listed in the first post.

    This feature is already implemented in Celtic Minstrel's version of General. If you can tell me why you need to use this version of General, I may add it, but currently I have a very busy next two weeks.
     
  8. Offline

    krnel

    No problem, I made my own plugins lately to accommodate missing features in plugins I use. Thank you for your time, have a nice two busy weeks ;) hehe
     
  9. Offline

    Celtic Minstrel

    He's probably using my version of General; for awhile, I did replace /setspawn with /spawn set, though I ended up returning to /setspawn in General 3.4.
     
  10. Offline

    pepeanuts

    availible only 1.6 ?
     
  11. Offline

    Cid

    I, like peanuts, am curious too if this build has been tested with CB818 and 1.6.6.

    Any info out there?
     
  12. Offline

    DurtyFree

    Hmm it doesnt work with Permissions 3 and Build 818
     
  13. Offline

    Cid

    Good to know Durty. I will stay tuned until a perms 3 compatible version is avail.
     
  14. Offline

    cjc343

    I have not yet tested with Permissions 3, but haven't had any major issues running on 818 with 2.7.7 except that the new items have not yet been added.

    I'm in the middle of a lot of work that has been keeping me from updating this, but I should be able to squeeze in an update sometime later today.
     
  15. Offline

    Cid

    darn... looks like all i can get ahold of is 2.7 thru 2.7.4 then it skips to 3.0...

    Anyone have a link to 2.7.7 by chance? Currently general is the only thing holding back our server from an upgrade to 1.6.

    Thanks
     
  16. Offline

    cjc343

    @Cid @DurtyFree @pepeanuts
    General 2.2.9 is now available. It is updated for 1.6 and includes support for giving maps, Permissions 3, and an updated items.db

    As always, you'll need to replace your items.db with the one in the zip or update your custom items.db with the new items.
     
  17. Offline

    Forzii

    Any chance you could have general give /i and /give to SimpleAdmin?
     
  18. Offline

    cjc343

    This has been fixed. General should work properly with SimpleAdmin now.
     
  19. Offline

    Kevin Forte

    Hello, so I'm trying to work on a plugin that requires the cancellation of commands. For some reason, General commands are the only commands I cannot cancel by canceling the PlayerCommandPreprocessEvent. Is there a reason for this, and if so how do I work around it?
     
  20. Offline

    cjc343

    Event.isCancelled() checking has always been somewhat spotty in General... some commands have it and others don't and I haven't done much to fix that. I've added it to the very beginning of the event now and am just trying to clean out the old checks quickly before I release a fix.

    E: Done.
     
  21. Offline

    Kevin Forte

    Awesome, thanks a ton. :)
     
  22. Offline

    Forzii

    Thanks a bunch!
     
  23. Offline

    MrPendulum

    Just to confirm, will this work with Permissions 2.x?
     
  24. Offline

    BlueSky

    Code:
    10:36:17 [SEVERE] while scanning for the next token
    found character         '\t' that cannot start any token
     in "<reader>", line 17, column 1:
                    - 'general.spawn'
        ^
    
    10:36:17 [SEVERE]       at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreToken
    s(ScannerImpl.java:360)
    10:36:17 [SEVERE]       at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(Sca
    nnerImpl.java:183)
    10:36:17 [SEVERE]       at org.yaml.snakeyaml.parser.ParserImpl$ParseIndentlessS
    equenceEntry.produce(ParserImpl.java:538)
    10:36:17 [SEVERE]       at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(Parser
    Impl.java:163)
    10:36:17 [SEVERE]       at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(Parse
    rImpl.java:148)
    10:36:17 [SEVERE]       at org.yaml.snakeyaml.composer.Composer.composeSequenceN
    ode(Composer.java:203)
    10:36:17 [SEVERE]       at org.yaml.snakeyaml.composer.Composer.composeNode(Comp
    oser.java:158)
    10:36:17 [SEVERE]       at org.yaml.snakeyaml.composer.Composer.composeMappingNo
    de(Composer.java:230)
    10:36:17 [SEVERE]       at org.yaml.snakeyaml.composer.Composer.composeNode(Comp
    oser.java:160)
    10:36:17 [SEVERE]       at org.yaml.snakeyaml.composer.Composer.composeMappingNo
    de(Composer.java:230)
    10:36:17 [SEVERE]       at org.yaml.snakeyaml.composer.Composer.composeNode(Comp
    oser.java:160)
    10:36:17 [SEVERE]       at org.yaml.snakeyaml.composer.Composer.composeMappingNo
    de(Composer.java:230)
    10:36:17 [SEVERE]       at org.yaml.snakeyaml.composer.Composer.composeNode(Comp
    oser.java:160)
    10:36:17 [SEVERE]       at org.yaml.snakeyaml.composer.Composer.composeDocument(
    Composer.java:122)
    10:36:17 [SEVERE]       at org.yaml.snakeyaml.composer.Composer.getSingleNode(Co
    mposer.java:105)
    10:36:17 [SEVERE]       at org.yaml.snakeyaml.constructor.BaseConstructor.getSin
    gleData(BaseConstructor.java:124)
    10:36:17 [SEVERE]       at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
    10:36:17 [SEVERE]       at com.nijiko.configuration.NotNullConfiguration.load(No
    tNullConfiguration.java:52)
    10:36:17 [SEVERE]       at com.nijiko.data.YamlGroupStorage.reload(YamlGroupStor
    age.java:162)
    10:36:17 [SEVERE]       at com.nijiko.data.YamlGroupStorage.<init>(YamlGroupStor
    age.java:29)
    10:36:17 [SEVERE]       at com.nijiko.data.YamlCreator.getGroupStorage(YamlCreat
    or.java:58)
    10:36:17 [SEVERE]       at com.nijiko.data.StorageFactory.getGroupStorage(Storag
    eFactory.java:129)
    10:36:17 [SEVERE]       at com.nijiko.permissions.ModularControl.forceLoadWorld(
    ModularControl.java:91)
    10:36:17 [SEVERE]       at com.nijiko.permissions.ModularControl.loadWorld(Modul
    arControl.java:82)
    10:36:17 [SEVERE]       at com.nijiko.permissions.ModularControl.load(ModularCon
    trol.java:103)
    10:36:17 [SEVERE]       at com.nijikokun.bukkit.Permissions.Permissions.setupPer
    missions(Permissions.java:182)
    10:36:17 [SEVERE]       at com.nijikokun.bukkit.Permissions.Permissions.onLoad(P
    ermissions.java:138)
    10:36:17 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftS
    erver.java:106)
    10:36:17 [SEVERE]       at net.minecraft.server.MinecraftServer.e(MinecraftServe
    r.java:232)
    10:36:17 [SEVERE]       at net.minecraft.server.MinecraftServer.a(MinecraftServe
    r.java:219)
    10:36:17 [SEVERE]       at net.minecraft.server.MinecraftServer.init(MinecraftSe
    rver.java:146)
    10:36:17 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:285)
    10:36:17 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:422)
    I get this error after configuring General in the Permissions Groups Config file
    Code:
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance: null
            permissions:
            - 'iConomyChestShop.shop.create'
            - 'iConomyChestShop.shop.create.<id>'
            - 'iConomyChestShop.shop.exclude.<id>'
            - 'iConomyChestShop.shop.buy'
            - 'iConomyChestShop.shop.sell'
            - 'iConomyChestShop.command.iteminfo'
            - 'lwc.protect'
            - 'general.spawn'
            - 'general.player-info'
        Moderator:
            default: false
            info:
                prefix: '&5[Moderator] '
                suffix: ''
                build: true
            inheritance: null
            permissions:
            - 'iConomyChestShop.shop.create'
            - 'iConomyChestShop.shop.create.<id>'
            - 'iConomyChestShop.shop.exclude.<id>'
            - 'iConomyChestShop.shop.buy'
            - 'iConomyChestShop.shop.sell'
            - 'iConomyChestShop.command.iteminfo'
            - 'lwc.protect'
            - 'general.items'
            - 'general.spawn'
            - 'general.teleport'
            - 'general.teleport.here'
            - 'general.player-info'
        Owner:
            default: false
            info:
                prefix: '&c[Owner] '
                suffix: ''
                build: true
            inheritance: null
            permissions:
            - '*'
     
  25. Offline

    cjc343

    Never use a tab in a yml file.

    Yes.

    E:

    Replace the tab with spaces.
     
  26. Offline

    BlueSky

    So what exactly do I have to do
     
  27. Offline

    lobsterbee

    Maybe it is a Permission problem, but i cannot use any command. I have permissions 3.1.4, BlastControl v1.0.6, BorderGuard 3.10 . When I try too execute a command AND if my username is in the op.txt file, it tells me to use "help" to get informations. If my username is not in the op.txt it tells me nothing. No error in the console or notification in the console. MOTD and help file works perfectly. I 'm in the group "SuperAdmin".

    Permission file:
    Code:
    groups:
        Gast:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'general.time'
        Mitglied:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Gast
            permissions:
                - 'general.spawn'
                - 'bc.tnt.allowed''
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Mitglied
            permissions:
                - 'general.player-info'
                - 'bc.tnt.abovelimit.*'
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Moderator
            permissions:
                - 'general.teleport.silent'
                - 'general.reloaditems'
        SuperAdmins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
     
  28. Offline

    Azell

    ^ same,

    i can use [/time set 0] but that's console based commands. I tried using /time help too but nothing shows up. there's no error about it in the console.

    Thank You for working on this Project ^^ :)
     
  29. Offline

    lobsterbee

    Ok, its my fault. I've got a typo in my "users.yml".
    Code:
    users:
        lobsterbee:
            groups:
                - Admin
    I wrote "group:" instead of "groups:". :mad:

    You Plugin is great! But the "clock" (/time) is kind of ugly. =/ Is there an option to format it to 24h?
     
  30. Offline

    meggawatts

    error when I try /time day

    Craftbukkit: 820jnks
    Permissions: 3.1.4

    Show Spoiler
    2011-06-07 22:59:45 [SEVERE] Could not pass event PLAYER_COMMAND_PREPROCESS to General
    java.lang.NullPointerException
    at com.nijikokun.cjcfork.bukkit.General.iListen.onPlayerCommandPreprocess(iListen.java:759)
    at org.bukkit.plugin.java.JavaPluginLoader$5.execute(JavaPluginLoader.java:271)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:712)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:684)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:677)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:217)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:401)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  31. Offline

    Sirgue

    Works for b860 ?
     

Share This Page