[GEN] SimpleAdmin v4.0

Discussion in 'Inactive/Unsupported Plugins' started by captainawesome7, May 1, 2011.

  1. Offline

    captainawesome7

    SimpleAdmin - More commands+ Features

    commands (open)

    Admin Commands:
    • /annoy <playername> - Annoys the specified player (sends a message when they build/place any block on the server)
    • /unannoy <playername> - Stops annoying the specified player
    • /extrannoy <playername> - Extrannoys the specified player (sends a message everytime their location changes on the server)
    • /unextrannoy <playername> - Stops extrannoying the specified player
    • /kick <playername> <reason> - Kicks the specified player for the specified reason (see notes below for more)
    • /ban <playername> <reason> - Bans the specified player, the reason is what it shows when it kicks the player, and when they try to join while banned
    • /unban <playername> - Unbans the specified player
    • /teamview <playername> <command_without/> - Make the specified player perform the given command, it works with multi word commands and you do NOT need the / in the command
    • /kill <playername> - Kills the specified player (see notes)
    • /tp <player1> <player2> - Player 2 gets teleported to player 1
    • /tph <playername> - Teleports the specified player to you
    • /tpto <playername> - Teleports you to the specified player
    • /i <itemid> <amount> <durability> - Gives you the specified item id, amount is optional, default 64
    • /give <playername> <itemid> <amount> <durability> - Gives the amount of the specified item to the specified player, kind of glitchy (it might be invisible if you /give to yourself)
    • /clearinv <playername> - Clears your inventory, if playername specified, clears their's
    • /setspawn - Sets the world's spawn to your current location
    • /say - Broadcast a message throughout the server, custom format in config.txt
    • /discreet - Toggle /list visibility
    • /inventory check <playername> - Stores your inventory and replaces it with the specified players (don't try to check your own inventory)
    • /inventory return - Returns your inventory (if you are checking somebody else's)
    • /sareload - Reloads config.yml
    • /saversion - Displays your version of SimpleAdmin
    Fun Commands:
    • /arrow - Shoots an arrow from the sender
    • /ball - Throws a snowball from the sender
    • /egg - Throws an egg from the sender
    • /rename <playername> <newname> - Changes the display name of the specified player
    • /checkname <displayname> - Shows the player's real name (see notes below)
    • /instakill - Any entities you attack are killed instantly
    • /armor <playername> - Gives the specified player a set of diamond armor, already in their armor slot (It will overwrite existing armor!)
    • /spawnmob <mobname> <amount> - The mob name MUST have a capital first letter, examples: Chicken, Cow, Ghast
    • /nuke - Toggle nuke mode (any time you left click air your target block sets off a nuke)
    Other Commands:
    • /pm <playername> <message> - Whispers the message to the specifeid player
    • /ungod <playername> - Makes the specified player a mortal, if blank, makes the sender a mortal
    • /god <playername> - Makes the specified player a god, if blank, makes sender a god
    • /fall - Toggles falling damage
    • /heal <playername> - Heals the specified player (see notes)
    • /im - Toggles mob invincibility
    • /spawn - Teleports you to the spawn
    • /afk - Marks you as [AFK] in chat and in /list
    • /list - Display a list of players online, uses display names
    • /weather clear - Clears the weather in the world you are in
    • /weather rain - Makes it rain in the world you are in
    • /weather storm - Makes it thunder and rain in the world you are in

    permission nodes (open)

    simpleadmin.afk - /afk
    simpleadmin.annoy - /annoy, /unannoy
    simpleadmin.armor - /armor
    simpleadmin.arrow - /arrow
    simpleadmin.ball - /ball
    simpleadmin.ban - /ban
    simpleadmin.checkname - /checkname
    simpleadmin.clearinv - /clearinv
    simpleadmin.discreet - /discreet
    simpleadmin.egg - /egg
    simpleadmin.extrannoy - /extrannoy, /unextrannoy
    simpleadmin.fall - /fall
    simpleadmin.give - /give
    simpleadmin.god - /god, /ungod
    simpleadmin.heal - /heal
    simpleadmin.invincimobs - /im
    simpleadmin.instakill - /instakill
    simpleadmin.inventory - /inventory
    simpleadmin.item - /i and /item
    simpleadmin.kick - /kick
    simpleadmin.kill - /kill
    simpleadmin.list - /list
    simpleadmin.dontgivethistopeople - /nuke
    simpleadmin.pm - /pm
    simpleadmin.reload - /sareload
    simpleadmin.rename.self - /rename (only when setting your name back to your default)
    simpleadmin.rename.others - /rename (when renaming anybody)
    simpleadmin.say - /say
    simpleadmin.setspawn - /setspawn
    simpleadmin.spawn - /spawn
    simpleadmin.spawnmob - /spawnmob
    simpleadmin.teamview - /teamview
    simpleadmin.time - /time
    simpleadmin.tp - /tp
    simpleadmin.tph - /tph
    simpleadmin.tpto - /tpto
    simpleadmin.unban - /unban
    simpleadmin.version - /saversion
    simpleadmin.weather - /weather


    The absence of format is simply because I'm too lazy to do it now, I'll upload this to bukkit dev eventually.

    Download dev build

    Accidentally broke PM while trying to replace : ) with ☺
    I fixed it and re-uploaded :)

    Released v1.1! New ban commands and added god persistence!

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

    JKan

    hiya Captain
    i managed to get the colon problem fixed by posting into the permissions place
    thanks to maxis010
    anyways now im gettin a simple admin problem
    where now i have permissions set i still cant use /god or /armor could it have anything to do with the SEVERE line here:
    Code:
    3:06:02 [SEVERE] java.lang.Integer cannot be cast to java.lang.String initializ
    ing Permissions v2.7.3 (Is it up to date?)
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Stri
    ng
            at com.nijiko.permissions.Control.load(Control.java:215)
            at com.nijiko.permissions.Control.load(Control.java:130)
            at com.nijikokun.bukkit.Permissions.Permissions.setupPermissions(Permiss
    ions.java:174)
            at com.nijikokun.bukkit.Permissions.Permissions.onLoad(Permissions.java:
    145)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:103)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:218)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:205)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:260)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    03:06:02 [INFO] BedHome version 0.1 - Copyright 2011 - Shannon Wynter (http://fr
    emnet.net) is enabled :)
    03:06:02 [INFO] ChairCraft 1.2.2 is enabled.
    03:06:02 [INFO] [Jail] Loaded 0 jail zones.
    03:06:02 [INFO] [Jail] Loaded 0 prisoners.
    03:06:02 [INFO] [Jail] Loaded 0 prisoners.
    03:06:02 [INFO] Lockette version 1.3.8 is being enabled!  Yay!  (Core version 1.
    0)
    03:06:02 [INFO] Lockette: Detected craftbukkit build [766] ok.
    03:06:02 [INFO] [Permissions] version [2.7.3] (Phoenix)  loaded
    03:06:02 [INFO] Lockette: Linked to Permissions plugin version 2.7.3
    03:06:02 [INFO] Lockette: Using ops file for admin permissions.
    03:06:02 [INFO] Lockette: Ready to protect your containers.
    03:06:02 [INFO] [SimpleAdmin] Permissions system detected!
    03:06:02 [INFO] [SimpleAdmin] Version 1.8.3 has been enabled!
    03:06:02 [INFO] Snowball fight version 0.4 is enabled!
    03:06:02 [INFO] Done (0.162s)! For help, type "help" or "?"
     
  3. Offline

    captainawesome7

    @JKan if you have all of the permissions you can do all commands, I think it might be a permissions problem based on the [SEVER] line
     
  4. Offline

    JKan

    Ok Permissions is Solved i No longer have any serveres or errors BUT i still cant use thos darn commands. imma post everything for u, that sounds like im just throwing everything at u, im sorry.
    commands like /god or /armor.

    Code:
    {
      "users": {
        "1222222": {
          "group": "Admins",
          "permissions": null
        },
        "Herpina": {
          "info": {
            "prefix": "Moo",
            "suffix": "Cow"
          },
          "group": "Moderator",
          "permissions": [
            "herp.derp"
          ]
        },
        "Derpina": {
          "group": "Admins",
          "permissions": [
            "-derp.derp"
          ]
        },
        "andabcdea": {
          "Info": {
            "prefix": "Mod",
            "suffix": null
          },
          "group": "Moderator",
          "permissions": null
        },
        "adaavcasda": {
          "group": "TempMod prefix suffix",
          "permissions": null
        },
        "TheNo1Yeti": {
          "group": "Admins",
          "permissions": null
        }
      },
      "groups": {
        "Moderator": {
          "default": false,
          "info": {
            "prefix": "Mod",
            "suffix": "",
            "build": true
          },
          "inheritance": [
            "Default"
          ],
          "permissions": [
            "bar.foo",
            "simpleadmin.pm",
            "simpleadmin.checkname",
            "simpleadmin.egg",
            "simpleadmin.rename",
            "simpleadmin.afk",
            "simpleadmin.spawn",
            "simpleadmin.list",
            "simpleadmin.tph",
            "simpleadmin.tp",
            "simpleadmin.kick",
            "simpleadmin.annoy",
            "simpleadmin.discreet",
            "simpleadmin.say"
          ]
        },
        "TempMod": {
          "default": false,
          "info": {
            "prefix": "ATM",
            "suffix": "",
            "build": true
          },
          "inheritance": null,
          "permissions": [
            "bar.foo",
            "simpleadmin.pm",
            "simpleadmin.checkname",
            "simpleadmin.egg",
            "simpleadmin.rename",
            "simpleadmin.afk",
            "simpleadmin.spawn",
            "simpleadmin.list",
            "simpleadmin.kick"
          ]
        },
        "Necomers": {
          "default": true,
          "info": {
            "prefix": "Newcomer",
            "suffix": "",
            "build": false
          },
          "inheritance": null,
          "permissions": [
            "foo.bar"
          ]
        },
        "Admins": {
          "default": false,
          "info": {
            "prefix": "Admin",
            "suffix": "",
            "build": true
          },
          "inheritance": null,
          "permissions": [
            "*"
          ]
        },
        "Granted": {
          "default": false,
          "info": {
            "prefix": "Crystalian",
            "suffix": "",
            "build": true
          },
          "inheritance": null,
          "permissions": [
            "bar.foo",
            "simpleadmin.pm",
            "simpleadmin.checkname",
            "simpleadmin.egg",
            "simpleadmin.rename",
            "simpleadmin.afk",
            "simpleadmin.spawn",
            "simpleadmin.list"
          ]
        }
      },
      "plugin": {
        "permissions": {
          "system": "default",
          "copies": null
        }
      }
    }

    Thats the YML from parser that was correct.

    Code:
    [Lnet.minecraft.server.Statistic;@14c1103
    146 recipes
    [Lnet.minecraft.server.Statistic;@14c1103
    16 achievements
    04:35:14 [INFO] Starting minecraft server version Beta 1.5_02
    04:35:14 [INFO] Loading properties
    04:35:14 [INFO] Starting Minecraft server on *:25565
    04:35:14 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-729-
    g5ee3f0f-b766jnks (MC: 1.5_02)
    04:35:14 [INFO] Preparing level "Crystal"
    04:35:14 [INFO] Preparing start region
    04:35:15 [INFO] [Permissions] (Phoenix) was Initialized.
    04:35:15 [INFO] DataSourcePool [SimpleAdmin] autoCommit[false] transIsolation[SE
    RIALIZABLE] min[2] max[20]
    04:35:15 [INFO] SubClassFactory parent ClassLoader [org.bukkit.plugin.java.Plugi
    nClassLoader]
    04:35:15 [INFO] Entities enhanced[0] subclassed[1]
    04:35:15 [INFO] BedHome version 0.1 - Copyright 2011 - Shannon Wynter (http://fr
    emnet.net) is enabled :)
    04:35:15 [INFO] ChairCraft 1.2.2 is enabled.
    04:35:15 [INFO] [Jail] Loaded 0 jail zones.
    04:35:15 [INFO] [Jail] Loaded 0 prisoners.
    04:35:15 [INFO] [Jail] Loaded 0 prisoners.
    04:35:15 [INFO] Lockette version 1.3.8 is being enabled!  Yay!  (Core version 1.
    0)
    04:35:15 [INFO] Lockette: Detected craftbukkit build [766] ok.
    04:35:15 [INFO] [Permissions] version [2.7.3] (Phoenix)  loaded
    04:35:15 [INFO] Lockette: Linked to Permissions plugin version 2.7.3
    04:35:15 [INFO] Lockette: Using ops file for admin permissions.
    04:35:15 [INFO] Lockette: Ready to protect your containers.
    04:35:15 [INFO] [SimpleAdmin] Permissions system detected!
    04:35:15 [INFO] [SimpleAdmin] Version 1.8.3 has been enabled!
    04:35:15 [INFO] Snowball fight version 0.4 is enabled!
    04:35:15 [INFO] Done (0.156s)! For help, type "help" or "?"
    >
    and thats from my CMD :/
     
  5. Offline

    captainawesome7

    @JKan what does it say when you type /armor, nothing?
     
  6. Offline

    komet11_

    I think that there should be a weather mod like change the weather. and like commandbook there is /thor
     
  7. Offline

    PatrickFreed

    This is nice, good work :D
     
  8. Offline

    JKan

    type 'help' for commands or something :/ no idea why and /god aswell... both from CMD and Ingame.
     
  9. Offline

    captainawesome7

    @JKan well /god and /armor work for me.. Try re-downloading it in a minute
     
  10. Offline

    JKan

    heya what did u do? it works now :) was there a problem or something? well it works now.
    Can i Just say u did an amazing job on this aswell :)

    And the onli thing i would add is a weather command :)

    ty loads for ur help captain :)
     
  11. Offline

    captainawesome7

    @JKan lol, I didn't do anything :p (srsly though i didnt :/)
     
    JKan likes this.
  12. Offline

    JKan

    Ur presence did it... thats gotta be it haha
     
  13. Offline

    ghostsoldier23

    Could you add a permission node for /time commands?
     
  14. Offline

    captainawesome7

    @ghostsoldier23 its simpleadmin.time I forgot to add it to the OP
     
  15. Offline

    ghostsoldier23

    Ok thanks!
     
  16. Offline

    Lolf

    a /kick all would be wonderfull for server restart^^
     
  17. Offline

    ToastedJelly

    I'm not using this, just browsing plugins, but having to specify colors on checkname sucks. You should even allow to just use substrings if they are unambiguous
     
  18. Offline

    captainawesome7

    @ToastedJelly Yeah, I'm working on version 2, and I already fixed that :p
     
  19. Offline

    DjM1zw1z

    lol /i sh*t is a book
     
  20. Offline

    captainawesome7

    lol yes it is, I was just messing around and adding stuff :p
     
  21. Offline

    DjM1zw1z

    Does this work with cb818
     
  22. yes
     
  23. Offline

    TheYeti

    You may want to take a look at your SimpleGod thread as you are not actually ever using Permissions in your code. This could explain a great deal about why people can't actually use the commands unless they are ops as I am assuming you did the same exact thing here.
     
  24. Offline

    ghostsoldier23

    @captainawesome7
    I love this plugin. Great job!


    I'd love to give you an idea but you seem to have thought of everything.... I will let you know if I think of one.
     
  25. Offline

    captainawesome7

    What? I am definitely using permissions in my simplegod code:
    Code:
        private boolean UsePermissions;
        public static PermissionHandler Permissions;
        private void setupPermissions() {
            Plugin test = this.getServer().getPluginManager().getPlugin("Permissions");
            if (this.Permissions == null) {
                if (test != null) {
                    UsePermissions = true;
                    this.Permissions = ((Permissions) test).getHandler();
                    System.out.println("[SimpleGod] Permissions system detected!");
                } else {
                    log.info("Permission system not detected, defaulting to OP");
                    UsePermissions = false;
                }
            }
        }
    
    == and ==
    
        public boolean canUseGod(Player p) {
            if (UsePermissions) {
                return this.Permissions.has(p, "simplegod.use");
            }
            return p.isOp();
        }
        public boolean canUseGodOthers(Player p) {
            if (UsePermissions) {
                return this.Permissions.has(p, "simplegod.others");
            }
            return p.isOp();
        }
    What do you mean?
     
  26. Offline

    bassfader

    Is the Download link not up2date? When I download it in my server log it still says "[INFO] [SimpleAdmin] Version 1.8.4 has been disabled!" and I get some exceptions because Permissions could not be disabled (and I guess thats due to me using the newest permissions but this seems to be an old version).

    Where can I download 1.9.1 and is it compatible with Permissions 3.1.4 ?

    Here are the exceptions BTW:
    Code:
    2011-06-07 15:41:15 [INFO] [SimpleAdmin] Version 1.8.4 has been disabled!
    2011-06-07 15:41:15 [SEVERE] Error occurred while disabling Permissions v3.1.4 (Is it up to date?): null
    java.lang.NullPointerException
        at com.nijikokun.bukkit.Permissions.Permissions.onDisable(Permissions.java:148)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
        at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:771)
        at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:269)
        at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:262)
        at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:123)
        at net.minecraft.server.MinecraftServer.stop(MinecraftServer.java:260)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:341)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Just tested it and tried ALL download links I could find (starting from your Website, througout this thread and also using the "permalink" embedded in the JAR) but it tells me everytime the same thing.

    Also if I open up the plugin.yml included in the JAR file the Version entry always says 1.8.4 so I guess thats the problem.
    When will the new version be ready for download?

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

    ghostsoldier23

    Ha uh... v.1.9.1 reads v.1.8.4 when the server starts. I assume it actually is 1.9.1 and you just forgot to change the message?
     
  28. Offline

    captainawesome7

    I think i forgot to update the download.. I will fix it tomorrow
     
  29. Offline

    ghostsoldier23

    Sounds good.
     
  30. Offline

    DjM1zw1z

    When someone quits the game why does it say %quitter% Has Left The Game!
     
  31. Offline

    captainawesome7

    It's probably spelled wrong in the configuration. Make sure that it is %quitter%
     

Share This Page