[MECH] GodMode v0.3.0 - A simple Permissions-optional godmode [740]

Discussion in 'Inactive/Unsupported Plugins' started by Alex Nolan, Feb 26, 2011.

  1. Offline

    Alex Nolan

    GodMode 0.3.0

    Download 0.3.0 [740] (5/7/11) | Static jar
    Older: 0.2.3 [602-617] (4/2/11), 0.2.0 [531] (3/12/11), 0.1.8 [499] (3/6/11), 0.1.6 [478] (2/28/11), 0.1 [418] (2/26/11)

    Souce Code (once I figure out how to use github and netbeans :D)
    (please give me tips on my coding)


    This is my first bukkit plugin, and certainly not my last :D. I made this because, of the two most recent godmode plugins I could find, the one utilizing Permissions was out of date and the other I couldn't get to work.​

    Features
    1. Permissions optional, use it if you want to, don't if you don't.
    2. Access from console.
    3. Light weight and quick.
    4. Compatible with multiple worlds.
    5. More coming soon.... (Please suggest some too)
    Commands


    Code:
    #toggle godmode on self
    /god
    /godmode
    
    #toggle godmode on other player
    /god otherPlayer
    /godmode otherPlayer
    
    #from console god mode
    god otherPlayer
    godmode otherPlayer
    
    #if player is on fire, put it out automatically. (i'm not sure if this works, the player may never catch on fire due to how the cancel even works. Can anyone test this?)
    /god -noFire
    /godmode -noFire
    #other player
    /god otherPlayer -noFire
    /godmode otherPlayer -noFire
    #server
    god otherPlayer -noFire
    godmode otherPlayer -noFire
    
    Settings (If you don't like permissions)
    Code:
    #use the Permissions plugin? if false it will use the data below
    usePermissions: false
    
    #values to use if the world isn't defined later
    default:
        default:
            - 'noFire'
        commands:
            - 'godSelf'
            - 'godOther'
            - 'noFire'
    worlds:
        otherworld:
            default:
                - 'god'
            commands:
                - 'godSelf'
        nether:
            default:
                - 'noFire'
            commands:
    Permissions
    Code:
    #god as soon as they login
    - 'godmode.default.god'
    
    #can use the /god command
    - 'godmode.command.godSelf'
    
    #can use the /god otherPlayer command
    - 'godmode.command.godOther'
    
    #is default -noFire toggle
    - 'godmode.default.noFire'
    
    #can use -noFire toggle
    - 'godmode.command.noFire'
    Todo


    Changelog
    • 0.3.0
      • Finally updated for [740] :D
      • Many bugs eliminated
    • 0.2.3
      • Updated for [602-617]
    • 0.2.0
      • Implemented a settings file!
      • Minor bug fixes
    • 0.1.8
      • Updated to [499]
      • Updated for Permissions v2.5.1 (Currently it seems like v2.5.2 only uses the default world's permissions and doesn't change on world change)
      • Reloads permission cache on world change
      • Alerts the user if they are in godmode on login
    • 0.1.6
      • Updated to [478]
      • Changed permission names
      • Added /god otherPlayer functionality
      • Added /god otherPlayer access from the terminal
      • More messages back to user
    • 0.1
      • Initial Build
     
    Nextrix likes this.
  2. Offline

    Juze

    We have 5 other plugins that can do this... do something else, add new features.
     
  3. Offline

    Alex Nolan

    Oh, well then could you point me to them? I'm pretty new here so I might have been looking in the wrong places, but like I said earlier, the one that I found that uses permissions hasn't been updated since build 200 of bukkit, and the other doesn't use permissions (and doesn't work either)
     
  4. Offline

    Juze

    godPowers by Taco, WorldGuard by sk89q, etc etc.
     
  5. Offline

    o0AzzA0o

    This godmode also works better then some others i have tryed no fall damage no drown damage lava fire etc it doesnt have any bugs and doesnt have /heal which would conflict with some of my other plugins

    Thanks Again sorry for double post but this is rly great plugin
     
  6. Offline

    MotionArts

    OMG thanks!! i love this lightweight plugin its really useful. You should add more features too.
     
  7. Offline

    Infernus

    public void onDisable() {
    //Print "Basic Disabled" on the log.
    System.out.println("Basic Disabled");

    }


    I think you might want to change 'Basic' ;)
     
  8. Offline

    Alex Nolan

    Ah, probably xD. Thanks, and thanks to everyone for the feedback as well :). I will update it in the git, but I will not rebuild and link to it until I am finished with the settings file update, so probably soon anyway.
     
  9. Offline

    Infernus

    Looking forward to your next version, especially the source, because then I won't have to follow tutorials about how to write and read settings :D
     
  10. Offline

    Alex Nolan

    Lol. I'll try to comment my best then! :D
    --- merged: Mar 1, 2011 3:34 AM ---
    Updated to v0.1.6 for [478]
     
  11. Offline

    DierWolf

    all the others can heal/fall dmge etc? what are you talking about ? :/ essentials gives you it all so
     
  12. Offline

    Alex Nolan

    I think he was saying that GodMode works better than some because it stops all damage (fall damage, drown damage, etc) in opposition of other plugins he has tried. Also he was saying that this plugin doesn't have bugs or the /heal command which would interfere with some of his other plugins.
     
  13. Offline

    qintesh

    Soo make a god mode that can fly move fast vanish stuff admins should have
    --- merged: Mar 1, 2011 8:59 AM ---
    essentials isn't full proof skeletons can kill you and creepers can cause damage
     
  14. Offline

    DierWolf

    no they cant loll !
     
  15. Offline

    qintesh

    i dunno what god mod ethat is when i used essentials like 2 days ago that's what was happening
     
  16. Offline

    Alex Nolan

    hmm, interesting.. Also does anyone have any recommendations/suggestions?
     
  17. Offline

    DFYX

    You should reset a player's cached permissions whenever he teleports to another world since Permissions >=2.1 supports different permissions per world. This is especially important if some players have godmode.default.god on world1 but not on world2.
     
  18. Offline

    Omni

    Do this! Simular to Zombes fly mod, except with permissions so only admins can use. allows to fly smoothly, at great speed.
     
  19. Offline

    CoteRL

    What he said..
     
  20. Offline

    qintesh

    mine was perfect I really believe it would really help a lot of people who are running there servers
     
  21. Offline

    Alex Nolan

    Sounds good, I'm currently looking into it :).

    Done :). It might just be me, but when I was testing with multiple worlds, Permissions v2.5.2 wasn't refreshing when the worlds changed for not only my plugin, but all of them, so I recommend using v2.5.1.
     
  22. Offline

    DFYX

    Oh, another small request: could you please use a file hoster that supports access via wget?
     
  23. Offline

    Alex Nolan

  24. so i found something out THIS DOESNT WORK
     
  25. Offline

    DFYX

    I found something out, too: "THIS DOESNT WORK" is not a bug report. For everyone here in the thread, it works great.
     
  26. Offline

    Alex Nolan

  27. Offline

    FlukiestEmperor

    Would it be possible for god mode to be disabled in a world that doesn't allow the permission?

    For example, I have several worlds, but I have a world dedicated for no commands, so when people go to this world, I would like god mode to be disabled.
     
  28. Offline

    Alex Nolan

    I'm sorry, I don't quite understand what you mean. You want to know if you can disable godmode on certain worlds? Also you don't have permissions running on that world?
     
  29. Offline

    Fyridor

    I think he meant that he has multiple worlds which have plugin support, but there is one world that is vanilla, that has no plugins. So he wants to disable all plugins in that world, but he wants to enable all of them in the others. Or so it seems...
     
  30. Offline

    FlukiestEmperor

    Yes, that is what I meant.

    Right now, if you enable god mode in a world you use can use a command in, then go to a vanilla world, god mode is still enabled even with the permission off.

    So... Would it be possible to turn off god automatically when you teleport/warp into a world where the command isn't allowed?

    Hopefully this cleared up the confusion...
     

Share This Page