Inactive [SEC] PermissionsPlus v3.2.5p - Alternative commands to modify Permissions in-game now w/MWS [1337]

Discussion in 'Inactive/Unsupported Plugins' started by DigitalTyrant, Mar 20, 2011.

  1. Offline

    DigitalTyrant

    PermissionsPlus - Adds ability to modify Permissions in-game

    Updated: 10/6/2011
    Version: 3.2.5p [jar]
    CraftBukkit: [b1337jnks]
    Description:
    PermissionsPlus adds commands to allow administrators the ability to modify their Permissions config from within Minecraft client. The most complete Permissions editing plugin for Bukkit. Supports Multi-World. Updated for MultiPlay!​
    REQUIRES: Permissions 3.x - Permissions Thread

    Includes: P2Aliases updated 10/6/2011

    Feedback: http://p2.idea.informer.com/

    Get updates on TWITTER!

    Installation and Usage information and Permissions nodes
    are available at Mymchost.com

    Information:

    It appears that I am not the only server admin that stuck to Permissions v2.7.4 so, I have released PermissionsPlusLegacy v2.4. It is a RB1000+ compatible version of PermissionsPlus v2.3. You can download this in the change log below.
    • You can specify multiple worlds separated using a comma. Do not use any spaces after the comma.
      Code:
      w:World1,World2,World3
    • You can specify all worlds using an asterisk.
      Code:
      w:*
    • You can specify multiple groups using commas for the /user -addgroup command.
      Code:
      /user -addgroup u:Username s:Group1,Group2,Group3
    • All Usernames and Groups can be shortened. You will be notified if more than one possible match is found.
      Code:
      digital = DigitalTyrant, adm = Administrator
    • With 2.x+ you must add the info variable 'rank' to your groups in order to enable promote, demote and some group functions. You can set this variable from within the game using the command:
      Code:
      /group -setinfo g:GroupName i:rank s:1-100+
                           or
                         /rankset GroupName 1-100+ world 
      The higher the number the higher the rank. Make sure you use i:rank and not i:Rank it is case-sensitive.
    • You can now set Promote and Demote limits. The Promote limit is the highest rank they can promote to. Demote limit is the highest limit that they can demote from. You can set these using the commands:
      Code:
      /group -setinfo g:GroupName i:dlimit s:50
                         /group -setinfo g:GroupName i:plimit s:75 
    If you use want to Permissions + PermissionsPlus while using Essentials plugins, make sure you do not have FakePermissions or EssentialsGroupBridge enabled.



    Not sure how long this will be useful with Bukkit's upcoming Permissions system, but it allows the Moderators of my server to give new members access without having to modify the .yml file directly. I will continue development until the new Bukkit Permissions system has widely replaced Permissions plugin.
    Thanks to Nijikokun, original author of Permissions.

    Thanks and Enjoy!
     
  2. Offline

    Enraged

    nice plugin keep the work on :)
    but i have a little problem or better i have two:
    1) where can i find a command list? i dont know all commands and there is no way to get them (didnt find them)
    2) when promoting a user there is a bug. i have different prefixes for each group so that i can see their group in the chat. problem is that sometimes i promote a user but the prefix isnt shown? if doing this promotion manually in the config then the prefix is shown. is this a known bug?
     
  3. Offline

    Dark_Rainbow

    I get this error :

    2011-06-18 23:09:50 [SEVERE] Could not load 'plugins/PermissionsPlus.jar' in folder 'plugins':
    java.lang.NoClassDefFoundError: com/nijiko/permissions/Entry$EntryVisitor
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:167)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:194)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:117)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:109)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ClassNotFoundException: com.nijiko.permissions.Entry$EntryVisitor
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 11 more
     
  4. Offline

    nala3

    ok, 2 things that i have found.
    1) if you type something like "/promote user world" but the world name is actually "World" it will throw an error
    2)It keeps the previous groups when you promote somebody, so if you promote somebody from a member to a builder
    they will have the builder permissions BUT they keep the member tag if you use prefixes and suffixes

    here is the error btw
    Code:
    17:11:39 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'prom
    ote' in plugin PermissionsPlus v3.0
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:12
    8)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:2
    87)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.
    java:712)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:678)
    
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:671)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:399)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
            at net.codej.permissionsplus.PermissionsPlus.onCommand(PermissionsPlus.j
    ava:998)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
     
  5. Offline

    DigitalTyrant

    There are a few situational configurations that I am sure that I missed so this second item above probably falls in there. The command list is available at mymchost.com. There is an overwhelming amount of information there but we are trying to find a way to organize it a little different to make it easier to read.

    I will make sure that I add world capitalization checking to the plugin so we don't have this issue anymore.

    The dual group issue is something that I wasn't quite sure how different servers do things. I would agree that removing the old group would make more sense but at the time I was thinking multiple group functionality was added for a reason so I should program for it.

    Are you using Permissions 3.x?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 17, 2016
    Enraged likes this.
  6. Offline

    Donny

    Yeah 3.1.5b
     
  7. Offline

    DigitalTyrant

    The exception you posted is saying that PermissionsPlus is unable to load the class named Entry which is in Permissions 3.x. Is there anymore information above the exception that says whether or not Permissions has failed to startup for any reason?
     
  8. Offline

    SirHedgehog

    I get that too. It seems that this probably occurs because Permissions 3 is loading after PermissionsPlus.
     
  9. Offline

    DigitalTyrant

    Coming in 3.0.1 -
    -Added default pLimit and dLimit values of current group
    -Check world argument for correct capitalization
    -Removed old group when promoting
    -Added Permissions version checking

    Waiting to release just in case I identify any more bugs with these outstanding exceptions

    Yea, not sure what to do about that one. There were a few people that posted they renamed their Permissions.jar to aPermissions.jar and that caused it to be loaded before all plugins. Seems like a fix, but there might be a more proper way to accomplish this.

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

    Smurphy88x

    Hi there =)
    Awesome plugin, was wondering if you might be interested in adding the ability to remove groups from a user's groups list?
    Cheers,
    Smurphy88x
     
    DigitalTyrant likes this.
  11. Offline

    Donny

    Code:
    2011-06-18 21:57:11 [INFO] Starting Minecraft server on *:25565
    2011-06-18 21:57:11 [WARNING] **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
    2011-06-18 21:57:11 [WARNING] The server will make no attempt to authenticate usernames. Beware.
    2011-06-18 21:57:11 [WARNING] While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.
    2011-06-18 21:57:11 [WARNING] To change this, set "online-mode" to "true" in the server.settings file.
    2011-06-18 21:57:11 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-827-g57d9687-b866jnks (MC: 1.6.6)
    2011-06-18 21:57:11 [INFO] Preparing level "world"
    2011-06-18 21:57:12 [INFO] Preparing start region for level 0
    2011-06-18 21:57:13 [INFO] Preparing spawn area: 69%
    2011-06-18 21:57:13 [INFO] Preparing start region for level 1
    2011-06-18 21:57:14 [INFO] Preparing spawn area: 97%
    2011-06-18 21:57:14 [SEVERE] Could not load 'plugins/PermissionsPlus.jar' in folder 'plugins':
    java.lang.NoClassDefFoundError: com/nijiko/permissions/Entry$EntryVisitor
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:247)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:167)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:194)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:117)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:109)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ClassNotFoundException: com.nijiko.permissions.Entry$EntryVisitor
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        ... 11 more
    2011-06-18 21:57:14 [INFO] DataSourcePool [ChestShop] autoCommit[false] transIsolation[SERIALIZABLE] min[2] max[20]
    2011-06-18 21:57:14 [INFO] SubClassFactory parent ClassLoader [org.bukkit.plugin.java.PluginClassLoader]
    2011-06-18 21:57:15 [INFO] Entities enhanced[0] subclassed[1]
    2011-06-18 21:57:16 [INFO] Starting Minequery server on *:25566
    2011-06-18 21:57:16 [INFO] LWC    Loading shared objects
    2011-06-18 21:57:16 [INFO] Cache    Protection cache: 0/10000
    2011-06-18 21:57:16 [INFO] LWC    Native library: plugins/LWC/lib/native/Linux/i386/libsqlitejdbc.so
    2011-06-18 21:57:16 [INFO] DataSourcePool [MultiHome] autoCommit[false] transIsolation[SERIALIZABLE] min[2] max[20]
    2011-06-18 21:57:16 [INFO] SubClassFactory parent ClassLoader [org.bukkit.plugin.java.PluginClassLoader]
    2011-06-18 21:57:16 [INFO] Entities enhanced[0] subclassed[1]
    2011-06-18 21:57:18 [INFO] [Permissions] (Yeti) was initialized.
    2011-06-18 21:57:18 [INFO] CommandBook 1.5.2-customized enabled.
    2011-06-18 21:57:18 [INFO] CommandBook: Maximum wrapper compatibility is enabled. Some features have been disabled to be compatible with poorly written server wrappers.
    2011-06-18 21:57:18 [INFO] CommandBook: 0 banned name(s) loaded.
    2011-06-18 21:57:18 [INFO] CommandBook: 1 kit(s) loaded.
    2011-06-18 21:57:18 [INFO] CommandBook: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-06-18 21:57:18 [INFO] SpawnX enabled
    2011-06-18 21:57:18 [INFO] [bShortcut] version 1.1.0 is enabled!
    2011-06-18 21:57:18 [INFO] IPGet version 0.4 is enabled!
    2011-06-18 21:57:18 [INFO] [xAuth] Loading player accounts..
    2011-06-18 21:57:18 [INFO] [xAuth] Done! Loaded 11127 Accounts!
    2011-06-18 21:57:18 [INFO] [xAuth] v1.2.5 Enabled!
    2011-06-18 21:57:18 [INFO] [ChestShop] version 3.00 BETA 3 initialized!
    2011-06-18 21:57:19 [INFO] [iConomy] Logging is currently disabled.
    2011-06-18 21:57:19 [INFO] [iConomy] v5.0 (Eruanna) loaded.
    2011-06-18 21:57:19 [INFO] [iConomy] Developed by: [Nijikokun]
    2011-06-18 21:57:19 [INFO] [ChestShop] Permissions version 3.1.5 loaded.
    2011-06-18 21:57:19 [INFO] [ChestShop] LWC version 3.05 loaded.
    2011-06-18 21:57:19 [INFO] [ChestShop] iConomy 5 loaded.
    2011-06-18 21:57:19 [INFO] [BBROTHER] ------------------------------------
    2011-06-18 21:57:19 [INFO] [BBROTHER] Hello, and thank you for using the TESTING version of BigBrother!
    2011-06-18 21:57:19 [INFO] [BBROTHER] Please note that, since this is far from complete, there will be many bugs.
    2011-06-18 21:57:19 [INFO] [BBROTHER] IF YOU FIND ANY BUGS, PLEASE REPORT THEM ON http://bugs.nexisonline.net/bb
    2011-06-18 21:57:19 [INFO] [BBROTHER] Please stay tuned in irc.esper.net #bigbrother for updates and build notifications.
    2011-06-18 21:57:19 [INFO] [BBROTHER] ------------------------------------
    2011-06-18 21:57:19 [SEVERE] Error: null
    2011-06-18 21:57:19 [INFO] [BBROTHER] BBData MySQL Driver r1 loaded!
    2011-06-18 21:57:19 [INFO] [BBROTHER] Permissions plugin found but disabled. Enabling 'Permissions' (v3.1.5).
    2011-06-18 21:57:19 [INFO] [Permissions] version [3.1.5] (Yeti)  loaded
    2011-06-18 21:57:19 [INFO] CommandBook: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-06-18 21:57:19 [INFO] [iConomy] hooked into Permissions.
    2011-06-18 21:57:19 [INFO] [BBROTHER] Permissions enabled using: Permissions v3.1.5
    2011-06-18 21:57:19 [WARNING] [BBROTHER] 'Help' isn't detected. No /help support
    2011-06-18 21:57:19 [INFO] [BBROTHER] BigBrother 1.8-SNAPSHOT (build #508) enabled!
    2011-06-18 21:57:19 [INFO] WorldBorder version 1.2 loading
    2011-06-18 21:57:19 [INFO] [WorldBorder] [CONFIG] Using square border, knockback of 3.0 blocks, and timer delay of 10.
    2011-06-18 21:57:19 [INFO] [WorldBorder] [CONFIG] Border-checking timed task started.
    2011-06-18 21:57:19 [INFO] [WorldBorder] [CONFIG] World "world_nether" has border radius 1000 at X: 18.8 Z: -5.6
    2011-06-18 21:57:19 [INFO] [WorldBorder] [CONFIG] World "pvpworld" has border radius 1000 at X: -133.6 Z: 235.6
    2011-06-18 21:57:19 [INFO] [WorldBorder] [CONFIG] World "world" has border radius 2000 at X: 32.1 Z: 346.3
    2011-06-18 21:57:19 [INFO] [WorldBorder] [CONFIG] Will use plugin for permissions: Permissions v3.1.5
    2011-06-18 21:57:19 [INFO] For reference, the main world's spawn location is at X: 179 Y: 84 Z: 369
    2011-06-18 21:57:19 [INFO] [HeroChat] HeroChat version 4.10.3 enabled.
    2011-06-18 21:57:19 [INFO] [HeroChat] Permissions 3.1.5 found.
    2011-06-18 21:57:19 [INFO] WorldEdit 266-wiz enabled.
    2011-06-18 21:57:19 [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-06-18 21:57:20 [INFO] EasyBan enabled
    2011-06-18 21:57:20 [INFO] [MobileAdmin] Loading server stats.
    2011-06-18 21:57:20 [INFO] [MobileAdmin] Loading chat log.
    2011-06-18 21:57:21 [INFO] [MobileAdmin] Loading users.
    2011-06-18 21:57:21 [INFO] [MobileAdmin] Starting server...
    2011-06-18 21:57:21 [INFO] [MobileAdmin] Version 3.0 is enabled!
    2011-06-18 21:57:21 [INFO] [MobileAdmin] Server listening on *:5839
    2011-06-18 21:57:21 [INFO] KiwiAdmin version 2.0 is enabled!
    2011-06-18 21:57:21 [INFO] [xWarp]: 1458 warps loaded
    2011-06-18 21:57:21 [WARNING] [xWarp]: 70 invalid warps found.
    2011-06-18 21:57:21 [WARNING] [xWarp]: Doesn't link to disabled permissions system: Permissions v3.1.5
    2011-06-18 21:57:21 [INFO] [xWarp]: Linked with economy system: iConomy v5.0
    2011-06-18 21:57:21 [INFO] [xWarp]: xWarp 2.11.2 enabled
    2011-06-18 21:57:21 [INFO] Vanish 1.5.2 loaded.
    2011-06-18 21:57:21 [INFO] WorldGuard: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-06-18 21:57:21 [INFO] WorldGuard: Blacklist loaded.
    2011-06-18 21:57:21 [INFO] WorldGuard: (world) Single session is enforced.
    2011-06-18 21:57:21 [INFO] WorldGuard: (world) TNT ignition is blocked.
    2011-06-18 21:57:21 [INFO] WorldGuard: (world) Lighters are blocked.
    2011-06-18 21:57:21 [INFO] WorldGuard: (world) Lava fire is blocked.
    2011-06-18 21:57:21 [INFO] WorldGuard: (world) All fire spread is disabled.
    2011-06-18 21:57:21 [INFO] WorldGuard: Loaded configuration for world 'world"
    2011-06-18 21:57:21 [INFO] WorldGuard: (world_nether) Single session is enforced.
    2011-06-18 21:57:21 [INFO] WorldGuard: (world_nether) TNT ignition is blocked.
    2011-06-18 21:57:21 [INFO] WorldGuard: (world_nether) Lighters are PERMITTED.
    2011-06-18 21:57:21 [INFO] WorldGuard: (world_nether) Lava fire is blocked.
    2011-06-18 21:57:21 [INFO] WorldGuard: (world_nether) Fire spread is UNRESTRICTED.
    2011-06-18 21:57:21 [INFO] WorldGuard: Loaded configuration for world 'world_nether"
    2011-06-18 21:57:23 [INFO] WorldGuard: 1400 regions loaded for 'world'
    2011-06-18 21:57:23 [INFO] WorldGuard: 16 regions loaded for 'world_nether'
    2011-06-18 21:57:23 [INFO] WorldGuard 5.0.0-SNAPSHOT enabled.
    2011-06-18 21:57:23 [INFO] LWC    Loaded 125 locale strings (0 overrides)
    2011-06-18 21:57:23 [INFO] LWC    Using Permissions API...
    2011-06-18 21:57:23 [INFO] LWC    Loading SQLite
    2011-06-18 21:57:23 [INFO] SQLite    Using: Native
    2011-06-18 21:57:25 [INFO] PhysDB    Precached 9654 protections.
    2011-06-18 21:57:25 [INFO] LWC    At version: v3.05
    2011-06-18 21:57:25 [INFO] [NoCheat] version [1.00b] couldn't find CrafTIRC plugin. Disabling logging to IRC.
    2011-06-18 21:57:25 [INFO] [NoCheat] version [1.00b] is enabled with the following checks: moving bedteleport speedhack itemdupe flying
    2011-06-18 21:57:25 [INFO] [DataLog] Using Permissions for user permissions
    2011-06-18 21:57:26 [INFO] [DataLog] Version 0.4 enabled!
    2011-06-18 21:57:26 [INFO] [MobBounty] v3.02 (Carbon) loaded.
    2011-06-18 21:57:26 [INFO] [MobBounty] Developed by: [Mattera, Steven (IchigoKyger)].
    2011-06-18 21:57:26 [INFO] [MobBounty] Config loaded.
    2011-06-18 21:57:26 [INFO] [MobBounty] hooked into iConomy.
    2011-06-18 21:57:26 [INFO] [MobBounty] hooked into Permissions/GroupManager.
    2011-06-18 21:57:26 [INFO] [ScheduledAnnouncer] Connected to Permissions.
    2011-06-18 21:57:26 [INFO] ScheduledAnnouncer v1.6.3 is enabled!
    
    2011-06-18 21:57:26 [INFO] [P2Aliases] Unable to attach to PermissionsPlus. Exiting.
    2011-06-18 21:57:26 [INFO] [P2Aliases] Shutting down.
    2011-06-18 21:57:26 [INFO] Done (1.424s)! For help, type "help" or "?"
    Didnt know if they whole startup line would help anyway.
     
  12. Offline

    DigitalTyrant

    haha, that should be in there but I did leave it out unintentionally. Totally forgot about adding that when I started the update but was one of the first things that I conceptualized - multiple group management. I will definitely add this functionality in the next update. Thanks for jogging my memory. I should start taking notes I guess so I don't drop the ball on items like this lol

    That is the issue, PermissionsPlus is attempting to load before Permissions is loaded. You can try renaming your Permissions.jar file to aPermissions.jar to see if that swaps their load order. I will see if I can find some more information as to how Bukkit determines the plugin load order and see if I can't offer a better solution.

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

    nala3

    What if you just had an option in the config to either remove the old group or to keep it?
     
  14. Offline

    DigitalTyrant

    would make sense... I was thinking of adding an optional boolean argument to the command... We'll see what I can come up with.
     
  15. Offline

    Donny

    Yeah, its odd because you'd think "Permissions" would load before "PermissionsPlus" if it is alphabetical. I have renamed it but have not restarted server yet.
     
  16. Offline

    odielag

    I have my files setup so that nether inherits..... here is storageconfig.yml
    Code:
    permissions:
        storage:
            type: YAML
            worldcopy:
                world_nether: world
     
  17. Offline

    DigitalTyrant

    interesting, I will do some testing with that setup and see if I can find any issues.
     
  18. Offline

    Trigg3rlHappy

    Im getting this same error on mine, i'm using Permissions 3.x
     
  19. Offline

    Donny

    Answers below.
     
  20. Offline

    Trigg3rlHappy

    Ok got some errors for you to check out. So i promote a player to my 3rd rank so its now lets say [Sub-Admin] then i try and demote back to [Mod] the name will revert to your first rank [Guest] but you will have privelages of an Sub-Admin. And also permissions.group is not allowing me to /promote
     
  21. Offline

    RustyDagger

    I have found a bug in the promote command my super admin has a plimit of 4

    My owner rank is 9 it seems super admins can still use the promote command on them self and promote them self up to owner how ever it dose not work in game because permissions plus dose not reload the file how ever it dose still edit their group in the USERs.yml and just adds to their player like so.

    Code:
        RustyDagger:
            permissions:
            - p2.*
            groups:
            - SuperAdmin
            - Owner
    
    
    and on next reload (witch they can do) they have owner permissions but are displayed as super admin

    I have no global permissions set up with permissions 3 :d

    just each world with its own permissions and used the command /promote RustyDagger *

    I think the problem lies in that the Group super admin is already outside the range that they can promote with in. Half bypassing your check and causing this weird behavior.
     
  22. Offline

    SirHedgehog

    You can create a plugin listener and only load once Permissions 3 is detected. Here is a snippet from my Scavenger plugin:

    Code:
    public class ServerListener extends org.bukkit.event.server.ServerListener
    {
        public void onPluginEnable(PluginEnableEvent _event)
        {
            if (permissions == null)
            {
                Plugin plugin = Scavenger.get().getServer().getPluginManager().getPlugin("Permissions");
    
                if (plugin != null)
                {
                    Scavenger.get().logInfo("Attached to Permissions");
                    permissions = ((Permissions)plugin).getHandler();
                    // INITIALISE PERMISSIONSPLUS HERE
                }
            }
        }
    }
     
  23. Offline

    RustyDagger

    I would put an else in there and shoot a message to console saying disabled because permissions not found :D
     
  24. Offline

    Enraged

    i have yet another problem with the commands.
    how can i apply a group to a user without promoting?
    in the last version of p+ there was this command:
    /user -setgroup u:Username s:Groupname
    but it seems not working in the latest version.
    so i tried -addgroup but then the user is member of two groups and i dont know how to remove one of them :(
    maybe someone can help me?
     
  25. Offline

    SirHedgehog

    This wouldn't be possible with just an else otherwise you'd see the error every time any plugin loaded that wasn't Permissions.

    One thing I forgot to mention is that the same code should also be fired on plugin enable to ensure that the plugin is attached if Permissions did load before PermissionsPlus. My actual code is split into a PermissionsManager with a "load()" function that is called in both situations.
     
  26. Offline

    RustyDagger

    Good point Didnt look at it to hard :eek:
     
  27. Offline

    Burns1

    getting this error


    [INFO] [Permissions] (Yeti) was initialized.
    2011-06-19 14:42:01 [INFO]
    [Permissions] version [3.1.5] (Yeti) loaded
    2011-06-19 14:42:01 [INFO]
    [P2Aliases] 1.1 Enabled.
    2011-06-19 14:42:01
    [SEVERE] Error occurred while enabling PermissionsPlus v2.3.1 (Is it up to date?): directory
    java.lang.NoSuchFieldError: directory
    at net.codej.permissionsplus.PermissionsPlus.getPath(PermissionsPlus.java:242)
    at net.codej.permissionsplus.PermissionsPlus.loadPermissionsAddon(PermissionsPlus.java:225)
    at net.codej.permissionsplus.PermissionsPlus.onEnable(PermissionsPlus.java:80)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:750)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:134)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:112)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  28. Offline

    Dark_Rainbow

    i think it doesent works for me because i have linux !
    Whit windows it works !

    Do you know why ? Help pleas
     
  29. Offline

    Zeriax

    I love you
     
  30. Offline

    DigitalTyrant

    For promote the permission is p2.promote, the odd behavior in the prefixes is because there is now way that I've found to set the primary group of a user with multiple groups so even though they have the right permissions, their prefix comes from the primary group. I have addressed this in the upcoming update.

    Permissionsplus v2.3.1 won't work with permissions 3.x, if you update to permissionsplus 3.0 this error will not come up

    The addgroup action is the way to accomplish this in p+ 3.0. I will add the action to remove a group in the next update

    I use code very similar to that. I will play with it an see if I accidentally removed or modified any of my code in the last update
    Thanks btw

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

    MojoManagement

    ./user -setgroup u:name s:group doesnt work anymore as posted

    but how to get the same effect now? didnt get it in your last post...

    a new command acting just like setgroup would be nice (e.g. wipe alle groups for user and set the new one..)
     

Share This Page