[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

    sza22

    ok let us know
     
  3. Offline

    InShaneee

  4. Offline

    Plague

    Well I posted the links there. But I don't really get why would anyone need my permission, since the plugin has to be GPL according to bukkit license...
     
  5. Offline

    Gbhsl

    None of the other plugins of this type are working and permissions isnt working ect you have save my server :D
     
  6. Offline

    Marcello

    Can you please make this work for permissions? or is there any other plugin that works for changing wool colors?
     
  7. Offline

    Plague

    For the nth time, I will never make this work with any permission system, because this plugin is for people not wanting to use permission systems.
     
  8. Offline

    DontMakeWaves

    lol, maybe you should add that to the first post in bold capital letters like "WILL NEVER USE ANY PERMISSION SYSTEM". Just a thought; it might work. [​IMG]
    http://www.homestarrunner.com/sbemail63.html
     
  9. Offline

    Plague

    Oh well...

    Nice vid :)
     
  10. Offline

    Eddiekins

    This is essentially a basic version of the General (or Essentials) plugin. It's a good idea for small servers running on lowp-spec'd machines. Don't knock it.
     
  11. Offline

    swedish2011

    Permissions code ?
     
  12. Offline

    Plague

    LOOK 3 POSTS BACK!
     
    andre_9796 likes this.
  13. Offline

    Eloth

    i can't get some things with /item like iron or rail why?
     
  14. Offline

    Plague

    Because there's "rails" "iron_block" and "iron_ore".
     
  15. Offline

    RecyclingNinja

    I was wondering if the "item" function puts it directly into the inventory. Thanks, I love your post.
     
  16. Offline

    Plague

    Yes, it puts it into inventory, not on the ground.
    Thanks!
     
  17. Offline

    Andre_9796

    :D
     
  18. Offline

    Plague

    Although I didn't change a thing, I'll rather post it. Compatible with the new 600 RB (and still compatible with 556).
     
  19. Offline

    Dark_Balor

    Hi,

    Because it's WTFPL (Do What The F*** You Want Public License). I updated some part of your code.

    First I corrected a little bug with "give an item to a chosen player" , it was not working because you didn't updated this line
    Code:
    player.getInventory().addItem(stack);
    to
    Code:
    target.getInventory().addItem(stack);
    and changed the command's order. (Now it's /item (name|id) amount player dmg)

    I added more messages (first it's just was for debugging, now it's informational)

    I added a new command /tp2p (or /t2p) to teleport a player to an another player.

    Changed playerlocation, now we can ask for the location of a given player (if no name is send to it, it use the player)

    Made a serverVersion switch for the function teleportTo (because in 600 it's teleport).

    Changed the PlgEssentialsWorker's constructor and the way it's setted.

    Added an HashMap for the colors (using Material as index).

    And last thing, use the Minecraft's server.log file to log activation and deactivation of the plugin.
     
  20. Offline

    Plague

    @Dark_Balor , thank you for the bugreports (target and teleport), fixed that (I'll release together with 1.4).

    As for WTFPL. It means that you can do whatever you want with the code, but if you want to release your version it's still best to release it under your name with new plugin name.

    I am not changing command interface because of backward compatibility.

    So please rename the plugin to something else than original PlgEssentials.
     
  21. Offline

    Dark_Balor

    @Plague : Okay I'll do that, and I'll add Permission to it then :)
     
  22. Offline

    Dreadreaver

    /i doesnt work on my server :S build 650+
     
  23. Offline

    Plague

    That's possible since I only support recommended builds, currently 617
     
  24. Offline

    Dreadreaver

    670 is recommended too :p
     
  25. Offline

    Plague

    Well RSS is not working then.. well it's 3AM in the morning. so tomorrow :)
     
  26. Offline

    Dreadreaver

    k sure, just wanted to report that as thats the sole issue left on my server now to make it run perfect again since the 1.4 update =)
     
  27. Offline

    Plague

    actually, I just tested 670 to make sure and it works with no errors...
     
  28. Offline

    Dreadreaver

    Indeed it works on 670 again!
    I cant really say which builds broke /i for me but its been broken for like 3 different builds around 650 for me as it would just not give any response/item but working with 670 fine again =)

    Sorry to have troubled u and thank you for the fast answers ;)
     
  29. Offline

    mughi

    this would be a good addition to the OP even better would be a link to a list

    better still would be the option to read in a file with item number/desired name in pairs.. but i can live w/o that, now that i know how to find out what they are called

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

    TheArcher

    Fantastic plugin, I've been looking for something like this for a while (a standalone plugin that gives general commands without the need for any inferior plugins like Permissions). However, please add "/spawn" and "/setspawn". Also, the command guides are a bit unorganized:

    [​IMG]
     
  31. Offline

    Plague

    Use PlgSetspawn (see signature) for spawn, I had to make it separate because of ho it does the setspawn thing.

    I do not create the help, that's original minecraft one.
     

Share This Page