Moda84TeamReferral ► ReferralSystem [1.18+] icon

Moda84TeamReferral ► ReferralSystem [1.18+] -----

Referral system for your server, best way to test the effectiveness of advertising



CONFIGURATION
config.yml
Defalut config with a description:
Code (YAML):

messages
:
    noref
: '&cReferral not found!'   ##If referral not found in referrals.yml
    neednum
: '&cArgument must be a number!' ##If a character is entered in the command, and a number was expected
    novalid
: '&cNo valid argument!' ##If the user submits an argument that doesn't fit.
    novalidcode
: '&cReferral code empty or deleted!' ##If "referrals.yml" is incomplete or disabled.
    neednumorsym
: '&cArgument must be a number or ?' ##It was necessary to configure the items, it is not used in the code now, but it is in the config.
    onlyplayer
: '&cThis command only for player!' ##If Console is sender
    wasused
: '&cYou already used this code!' ##If user has already used code
    successfully
: '&aSuccessfully!' ##If command is executed successfully
    noperms
: '&cNo perms for use this command!' ##If user no perms for use command
commands
: ##contains messages when writing the /referral command. (changing this parameter will not change the commands themselves)
    main
: '&c/referral [CODE ]'
    create
: '&c/referral create [CODE ]'
    set
: '&c/referral set [CODE ] [ITEM/CMD/MSG ] [NUMBER ] [ID:AMOUNT/CMD/MSG ]'
    setmax
: '&c/referral setmax [CODE ] [NUMBER ]'
    remove
: '&c/referral remove [CODE ] [ITEM/CMD/MSG ] [NUMBER ]'
    info
: '&c/referral info [CODE ]'
    close
: '&c/referral close [CODE ]'
status
: ##contains a message when entering the command /referral info [Code].
    enable
: '&6Enable:'
    counter
: '&6Was used:'
    limit
: '&6Use limit:' ##maximum amount of usage before code is turned off.
    items
: '&6Items:'
    cmds
: '&6Commands:'
    msg
: '&6Message:'
    string
: '&f [&6 %num%&f]&e' ##it will help to change the brackets in which the number of the subject/ team is indicated (%num% is the number)
 


referrals.yml
Example referalls config with a description:
Code (YAML):

Referrals
: ##Main category
  example
: ##Your code (/referral create [Code])
    enable
: 'true' ##By default, value is set to true if you have just created the code.
    COUNTER
: '0' ##Number of uses
    MAXCOUNT
: '5' ##Maximal number of uses before disabling the code
    ITEMS
: ##Items ¯\_(ツ)_/¯
      '1'
: STONE:1 ##'1' - serial number; STONE - id of item (without minecraft:), 1 - amount of STONE
      '2'
: GLASS:32
      '3'
: DIRT:? ##? - random amount (1-64)
    CMDS
: ##Commands
      '1'
: say Hello World! ##'1' - serial number; say Hello World! - command
      '2'
: /time set day ##You can use "/" in command and plugin will ignore its presence.
      '3'
: give %player% stone 1 ##You can use %player% for get sender of command /referral [Code]
    MSG
: '&eYay, u get stone, glass and dirt &2Why? idk' ##Message after receiving prizes
    PLAYERS
: '' ##List of players, who received prize
 
Resource Information
Author:
----------
Total Downloads: 153
First Release: Mar 17, 2022
Last Update: Mar 17, 2022
Category: ---------------
All-Time Rating:
1 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings