[GEN] PlgEssentials v5.0 - time, give, tp, tphere, etc. [1.4]

Discussion in 'Archived: Plugin Releases' started by Plague, Jan 19, 2011.

  1. Offline

    Plague

    PlgEssentials - Essential commands for Plague's server:
    Version: v5.0

    I made this plugin for my own private server to have some basic commands under control.

    As in all my plugins, you can now edit the name of commands in plugin.yml.

    This will never support any permissions system, it is aimed at people using ops.txt.
    If you want them, there is a fork called AdminCmd.

    Commands:
    /time day|night|dusk|dawn|<raw> OR /day
    /i OR /item (id|name) [count] [damage] [player]
    /tp (player)
    /s OR /tphere (player)
    /playerlist
    /location OR /loc
    /c OR /color (colorid|colorname)
    /more
    /msg (player) (private message)
    /strike [player]
    /weather (off|calm|rain|snow|storm) [duration]
    /mob (name)
    /repair
    /setmode (survival|creative|s|c)

    Note: the creature names for /mob are CamelCase (e.g. Chicken, PigZombie). I *have* reasons for that, sorry.

    Download (source code in the .jar)
    Op-only version

    [​IMG]


    Changelog:
    Version 5.0:
    • updated to new bukkit API
    Version 4.7:
    • added /setmode command to change game mode for the caller.
    Older versions (open)

    Version 4.6:
    • added /repair command to repair any item in hand (watch out for colorables)
    Version 4.5:
    • added /mob (name) command to spawn monsters and animals
    Version 4.4:
    • fixed a bug in /msg (thanks DoodoM)
    Version 4.3:
    • /strike [player] - strikes a player with lightning (if no player given, strikes where your crosshair points)
    • /weather (off|calm|rain|snow|storm) [duration] - turn off weather (always sunny) or sets weather for a given amount of seconds (or default: 5m of bad weather 15m of good weather)
    Version 4.2:
    • fixed a bug in /item for other players (thanks Dark_Balor)
    Version 4.1:
    • /item can give to others, optional parameter [player]
    Version 4.0:
    • uses onCommand, CB 454+ compatible
    • you can edit all command names in plugin.yml/aliases:
    • added /msg command for private messages
    • code optimization
    Version 3.5:
    • added /more command (fills your hand with 64 items of what you are holding)
    • removed other features than commands (moved to PlgMisc)
    Version 3.4:
    • fixed a (possibly dangerous) bug in nick coloring
    Version 3.3:
    • fixed a bug when after respawn your name is not colored anymore
    • added coloring of slabs and doubleslabs (stone, cobblestone, sandstone, wood)
    Version 3.2:
    • Minecraft 1.3 compatible, craftbukkit 432 (actually no change needed for this)
    • slight internal code changes
    Version 3.1:
    • Updated to new craftbukkit API (300)
    Version 3.0:
    • updates for new craftbukkit API (232)
    • /item now takes block names
    • added /color to change color of wool, dyes and logs
    Version 2.2
    • bugfixes
    Version 2.1
    • Added /day alias for /time day
    • Added Login message telling how many players are on the server
    • Reformatted /location output to ## N, ## E, ## H (north, east, height)
    • Added /location line "Facing W/NW/N/NE/E/SE/S/SW"
    Version 2.0
    • added /s alias
    • new name matching
    Version 1.0
    • Initial release
     
  2. Offline

    Plague

    You can disable them by editing plugin.yml inside the .jar file, just remove the "aliases: " line
     
  3. Offline

    Trust518

    Why dont you just make the config xD? then you have somthing todo xD
     
  4. Offline

    Dreadreaver

    Duh and ... hello?!
    To ask for such a thing after he kindly explained an easy solution to you: Preposterous!
    If you really need a "config"-file then fork this plugin and implement it yourself.
     
  5. Offline

    Plague

    Because I don't need it for my server.
    umad?
     
  6. Offline

    MacklinB

    This plugin could do with a Godmode, with a simple /god command to turn it on and off :D
     
  7. Offline

    Plague

    PlgNoHealth
     
  8. Offline

    Deveral

    Any possible way to add something to increase/decrease Mob aggro ranges? Also your time change commands, do they PAUSE time based on your choice or only switch to that time and continues to change? If so this would be PERFECT for my server!!
     
  9. Offline

    Plague

    Only switch time, pausing time can be done via the Noon plugin for example.
     
  10. Offline

    Deveral

    Ahhh awesome thanks!! Ive been looking all over for that haha. Still any chance you know of an aggro range plugin or something of the sort? I know they had a nightmare mod that did this but I think it was singleplay only. :'(
     
  11. Offline

    Maoman

    I noticed a minor bug. If you summon a creeper, escape before it blows up, then electrify it with the /strike command, it still only detonates like a normal creeper. It takes on the electrified look, but its explosion is no bigger than usual. Any idea why?
     
  12. Offline

    Plague

    Wow ;)
    No idea whatsoever, I just use one direct function to summon the mob, so I cannot really change anything there.
     
  13. Offline

    Maoman

    Speaking of which, what's the technical name for the electrified creeper? I tried Electrified_Creeper, Thunder_Creeper, and tried several other variants I thought of, but none *seemed* to work.

    And before you ask, I know i'm using the command itself right, cause I got pigs, zombiepigmen, and creepers just fine (didn't actually try any others), and I know about the camelcase thing.

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

    Plague

  15. Offline

    Kanoa_W

    Would /repair be a possibility? :D I know the AdminCmd has it, but your give command is easier to use, and I don't use Permissions, so the AdminCmd has a lot of superfluity.
     
  16. Offline

    Plague

    I actually thought about that and forgot :)
    It's 4AM right now, so tomorrow (if I don't forget again) I'll add /repair
     
  17. Offline

    Kanoa_W

    Yay! Thank you :D
     
  18. Offline

    Plague

    Version 4.6
    Added /repair command to repair anything in hand.
    Watch out for colorable items (dyes, wool, logs, leaves, steps, saplings) that use the durability as a color value.

    Tagging @Kanoa_W
     
  19. Offline

    Maoman

    /repair doesn't seem to be working.... 1.5_01 and build 766. :( I'm holding a wooden spade at half durability and typing just "/repair" and it does nothing.
     
  20. Offline

    Plague

    I just run 766, given myself a wooden spade, dug into the ground till it was under a half durability, written /repair and *poof* the spade is like new.
    So you must be doing something wrong, like taking OP-only version when you are not an OP.
     
  21. Offline

    Jack Whitney

    Hi, I was wondering in an update could there be a properties file so you can very simpley choose who and what commands each person gets.
    like
    (jwhiterz) /i, /time

    (neonnskull) /i, /weather

    if you understand what im trying to get at.
    Thanks :)
     
  22. Offline

    Plague

    I understand, but I'm too lazy to support config files in my plugins.
     
  23. Offline

    Jack Whitney

    :p just thought it would be a nice feature but I dont mind if you dont want to
     
  24. hey hello love your plugin and I always use the tp but when I get lost in caves and die I lost my items can you make a tp command in which you teleport to the place you died?
     
  25. Offline

    Plague

    That would be a completely different system. And do you really want to tp to the lava that killed you? :D
     
  26. Whats the max number for weather duration? It rains way too @#$%%^& much in 1.5 bETA.
     
  27. Offline

    Plague

    max(INT32)/1000, somewhere around around 2million if I'm not mistaken (and it's 3AM)
     
  28. Offline

    millsy27

    I think (beware for tipical suggestion, and bad spelling :)) you should ad a /heal or /heal (player), that would be a very nice feature, as well as if you could add a /kill (player) so that they can be punished with death and not lightning. BTW i use basically all your plugins and love everyone of them, well done, you got a [diamond] plus a [cake] but not a [creeper]
     
  29. Offline

    Maoman

    Would it be possible to include a list which allows us which names mean which item IDs for the /i command? I find myself still reverting to the ID list, because all the names that I call them (and any other names I can think of) don't work.
     
  30. Offline

    Plague

  31. Offline

    Maoman

    I understand that, but I'm sure it wouldn't be much effort to include that file into the plugin, would it? It would allow me to set shortcuts personalized to my server (it's only ever me, my wife, and my cousin on my server). What if I don't want to type "wooden_pressure_plate" every time, and just want "wplate?" And what do I enter if I specifically want a redstone torch in the "off" state and don't have an ID list? I'm sure you could tell me what to enter, but I doubt you want to do that for every question.

    I don't know how many people agree with me, but I've always thought the more customizable a plugin is, the better.

    Also, tone is hard to convey with text. I don't mean this to seem like a command, just a request with some reasoning to justify it.
     

Share This Page