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

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

  1. Offline

    Cutch

    PermIconomy - The Bridge between Permissions and Economy
    Version: v1.04
    Works with Permissions v3.x, PermissionsEX 1.12, PermissionsBukkit 1.2k, Help 2.4, BOSEconomy 7.x, and iConomy 4.xx-5.0

    Description
    Allows a user to buy permissions or promote themselves via IConomy money, or Real Money through a ticket system.

    Features
    • Buy Packages of Permissions
    • Buy Group Promotions
    • Use IConomy money or Real Money
    • Real Money Transactions are handled manually by the Admins
    • Rental Packages
    • Added a count system for rentals, can buy X times
    Download: PermIconomy.jar

    Source Page --- Help Page
    If you find any errors just PM me the stack thx

    Todo
    • If you have any suggestions post or pm me
    Known Bugs
    • Not Sure If permissions Save, Groups work though.
    Commands / Permissions (open)
    /permi #Shows this help in game with only commands you can use
    /permi auth [Player Name] #Authorize a Transaction
    /permi authlist #To check pending Transactions.
    PermIconomy.buy
    /permi buy [Name] #Buy a Package
    /permi list [Page #] #List Available Packages For Players on Authorized List
    /permi auto [Pkg Name] #Toggle Auto-Renewing a Package
    /permi rentals [Page #] #List Your Rented Packages
    PermIconomy.admin
    /permi reload
    Changelog:
    v1.04:
    Added Support for PermissionsBukkit
    Added Parameters to the properties file For Each Item Package
    PayTo=#Account to Recieve Funds
    ExcludedRemovalGroups= #Used if * is specified as Required Groups. Set groups that should not be touched
    v1.03:
    Added rental counts can buy X times:
    Added Parameters to the properties file For Each Rental Package
    Count=[# of purchases per player]
    Bug fixes
    Changelog (Cont.) (open)

    v1.02:
    Added Support for PermissionsEX
    v1.01:
    Added Rentals
    Auto-Renewing
    Disable Self Authorizations
    Added Parameters to the properties file
    AllowSelfAuthorization=true
    For Each Package
    Expiry=#Format: day/month/year hour:minute:second
    v1.0:
    Initial Release
    This plugin was created from The Plugin Request Pages thx Pim1234 [cake]
     
  2. Offline

    ChrizC

  3. Offline

    Pim1234

    well, you really help me out here :)
    thank you, i will try it out now
    does it work with Groupmanager too?
    and how about signs to buy things?
     
  4. Offline

    Taranis01

    great :) how does the ticket system works?

    maybe adding things like renting permissions? like this inactive plugin had done
     
  5. Offline

    Pim1234

    when someone tries the /permi list command i get this:
    Code:
    14:35:18 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'permi' in plugin PermIconomy v1.0
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:287)
        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.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.getGroupObject(Ljava/lang/String;Ljava/lang/String;)Lcom/nijiko/permissions/Group;
        at com.Cutch.bukkit.PermIconomy.Item.checkRequirements(Item.java:97)
        at com.Cutch.bukkit.PermIconomy.PermIconomy.onCommand(PermIconomy.java:146)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    
     
  6. Offline

    Cutch

    Chriz: Thanks I saw it too but didnt care enough to change it :p
    Pim: Ive only developed it for Permissions, and IConomy.
    I will be adding support for the others soon.
    Signs will be a feature of my next major release.
    As for your error are you using Permissions 3.x, 2.x doesn't have a good system for managing and saving changes (I know its a b***h to setup :p)
    Taranis: I like the idea of renting permissions I will add that too.
    The ticket system. Well its not really a ticket system :). Theres no order.
    It will just alert specified admins when they login, or when a player is completing a transaction, about any pending transactions. They will probably have to whisper details, for money orders. Then the admins authorize the transaction when they receive the money

    Edit: I added support for BOS, Ill release when i do essentials... You know what ill release it :p
    It seems GroupManager is becoming inactive in favor of Permissions 3.x.
    I dont know if ill be adding support
     
  7. Offline

    Sh00ck

    Can you discribe the Config file ?

    .. omg is my ENglish bad <3
     
  8. Offline

    Cutch

    It should be mostly self explanatory.
    RealMoneyAdmins=Cutch,Sh00ck
    These are people who can handle real money transactions. You can leave it blank if you dont use this feature.
    Everything in the next block can be repeated multiple times per item.
    Example Buying Permissions: (open)

    Name=WorldEdit
    Price=100
    Desc=WorldEdit Permissions
    Permissions=worldedit.superpickaxe,worldedit...
    Groups=
    Worlds=*
    Expiry=#Format: day/month/year hour:minute:second
    RequiredPackages=
    RequiredGroups=
    Example Buying Groups: (open)

    Name=VIP Group
    Price=$5(The $ sign means this requires real money)
    Desc=Buy access to the VIP Group
    Permissions=
    Expiry=#Format: day/month/year hour:minute:second
    Groups=VIPs
    Worlds=*
    RequiredPackages=
    RequiredGroups=

    RequiredGroups ill fix, I have it set so you need all groups right now
    Edit: I have changed RequiredGroups instead of separating by ',' it is separated by '|' for OR or '&' for AND
    ex: RequiredGroup=Default|Builders
     
  9. Offline

    Pim1234

    could you make it possible to ask a monthly pay for a group because i want people to pay a few dollars every month for being VIP
     
    Funstar likes this.
  10. Offline

    opoq

    This plugin looks perrrrrrfect, EXCEPT... I've long-ditched Permissions for PermissionsEx - would you consider adding support?

    Thanks for your work!
     
  11. Offline

    Funstar

    Same for me.
     
  12. Offline

    Cutch

    This will probably work with rent-able permissions. And just ask for a subscription renew every time it runs out.



    Yes Im trying to add support for other permissions and economy plugins.

    BTW I just did some minor surgery so probably talking it easy for a couple days, but ill do and release what i can
     
    opoq likes this.
  13. Offline

    Survivorman

    Hi, I get this error when I preform any /permi command.
    Code:
    11:01:25 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'perm
    i' in plugin PermIconomy v1.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 com.Cutch.bukkit.PermIconomy.Item.checkRequirements(Item.java:91)
            at com.Cutch.bukkit.PermIconomy.PermIconomy.onCommand(PermIconomy.java:1
    46)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    >version
    11:02:56 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-823-
    gb9d0b04-b860jnks (MC: 1.6.6)
    11:02:56 [INFO] This server is also sporting some funky dev build of Bukkit!
    >
    Permissions 3.1.5 and iConomy 5.0.1.
     
  14. Offline

    Pim1234

    i have a few permissions groups:
    Slave, Citizen, Merchant, Nobleman, VIP, King.
    i sell all the groups except for Slave (default) and King (just me) and I sell VIP for real money
    when someone performs the /permi list command only Citizen and VIP show up :(
    here is are my configs:

    EDIT: sorry for being stupid, i suppose the others only show up when you can buy them (that you can only see Merchant when you are Citizen)
     
  15. Offline

    Cutch

    Theoretically add support for PermissionsEX, post if there's problems, v1.01 is still available on GIT if its not working
     
  16. Offline

    DragonSupremacy

    Just so we're on the same page -

    The way I read it, is that PermIconomy.buy governs /permi, while Permiconomy.admin governs /permi authlist?

    If not, may I suggest it like this:

    Show Spoiler

    PermIconomy.buy
    /permi #Shows this help in game with only commands you can use
    /permi buy [Name] #Buy a Package
    /permi list [Page #] #List Available Packages For Players on Authorized List
    /permi auto [Pkg Name] #Toggle Auto-Renewing a Package
    /permi rentals [Page #] #List Your Rented Packages

    PermIconomy.admin
    /permi auth [Player Name] #Authorize a Transaction
    /permi authlist #To check pending Transactions.
    /permi reload


    Edit: I see I get an error with PermIconomy v1.01 upon boot. Where can I download the v1.02 as advertised in the thread title?

    Server error
     
  17. Offline

    Cutch

    That was my bad v1.02 is up.
    And it is setup

    /permi #Shows this help in game with only commands you can use

    Permissions in preference file
    /permi auth [Player Name] #Authorize a Transaction
    /permi authlist #To check pending Transactions.

    PermIconomy.buy
    /permi buy [Name] #Buy a Package
    /permi list [Page #] #List Available Packages For Players on Authorized List
    /permi auto [Pkg Name] #Toggle Auto-Renewing a Package
    /permi rentals [Page #] #List Your Rented Packages

    PermIconomy.admin
    /permi reload
     
  18. Offline

    DragonSupremacy

    Alright, thanks for the clarification. On PermIconomy v1.02 I still get a few errors upon first run however:

    Server log

    CraftBukkit #935
    PermissionsEx 1.12
    PermIconomy 1.02

    Error:
     
  19. Offline

    Cutch

    Fixed Thanks :D
     
  20. Offline

    Boon Pek

    Is this backwards-compatible with Permissions 2.7.4?
     
  21. Offline

    Cutch

    No I don't believe so 2.7.4 just doesn't have the features of 3.x. Tho its 200% better :p
     
  22. Offline

    thorncrown

    I really need an update on this one :)
     
  23. Offline

    Pim1234

    i would like the renting system a bit different...
    i would like to set the exact amount of days you will own the group, and i would like to be able to give every player who has the needed permissions for it with a command a set amount of hours free a class (in-game).
    because flying is only enabled for VIP's and i would like every one to be able to fly and try out everything else VIP's can do for a few in-game hours. would that be possible?

    btw, i get this error when someone tries to use /permi:

    Code:
    15:37:12 [INFO] <username> tried to use command /permi
    15:37:12 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'permi' in plugin PermIconomy v1.02
        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.checkAuth(PermIconomy.java:634)
        at com.Cutch.bukkit.PermIconomy.PermIconomy.showHelp(PermIconomy.java:534)
        at com.Cutch.bukkit.PermIconomy.PermIconomy.onCommand(PermIconomy.java:321)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    
     
  24. Offline

    Cutch

    Well right now you can sell permissions by themselves, you can do it for zero dollars or IConomy money.
    And you can specify the exact days by putting.
    Expiry=[# days] 0
    or
    Expiry=[# days]/0/0 0:0:0
    Top is short form. Hours is the same just:
    0 [# hours]
    or
    0/0/0 [# hours]:0:0
    Ill try and but in place a system so you can buy something x number of times.
     
  25. Offline

    Pim1234

    and the free in-game time and the error?
    thanks for the info btw :)
     
  26. Offline

    Cutch

    The error just fixed and updated for latest build.
    The free game-time you could just put price as zero.
    Problem with that is players could just keep buying the permission when it expires.
    Just saw in game time ill add something like that in too,
    in combination with a purchase limiter so you can only buy something x times.
    Think that covers it all

    I've added the count system and updated to 1.03. I was working on in game times but then the ticks per second and scheduling hurt my brain. Ill finish it sometime, until then stick with real-time.
    I think i have to rework the system anyways. Right now if you buy a rental. It lasts for x time, not x play time.
    So even if someone is offline the time continues, kind of annoying.
    For the count system add
    Count=[x times]
    to each package.
    Also fixed some real money rental problems

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

    Pim1234

    the thing with real-time isn't an issue, i want my players to be 30 days VIP when they buy it.
    i just want the in-game time to show them how awesome it is so they will buy it :) (hopefully)
     
  28. Offline

    DragonSupremacy

    Any chance there will be an option to choose between SQLite and MySQL? (talking specifically about the rentals.db)
     
  29. Offline

    Cutch

    All right I can do that but it'll be a couple days. Damn Math :p

    No, the all files are read on start-up, and saved every time a purchase occurs. Its just not worth it to provide support. It would probably use more memory to keep the connection, then to just write to a file.
     
  30. Offline

    thorncrown

    Call me dumb, but can someone show me his config? I just have to take a look how my config should be or could be. Got some errors because I messed something up :)
     

Share This Page