[INACTIVE][ADMN] Admin Mode v0.4.3 - Save your items before dealing with griefers! [860]

Discussion in 'Inactive/Unsupported Plugins' started by gnftoxic, Mar 11, 2011.

  1. Offline

    gnftoxic

    Admin Mode is a simple plugin - it saves your items, health, and location so you can deal with griefers, bad players, etc.
    Like this plugin? Contribute to the developers :)
    Current Version: 0.4.3 (Download AdminMode.jar)
    Permissions Support! (Completely optional)
    The Commands
    • /adminmode - Save your items, health, and location
    • /am - Alias of /adminmode
    The usage is very simple. You type /am and it clears your inventory, saves your health, and saves your location. After you have dealt with the griefers, done your admin duties, or whatever you felt like doing, you simply need to type /am again and it will return your items, your health, and return you to where you were last standing.

    Changelog
    • 0.4.3
      • Updated to CB #818
    • 0.4.1
      • Updated to CB #677
      • Fixed Permissions support
    • 0.4
      • Updated to CB #617
      • Implemented the ability to switch on/off health/location/items resetting
      • Changed enable / disable to /am on|off (temporary, I hope.)
    • 0.3
      • Entities now avoid any player using Admin Mode.
      • Added configuration file. plugins/AdminMode/settings.properties
      • Added Permissions support. Use "adminmode.use" to allow a player or group to use /am (or /adminmode)
      • Added hook PLAYER_JOIN, if a player had disconnected and reconnected, their location, health, and inventory will be reset to what it was.
      • Added hook ENTITY_TARGET to allow the first change (entity will not target player)
    • 0.2
      • Implemented functional god mode, preventing the death of an operator teleporting to a player.
      • Removed extra call to players' inventory when restoring it.
      • Removed an unused import in amEntity.java
    • 0.1
      • Initial release.
    ... this idea originated from http://forums.bukkit.org/threads/7648/
     
    Pim1234, Phaedrus, mynia and 5 others like this.
  2. Offline

    Bacu

    Props bro.
     
  3. Offline

    gnftoxic

    Thanks, haha. Implementing godmode in 0.2, just finished testing it.
     
  4. Offline

    Bacu

    Cool, cool. Tried it does what it says on the tin. Mighty good.
     
  5. Offline

    Juze

    This has potential.
     
  6. Offline

    gnftoxic

    I'm open to suggestions. :)
     
  7. Offline

    Bacu

    Oh, by the way. you forgot to update the version string.
     
  8. Offline

    gnftoxic

    Odd, just verified that, thing was that it was updated in the source code. Fixed, and removed an useless import in amEntity.java in the process. Thank you :)
     
  9. Offline

    Bacu

    oh, uh. it'd be nice if I didn't lose my old inventory when I log off in admin mode.
     
  10. Offline

    gnftoxic

    Right. That might be helpful.. just realized the way I coded it, it would prevent that. Will add a onPlayerQuit hook to fix that.

    Edit: It seems that you can retrieve your items even after you've logged out by simply typing '/am' again. The hook isn't working too well atm, or I may be just really exhausted and was doing it wrong.
     
  11. Offline

    Bacu

    It could be that I stopped the server in-between logins... That's most certainly it. Avoidable enough, I suppose.
    [MERGETIME="1299961120"][/MERGETIME]
    oh, also. how about a config file where I can list items to automatically add to the inventory when I go to admin mode? like, a full set of diamond tools?
     
  12. Offline

    gnftoxic

    Sounds like a good idea. I'll add that in 0.3 :)
    [MERGETIME="1299967989"][/MERGETIME]
    0.3 has been released.
    On first run, the plugin will create the configuration under plugins/AdminMode/settings.properties
    These settings are very basic...:
    Code:
    # Usage: items=ItemID1:Amount,ItemID2,ItemID3 .. e.g.
    items=1,2,8:64,278:2
    This will replace the administrators' inventory with the items specified. Max of 36 items.

    We have implemented Permissions!
    To use permissions, simply add 'adminmode.use' to your group(s) or user(s). Or just op them.

    Players will not be targeted (by creepers, zombies, etc.) when using AdminMode, thanks to the ENTITY_TARGET hook in CraftBukkit.

    Any suggestions are welcome. :)
     
  13. Offline

    Jekotia

    I would suggest making the teleport function a separate command. It seems counter-intuitive to FORCE a player to teleport to where they were initially when they used /adminmode. I'd suggest adding a teleport param to /adminmode such as -tp (/adminmode -tp) that teleports them back.

    Nice plugin! I was talking to someone on IRC about this a few days ago, I don't suppose it was you?
     
  14. Offline

    gnftoxic

    I haven't been on any IRC network besides vbirc, so probably not. Where do all the bukkit people hang out?
    As far as the teleporting, I might make it a setting in the settings.properties (or most likely will)
     
  15. Offline

    EvilSeph

    irc.esper.net #bukkit
     
  16. Offline

    Bacu

    damage-value support would be nice for the inventory thingy.

    Also it doesn't remove your armor when switching to admin-mode, but I don't think that's too big a deal since you can't take damage anyway.
     
  17. Offline

    gnftoxic

    Damage value meaning the damage to the items? We tested that and it worked on our server.
    I hadn't tested that theory on armor, but I assumed that.
    Thanks, hadn't searched for it yet, you are very active in these forums today :p
     
  18. Offline

    Racha

    Can you make this - when you type /ak /adminkit it gives armor, sword, pickaxe.. anything you put in adminkit file. config file :D
    Hope you understand me^^
     
  19. Offline

    Bacu

    Oh, really. What's the syntax for it then?
     
  20. Offline

    gnftoxic

    What do you mean? I took what you said as restoring the amount of damage to an item.
     
  21. Offline

    Bacu

    I mean for the inventory you are given when you initiate admin mode. I'd like to be able to give myself bonemeal.
     
  22. Offline

    Jekotia

    Go get a kit plugin <_<
     
    gnftoxic likes this.
  23. Offline

    Queepo

    It would be great if you could dynamically change the players permissions in order to lower their group and prevent tempted admins from commands like /i. Not sure if it's possible, otherwise great plugin.
     
  24. Offline

    Shenlong

    It would be awesome if you could support CraftBukkitUpToDate by providing a static link to the latest version.

    Show Spoiler
    My Plugin didn't supported, how i get it to work with CButD?
    Give me a permanent link to your Plugin, i will add it. That's all no changes at your SourceCode or something else, all I need is a permanent link to the newest version of your Plugin. A good place for this is http://www.dropbox.com/ or for OpenSource https://github.com/.
    By the way, I also support zip-Files, please ignore users who say something else. But your zip and jar shouldn't equal any Version-Number.
     
  25. Offline

    gnftoxic

    I have posted the link in his thread, thanks.
    You mean with Permissions, right?
    I'll look into this, I have my internet back now, so :)
    Agreed. thank you.
     
  26. Offline

    Shenlong

    Thanks for the quick support [​IMG].
     
  27. i love you for this one!
     
  28. Offline

    Shenlong

    So, I was just testing out my configuration of this and something odd happened. I went into admin mode and it gave me all of the gear I had it set up to give you. Then I just re-arranged stuff, put the armor on and whatnot and when I went back out of admin mode it didn't give my items back. Instead it gave me the default items that are set up to be given when switching into admin mode (A diamond pick and 64 stone). Didn't get any errors or anything. I'm using the latest RB (556 I think).
     
  29. Offline

    Lokykun

    Hi nice plugin.
    But i have one problem.
    If a User or a Group have the wildcard premisson '*', the command /am or /adminmode dosen't work.
     
  30. Offline

    gnftoxic

    Could you post your configuration so I could test exactly what happened?
    Are their other permissions working correctly?
     

Share This Page