Solved GAlistener Help

Discussion in 'Bukkit Help' started by DMstratz, Aug 9, 2014.

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

    DMstratz

    So i have the voting working and all that but its the rewards i need help with..

    so i have the rewards i want to give in each world. but is there a way they can get a reward
    depending on what world they are in? i.e

    voting in factions - $50
    voting in kitpvp - $120
    voting in creative - world edit permission for few hours
    voting in prison - tools
    voting in hunger games - special kit for set time
    voting in infected - limited weapons

    i can do each on there own easily. its just a way to get the reward depending on which world the person is in when they vote?
     
  2. Offline

    Wolf3141

    Sadly no, you'd have to request it as a new mod or a future feature of GAListener. I even fiddled around with variabletriggers but as there is no way for variabletriggers to check if a player is in a certain world it seems impossible, or at least unlikely.
     
  3. Offline

    SGrayMe

    I've not tested this, but if you have a permissions plugin that supports per-world permissions, you might be able to use the permission-based rewards to get the wanted results.
     
  4. Offline

    DMstratz

    ive looked and galistener doesnt come with permissions. each reward should come with a galistener.reward.<name> and you can put that in.. why is this not a thing..
     
  5. Offline

    SGrayMe

    Are you not refering to this GAListener?
    http://dev.bukkit.org/bukkit-plugins/give-anything-listener/

    As it does offer a config section for permission based rewards.

    Code:
    #  permission reward section
    #  This example would give players with the permission node "gal.double" 10 Diamonds instead of their regular reward.
     
    perms:
      double:
        broadcast: '{GREEN}{username} {GOLD}has voted @ {GREEN}{service} {GOLD}and received {GREEN}10 Diamonds!'
        playermessage: '{GREEN}Thanks for voting at {AQUA}{service}!'
        commands: 
        - '/give {username} 264 10'
    http://dev.bukkit.org/bukkit-plugins/give-anything-listener/pages/configuration/
     
  6. Offline

    DMstratz

    i meant each little reward you setup came with a permission.. like one you place in creative, factions etc.. so it sees youre in a world and because of the permission you have and gives you the correct rewards
     
  7. Offline

    SGrayMe

    DMstratz
    If you have a permissions system that supports people having permissions assigned only while they're in specific worlds, you could assign gal.worldfactions to people only while they're in the factions world and then integrate this to your GAL config.
    Code:
    perms:
        worldfactions:
            broadcast: '{GREEN}{username} {GOLD}has voted @ {GREEN}{service} {GOLD}and received {GREEN}$50!'
            playermessage: '{GREEN}Thanks for voting at {AQUA}{service}!'
            commands:
            - '/money give {username} 50'
    When they vote, if they're in the factions world, then the money give command will run for them. If you do the same thing for other worlds, such as gal.worldprison and a perms.worldprison section with command like "/kit tools {username}", then you should get the same effect. A person only gets the reward for the specific world because they only have the associated permission while in the correct world....the rewards for other worlds will not be provided if you don't make the permission nodes "global".

    The key thing is having a permissions system that does the per-world permission nodes (PermissionsEx, bPermissions, zPermissions are major ones).

    PEx Example
    Code:
    groups:
        default:
            worlds:
                factions:
                    permissions:
                    - gal.worldfactions
                prison:
                    permissions:
                    - gal.worldprison
     
Thread Status:
Not open for further replies.

Share This Page