[ECON] PermIconomy 1.04 - The Bridge between Permissions and Economy[1060]

Discussion in 'Inactive/Unsupported Plugins' started by Cutch, Jun 18, 2011.

  1. Offline

    undeadmach1ne

    hi. i cant seem to make the 'world=*' variable work. i can set up a working /permi buy package, buy it and access the new permissions in it, but if i go to another world in multiworld i cant use those permissions until i buy the same package again.

    thanks for this plugin =)
     
  2. Offline

    rakiru

    Well this sounds brilliant.
     
  3. Offline

    Cutch

    Posted the original and my test config on Git, Config Page.
    Also Post #8 in this thread has good examples

    I look into it tonight multi-world was untested ill see if i can get it working
     
  4. Offline

    undeadmach1ne

    awesome =) would love to see it save to \plugins\permissions\globalUsers.yml cause i am too lazy to manage per-world permissions haha

    thanks for looking into it =)
     
  5. Offline

    Cutch

    I've uploaded a test Multi-World Version give it a test and see if it works. Cant test ATM.
     
  6. Offline

    undeadmach1ne

    i will test right now! thanks =)
     
  7. As server OP I am able to promote myself through groups and the money is debited. When a regular users tries to upgrade groups it debits their Iconomy account but does not promote them. I added - PermIconomy.buy to the default group and we are running Permissions 3.1.5. Here is the one entry I was trying to test:

    RealMoneyAdmins=ray0911,Firesonheaven
    AllowSelfAuthorization=true

    Name=Immi2
    Price=500
    Desc=Immigrant2
    Permissions=
    Groups=Immigrant2
    Expiry=
    Count=
    Worlds=world
    RequiredPackages=
    RequiredGroups=Default

    This is a very nice plugin and thank you for your hard work, I cant wait to implement this on our server!
     
  8. Offline

    undeadmach1ne

    beauty. saved the info to globalusers and worked like a charm. one thing you might mention in the docs is that you get an error if you run the plugin without setting up a buy package in the .properties file.


    Show Spoiler
    2011-07-07 21:40:54 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'permi' in plugin PermIconomy v1.03
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:298)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:711)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:676)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:669)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
    at com.Cutch.bukkit.PermIconomy.PermIconomy.checkPermissions(PermIconomy.java:528)
    at com.Cutch.bukkit.PermIconomy.PermIconomy.showHelp(PermIconomy.java:545)
    at com.Cutch.bukkit.PermIconomy.PermIconomy.onCommand(PermIconomy.java:321)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more


    as soon as i filled out the properties file with a test the error stopped and the test was successful.

    my .properties file:

    Show Spoiler
    #Any Field Ending in 's' can have multiple values Seperated by ',' (a comma)
    RealMoneyAdmins=
    AllowSelfAuthorization=false #True/False
    #You must repeat this block for each available item.
    Name=teste
    Price=1 #Put a $ sign in front to specify real money
    Desc=mvtp
    Permissions=multiverse.tp
    Groups=
    Expiry= #Format: day/month/year hour:minute:second
    Count= #Maximum amount of purchases per player
    Worlds=* #Use * to specify all worlds
    #If the item for sale is a group, any group in the RequiredGroups will be removed from the user
    #RequiredPackages can be another item name from this file
    RequiredPackages=
    RequiredGroups=
    #end


    edit - i just noticed that 'self authorize' is false but the test i just ran was a default level user and he was able to buy without authorization. ill do some more testing on that shortly...
     
  9. Offline

    Nagato

    This is amazing. one question though! If i buy a group, can i make it so it removed me from my old group?
     
  10. Offline

    Cutch

    Didn't notice the empty properties error thanks. And authorization is only called when it involves real money not economy money. Put a $ in front of the Price number for real money

    You can just put it in the required group category. It has a lesser documented feature of removing groups. But i see the problem, for rentals tho i think ill leave it so there's always a fall back. But ill add something for when no required groups are specified.
     
  11. Offline

    Quezax

    Does this plug check to make sure that they do not have the permissions before charging them?
    Make sure they don't double buy?
     
  12. Offline

    Cutch

    It checks to make sure they haven't already bought the package, but does not check their actual permissions.
    I can probably implement something like this
     
  13. Offline

    Soldier187

    Same here..If you managed to get it working somehow can you please tell me how? Server could really use it.
    Thanks
     
  14. Offline

    KrazyBonez

    pex support? i would love this plugin!
     
  15. Offline

    Cutch

    i thought i added it tell me if it doesnt work
     
  16. Offline

    mrvertigo27

    this is one to keep my eye on. any chance we can get an option to have it auto buy per use? i have some commands with far too many arguments to script with other command economy plugins. this would be great if i could use this on a per use basis!

    a simple example is the /tp command i would like to charege per use. if i were to use other plugins i would have to script for:
    • /tp mrvertigo27 $user
    • /tp $user mrvertigo27
    • /tp $user
    though I can acheive this with 1 well written script, I am not the scripting type.

    so what I am asking in a round about way. does your plugin now or will it in the future allow me to charge the player for each use of the permission without them actually doing:
    • /permi buy teleport
    then
    • /permi auto teleport
    That would streamline things a lot!
     
  17. Offline

    Forecaster

    I'm having some troubles getting this to work properly.

    I have set up a rental package for the commandbook "Spawn" command (tp to spawn) with the correct permission node. I've given regular users the PermIconomy.buy permission which works.

    The problem is that when a user buys the package, he does not appear to have the permission anyway.

    Additionally when the time runs out the package is not removed from the player. It still appears in their rentals list as well as in the rentals database.

    This also appears to be the case when buying access to a group.

    It appears to ignore the required group as well since I as admin was able to buy the test group despite the required group was set to Regular, which I am not associated with through either membership or inheritance.

    I am currently using bukkit RB 1000 and minecraft server 1.7.3 on an Ubuntu server

    Although it's worth pointing out I had these problems on 953 as well although then additionally a timer error when it tried to remove the rental from the player I believe. But that problem seems to have been fixed.

    I'd really like this plugin to work for me! I want a customizable way for my players to spend their money!

    This is my set up rentables:
    show message
    Name=Spawn
    Price=5000
    Desc=Allows you to tp to spawn
    Permissions=commandbook.spawn
    Groups=
    Expiry=0:2:0
    Count=
    Worlds=*
    RequiredPackages=
    RequiredGroups=

    Name=Mod
    Price=1
    Desc=Become a mod the easy way!
    Permissions=
    Groups=Moderator
    Expiry=0:2:0
    Count=
    Worlds=*
    RequiredPackages=
    RequiredGroups=Regular
     
  18. Offline

    Imakunee

    I'm having an issue getting the permissions to work at all for your mod. Upon using any command besides "/permi list" I receive the error message "You do not have the required permissions for this." I'm quite perplexed as I am an admin on my server. Take a look at the following configs if that would help.

    PermIconomy config file.
    Show Spoiler
    RealMoneyAdmins=imakunee
    AllowSelfAuthorization=true

    Name=GodMode
    Price=100000
    Desc=Enable /god command for 5 minutes.
    Permissions=godmode.command.godSelf
    Groups=
    Expiry=0/0/0 0:5:0
    Count=
    Worlds=*
    RequiredPackages=
    RequiredGroups=


    Permissions 3.x config file.
    Show Spoiler
    groups:
    Player:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    permissions:
    - '*'
    - '-appleseed.infinite.*'
    - '-simplechestlock.reload'
    - '-simplechestlock.save'
    - '-simplechestlock.ignoreowner'
    - '-icoland.admin.*'
    - '-herobounty.untargettable'
    - '-turnstile.openfree'
    - '-turnstile.makefree'
    - '-turnstile.admin.ignoreowner'
    - '-itemdetector.create.heal'
    - '-itemdetector.create.repair'
    - '-dropchest.radius'
    - '-dropchest.teleport'
    - '-dropchest.filter'
    - '-dropchest.protect'
    - '-dropchest.moderator'
    - '-creaturebox.give'
    - '-jobs.admin'
    - '-mcmmo.admin'
    - '-mcmmo.tools.*'
    - '-mcmmo.commands.ability'
    - '-mcmmo.commands.ptp'
    - '-godmode.*'
    - '-godPowers.*'
    Admins:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    permissions:
    - '*'
    - '-icoland.admin.notax'
    - '-icoland.admin.nocost'
    - '-herobounty.untargettable'
     
  19. Offline

    riuthamus

    Not that it matters, BOSEconomy is now 7.1! :p you could put 7.* and it would work! :p but maybe confusing to the user. Either way nice plugin.
     
  20. Offline

    Cutch

    That is odd as you have the * permission ill look into it tho
     
  21. Offline

    alfw

    Edit:
    When i get added to a new groop, Why can it add it on first, so you can get the prefix and suffix for the groop you buyed?


    - Old post

    This give me error when i try to buy a Groop for Iconomy money.
    Here is the error:
    http://pastebin.com/nSzCp8TK

    my config file:
    Code:
    #Any Field Ending in 's' can have multiple values Seperated by ',' (a comma)[/S][/S]
    [S][S]RealMoneyAdmins=Alfw[/S][/S]
    [S][S]AllowSelfAuthorization=false #True/False[/S][/S]
    
    [S][S]Name=Buy2[/S][/S]
    [S][S]Price=10[/S][/S]
    [S][S]Desc=Nothing2[/S][/S]
    [S][S]Permissions=green.yellow, red.tray[/S][/S]
    [S][S]Groups=VIP[/S][/S]
    [S][S]Worlds=*[/S][/S]
    [S][S]RequiredPackages=[/S][/S]
    [S][S]RequiredGroups=[/S][/S]
    [S][S]expiry=1 360:0:0[/S][S][/S][/S][S]
    [/CODE][/S]
     
  22. Offline

    cyberdude

    Update to 1000? And BukkitPermissions? Then this would be perfect! :D...
     
  23. Offline

    Pim1234

    2 of my players have bought VIP.
    one of them has the prefix and the permissions
    the other has the permissions but not the prefix :s

    EDIT: now i am getting an error too:

    Code:
    12:43:53 [SEVERE] Error occurred while enabling PermIconomy v1.03 (Is it up to date?): null
    java.lang.NullPointerException
        at com.Cutch.bukkit.PermIconomy.Transaction.toString(Transaction.java:86)
        at com.Cutch.bukkit.PermIconomy.PermIconomy.saveRentals(PermIconomy.java:723)
        at com.Cutch.bukkit.PermIconomy.PermIconomy.readRentals(PermIconomy.java:733)
        at com.Cutch.bukkit.PermIconomy.PermIconomy.onEnable(PermIconomy.java:59)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:878)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:272)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:162)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:146)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
     
  24. Offline

    thedarkdima

    The link is broken :confused:???
     
  25. Offline

    Cutch

    Ya it was I don't no why or how it was fixed but its up again
     
  26. Offline

    thedarkdima

    Thanks ^_^
     
  27. Offline

    Pim1234

    well, now the link is up again i tried re installing but it didn't work... is there any way to solve this?
     
  28. Offline

    ScriptManTomz

    I too am getting the exact same error as Pim1234.
    How can this be resolved Cutch?

    -T
     
  29. Offline

    Cutch

    Sorry thought I posted, I have 4 projects going on ATM not including Bukkit Plugins. Should be done within the next couple weeks ill try and fix the plugin then. Sorry its taken so long.
     
  30. Offline

    Pim1234

    couple weeks? :( my whole server is turning around your plugin :(
     

Share This Page