[INACTIVE][ECON/FUN] BuyAbilities v0.8.9 - Purchase Abilities [740]

Discussion in 'Inactive/Unsupported Plugins' started by rcjrrjcr, Mar 31, 2011.

  1. Offline

    rcjrrjcr

    NEW THREAD

    BuyAbilities - Purchase Abilities:
    Version: v0.8.9

    BuyPermissions is a plugin that allows your players to purchase abilities or permissions with iConomy/EssentialsEco/BOSEconomy money! This way, players can finally have a long-term investment for their virtual money, instead of spending it on items. Also, the time-based and use-based rent systems allow temporary access to permissions.

    Abilities are groups of related permission nodes, which are granted to the player upon purchase. Abilities are also grouped into categories, which the server admins can deny or allow access to via permissions.

    Original Suggestion Thread
    Purchasable Permissions/Abilities

    Features:
    • Rent abilities for a specified duration
    • Purchase uses of an ability and its associated commands
    • Purchase abilities permanently and retain its benefits forever (theoretically:p)
    Download


    Help

    Source Code

    Requirements:
    • An economy plugin (iConomy 4, EssentialsEco, BOSEconomy)
    • A permissions plugin (Permissions 2.7, GroupManager)
    Usage Instructions:

    • Plugin commands are "/bab" and "/buyab". Each can be used instead of the other.
    • From player's chat:
      • "/bab categories" returns all accessible categories.
      • "/bab category <categoryname>" returns all abilities in the category.
      • "/bab page" lists all accessible abilities.
      • "/bab current" lists all active abilities.
      • "/bab buy <abilityname>" buys an ability.
      • "/bab rent <abilityname>" rents an ability for a period of time.
      • "/bab rentuse <abilityname>" purchases uses of an ability.
      • "/bab info <abilityname>" returns information about that ability.
      • "/bab help <abilityname>" returns the help text about that ability.
    • From server console:
      • "/bab listall" prints out a list of all active abilities for all players.
      • "/bab status" prints out the current status of the hooks into the permissions and economy plugins.
    • For admins:
      • To allow usage of the /bab command, grant the permission "buyabilities.use".
      • To allow access to a category, grant the permission "buyabilities.abilities.<categoryname>" where <categoryname> is the name of the category, with periods replacing spaces.
      • NOTE: A user can access an ability if he can access any single one of its categories. It does not matter if he can access its other categories, just one.
    • NOTE: If an ability or category name is misspelled, this plugin will provide suggestions for the correct spelling of the name.
    Changelog:
    Version 0.8.9
    • Fixes ability removal bug. Iterators finally get a use.
    Show Spoiler
    Show Spoiler


    Version 0.8.8
    • Update for CB 740.
    Version 0.8.7
    • ?
    Version 0.8.6
    • Fixed regex matching whole string bug
    Version 0.8.5

    • Fixed bugs because of Permissions caching old permissions.
    Version 0.8.4

    • Fixed NPE when saving player data
    • Fixed permissions bug
    • Added BOSEconomy support.
    Version 0.8.3

    • Fixed data.yml not being created.
    Version 0.8.2

    • Removed interfering code from another git branch.
    Version 0.8.1

    • Fixed cost data not loading.
    Version 0.8

    • Auto-loading and auto-saving of player data during join/quit events.
    Version 0.7.3


    • General fixes.
    Version 0.7.2


    • Recompile for CB 617.
    Version 0.7.1


    • Recompile for CB 602.
    Version 0.7


    • Added suggestions for ability/category names in case it is misspelled.
    Version 0.6


    • Added usage counters.
    Version 0.5.6


    • Changed package names to conform to Java's naming conventions.
    Version 0.5.5


    • Minor optimisations.
    Version 0.5.4


    • Abilities can belong to multiple categories.
    Version 0.5.3


    • Fixed another NPE due to FakePermissions confusing the plugin.
    • Added permissions to use /bab.
    • Changed category permission format.
    Version 0.5.2


    • Fixed actual cause behind NPE.
    Version 0.5.1


    • Fixed NPE bug when hooking into economy.
    Version 0.5


    • First release. Permissions unsupported though.
    Version 0.01


    • First announced version. Not working yet.



    TODO
    1. FIX ALL BUGS
    2. Better and easier implementation of ranks
      • Add requirements for rank advances
    3. Graphical editor for costs.yml
    4. Scripts for activation/deactivation.
    Suggestions and ideas are welcome!


    Credits:

    I would like to credit the people whose code I used:

    Report bugs by enclosing the exception's stack trace, your costs.yml and data.yml in spoilers.
     
  2. Offline

    rcjrrjcr

    The duration of a rented ability only decreases when the player is online.
     
  3. Offline

    Asymetrikon

    Hmmm this doesnt work at all for me. Or im doing something completly wrong.
    I have CB740, Perm 2.7.2 and Buyab 0.8.9.
    I made two Testabilities (Kits and Superpickaxe).
    When i try to rent one of the two i get the Message that i rented it. But with Kits i dont get debited MOney and the Command wont work. With the Pickaxe i get debited money but the Command doesnt work.
    My file looks like this:
    Code:
    Abilities:
        Kits:
            info:
                name: 'Resource Kits'
                description: 'Get a Stack of Stone'
                help: '/kit stone'
            permissions:
                - 'essentials.kit.stone'
            categories:
                - 'resources'
            commands:
                - '/kit stone'
            costs:
                use:
                    cost: 300
                    usecount: 1
        Superpickaxe:
            info:
                name: 'Super Pickaxe'
                description: 'Mine Blocks instantly.'
                help: '//'
            permissions:
                - 'worldedit.superpickaxe'
            categories:
                - 'tools'
            commands:
                - '//'
            costs:
                rent:
                    cost: 700
                    duration: 500
    And Permission look like this (double checked no tabs i used spaces):
    - buyabilities.use
    - buyabilities.abilities.resources
    - buyabilities.abilities.tools

    What am i doing wrong? BuyAb runs in the Serverlog without Errors too.
     
  4. Offline

    rcjrrjcr

    The command is a regular expression, not a literal string. Also, the command to buy uses is "/bab rentuse".
     
  5. Offline

    LucidLethargy

    Is it possible to allow for items to be used as currency? That would truly be amazing, and in general would harness that "minecraft" spirit a bit more. I don't believe any plugin does this yet, but correct me if I am wrong!
     
  6. Offline

    Specops343

    Im using Factions, is there a way I could set it so Factions can buy abilities and the entire faction is able to use the commands they rented?
     
  7. Offline

    LucidLethargy

    I've been looking for a long time now and I haven't found anything to cost items... so definitely please add this in if possible! This is an incredible plugin, but without that feature I just can't use it :/

    With items I feel like this could be a LOT more popular too! Many plugins use items in this way, but nothing really allows the freedom this plugin could allow in this area. For instance, I would love to make a mana system utilizing portal blocks, but this wont be possible until some developers make it possible! This is a real game changer for my server, so if you ever can add this in, you would be our new hero!
     
  8. Offline

    Mezada

    Works great for me, have one issue(not major just a hassle) so far. I noticed that even if I already had the config files and buy abilities in the categories ready to go, but then say I wanted a new group to have access to a category and I give them the permissions and then reload the permission files. I noticed that the new group still will not have access to the category until the server is restarted. It's like its only reading the permissions on start up and not on ability use.

    Edit: I can't seem to get /bab rentuse to work with any of these. I can buy them. And they so up under /bab current. But when I try /time day or /time night, /spawn /tp (anything)
    nothing happens and the ability is gone from /bab current.

    Code:
    Abilities:
        Teleport:
          # This name is how the plugin refers to the purchaseable ability internally. It's used in the file described in 2.
            info:
                name: 'Teleport'
                description: 'Allows a user to teleport to another player'
                help: 'To teleport type /tp (who you want to teleport to)'
            # name/description listed in game/ability inventory. changing the name here would not break the association to users that have bought it.
            permissions:
                - 'general.teleport'
            # all permission nodes the user would gain access to.
            categories:
                - 'commands'
            # used to organize/filter abilities
            commands:
                - 'RGX=/tp'
            # java regex used to check for associated commands
            costs:
                #buy:
                    #cost: 10000
              # permanent ownership of that permission
                #rent:
                    #cost: 100
                    #duration: 30000
                  # time-based ownership of that permission
                use:
                    cost: 1
                    usecount: 1
                  # use-based ownership of that permission
    
        Spawn:
          # This name is how the plugin refers to the purchaseable ability internally. It's used in the file described in 2.
            info:
                name: 'Spawn'
                description: 'Allows a user to teleport to the spawn point'
                help: 'To teleport type /spawn'
            # name/description listed in game/ability inventory. changing the name here would not break the association to users that have bought it.
            permissions:
                - 'general.spawn'
            # all permission nodes the user would gain access to.
            categories:
                - 'commands'
            # used to organize/filter abilities
            commands:
                - 'RGX=/spawn'
            # java regex used to check for associated commands
            costs:
                #buy:
                    #cost: 10000
              # permanent ownership of that permission
                #rent:
                    #cost: 100
                    #duration: 30000
                  # time-based ownership of that permission
                use:
                    cost: 100
                    usecount: 1
                  # use-based ownership of that permission
    
        Time:
          # This name is how the plugin refers to the purchaseable ability internally. It's used in the file described in 2.
            info:
                name: 'Time'
                description: 'Allows a player to change the time of day'
                help: 'To change the time type /time day   or /time night'
            # name/description listed in game/ability inventory. changing the name here would not break the association to users that have bought it.
            permissions:
                - 'general.time'
            # all permission nodes the user would gain access to.
            categories:
                - 'commands'
            # used to organize/filter abilities
            commands:
                - 'RGX=/time'
    
            # java regex used to check for associated commands
            costs:
                #buy:
                    #cost: 10000
              # permanent ownership of that permission
                #rent:
                    #cost: 100
                    #duration: 30000
                  # time-based ownership of that permission
                use:
                    cost: 1
                    usecount: 1
                  # use-based ownership of that permission
    
    
    So I think I figured out my problem. I forgot the ^ ... but now I can't test it because I already migrated to iconomy 5.0 :(
     
  9. Offline

    MineralMC

    I'm really wanting to use this as a method for my players to purchase 'technology levels' - minecart mania's advanced automation features, for example. Exactly how customisable is it? Is it easy to simplify to a single menu outlining the technology levels and what they do?
     
  10. Offline

    leMi

    When my players buy an ability, it only lasts for a few times, not forever like it should. I allow players to buy or rent uses for an ability. I think when a player buys the whole ability, he is still getting only 10 uses.

    costs.yml
    Code:
    Abilities:
        MagicCarpet:
            info:
                name: 'Magic Carpet'
                description: 'Allows you to fly around on a glass carpet.'
                help: '/mc - Spawn/removes your carpet. Jump - Go up. Crouch - Go down.'
            permissions:
                - 'magiccarpet.mc'
            categories:
                - 'Movement'
            commands:
                - '/magiccarpet'
                - '/magiccarpet 3*'
                - '/magiccarpet 5*'
                - '/magiccarpet 7*'
                - '/mc'
                - '/mc 3*'
                - '/mc 5*'
                - '/mc 7*'
            costs:
                buy:
                    cost: 200000
                #rent:
                #    cost: 2000
                #    duration: 30000
                use:
                    cost: 2000
                    usecount: 10
        MagicCarpetLight:
            info:
                name: 'Magic Carpet Light'
                description: '(Requires Magic Carpet) Allows you to spawn glowstone around your carpet.'
                help: '/ml - Illuminate your spawned carpet.'
            permissions:
                - 'magiccarpet.ml'
            categories:
                - 'Movement'
            commands:
                - '/ml'
            costs:
                buy:
                    cost: 100000
                use:
                    cost: 1000
                    usecount: 10
    data.yml (as it stopped working for my players)
    Code:
    Data:
        animaleet:
            world:
                MagicCarpet:
                    duration: -36
                    nodes: !!set {}
                    type: BUY
        lolpanix:
            world:
                MagicCarpet:
                    duration: -15
                    nodes: !!set
                        magiccarpet.mc: null
                    type: BUY
    
     
  11. Any update to iConomy 5 planned?

    Getting this error when using it with iConomy 5:

    Code:
    18:53:21 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'bab' in plugin BuyAbilities v0.8.9
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:255)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:677)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:640)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:634)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.NoClassDefFoundError: com/nijiko/coelho/iConomy/iConomy
            at com.rcjrrjcr.bukkitplugins.util.economyinterface.EconIC4Handler.getBalance(EconIC4Handler.java:27)
            at com.rcjrrjcr.bukkitplugins.util.economyinterface.EconIC4Handler.deduct(EconIC4Handler.java:36)
            at com.rcjrrjcr.bukkitplugins.util.economyinterface.EconIC4Handler.deduct(EconIC4Handler.java:22)
            at com.rcjrrjcr.bukkitplugins.buyabilitiesplugin.BuyAbilities.commandHandler(BuyAbilities.java:430)
            at com.rcjrrjcr.bukkitplugins.buyabilitiesplugin.BuyAbilities.onCommand(BuyAbilities.java:220)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    Caused by: java.lang.ClassNotFoundException: com.nijiko.coelho.iConomy.iConomy
            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)
            ... 18 more
     
  12. Offline

    Tfs Halo

    it says right there that you get 10 uses :)
    idk how to make it infinite try... 0? that usually works from my experience but then again that's 0 uses xD
    i'll try to do some testing.

    actually no... here take a look





    so i think.. well maybe but i haven't even used the plugin yet so i can't give you any good advice :S

    what i am getting is that if all those entries exist that u can buy,rent(for a specific time),and use a command by buying the command..

    so the only way you would be getting the problem is if your users or you would be using the wrong command somehow.

    here this are the commands
    • "/bab buy <abilityname>" buys an ability.''
    • "/bab rent <abilityname>" rents an ability for a period of time.''
    • "/bab rentuse <abilityname>" purchases uses of an ability.''
     
  13. Offline

    xlilcasper

    Been getting errors with bab for about the last week or so. Using CB# 740 and BAB# 0.8.9.

    I see no one else is reporting errors I'm pretty sure it has to do with a plugin conflict. here is the massive list of my plugins. Yes I know it is a lot.
    Show Spoiler

    AncientGates - 1.0.2
    AutoMessage - 1.5
    AutoPlant - 1.6
    BankAccount - 0.5
    BigBrother - 1.8-SNAPSHOT
    BlockCantKeepUpSpam - 0.1
    BlocksOnGlass - 0.22
    BuyAbilities - 0.8.9
    CommandHelper - 3.0-beta1
    Cookbook - 1.4.5
    CraftBukkitUpToDate - 2.5.2
    creaturebox - 0.7.3
    DeathTpPlus - 1.85
    DropBonus - 2.5
    ecoCreature - 0.0.5b
    Essentials - 2.2.8
    EssentialsChat - 2.2.8
    EssentialsGeoIP - 2.2.8
    EssentialsProtect - 2.2.8
    EssentialsSpawn - 2.2.8
    FalseBookBlock - 0.84alpha
    FalseBookCore - 0.84alpha
    FalseBookExtra - 0.84alpha
    FalseBookIC - 0.84alpha
    FenceStack - 1.13
    FoundDiamonds - 1.666
    GroupManager - 1.0(alpha-5)
    Help - 0.2.4.1
    HeroicRebuke - 1.2.6.86
    iConomy - 4.65
    iConomyChestShop - 2.6
    ItemId - 1.12
    Jackpot - 0.2.3
    LastLogin - 1.0
    LightLevel - 0.3
    LocalShops - 2.2.1
    LWC - 2.31
    MCTelnet - 1.2.5
    MenuMetaMod - 0.5.1
    MinecartManiaAdminControls - 1.1.4
    MinecartManiaAutocart - 1.1.3
    MinecartManiaAutomations - 1.1.2
    MinecartManiaChestControl - 1.1.3
    MinecartManiaCore - 1.1.9
    MinecartManiaPressurePlates - 1.08
    MinecartManiaSignCommands - 1.1.3
    MinecartManiaStation - 1.1.0
    MineRSS - 1.2.1
    MobRider - 0.32
    ModTRS - 1.3
    MonsterTamer - 1.3.5
    Nether - 1.1
    NoCheat - 0.9.6
    OddItem - 0.6.5
    OpenInv - 1.1.0
    Permissions - 2.5.1
    playerLives - 1.2.0
    PluginInfo - 0.1.2
    PreciousStones - 3.4.2
    PuzzleQuest - 1.0
    Questioner - 0.2
    RedstoneChips - 0.9
    Runecraft - 0.3
    SearchIds - 2.3
    Seats - 0.1
    SendGift - 1.23
    SignColours - 0.3
    SignTrader - 1.0.7
    SimpleAutoReply - 0.1
    SimpleSpleef - 0.4
    Snowballz - 1.5.1
    Sortal - 2.7
    SpeedSign - 0.6.4
    SquidLimiter - 1.1
    Stats - 0.985
    Superpickaxe - 0.1
    TentThis - 2.1.0
    TorchMissile - 0.3
    Towny - 0.63
    uQuest - 1.21
    VanishNoPickup - 1.7
    WorldBorder - 1.1.2
    WorldEdit - 4.5
    WorldGuard - 5.0-alpha10
    WorldWarp - 0.1
    WormholeXTreme - 0.833


    ***Edit***
    Stripped out all plugins but iConomy 4.6 Essentials 2.2.8 and Buy Abilities. Still gettting the error. Here is the log.

    Code:
    2011-05-06 13:49:16 [INFO] Starting minecraft server version Beta 1.5_02
    2011-05-06 13:49:16 [INFO] Loading properties
    2011-05-06 13:49:16 [INFO] Starting Minecraft server on *:25565
    2011-05-06 13:49:16 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-706-gf53e007-b740jnks (MC: 1.5_02)
    2011-05-06 13:49:16 [INFO] Preparing level "world"
    2011-05-06 13:49:16 [INFO] Preparing start region
    2011-05-06 13:49:17 [INFO] Preparing spawn area: 52%
    2011-05-06 13:49:18 [INFO] BuyAbilities version 0.8.9 is inactive.
    2011-05-06 13:49:18 [INFO] BuyAbilities: PluginEnabled event detected!
    2011-05-06 13:49:18 [INFO] Loaded Essentials build 2.2.8 maintained by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo and ceulemans.
    2011-05-06 13:49:18 [INFO] BuyAbilities: PluginEnabled event detected!
    2011-05-06 13:49:18 [INFO] Loaded EssentialsChat build 2.2.8 by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo and ceulemans.
    2011-05-06 13:49:18 [INFO] BuyAbilities: PluginEnabled event detected!
    2011-05-06 13:49:18 [INFO] Loaded EssentialsGeoIP build 2.2.8 by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo and ceulemans.
    2011-05-06 13:49:18 [INFO] This product includes GeoLite data created by MaxMind, available from http://www.maxmind.com/.
    2011-05-06 13:49:18 [INFO] BuyAbilities: PluginEnabled event detected!
    2011-05-06 13:49:18 [INFO] GroupManager - INFO - Scheduled Data Saving is set for every 10 minutes!
    2011-05-06 13:49:18 [INFO] GroupManager version 1.0(alpha-5) is enabled!
    2011-05-06 13:49:18 [INFO] BuyAbilities: PluginEnabled event detected!
    2011-05-06 13:49:18 [INFO] BuyAbilities: Hooking into Permissions.
    2011-05-06 13:49:18 [INFO] BuyAbilities: Permissions hooked!
    2011-05-06 13:49:18 [INFO] BuyAbilities: BuyAbilities inactive.
    2011-05-06 13:49:18 [INFO] Fake Permissions version 2.5.1 is enabled!
    2011-05-06 13:49:18 [INFO] BuyAbilities: PluginEnabled event detected!
    2011-05-06 13:49:19 [INFO] Loaded EssentialsProtect build 2.2.8 maintained by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo and ceulemans.
    2011-05-06 13:49:19 [INFO] BuyAbilities: PluginEnabled event detected!
    2011-05-06 13:49:19 [INFO] Loaded EssentialsSpawn build 2.2.8 maintained by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo and ceulemans.
    2011-05-06 13:49:19 [INFO] BuyAbilities: PluginEnabled event detected!
    2011-05-06 13:49:19 [INFO] plugins\Help\ExtraHelp\commandhelper.yml
    2011-05-06 13:49:19 [INFO] plugins\Help\ExtraHelp\eadmin.yml
    2011-05-06 13:49:19 [INFO] plugins\Help\ExtraHelp\echeats.yml
    2011-05-06 13:49:19 [INFO] plugins\Help\ExtraHelp\eeco.yml
    2011-05-06 13:49:19 [INFO] plugins\Help\ExtraHelp\eloc.yml
    2011-05-06 13:49:19 [INFO] plugins\Help\ExtraHelp\emod.yml
    2011-05-06 13:49:20 [INFO] plugins\Help\ExtraHelp\esocial.yml
    2011-05-06 13:49:20 [INFO] plugins\Help\ExtraHelp\espawn.yml
    2011-05-06 13:49:20 [INFO] plugins\Help\ExtraHelp\etele.yml
    2011-05-06 13:49:20 [INFO] plugins\Help\ExtraHelp\groupmanager.yml
    2011-05-06 13:49:20 [INFO] plugins\Help\ExtraHelp\iconomy.yml
    2011-05-06 13:49:20 [INFO] plugins\Help\ExtraHelp\iconomy_bankaccount.yml
    2011-05-06 13:49:20 [INFO] plugins\Help\ExtraHelp\localshops.yml
    2011-05-06 13:49:20 [INFO] plugins\Help\ExtraHelp\localshops_lshop.yml
    2011-05-06 13:49:20 [INFO] plugins\Help\ExtraHelp\lwc.yml
    2011-05-06 13:49:20 [INFO] plugins\Help\ExtraHelp\minecartmania.yml
    2011-05-06 13:49:20 [INFO] plugins\Help\ExtraHelp\weclip.yml
    2011-05-06 13:49:20 [INFO] plugins\Help\ExtraHelp\wegen.yml
    2011-05-06 13:49:20 [INFO] plugins\Help\ExtraHelp\wehistory.yml
    2011-05-06 13:49:20 [INFO] plugins\Help\ExtraHelp\wenav.yml
    2011-05-06 13:49:20 [INFO] plugins\Help\ExtraHelp\wesel.yml
    2011-05-06 13:49:20 [INFO] plugins\Help\ExtraHelp\wetool.yml
    2011-05-06 13:49:20 [INFO] plugins\Help\ExtraHelp\weutil.yml
    2011-05-06 13:49:20 [INFO] plugins\Help\ExtraHelp\worldedit.yml
    2011-05-06 13:49:20 [INFO] plugins\Help\ExtraHelp\worldguard.yml
    2011-05-06 13:49:20 [INFO] [HELP] 285 extra help entries loaded
    2011-05-06 13:49:20 [INFO] [HELP] Permissions enabled using: GroupManager v1.0(alpha-5)
    2011-05-06 13:49:20 [INFO] [HELP] Help 0.2.4.1 enabled
    2011-05-06 13:49:20 [INFO] BuyAbilities: PluginEnabled event detected!
    2011-05-06 13:49:20 [INFO] [iConomy] Logging is currently disabled.
    2011-05-06 13:49:20 [INFO]  - Updating MySQL Database for latest iConomy
    2011-05-06 13:49:20 [INFO] [iConomy] Error updating database: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Too many keys specified; max 64 keys allowed
    2011-05-06 13:49:21 [INFO] [iConomy] v4.65 (Kenzi) loaded.
    2011-05-06 13:49:21 [INFO] [iConomy] Developed by: [Nijikokun, Coelho]
    2011-05-06 13:49:21 [INFO] BuyAbilities: PluginEnabled event detected!
    2011-05-06 13:49:21 [INFO] BuyAbilities: Hooking into iConomy.
    2011-05-06 13:49:21 [INFO] BuyAbilities: Economy hooked!
    2011-05-06 13:49:21 [INFO] BuyAbilities: BuyAbilities active.
    2011-05-06 13:49:21 [INFO] [iConomy] hooked into Permissions.
    2011-05-06 13:49:21 [INFO] Done (0.490s)! For help, type "help" or "?"
    2011-05-06 13:49:22 [INFO] xlilcasper [/192.168.1.64:58406] logged in with entity id 22
    2011-05-06 13:49:23 [INFO] Player "xlilcasper" joined!
    2011-05-06 13:49:23 [INFO] Loading player "xlilcasper"'s data!
    2011-05-06 13:49:27 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-06 13:49:30 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'bab' in plugin BuyAbilities v0.8.9
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:255)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:677)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:640)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:634)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.NullPointerException
        at com.rcjrrjcr.bukkitplugins.util.permissionsinterface.PermYetiHandler.hasPerm(PermYetiHandler.java:34)
        at com.rcjrrjcr.bukkitplugins.buyabilitiesplugin.BuyAbilities.commandHandler(BuyAbilities.java:283)
        at com.rcjrrjcr.bukkitplugins.buyabilitiesplugin.BuyAbilities.onCommand(BuyAbilities.java:220)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    
     
  14. Please add a flag to disable the "user data saved" spam in console, gets a bit silly on full server :p
     
  15. Offline

    leMi

    @Tfs Halo
    I specifically say that they BUY the ability. They do not buy uses of the ability. The problem is even though they BUY the ability, it acts like if they bought uses.
     
  16. Offline

    Tfs Halo

    hmm... idk :confused: but sorry for not being able to help you ..
     
  17. Offline

    Thumm

    Any news of an iconomy 5 update for this?
     
  18. I just can't get any configured abilities to show up, it keeps saying "no categories".

    I stripped out all the stuff from my config, still same thing, only this is left, should work right?

    Code:
    Abilities:
        Beserk:
        info:
            name: 'Beserk'
            description: 'Berserk will finally let you take out your hatred on Dirt and Farm animals. Berserk grants a 50% bonus damage modifier to combat and lets the player instantly break soft materials, such as Dirt, Grass, Sand, and Gravel.'
            help: 'Right-click with your fists to activate.'
        permissions:
            - 'mcmmo.ability.unarmed'
        categories:
            - 'mcMMO'
        commands: null
        costs:
            buy:
                cost: 12000 #Cost for permanent purchase of the ability
            rent:
                cost: 12000 #Cost for time-based rent of the ability
                duration: 30000 #Duration of the ability in server ticks
            use:
                cost: 12000 #Cost for use-based rent of the ability
                usecount: 1 #Amount of uses of the ability
     
  19. Offline

    xlilcasper

    No word on why this isn't working for me? What version of essentials is it compiled against? Could that be the issue?
     
  20. Same here, I can't get this to work, it just wont read my config :/
     
  21. Offline

    Tal-N

    I have one suggestion for this plugin which would make it perfect for our server. Let me explain the scenario so you understand what I'm suggesting as an addition to this.

    Put simply, we have a number of users who want to roleplay the character of a quest giver. Rather than entrusting this with a moderator or admin we'd like the 'quest giver' group to be able to purchase a /rentfor <player> <ability> command using the currency from an economy plug in. Basically the player would transfer some currency to the Quest Giver who would use the currency to purchase the ability that lets them rent the skill to a player rather than for themselves.

    For example.
    Player A goes to Quest Giver 1.
    Quest Giver 1 asks for 5 gold ingots from Player A and 1000 in currency.
    Player A gives the Quest Giver the ingots and 1000.
    Quest Giver 1 then uses this plug in to purchase a 1 use command to /rentfor <player> godmode 5 minutes
    The Quest Giver then uses the command /rentfor Player A godmode 5 minutes
    Player A is then invincible for 5 minutes

    Basically it creates a middle-man system. It could even be used for players who want to take part in group content and use 'spells' to support other players.
     
  22. Offline

    andune

    Awesome plugin! Working on getting it setup now.

    Feature request: can you please add an admin-command like '/bab reload' to force a reload of the config? I'd like to play with settings on-disk without having to restart the server every time I make a change. Or if this functionality already exists and I just missed it somewhere, that would be great too! Thanks!

    Does this work with essentials GroupManager (which has a shill for Permissions compatibility)?

    I'm guessing not since I'm getting the following error after installing and now trying to run the '/bab' command:
    Code:
    org.bukkit.command.CommandException: Unhandled exception executing command 'bab' in plugin BuyAbilities v0.8.9
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:255)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:677)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:640)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:634)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.NullPointerException
            at com.rcjrrjcr.bukkitplugins.util.permissionsinterface.PermYetiHandler.hasPerm(PermYetiHandler.java:34)
            at com.rcjrrjcr.bukkitplugins.buyabilitiesplugin.BuyAbilities.commandHandler(BuyAbilities.java:283)
            at com.rcjrrjcr.bukkitplugins.buyabilitiesplugin.BuyAbilities.onCommand(BuyAbilities.java:220)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    
    Although I find it odd it doesn't support the Essentials GroupManager functionality when the example abilities in the config.yml are from Essentials itself. :) Any chance of getting GroupManager support added, or do I just need to bite the bullet and convert all my GroupManager stuff to real Permissions?

    edit: BuyAbilities v0.8.9, iConomy 5, essentials 2.2

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

    Thumm

    needs iConomy 5 update :(
     
  24. Offline

    TheDeejay

    I'm using iConomy 4.6 I believe, when I try to rent an ability it doesn't take any money. Am I doing something wrong?

    Code:
    Abilities:
        BigTree:
            info:
                name: 'Big Tree'
                description: 'Allows you to summon a big tree.'
                help: 'Type /bigtree and specify what type of big tree you want, then it will appear where you are looking.'
            permissions:
                - 'essentials.bigtree'
            categories:
                - 'Mordion Exclusive'
            commands:
                - '/bigtree tree'
            costs:
                use:
                    cost: 100
                    usecount: 1
     
  25. Offline

    andune

    I just implemented an economy on my server and this mod is one of the features my players are most excited about. Unfortunately since I just started, I started with iConomy 5 and it appears this mod doesn't support it yet. Is there any chance of an update coming soon? I would love to be able to use this mod on my server! Thanks.
     
  26. Offline

    Brandon Egnell

    ok like the last guy said it dosent support it (took it out) put in eco(essentials) and BOOM it takes my MONEY but says internal error has occured and like... no abilitiy . :( thats messed up bro.

    Show Spoiler
    02:28:11 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'bab'
    in plugin BuyAbilities v0.8.9
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85
    )
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:2
    55)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.
    java:677)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:640)

    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:634)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:372)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler
    .addUserPermission(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    at com.rcjrrjcr.bukkitplugins.util.permissionsinterface.PermYetiHandler.
    addPerm(PermYetiHandler.java:56)
    at com.rcjrrjcr.bukkitplugins.buyabilitiesplugin.AbilityManager.addPlaye
    rAbility(AbilityManager.java:63)
    at com.rcjrrjcr.bukkitplugins.buyabilitiesplugin.AbilityManager.useCount
    Ability(AbilityManager.java:99)
    at com.rcjrrjcr.bukkitplugins.buyabilitiesplugin.BuyAbilities.commandHan
    dler(BuyAbilities.java:518)
    at com.rcjrrjcr.bukkitplugins.buyabilitiesplugin.BuyAbilities.onCommand(
    BuyAbilities.java:220)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more
     
  27. Offline

    Endlvl

    This is such a beautiful plugin please update to iConomy 5.0 :'(
     
  28. Offline

    Thumm

    Yes! Please do :)
     
  29. Offline

    DragonSupremacy

    This should save on moderation work. Any chance the money from bought abilities can be directed towards a configurable account?

    Also, iConomy v5 please :)
     
  30. Offline

    Brandon Egnell

    v5 v5 v5 omg i cant wait i want v5 so BAD this is going to make my server sick when i can use it!:p
     
  31. Offline

    Valiant

    Hey man, I'm sure your working on it, but can't wait to enable this on my server one its on Eco v5. Thanks in advance bro.
     

Share This Page