Inactive [ADMN/DEV] Permissions v2.7.4 (Phoenix) - DISCONTINUED! 3.0 has a new home!

Discussion in 'Inactive/Unsupported Plugins' started by TheYeti, Feb 25, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    TheYeti

    Permissions 2.7.4 (Phoenix) - Now with AntiBuild built in!
    Download:
    Latest Stable: Full Zip | Jar Only
    Latest Dev Build: Full Zip | Jar Only
    Previous Versions: 2.7.3 (JAR) | 2.7.2 (JAR) | 2.7.1 (JAR) | 2.7 (JAR) | 2.6 (JAR) | 2.5.5 (JAR) | 2.5.4 (JAR) | 2.5.3 (JAR) | 2.5.2 (JAR) | 2.5.1 (JAR) | 2.5 (JAR) | 2.4 (JAR) | 2.3 (JAR) | 2.2 (JAR)

    Plugin Authors: How to hook into Permissions

    Permissions 2.x is being discontinued! 3.0 can be found HERE!!!


    I am discontinuing Permissions 2.x and leaving the project. Permissions is not going away though! Since 2.6 I have been working closely with another developer and added them to the team. For the past several version they have not only been assisting with 2.x but also doing a lot of the development of much anticipated 3.x. rcjrrjcr will be taking over as lead developer of Permissions from 3.x forward. I have full faith in them and after working closely with them on the development on the last few version and the next major version I feel that I am leaving this project in more than capable hands. I put way to much work into this project to just leave it with anyone, and this is one of the few programs that I am incredibly proud of.

    Many people will probably wonder why I am leaving again after taking over the project just a few months ago. I could quote drama and headaches, of which there were quite a few with this project. Unfortunately real life happens. Many people already know that I have been having medical issues here lately. Unfortunately while they have gotten better, they have not gone away. This coupled with other real life commitments, going to school full time, and starting up my own company, I am currently in the process of being laid off from work. At this point I have so much stuff going on in my life and am being pulled in so many directions that I am not able to get any work done on anything. This has lead to me missing commitments and letting people down on multiple things.

    Permissions is also a very high maintenance plugin that requires a lot of attention and time. Right now I am not able to devote that time and do not feel it is fair for me to try to continue to be the lead developer on it. I had originally thought that adding other members to the team would be helpful, but unfortunately this just lead to frustration for them and myself as I just was not able to commit to the project enough. Hence, 3.0 has been rewritten almost exclusively by rcjrrjcr with minimal contributions by myself.

    At this point I will be stepping away from the project to focus more on real life and to try to free up some time for other projects and to work with more individual like the wonderful HeroCraft Coding team to fulfill some commitments that I made to them a long time ago and sadly did not come through on. I feel that this is the best for all involved, both myself and the other Permissions developers, as well as the community who deserve someone who can contribute more time and attention to them and supporting them. I do not want to see Permissions end up like many other plugins with an absentee programmer and just slowly wasting away from a great plugin with a lot of potential to a headache with no support.

    I will still be active in the community, just not as much as not in the same way. I'm sure my server will be more than happy to have their head admin back and active again as well.

    Thank you and happy gaming.




    Changelog
    • 2.7.4
      • Added overload of has() and permissions() for plugin devs
    • 2.7.3
      • Fixed negate node add/remove bug.
    • 2.7.2
      • Fix for small subtle bug introduced in last minor version.
    • 2.7.1
      • Commit by DThielke to fix several bugs with programmatic modifications of user permissions.
    • 2.7
      • Further commits by rcjrrjcr
        • Removed negatedNode checks
        • Temp fix for NULL issue
        • WorldConfigurationModification to save only modified configs
        • Fix for cache problems
    • 2.6
      • Pulled in commits by rcjrrjcr
      • Fixed versioning. Last version should have technically been 2.6
      • Fixed invalid config file being written
      • Fixed erroneous conversion message.
    • 2.5.5
      • Updated to be compliant with CB600+
      • Further Maven Integration and Autobuilding
      • Better handling of configuration file errors.
        • If you do not have a world config file for the default world at startup it will now look for config.yml
        • If it cannot find that it will look for world.yml instead in case you named it that when that is not what is in level-name:
        • It will rewrite the config file to be the proper name. At this time it does not delete the old one though.
      • Removed defunct public abstract calls. If your not using the right one by now you should be shot anyway.
    • 2.5.4
        • Added Command aliases for perms and pr
        • Changed the way directories are handled.
        • Stopped it from creating an empty <world>.yml file in base directory
        • Moved project to using Maven.
    • 2.5.3
      • Change from File.pathSeparator to File.separator to fix multiworld perms
    • 2.5.2
      • Added more instructions to the included config file within the plugin
      • Added a check that will use the default world permissions if a world specific config file cannot be found.
      • Added a function to get only the group that a player is assigned to without checking for group inheritance.
      • Added a change to colorize() to fix it hopefully not adding an extra unneeded ascii character and thus creating a linebreak/color switch issue
      • Removed permissions.info as it was not needed and was a artifact of testing I was doing.
    • 2.5.1
      • Fixed a bug that could cause a group to be returned as null for getGroups()
    • 2.5
      • Added in AntiBuild functionality to Permissions
      • Minor code tweaks
      • Added getGroups(world, player) to PermissionHandler so that plugins can call it to get all of a users groups
      • Fixed the inability to use the permissions -reload all command from within the console. I still need to do some more work on this as it doesn't seem to like to accept anything other than all from console.
    • 2.4
      • Refactored namespaces to keep in line with Java & Bukkit policy
        • This was cancelled as it ended up being not needed
      • Fixed setupPermissions()
    • 2.3
      • Undid removal of some code that I had overzealously purged during cleanup
      • Merged in last of Nijikokun's changes
      • Re-ordered the main class to attempt to fix the problems with Plugin API
    • 2.2
      • Developer change
      • Fixed reloading of configuration files
      • Moved commands to registering with plugin.yml
      • Commands now use onCommand instead of onPlayerCommand
      • Command is now /permissions instead of /pr
    [/SPOILER]
     
    mruczek, kahlilnc, Pii and 58 others like this.
  2. Offline

    Mars339

    i need some help i always get a error

    16:50:23 [SCHWERWIEGEND] Could not load 'plugins\Permissions.jar' in folder 'plugins':
     
  3. Offline

    Malkierian

    That means you have a tab on line 51 of your .yml. Go in with Notepad++ and do the "replace all tabs with spaces" function, then report back.
    Oh, man, there's so much wrong with your .yml that I don't know where to begin.
    First off, the Admin group. You already have a - '*' permission. All those others are insidious duplicates, and could cause problems.
    Second, DasHaus: he's already inherited most of the essentials permissions from the Moderator group. Giving him the - 'essentials.*' works the same as above. Figure out which ones he's missing and add those individually, or give him his own set of permissions and remove him from the Moderator group.
    Speaking of, third, in the Moderator group, you at least attempt to have the essentials.* permission, but you mess it up, forgetting the ".", so you need to put that in and get rid of all the other essentials permissions.
    Fourth, all your group inheritances are off. You need to list them just like the nodes in "permissions:" so, for the Regular group, for example, you'd have to change
    Code:
    inheritance: Default
    to
    Code:
    inheritance:
    - Default
    making sure, of course, to match the spacing already in the file. Do that for each group's inheritance.

    By no means do I think I got everything. But do that and come back if you still have problems.
    If you're trying to add it to a Default player, it's not going to work. Default players aren't added to the list, they just automatically inherit the default permissions. In order to give each player the "mining.set" permission, you'd first have to add them to the .yml. I think (I'm no expert on that part, but I'm pretty sure I understand the principle).
    For prefix and suffix, you need a chat plugin. For commands like /give, you need either Essentials or CommandBook or General, a plugin that actually gives you those commands. They aren't provided by default by CraftBukkit itself.
    You could use PermissionsPlus, or Yeditor. I personally prefer PP.
    Full server log, please?
     
    Schlumpfpirat likes this.
  4. Offline

    Sammy

    @Malkierian
    I'm adding to this:
    Code:
    @Override
        public void onPlayerJoin(PlayerJoinEvent event) {
            VocationHandler GH = new VocationHandler(plugin);
            Player p = event.getPlayer();
            plugin.Permissions.addUserPermission("world","deckrg", "mining.set");}
    world.yml:
    Code:
        Players:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
    ############ USERS #############
    users:
        deckrg:
            group: Players
            permissions:
                - 'bank.*'
     
  5. Offline

    Malkierian

    So I'm assuming then that this is just a test, that this is just a familiarization exercise for some other purpose later?
    In any event, is your world named "world", i.e. is that the name of your .yml file?
     
  6. Offline

    Sammy

    Yes it's just a familiarization test =)
    Permissions is working fine, world is my world name, but the node isn't added to the file
     
  7. Offline

    PierreLouis

    YML needs spaces or it won't work...
    Thats what makes it easy to break (and bad).
     
  8. Offline

    Sammy

    @Malkierian I can't still make it work, my yml file has the same name as the world (world.yml), permissions work and the player isn't in a default group, what I'm I missing out ?

    Never mind I found the solution. cheers
     
  9. Offline

    Mars339

    18:44:46 [INFO] Starting minecraft server version Beta 1.4
    18:44:46 [INFO] Loading properties
    18:44:46 [INFO] Starting Minecraft server on *:25565
    18:44:46 [WARNUNG] **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
    18:44:46 [WARNUNG] The server will make no attempt to authenticate usernames. Be
    ware.
    18:44:46 [WARNUNG] While this makes the game possible to play without internet a
    ccess, it also opens up the ability for hackers to connect with any username the
    y choose.
    18:44:46 [WARNUNG] To change this, set "online-mode" to "true" in the server.set
    tings file.
    18:44:46 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-653-
    g9992fff-b677jnks (MC: 1.4)
    18:44:46 [INFO] Preparing level "noob"
    18:44:46 [INFO] Preparing start region
    18:44:47 [INFO] 144 recipes
    18:44:47 [SCHWERWIEGEND] Could not load 'plugins\Permissions.jar' in folder 'plu
    gins':
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
    rce)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:136)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:158)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:106)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:84)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    Caused by: while scanning a simple key
    in "<reader>", line 129, column 9:
    permissions
    ^
    could not found expected ':'
    in "<reader>", line 131, column 5:
    Nordres:
    ^

    at org.yaml.snakeyaml.scanner.ScannerImpl.stalePossibleSimpleKeys(Scanne
    rImpl.java:400)
    at org.yaml.snakeyaml.scanner.ScannerImpl.needMoreTokens(ScannerImpl.jav
    a:231)
    at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:18
    2)
    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(Par
    serImpl.java:564)
    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
    at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :228)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :230)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :230)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:12
    2)
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)

    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons
    tructor.java:124)
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
    at com.nijiko.configuration.NotNullConfiguration.load(NotNullConfigurati
    on.java:58)
    at com.nijikokun.bukkit.Permissions.Permissions.<init>(Permissions.java:
    132)
    ... 13 more
    18:44:48 [INFO] CommandHelper 2.0.1 enabled
    18:44:48 [INFO] ControllerBlock: 1.17 by Hell_Fire
    18:44:48 [INFO] ControllerBlock: Using IRON_BLOCK (42) as ControllerBlock, loade
    d 0 disallowed types from config
    18:44:48 [INFO] ControllerBlock: Enabling full redstone check
    18:44:48 [INFO] ControllerBlock: Events registered
    18:44:48 [INFO] FlowSwitch version 1.2 is enabled!
    18:44:48 [INFO] [HELP] 0 extra help entries loaded
    18:44:48 [WARNUNG] [HELP] A permission plugin isn't loaded.
    18:44:48 [INFO] [HELP] Help 0.2 enabled
    18:44:48 [INFO] [HeroSneak] 1.1.0.36 enabled.
    18:44:48 [INFO] [iConomy] Logging is currently disabled.
    18:44:48 [INFO] [iConomy] v4.63 (Kenzi) loaded.
    18:44:48 [INFO] [iConomy] Developed by: [Nijikokun, Coelho]
    18:44:48 [SEVERE] Nag author: 'Nijikokun' of 'iConomy' about the following: onPl
    uginEnable has been replaced with a new signature, (PluginEnableEvent)
    18:44:48 [INFO] [iConomyChestShop] version 1.0a7 initialized!
    18:44:48 [INFO] [iConomyChestShop] Successfully linked with iConomy.
    18:44:48 [INFO] LocalShops: Permissions not found.
    18:44:48 [INFO] LocalShops: iConomy found.
    18:44:48 [INFO] LocalShops: Loading shop 1
    18:44:48 [INFO] LocalShops: Loading shop noob
    18:44:48 [INFO] LocalShops: Loaded 2 shop(s).
    18:44:48 [INFO] LocalShops: version 2.2.1 is enabled!
    18:44:48 [INFO] Lockette version 1.3.4 is being enabled! Yay!
    18:44:48 [INFO] Lockette: Detected craftbukkit build [677] ok.
    18:44:48 [INFO] Lockette: Using ops file for admin permissions.
    18:44:48 [INFO] Lockette: Ready to protect your containers.
    18:44:48 [INFO] No MagnetBlock configuration file found. For configuration, crea
    te one in %bukkitdir%/plugins/MagnetBlock/magnetblock.cfg and refer to the forum
    post.
    18:44:49 [INFO] MagnetBlock version 0.4.2 by [narrowtux] has been enabled.
    18:44:49 [INFO] [Minecart Mania] Debug mode switched to NORMAL
    18:44:49 [INFO] [Minecart Mania] MinecartManiaCore version 1.09a is enabled!
    18:44:49 [INFO] [Minecart Mania] MinecartManiaPressurePlates version 1.08 is ena
    bled!
    18:44:49 [INFO] [Minecart Mania] MinecartManiaSignCommands version 1.09b is enab
    led!
    18:44:49 [INFO] [Minecart Mania] MinecartManiaStation version 1.09 is enabled!
    18:44:49 [INFO] [MobBounty] v1.02 (Helium) loaded.
    18:44:49 [INFO] [MobBounty] Developed by: [Mattera, Steven (IchigoKyger)].
    18:44:49 [INFO] [MobBounty] hooked into iConomy.
    18:44:49 [SEVERE] Nag author: 'Steven Mattera' of 'MobBounty' about the followin
    g: onPluginEnable has been replaced with a new signature, (PluginEnableEvent)
    18:44:49 [INFO] [OddItem] 0.6.5 enabled
    18:44:49 [WARNING] [OddItem] Permissions not found. Using op-only mode.
    18:44:49 [SEVERE] [OddItem] Couldn't find item.txt or OddItem.yml.
    18:44:49 [INFO] [OddItem] Parsed 191 entries.
    18:44:49 [INFO] Persistence version 0.64 is enabled
    18:44:49 [INFO] RedstoneChips: Loading SensorLibrary 0.23 > photocell, pirsensor
    , rangefinder, daytime.
    18:44:49 [INFO] RedstoneChips: Loading BasicCircuits 0.87 > adder, and, clock, c
    ounter, demultiplexer, divider, flipflop, multiplexer, multiplier, or, pisoregis
    ter, print, random, receiver, shiftregister, transmitter, xor, decoder, encoder,
    pixel, pulse, not, synth, srnor, terminal, router, ringcounter, iptransmitter,
    ipreceiver, comparator, delay, repeater, nand, nor, xnor, segdriver, dregister,
    sram.
    18:44:49 [INFO] RedstoneChips: Loading MobSensor 1.1 > animalsensor, hostilesens
    or, humansensor, nonhumansensor, notplayersensor, playersensor.
    18:44:49 [INFO] RedstoneChips 0.87 enabled.
    18:44:49 [SEVERE] [SkyPirates]: Nijikokuns' Permissions plugin isn't loaded, eve
    ryone can use all features.
    18:44:49 [INFO] [SkyPirates]: version [1.2] (Caribbean) loaded
    18:44:49 [INFO] Spells version 0.996 is enabled
    18:44:49 [INFO] [Vampire v1.4.1] Permission system not detected, defaulting to O
    P
    18:44:49 [INFO] [Vampire v1.4.1] Found and will use plugin Help v0.2
    18:44:49 [INFO] [Vampire v1.4.1] Enabled
    18:44:49 [INFO] World 'world' config: permNode=null onlyOps=false
    18:44:49 [INFO] Loc: x=76 y=67 z=-58
    18:44:49 [INFO] [WorldWarp] Creating/Loading world 'nether' with enviroment: Net
    her
    18:44:50 [INFO] World 'nether' config: permNode=null onlyOps=false
    18:44:50 [INFO] [WorldWarp] Creating/Loading world 'ops-world' with enviroment:
    Nether
    18:44:51 [INFO] World 'ops-world' config: permNode=null onlyOps=true
    18:44:51 [INFO] [WorldWarp] Version 1.1 is enabled!
    18:44:51 [INFO] Done (0.465s)! For help, type "help" or "?"
    18:44:51 [INFO] ControllerBlock: Loaded v4 data - 6 ControllerBlocks loaded
    18:44:51 [INFO] RedstoneChips: 8 active circuits
    18:44:51 [SEVERE] Nag author: 'fullwall' of 'SkyPirates' about the following: on
    VehicleUpdate has been replaced with a new signature, (VehicleUpdateEvent)
    18:44:52 [INFO] Dreamer [/5.87.172.169:49896] logged in with entity id 263
    18:44:52 [INFO] Persistence: Create a plugins/Persistence/permissions.yml to use
    internal permissions
    >
     
  10. Offline

    Misaka

    Just bumped into an error on #680
    Console Output.
    Show Spoiler
    20:48:07 [SEVERE] Could not pass event BLOCK_BREAK to Permissions
    java.lang.NullPointerException
    at com.nijiko.permissions.Control.getGroups(Control.java:620)
    at com.nijikokun.bukkit.Permissions.Listener.onBlockBreak(Listener.java:61)
    at org.bukkit.plugin.java.JavaPluginLoader$33.execute(JavaPluginLoader.java:398)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
    at net.minecraft.server.ItemInWorldManager.d(ItemInWorldManager.java:157)
    at net.minecraft.server.ItemInWorldManager.b(ItemInWorldManager.java:118)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:389)
    at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)

    Any thoughts on this?
    UPD: Same thing is happening on BLOCK_PLACE
    UPD2: Pardon me guys, false alarm. Forgot to rename default yml file into world.yml . Silly me, stupid me.
     
  11. Offline

    masteroliw

    i cant use multiverse. i have installed permission. and when i have the permissions installed my server keeps doing like this:
    Code:
    18:52:13 [SEVERE] Could not pass event BLOCK_PLACE to Permissions
    java.lang.NullPointerException
            at com.nijiko.permissions.Control.getGroups(Control.java:620)
            at com.nijikokun.bukkit.Permissions.Listener.onBlockPlace(Listener.java:
    43)
            at org.bukkit.plugin.java.JavaPluginLoader$24.execute(JavaPluginLoader.j
    ava:344)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:255)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(Cr
    aftEventFactory.java:84)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(Cr
    aftEventFactory.java:68)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(Cr
    aftEventFactory.java:64)
            at net.minecraft.server.ItemFlintAndSteel.a(ItemFlintAndSteel.java:77)
            at net.minecraft.server.ItemStack.a(ItemStack.java:56)
            at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:218
    )
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:447)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    18:52:29 [INFO] Read timed out
    18:53:34 [INFO] Connection reset
    18:53:34 [WARNING] Can't keep up! Did the system time change, or is the server o
    verloaded?
    18:53:34 [INFO] /83.233.19.11:61411 lost connection
    18:53:34 [INFO] /83.254.77.209:51712 lost connection
    18:53:34 [INFO] /77.53.112.17:54095 lost connection
    18:53:34 [INFO] /83.233.19.11:61626 lost connection
    18:53:34 [SEVERE] Could not pass event BLOCK_PLACE to Permissions
    java.lang.NullPointerException
            at com.nijiko.permissions.Control.getGroups(Control.java:620)
            at com.nijikokun.bukkit.Permissions.Listener.onBlockPlace(Listener.java:
    43)
            at org.bukkit.plugin.java.JavaPluginLoader$24.execute(JavaPluginLoader.j
    ava:344)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:255)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(Cr
    aftEventFactory.java:84)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(Cr
    aftEventFactory.java:68)
            at net.minecraft.server.ItemBlock.a(ItemBlock.java:75)
            at net.minecraft.server.ItemStack.a(ItemStack.java:56)
            at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:218
    )
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:447)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    18:53:34 [SEVERE] Could not pass event BLOCK_PLACE to Permissions
    java.lang.NullPointerException
            at com.nijiko.permissions.Control.getGroups(Control.java:620)
            at com.nijikokun.bukkit.Permissions.Listener.onBlockPlace(Listener.java:
    43)
            at org.bukkit.plugin.java.JavaPluginLoader$24.execute(JavaPluginLoader.j
    ava:344)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:255)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(Cr
    aftEventFactory.java:84)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(Cr
    aftEventFactory.java:68)
            at net.minecraft.server.ItemBlock.a(ItemBlock.java:75)
            at net.minecraft.server.ItemStack.a(ItemStack.java:56)
            at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:218
    )
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:447)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    18:53:34 [SEVERE] Could not pass event BLOCK_PLACE to Permissions
    java.lang.NullPointerException
            at com.nijiko.permissions.Control.getGroups(Control.java:620)
            at com.nijikokun.bukkit.Permissions.Listener.onBlockPlace(Listener.java:
    43)
            at org.bukkit.plugin.java.JavaPluginLoader$24.execute(JavaPluginLoader.j
    ava:344)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:255)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(Cr
    aftEventFactory.java:84)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(Cr
    aftEventFactory.java:68)
            at net.minecraft.server.ItemBlock.a(ItemBlock.java:75)
            at net.minecraft.server.ItemStack.a(ItemStack.java:56)
            at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:218
    )
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:447)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    18:53:34 [SEVERE] Could not pass event BLOCK_PLACE to Permissions
    java.lang.NullPointerException
            at com.nijiko.permissions.Control.getGroups(Control.java:620)
            at com.nijikokun.bukkit.Permissions.Listener.onBlockPlace(Listener.java:
    43)
            at org.bukkit.plugin.java.JavaPluginLoader$24.execute(JavaPluginLoader.j
    ava:344)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:255)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(Cr
    aftEventFactory.java:84)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(Cr
    aftEventFactory.java:68)
            at net.minecraft.server.ItemBlock.a(ItemBlock.java:75)
            at net.minecraft.server.ItemStack.a(ItemStack.java:56)
            at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:218
    )
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:447)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    18:53:34 [SEVERE] Could not pass event BLOCK_PLACE to Permissions
    java.lang.NullPointerException
            at com.nijiko.permissions.Control.getGroups(Control.java:620)
            at com.nijikokun.bukkit.Permissions.Listener.onBlockPlace(Listener.java:
    43)
            at org.bukkit.plugin.java.JavaPluginLoader$24.execute(JavaPluginLoader.j
    ava:344)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:255)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(Cr
    aftEventFactory.java:84)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(Cr
    aftEventFactory.java:68)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(Cr
    aftEventFactory.java:64)
            at net.minecraft.server.ItemFlintAndSteel.a(ItemFlintAndSteel.java:77)
            at net.minecraft.server.ItemStack.a(ItemStack.java:56)
            at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:218
    )
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:447)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    18:53:34 [INFO] HenrikD lost connection: disconnect.endOfStreams
    18:53:34 [SEVERE] Could not pass event BLOCK_PLACE to Permissions
    java.lang.NullPointerException
            at com.nijiko.permissions.Control.getGroups(Control.java:620)
            at com.nijikokun.bukkit.Permissions.Listener.onBlockPlace(Listener.java:
    43)
            at org.bukkit.plugin.java.JavaPluginLoader$24.execute(JavaPluginLoader.j
    ava:344)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:255)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(Cr
    aftEventFactory.java:84)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(Cr
    aftEventFactory.java:68)
            at net.minecraft.server.ItemBlock.a(ItemBlock.java:75)
            at net.minecraft.server.ItemStack.a(ItemStack.java:56)
            at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:218
    )
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:447)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:375) 
    i get [SEVERE] Could not pass event BLOCK_PLACE/BLOCK_BREAK to Permissions. when someone does something. and heres how its look like in my world.yml file:
    Code:
    plugin:
        permissions:
            system: default
            copies:
    
    groups:
        Default:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'lshop.*'
        Admins:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
    
    users:
        masteroliw:
            group: admins
            permissions:
        samtho97:
            group: admins
            permissions:
         
    and heres the plugins i use:

    iconomy
    essentials
    spyeradmin
    spyerconfig
    spyerfun
    generalessentials
    lockette
    localshops
    runecraft_latest
    nethrar
    airstrike
    superpowers
    spyerpatcher
    towny
    multiverse
    and of course the permissions

    i have done everything i could to fix this. but nothing worked.

    edit: i have file that is called permissionsworld in my plugin folder generated by permissions too
    edit2: im going to start the server with only multiverse and permisssions now
    edit3: it didnt work. help?
     
  12. Offline

    Kerazene

  13. Offline

    halfer

    Mars339, I'm afraid I have the same problem

    Log (open)
    23:05:26 [INFO] [AdminCmd] Plugin Disabled. (version4.5)
    Log (open)

    23:05:26 [INFO] [Minecart Mania] MinecartManiaCore version 1.09c is disabled!
    23:05:26 [INFO] PvP Control says Goodbye!
    23:05:26 [INFO] WorldGuard 5.0-alpha9 disabled.
    23:05:26 [SEVERE] Could not load 'plugins\Permissions.jar' in folder 'plugins':

    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
    rce)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:136)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:158)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:106)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:84)
    at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:285)
    at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleComma
    ndMap.java:196)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80
    )
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:2
    46)
    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:391)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:377)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    Caused by: while scanning for the next token
    found character '\t' that cannot start any token
    in "<reader>", line 80, column 1:

    ^

    at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.ja
    va:360)
    at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:18
    3)
    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockSequenceEntry.produce(
    ParserImpl.java:510)
    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
    at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
    at org.yaml.snakeyaml.composer.Composer.composeSequenceNode(Composer.jav
    a:203)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:158)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :230)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :230)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java
    :230)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:12
    2)
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)

    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons
    tructor.java:124)
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
    at org.bukkit.util.config.Configuration.load(Configuration.java:73)
    at com.nijikokun.bukkit.Permissions.Permissions.<init>(Permissions.java:
    131)
    ... 16 more



    Sorry! My bad. I was incredibly stupid and made an YML miskate
     
  14. Offline

    Celtic Minstrel

    @TheYeti - This is something that should definitely be added to the opening post. It looks pretty well-designed, too, and nice and dynamic. I'm sure many people will find it useful.
     
    Meno likes this.
  15. Offline

    MineralMC

    2011-04-16 20:31:54 [SEVERE] Exception in thread "Timer-1"
    2011-04-16 20:31:54 [SEVERE] java.lang.NoClassDefFoundError: com/nijiko/permissions/PermissionHandler
    2011-04-16 20:31:54 [SEVERE] at com.gmail.nossr50.mcPermissions.permission(mcPermissions.java:31)
    2011-04-16 20:31:54 [SEVERE] at com.gmail.nossr50.mcPermissions.herbalismAbility(mcPermissions.java:49)
    2011-04-16 20:31:54 [SEVERE] at com.gmail.nossr50.mcSkills.monitorSkills(mcSkills.java:268)
    2011-04-16 20:31:54 [SEVERE] at com.gmail.nossr50.mcTimer.run(mcTimer.java:30)
    2011-04-16 20:31:54 [SEVERE] at java.util.TimerThread.mainLoop(Unknown Source)
    2011-04-16 20:31:54 [SEVERE] at java.util.TimerThread.run(Unknown Source)
    2011-04-16 20:31:54 [SEVERE] Caused by: java.lang.ClassNotFoundException: com.nijiko.permissions.PermissionHandler
    2011-04-16 20:31:54 [SEVERE] at java.net.URLClassLoader$1.run(Unknown Source)
    2011-04-16 20:31:54 [SEVERE] at java.security.AccessController.doPrivileged(Native Method)
    2011-04-16 20:31:54 [SEVERE] at java.net.URLClassLoader.findClass(Unknown Source)
    2011-04-16 20:31:54 [SEVERE] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
    2011-04-16 20:31:54 [SEVERE] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
    2011-04-16 20:31:54 [SEVERE] at java.lang.ClassLoader.loadClass(Unknown Source)
    2011-04-16 20:31:54 [SEVERE] at java.lang.ClassLoader.loadClass(Unknown Source)
    2011-04-16 20:31:54 [SEVERE] ... 6 more

    Looks like permissions isn't playing nicely with the new MCMMO update. Have cross-posted it to the MCMMO thread.
     
  16. Offline

    zaklampje

    U know anything about this yet?
     
  17. Offline

    Celtic Minstrel

    Try PMing him; you might get a response faster.
     
  18. Offline

    Malkierian

    Seriously, this is the most common error... There's a tab in your .yml on line 51. Fix it. Then go back and check to make sure there aren't any more.

    Also, in chris808's permissions, you need to have them all lined up on the same indentation. And remove - 'defaultcommand.stop' from the Admins. It's redundant and can cause problems.
    You need to indent everything after Builder: and Donator, and put a : after donator.
    Put the inheritance for Builder on its own line, like it is for Mods.
    Align the indentation for Builder: and Moderator: inheritances.
    And align the indentations for the Builder: permissions.
    Then you should be good.
     
  19. Offline

    Codisimus

    is there a way to find if an offline player has a given permission?
     
  20. Offline

    Guard1an

    I'm unable to create an inheritance.. I'm not sure why.
     
  21. Offline

    TheBeast808

    Thanks... My friend wrote up the permissions and I wasn't really too sure how to do it. Anyways, I added the:
    - '-defaultcommand.stop'
    To admins because I don't want them to be able to stop the server, is there any other way I can do it or what?
     
  22. Offline

    Malkierian

    Ah, but it wasn't like that in the .yml. It was missing the second dash.
     
  23. Offline

    ayelment

    I posted earlier that I was having an issue with my permissions telling users that they do not have permission to perform tasks that they're assigned to perform from my config (building, for example). The suggested fix was updating worldedit and worldguard, which I have done, and im running build 677 and permissions 2.7 but my users are still getting the permission error. Were there other solutions that I missed? I read through most of the pages but didn't see anything.
     
  24. Offline

    Toasty

    @TheYeti

    I consider this plugin to generally be of higher caliber than Group Manager. But there's one thing about this plugin that makes it a pain for me to use. I have 7 worlds on my server, and when a new user joins, I have to add that new user to 7 different config files. The main reason why I stuck with Group Manager, is that it had a separate folder for each world, and in that folder were separate group and user files. So basically, I only had to link the user.yml file to the other world folders, and then I only had to keep track of one user file.

    However, being stuck with one user file means I can't set a different group for users based on the world they're in. So maybe adding something like the following to the users.[name].group node would suffice:

    Code:
    users:
        Toasty27:
            group:
                main: Admin
                navhub: Admin
                war: Moderator
            info:
                prefix: '[admin]'
                suffix: ''
            permissions:
            - '*'
    
    Just a suggestion, but as it is, I think multi-world management is somewhat lacking in the user management department. Group management for multiple worlds is great, but something needs to be done to make user management less of a hassle for multi-world setups. I think having one user file with the above addition to the users.[name].group node would solve this problem quite handily.
     
  25. Offline

    Don Redhorse

    well the problem is worldedit... so you need to ask there..
     
  26. When i install permissions 2.7 i can't break blocks or place them. Any advice?

    edit:fixed
     
  27. Offline

    ayelment

    Well, thanks for the clarification :)
     
  28. Offline

    Kitsune30

    i have a few questions, all of which were probably answered in the 136 pages here :p
    1. Can a person be in more than 1 group at a time?
    2. If so, will redundant inheritances hurt anything, as in a mod and vip inheriting from regular and a person in both?
    3. My mod group inherits from my regular group, then my admin group inherits from my mod group. Will my admin group inherit from the regular group?
    4. When I turned my server on with permissions.jar in for 1st time, it generated a Permissionworld.yml file in serverfolder/plugins. But i also had a config.yml file in serverfolder/plugins/Permissions. Is this natural to have 2 config files? i deleted the one in the Permissions folder to see what would happen, and nothing happened. Then i deleted the on in the plugins folder and it came back on next server start

    Also great plugin!
     
  29. Offline

    Celtic Minstrel

    Not yet.
    Yes, inheritance is transitive.
    It's a bug. Upgrade to 2.7 and also fix the name of your yml file (it should be named after your world).
     
  30. Offline

    Kitsune30

    ok thanks, this will make setting up the permissions even easier
     
  31. Offline

    krockobil

    i get the same thing.. tryed reinstalling everything!
     
Thread Status:
Not open for further replies.

Share This Page