[INACTIVE] SimpleGod v1.2 - Godify yourself and others + permissions [1060]

Discussion in 'Inactive/Unsupported Plugins' started by captainawesome7, Apr 30, 2011.

  1. Offline

    captainawesome7

    INACTIVE - For new versions, click here.
    SimpleGod - Make people gods!
    Version: 1.1/1.2
    SimpleGod is a very simple plugin that I whipped up in 1 hour when @Fortifier42 contacted me and asked for a god plugin (something about previous ones being outdated). Anyways, all this does is make yourself a god, and a mortal again when you want to be. (it currently is not persistent). You can make yourself or other people gods!
    Commands:
    /sgod <playername> - makes the player a god, if no name specified, makes the sender a god
    /usgod <playername> - makes the player a mortal, if no name specified, makes the sender a mortal
    Permissions nodes:
    simplegod.use

    Features(1.1):
    • Godify yourself and others!
    • Mortalize yourself and others!
    • Permissions!
    Features(1.2):
    • Automatic god mode if you have the permissions node simplegod.use
    Downloads
    The source code is included in the .jar (SimpleGod.jar/me/captain/SimpleGod/)

    Planned Changes
    None
    Changelog:
    Version 1.2
    • Removes all commands, etc. If you have the node simplegod.use you are invincible
    Version 1.1
    • Added the option to god other people!
    Version 1.0
    • Official Release!
    [​IMG] To me to support my plugins :)
     
    AS1LV3RN1NJA likes this.
  2. Offline

    Fortifier42

    What are the permission nodes?

    Also


    InvinciMobs?
     
  3. Offline

    captainawesome7

    fail
    sorry

    it says nodes at the top...

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

    Fortifier42

    Lol np
    So it does, my mistake.
     
  5. Offline

    captainawesome7

    I will have persistence added by tomorrow. It should be as easy as copy + pasting some code from my other plugin and changing a few bits :)
     
  6. Offline

    Plague

    Isn't there already the same name in plugins?
     
  7. Offline

    Tfs Halo

  8. Offline

    Andre_9796

    Godmode on startup possible for peoble with a permission node?
     
  9. Offline

    tehMorag

    Instead of "on startup" make it "on map entry"
    I have 3 maps running and only 1 needs no damage ^^;;;

    Could use 2 premissions to check this each time someone enters the map...
    SimpleGod.on
    SimpleGod.off

    and a way to turn people on/off at will (toggle)
    /sgod <name>
    #If there is no name... Then it toggles is for your self only if they have the permission
    simplegod.use

    If you can make -- You are awesome! Thanks :D



    ps. i will give you internets!
     
  10. Offline

    captainawesome7

    Alright, I will see what I can do :)
    I will most likely drop this plugin eventually as it is absorbed by SimpleAdmin
     
  11. Offline

    sauevaem

    Does this plugin checks from permissions while traveling between worlds (MultiVerse)? Currently using worldguard god my vips can godify themself in freebuild world and then go to rpg with godmode still on.
     
  12. Offline

    tr00dudu

    permission node simplegod.use does not seem to do anything for me. (aka i cant use /sgod ) i allso tried simplegod.*

    why? :/
     
  13. Offline

    captainawesome7

    @tr00dudu Hold on, I will see if I messed up the code...

    @tr00dudu thats what the node is, and the command is definitely sgod. Do you not get an enable message?

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

    tr00dudu

    well as the server admin i can use it ofc and it works.

    but i gave my mod the mentioned permission and he cant use sgod. he even sent me a screenshot to prove it. when he types /sgod he gets a response "You don't have permission to: Make people mortals!"

    i hope that is any help to you at all, and thanks for the very quick response :)
     
  15. Offline

    captainawesome7

    @tr00dudu ok, i can look into this tomorrow
     
  16. Offline

    tr00dudu

    great, thanks! :D
     
  17. Offline

    dispet

    cheers!
    i was possible to make some lightning with rightmouse click
    but after restarting my server its not working anymore.
    im admin and used /sgod which works perfectly

    any idea?

    btw, nice mod!
     
  18. Offline

    captainawesome7

    @dispet do you use weather man?
     
  19. Offline

    dispet

    Weather Man?
    I got some Weatherplugins for example AdminRage & AZP.
    Going 2 Delete them and test SGOD again!
     
  20. Offline

    captainawesome7

    @dispet just wondering I use WeatherMan and it works fine with this
     
  21. Offline

    tr00dudu

    im starting to suspect that the permission node alone is not enough, and you need to be a server op to activate /sgod too. any chance that is correct, and could you remove the op requirement? :p
     
  22. Offline

    captainawesome7

    @tr00dudu the way that this is coded makes that impossible to be the case. It is most likely a dumb mistake in the onCommand code, I will look at it and get back to you.
     
  23. Offline

    tr00dudu

    allrighty, thanks for the quick responses :)

    ps. gave you an internet :D
     
  24. Offline

    DarkKiller13

    does it workw with 818???
     
  25. Offline

    captainawesome7

    @DarkKiller 13 YES
     
  26. Offline

    revfeuerfrei

    Error in 819.

    >usgod dellom1
    10:19:51 [WARNING] Unexpected exception while parsing console command
    org.bukkit.command.CommandException: Unhandled exception executing command 'usgod' in plugin SimpleGod v1.0
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:273)
    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:430)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:415)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.command.ColouredConsoleSender cannot be cast to org.bukkit.entity.Player
    at me.captain.SimpleGod.SG.onCommand(SG.java:95)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 6 more


    >usgod dellom1
    10:19:51 [WARNING] Unexpected exception while parsing console command
    org.bukkit.command.CommandException: Unhandled exception executing command 'usgod' in plugin SimpleGod v1.0
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:273)
    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:430)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:415)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.command.ColouredConsoleSender cannot be cast to org.bukkit.entity.Player
    at me.captain.SimpleGod.SG.onCommand(SG.java:95)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)

    Downloaded and installed two hours ago.
     
  27. It doesn't work in console...
     
  28. Offline

    TheYeti

    You know, if you are going to make it support Permissions you really should call setupPermissions() inside of onEnable()

    Also, the following imports are unneeded and should not be in there:
    Code:
    import java.io.File;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.util.Properties;
    
     
  29. Offline

    gamer1129

    Hey Captain, yet again another plugin I use lol. I switched over from SimpleGodMode because it was being dumb and not letting people with proper permissions use godmode, so I looked for an alternative and vala here I am. I noticed one thing though, theres no option for automatic godmode, as in people with a permissions like simegod.default, which would always make them god on join. Will you ever add something like that?
     
  30. Offline

    captainawesome7

    Sure how about right now
     

Share This Page