A plugin for creating referral codes for content creators. Creators have their own codes, which they share with new players. After a player uses the code, they receive a starting reward, and the creator whose code was used can run the command "/ref claim" to collect all the rewards for sharing their code.
/ref claim - It is for the owners of referral codes to claim rewards.
/ref <code> - It is used to apply the given referral code.
/ref reload - It is used to reload the plugin.
To use the command "/ref reload", you need to have OP or the permission "referral.admin".
config.yml
messages:
only-players: "&6&lReferral Codes &8- &7This command can only be used by players."
usage: "&6&lReferral Codes &8- &7Usage: /referral <claim|reload|code>"
already-used: "&6&lReferral Codes &8- &7You have already used a referral code."
cannot-use-own: "&6&lReferral Codes &8- &7You cannot use your own code."
code-used: "&6&lReferral Codes &8- &7You have used the code of player %owner%."
invalid-code: "&6&lReferral Codes &8- &7Invalid code."
no-rewards: "&6&lReferral Codes &8- &7You have no unclaimed rewards."
rewards-claimed: "&6&lReferral Codes &8- &7You have claimed all your rewards."
no-permission: "&6&lReferral Codes &8- &7You do not have permission to use this command."
reloaded: "&6&lReferral Codes &8- &7Configuration has been reloaded."
referral-codes.yml
codes:
ExampleNick:
code: "EXAMPLECODE"
uses: 0
reward-command: "msg %player% You used the player's code %player%"
claim-command: "msg %player% You have claimed all your rewards."
Kijler: #Content creator nick
code: "Kijler" #Always use a different creator's code than the previous one.
uses: 0 #The number of uses of the code.
reward-command: "msg %player% You used the player's code %player%" #The command that is triggered when a player uses the given code.
claim-command: "msg %player% You have claimed all your rewards." #The command that is triggered when the creator claims the reward using /ref claim.
By downloading this file, you agree not to resell the plugin or present it as your own product.
Please do not use reviews to report any bugs please report any bugs directly on my Discord server.
I'll appreciate positive reviews so I know to keep going.
If you have any ideas for additions, please write to me on the Discord server.
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta