[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

    The source is publicly available and you should feel free to add a /rules command, but I do not plan to add commands to this version of General.

    You may wish to take a look at MCDocs.
     
  3. Offline

    iLoveLampXx

    Works with craftbukkit 548?
     
  4. Offline

    cjc343

    The latest I've tested with is 531.

    It's likely that it works with 548, and if you find that it doesn't, post your server logs and I'll take a look at it.
     
  5. Offline

    Tfs Halo

    how do you add items into the items.db file i want to make it so where i can type in the name of the item and it gives it to me along with /item like for example

    /item wood would give me ID 5 which is wooden planks
     
  6. Offline

    cjc343

    The items.db included in the zip is editable with any text editor. It also already defines 5 to be wood. Make sure you put it in your server folder not the General folder.

    You can add additional names with commas, so '5=Wood' could be '5=Wood,OtherNameForWood,ThirdName'
     
  7. Offline

    Tfs Halo

    thanks for the fast reply and i assuming the quotes aren't supposed to be in the actual thing so i just fill up the file
    because it says minecraft properties then it says a date.
    ex:

    50=torch
    1=stone

    and keep on doing that for every one?
     
  8. Offline

    Celtic Minstrel

    Yes. You can also do things like '7,1=pine'.
     
  9. Offline

    cjc343

    Nope, the quotes were just for an example and do not belong in the file.

    I'm a bit confused about where you're setting this up though. The items.db included in the zip already includes a very good default set of names. You should be able to put the items.db in your server folder and it should just work for the most part.

    The only reason you need to edit it is if you want to change one of the defaults or add additional aliases. The ones you've mentioned so far are exactly like that in the items.db, so it would be much easier to at least start with that file.
     
  10. Offline

    kartman314

  11. Offline

    Celtic Minstrel

    It is indeed a dumb question ( :p ), since the original post specifically says that any commands defined by another plugin will not be handled by General. Thus you should be able to install Help, and /help will trigger Help's command rather than General's.
     
  12. Offline

    Tfs Halo


    mines didn't come with anything :confused: i opened the items.db with notepad++ and i got a time with nothing else on it besides a date and some other things

    i switched back to my old plugin but thanks for the help :)
     
  13. Offline

    cjc343

    As long as the other plugin registers the command in the YML file, General's version will be disabled. You should have no problem overriding help.

    There are multiple downloads at the top, one is for a "zip" file which contains all of the setup files. The "jar" is just for people who have everything set up already. Glad to hear you've gotten something that works for you though.
     
  14. Offline

    Tfs Halo

    thank you very much i thought the zip files and jars were both the same thank you for clearing that up it helped and i will keep it in mind if i go back to hosting my server again :) and thanks for being so mature
     
  15. Offline

    Psycho-Toaster

    All seems to work fine except for the /i and /item command - When I try them nothing happens and I get an "Unknown command" error in the server console. Any idea why this might be?
     
  16. Offline

    chernobyl360

    LOL you used chernobyl in the name? :D
     
  17. Offline

    cjc343

    Two things:

    1. I've released an update that gets rid of those messages. They didn't appear in-game until recently...

    2. Even with the previous build, I only saw that error if I used an incorrect name, or did not put the items.db in the right place. Make sure you put your items.db in the same folder as your server.properties file. Also make sure that the item name you tried to use is in your items.db file.

    Hope that fixes it for you!

    I was thinking of you.
     
  18. Offline

    Psycho-Toaster


    Double-checked everything and it still doesn't seem to be working. Here's a pastebin from the server log if it helps at all: http://pastebin.com/9gNQsdj1
     
  19. Offline

    silentdojo

    CB RB 556 General 2.2.2. Group Manager.
    /who and /playerlist no longer work for anyone but an Op/Admin.
    Also try a few commands on my server if you have time. Some show a double error message now.

    Dunno maybe it's just some other conflict.
     
  20. Offline

    cjc343

    I'm away for the weekend, so I can't do much right now, but if I had to guess, I'd say you should double check to make sure Permissions (of some sort) is set up.
    I thought I fixed the double-error stuff with 2.2.2. I'll double check everything, especially /who and /playerlist on Monday when I'm home. I'll make sure to remove myself from the ops file too... and grant myself only limited permissions...
     
  21. Offline

    leetgamer

    When users have the general.teleport permission, they have access to /tp * <player>. Was that intentional? Because it basically makes that permission node pointless to me, I don't wish for anybody to be able to use that.


    I'm running 2.2.1 I'm fairly certain... sorry I have downloaded so many plugins it's hard to remember each.
     
  22. Offline

    Celtic Minstrel

    If you have CraftBukkit build 531 or higher, you can upgrade to General 3.2.3 which has a separate permission for that. But note that upgrading would invalidate your items.db, and there are one or two other things that this version still does better than 3.x.
     
  23. Offline

    cjc343

    This appears to be a lack of Permissions. Please post your full server start-up with the command usage.

    They require 'general.player-info' permission.

    You will need to specify which commands are causing a double error. Otherwise I have no way of testing. I believe I've fixed those issues with 2.2.2

    I have made some changes to /who as well in 2.2.3 in order to prevent one error if the user was offline or nonexistent, and display another (to the user).


    Since there is a 'general.teleport.here' I agree that is NOT the expected behavior. I've posted 2.2.3 which moves this to 'general.teleport.to' instead. That said, CM's General is the future of General, and will be the only fork updated after some method of dynamically assigning commands is present in Bukkit and implemented in CM's General (as opposed to manual yml edits, which are possible with CM's General now). (Unless there are other major differences that I'm unaware of and dependent on).
     
  24. Offline

    thefinaldegree

    Hey, I just thought I'd be a great idea if you could intergrate /who [player] with Bekvon's Residence plugin: http://forums.bukkit.org/threads/se...a-protection-system-iconomy-support-556.9358/
    So that when you /who you can see what Residence/sub-zone they're in
    This would be very useful for players and admins alike.

    I hope you at least consider it :p
     
  25. Offline

    cjc343

    I don't see any public API for Residence, which would be required in order to hook into it. It's not possible to add that feature to any plugin unless the Residence dev provides the ability for other plugins to check what place a player is.
     
  26. Offline

    Razer19

    Hello,
    i have a little question:
    is it possible to see on the login WHO is online and not only how many?
     
  27. Offline

    Celtic Minstrel

    Not in this version. 3.2.3 has that feature, but upgrading might break little other things (such as your items.db).
     
  28. Offline

    Ttbot

    everytime i try to use any command besides help i get:

    Code:
    22:09:40 [SEVERE] Could not pass event PLAYER_COMMAND_PREPROCESS to General
    java.lang.NullPointerException
            at com.nijikokun.cjcfork.bukkit.General.iListen.onPlayerCommandPreproces
    s(iListen.java:627)
            at org.bukkit.plugin.java.JavaPluginLoader$5.execute(JavaPluginLoader.ja
    va:182)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:255)
            at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:637)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:608)
    
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:602)
            at net.minecraft.server.Packet3Chat.a(SourceFile:24)
            at net.minecraft.server.NetworkManager.a(SourceFile:230)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
            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)
    I've downloaded the latest version of buckit and i'm using permissions 2.5.2
     
  29. Offline

    revolucas

    Look at the title ... It works with at least build 556
     
  30. Offline

    Nuk3d

    yeah doesn't seem like it, I get the same exact message as Ttbot..

    Code:
    05:10:01 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-544-
    g6c6c30a-b556jnks (MC: 1.3)
    05:10:01 [INFO] This server is also sporting some funky dev build of Bukkit!
    which is the latest.
     
  31. Offline

    cjc343

    You need to install permissions or fix your config file.

    561+ doesn't work yet and are actively breaking plugins. I'll have a release out once they are a bit more stable/headed towards a new RB.
     

Share This Page