[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

    Voxel Box

    Rich~

    Before too long, we will be releasing VoxelGuest, which is the fuel that keeps the Daro going, letting anyone show up and build, but only there. We are pretty excited to put the polish on it and make it usable for other people. Maybe It will work for you.

    Also, I agree with you: Different tools for different servers. The fact that some plugins by diferent developes share *some* similarity is great, but it's the differences between all these plugins that make one tool vs. another the appropriate one for a given server. The glory of Minecraft is still the abstraction of the goalset, and we are all tailoring these tools to what we need done in our little corners of the Minecraftverse.
     
  3. Offline

    Plague

    Thanks!
    I'm not really discouraged, because the plugin is mainly for me and my pal JanTar. But maybe I would be a little when I did it for others, but then I maybe would do something else than those commands :)
     
  4. Offline

    RchGrav

    That would be great.. I look forward to checking out your concept behind it and seeing how I can make it work with my setup.. I'm really doing this project for fun. (as i can assume most people are) And its a nice break from building business solutions and networks for customers. It feels good to put my networking / computer skills to work for something fun for a change. Most of my joy in minecraft comes from the implementation / server side... and seeing the end results of my friends having fun playing on my server. Its a blast. As someone who use to run a 300 Baud BBS on his commodore, and over the years graduated up to a Galacticom Major BBS, Multiuser games, Tele-Arena, etc... running the Minecraft server brings back these fond memories.

    I look at your website, and concept behind the way you are running your system, and if anyone has gotten it right its your group of guys. You seem to have a great crew assembled!

    I'm very grateful for this community and their willingness to share their work. I echo those sentiments to everyone in the Minecraft (modding) community who freely shares their hard work with others. Its very encouraging to see.

    Rich
     
  5. Offline

    Plague

    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"
     
  6. Offline

    Speedy2662

    hey, im wondering why everyone can use the /item option. is there anything to do that only I can do that? please help.

    ps. do you have team viewer? :)

    @edit - when you join the server it says welcome to plagueland.
     
  7. Offline

    Plague

    Whoops, fixed in 2.2 :)

    I don't support permissions, so yes, everybody can use everything.

    I have no source management at all, just a working .java file, as my plugins are too simple to do anything about it.
     
  8. Offline

    Speedy2662

    please do permissions, i really need it :( everybody is giving themself whatever they want ;(
     
  9. Offline

    RaymanMaik

    Hi, i get this error, if someone try to use /item:
    Code:
    SCHWERWIEGEND: Could not pass event PLAYER_COMMAND to PlgEssentials
    java.lang.NoSuchMethodError: org.bukkit.inventory.ItemStack.<init>(IIB)V
            at com.Plague.bukkit.PlgEssentials.PlgEssentialsPlayerListener.onPlayerC
    ommand(PlgEssentialsPlayerListener.java:80)
            at org.bukkit.plugin.java.JavaPluginLoader$3.execute(JavaPluginLoader.ja
    va:133)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:60)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:213)
            at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:590)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:563)
            at net.minecraft.server.Packet3Chat.a(SourceFile:24)
            at net.minecraft.server.NetworkManager.a(SourceFile:232)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:71)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:276)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:202)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    2011-01-31 20:30:13 [INFO] RaymanMaik tried command: item 50
    ("SCHWERWIEGEND" is german and means "serious")
     
  10. Offline

    Plague

    Looks like you are using a too old or too new version of craftbukkit. I am running 132 on my server as it is pretty stable and newer do not bring anything at this time (except for incompatibilities).
     
  11. Offline

    RaymanMaik

    I use the newest version, because the WorldGuard plugin
     
  12. Offline

    Plague

    Oh, the newest completely changed command interface, I will soon migrate my server and implement the new one with that.
     
  13. Offline

    Speedy2662

     
  14. Offline

    Plague

    Well, I could only add the give command to OPs, but as I will never use permissions myself I will not give time to the implementation of it, sorry. Will OPs suffice?
     
  15. Offline

    Speedy2662

    of course!!! :)
     
  16. Offline

    EvilSeph

  17. Offline

    PcWingman

    Ya i was wondering if u could make a version of it with the time and /item are for ops only because my server got lagged very badly when ppl kept spamming different times. I eventually had to delete it....
     
  18. Offline

    Plague

    Added an op-only version. I personally have no use for permissions and I'm pretty lazy coding anything more :)
     
  19. Offline

    Speedy2662

    Code:
    SEVERE: Could not pass event PLAYER_COMMAND to PlgEssentials
     
  20. Offline

    Plague

    Yes, this mod is not compatible with the new command system (190+ IIRC). Will be updating today, hopefully will release it soon.
     
  21. Offline

    Speedy2662

    please update this quickly. this is a must-have plugin!!!!
     
  22. Offline

    Plague

    Just a few more minutes :)
     
  23. Offline

    Speedy2662

    omg cant wait :D
    --- merged: Feb 3, 2011 9:10 PM ---
    any new nice updates rather than it working again? (lol)
     
  24. Offline

    Plague

    Okay updated, sorry for the delay...

    You can now type /item <name>, YAY!
    Also added /color to change color of wool, dyes and logs!
     
  25. Offline

    Speedy2662

    tyvm. works well. cheers man!
     
  26. Offline

    wilmervanheerde

    Very nice, this is exactly what i need for my simple server. Me and my friends really love it!
     
  27. Offline

    Speedy2662

    uhm... i get annoying messages on the cmd. help?
     
  28. Offline

    Plague

    "Doctor, doctor, it hurts! Help!"
     
  29. Offline

    Speedy2662

    10-Feb-2011 17:57:16 org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event PLAYER_JOIN to PlgEssentials
    java.lang.NoSuchMethodError: org.bukkit.Server.getWorlds()[Lorg/bukkit/World;
    at com.Plague.bukkit.PlgEssentials.PlgEssentialsPlayerListener.onPlayerJ
    oin(PlgEssentialsPlayerListener.java:25)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:123)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:60)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:214)
    at net.minecraft.server.ServerConfigurationManager.a(ServerConfiguration
    Manager.java:92)
    at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:86)
    at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:68)
    at net.minecraft.server.Packet1Login.a(SourceFile:46)
    at net.minecraft.server.NetworkManager.a(SourceFile:232)
    at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:34)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:310)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:225)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    --- merged: Feb 10, 2011 6:00 PM ---
    :(
     
  30. Offline

    Plague

    Right, bukkit changed the API. Either use older craftbukkit or wait for my update, I'll look into it if I can do it today.
    --- merged: Feb 10, 2011 6:34 PM ---
    Huh, that was easier than I thought :)
     
  31. Offline

    Speedy2662

    you did it already?
     

Share This Page