Added tab complete for +rep, -rep and /referme commands
Added [player_as_op] as action for commands. Uses custom CommandSender to ensure safety
Fixed rep system letting you give unlimited rep
Fixed error when using close or pages button on invites list
Removed debug message from earlier testing versions
Added PLAYER_NOT_REP message
Added to messages.yml:
Code (YAML):
PLAYER_NOT_REP: '
%prefix% &fYou`ve not given rep to &e%player%&f. Try someone else!'
Comments changed for files (you don't really need to do this if you're updating from an earlier version):
Code (YAML):
#Use the following under Items if you want to add extra functionality to any item #[playercmd] [consolecmd] [playermsg] [playermsg] [broadcast] [player_as_op]
Rewards: #The rewards that will be given to the player who is redeeming a code redeem: - '
[consolecmd
] give
%player% iron_block 5' - '
[consolecmd
] referme +points
%player% 10' - '10
%~ [consolecmd] give %player% iron_block 3'
admin_command_help: - '
%prefix% &c&lADMIN COMMANDS:' - ''
- '&d/referme reload &7- &fReloads
all files and inventories'
- '&d/referme setpoints
[player
][amount
] &7- &fSets points to the specified amount for the player'
- '&d/referme +points
[player
][amount
] &7- &fAdds the specified amount of points for the player'
- '&d/referme -points
[player
][amount
] &7- &fSubtracts the specified amount of points for the player'
- '&d/referme setreferrals
[player
][amount
] &7- &fSets referrals to the specified amount for the player'
- '&d/referme setrep
[player
][amount
] &7- &fSets rep to the specified amount for the player'
Fixed no message when player redeems before or after time to redeem
Fixed and modified tab completion for commands
Changes soon, will be getting more updates from now on
Added to messages.yml:
Code (YAML):
REDEEM_TOO_EARLY: '
%prefix% &cYou need to play for at least &e%time_remaining% seconds &cmore to redeem this code!' REDEEM_TOO_LATE: '
%prefix% &cThe time to redeem this code has expired!'
Added /referme setRedeemAmount <player> <amount> to set the amount of redeemed codes for the player if it wants to be lowered or increased. Uses 'referme.manage.referrals' permission.