ReferralCodes | [1.17-1.21] icon

ReferralCodes | [1.17-1.21] -----

A plugin for creating referral codes for content creators.



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".


obrázek_2024-12-19_234803804.png obrázek_2024-12-19_234831178.png obrázek_2024-12-19_234923024.png

discord (1).png

config.yml
Code (Text):
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
Code (Text):
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.
Resource Information
Author:
----------
Total Downloads: 13
First Release: Dec 19, 2024
Last Update: Dec 19, 2024
Category: ---------------
All-Time Rating:
0 ratings
Find more info at kijler.airmc.eu...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings