Giving Rewards

Discussion in 'Plugin Development' started by crushh87, Jan 15, 2013.

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

    crushh87

    Trying to give the winner of a boxing match a reward, and i am kinda stuck any help leading me in the right direction would be much appreciated.

    Code:
    new ItemStack(plugin.getConfig().getInt("WinnerReward"));
                    plugin.getConfig().getInt("WinnerReward.Amount");
                    
    and my config:
    Code:
    # Boxing Configuration File :)
    # Made By: crushh87!
    # Version 1.3
     
    #set rewards to nothing, to ignore rewards.
    WinnerReward: INT
    LoserReward: INT
     
  2. Offline

    microgeek

    When a player dies, check the last damage cause, and if it was a player, reward the killer.
     
    TheTrixsta likes this.
  3. Offline

    TheTrixsta

    also make sure the killer is an instance of a player
     
Thread Status:
Not open for further replies.

Share This Page