AffiliateDomain icon

AffiliateDomain 1.8.0

⭐ SELF-ADVERTISING SERVER ⭐ REWARD PLAYERS FOR SHARING YOUR IP ⭐

BEFORE YOU PURCHASE THIS PLUGIN, PLEASE NOTE THAT YOU NEED A DOMAIN TO USE THIS PLUGIN PROPERLY (eg. yourdomain.org). THIS MUST NOT BE CONFUSED WITH AN IP, WHICH WILL NOT BE SUFFICIENT (eg. 127.0.0.1)

HELP ME ADVERTISE THIS RESOURCE AND GET PAID, HIT ME UP ON DISCORD Creeper#7327

Y7kBmQW.png

V3852QP.png
The point of AffiliateDomain is to help your server gain more players by making your players advertise your server FOR you.

Nu3qJh8.png
  • Instant subdomain creation
  • Command based reward system, trigger rewards containing money/items/anything you can get via. command
  • Command based trigger system, trigger rewards when players join/donate/vote
  • Extensive commands, including info about players and domains
  • Fast async cloudflare calls, basically zero impact on server performance
  • Language files, edit every message the plugin has to your own language if needed
  • Plenty of upcoming features written in the discord, feel free to post others!

urL6kAO.png
As server owners, we are usually spending a lot of our time advertising our server. Some server owners even pay youtubers or server list sites to advertise their server for them. AffiliateDomain encourages the players on your server to do the advertising, by letting you reward your players for sharing your server IP (or more correct, a domain that leads to your server).

I’ll explain the concept of the plugin by giving an example in four simple steps.
  1. Player1 runs the command ‘/ad new player1’ in-game. Within seconds a subdomain is set up and can be used to join your server. The domain will be player1.example.org
  2. Player1 shares the domain on his social media, spreading word about your server to the world.
  3. Player2 uses the domain ‘player1.example.org’ that he got from Player1 to join your server
  4. The plugin now rewards Player1 when Player2 joins/donates/ranks up (rewards and reward triggers are 100% customizable by you)

D6viX9D.png
  • An available domain
  • 5 minutes of your time to complete setup
LwML24p.png
Registering on cloudflare: (If your domain is already registered on cloudflare, you can skip these steps)
  1. Make an account on cloudflare. If you already have one, just log in.
  2. In the top bar of cloudflare, press “Add site”

[dropdown=How to add a site to cloudflare]
Start off by clicking "Add site" in the top right corner of cloudflare.
yitqxjk.png
Type the the name of the domain you wish to be using as an affiliate domain.
sPpRrgI.png
Select a plan. The free plan works just as well as any of the other plans for the purpose we'll be using it for with affiliate domain. When you have selected a plan, press continue.
XoPhMSm.png
Wait for cloudflare to import your DNS records, this might take a few seconds.
When cloudflare has imported your DNS records, verify that the records matches what your domain registrar has registered (they most likely do) and press continue.
You now have to select a method for moving your domain to cloudflare. If you want to transfer your domain to cloudflare, select that option. It is however not necessary, and for this tutorial I will be selecting the default method.
n81R7SN.png
You will now have to change your nameservers. This is done on the site of your domain registrar, so this is a different approach depending on which site you have chosen. Just follow the tutorial on cloudflare, and when you are done, press "Done, check your nameservers".
You will now meed the quick start guide, feel free to check out the domain settings which cloudflare offers, but for this tutorial we will just skip those by pressing "finish later".
yYPagpA.png

You may now get one of two messages:
Message 1.
PMrb8lZ.png
Your transfer is completed, but you'll have to wait a little while until cloudflare has verified that you have changed your nameservers properly.
Message 2.
3ota0GE.png
Your transfer is successful.
[/dropdown]
Getting required values for config.yml:
email:
This is the email you use to log in on the cloudflare site.
api-key:
  1. Follow this link to your api-tokens (make sure you're logged in)
  2. Locate your “Global API Key” and press “View”
  3. Type your password and fill out the Captcha
  4. Click inside the box that says “Your API Key” to copy the API key.

zone:
  1. Go to your homepage on cloudflare. If you are logged in, your homepage will appear when you press the cloudflare logo in the top left corner.
  2. Click the domain you wish to use with AffiliateDomain
  3. Scroll down, in the menu to the right you will see a field named “Zone ID”. That’s your zone ID, click the box to copy it.

IP:
This is the number IP used for your server. This can be found on the site of your server hosting service. It looks something like this “127.0.0.1”.
Please note: An IP address is made out of numbers. It cannot be a domain name such as myserver.hostingservice.com

Setting up the BungeeCord extension
Go to this page and follow the two steps - it's pretty  simple.

XpXXcn9.png
[dropdown=/ad new (prefix) (player)]
Usage:
Creates a new affiliate domain with specified prefix that belongs to specified player. If no player is specified, the subdomain will belong to the player executing the command. If no prefix is specified, the prefix is a string of random letters.
Examples:
  • Player1 runs ‘/ad new’ →  the subdomain insjr.yourdomain.org links to Player1
  • Player1 runs ‘/ad new epic’ →  the subdomain epic.yourdomain.org links to Player1
  • Player1 runs ‘/ad new boom Player2’ → the subdomain boom.yourdomain.org links to Player2.
[/dropdown][dropdown=/ad delete ]
Usage:
Deletes a subdomain with a specified prefix. This also deletes the subdomain records on cloudflare.
Examples:
  • ‘/ad delete epic’ → the subdomain epic.yourdomain.org is deleted
[/dropdown][dropdown=/ad test ]Usage:
Tests a subdomain prefix to see who it belongs to and to check if it’s registered.
Examples:
  • ‘/ad test epic’ → tells you who the owner is of the subdomain epic.yourdomain.org, if the prefix is registered.
[/dropdown][dropdown=/ad listrewards]Usage:
Lists all the rewards you have created in your rewards.yml, this also informs you about the amount of triggers and tasks each reward has.[/dropdown][dropdown=/ad trigger (player)]Usage:
Triggers a reward for a player. This command is very essential to the plugin, and it’s important to note that it does not grant the reward to the specified player, but to the player responsible for the join of the player.
A common use for this command, would be to trigger a reward when a player donates on your server, as shown below.
Example:

  1. Player1 sets up a custom domain and shares it to Player2
  2. Player2 joins with Player1’s domain
  3. Player2 donates on your server, triggering the following command from console ‘/ad trigger your_donation_reward Player2’
  4. Player1 receives the reward named your_donation_reward specified in rewards.yml.

[/dropdown][dropdown=/ad attach ]Usage:
Attach a player to a subdomain. If a reward is triggered for said player, the owner of the subdomain will receive the reward.[/dropdown][dropdown=/ad detach ]Usage:
Detach a player from their subdomain, this leaves them without a subdomain, and if a reward is triggered for this player, nobody will recieve the reward.[/dropdown][dropdown=/ad link (player) ( cloudflare request>]Usage:
Link a player to an already existing cloudflare domain without having to delete it and then use '/ad new'. If cloudflare request is set to true, the plugin will check if the subdomain exists before applying the plugin.
Example:
  • '/ad link testeroni Player1 true' - links the player Player1 to the subdomain testeroni if it exists.
[/dropdown][dropdown=/ad info ]
Usage:
Get information about a subdomain or a player
Example:
  • '/ad info player Player1' - get information about Player1 (their owned subdomain, attached subdomain and more)
  • '/ad info subdomain test' - get information about the subdomain "test" (owner name, ID and more)

[/dropdown][dropdown=/ad reload]Usage:
Reloads config.yml[/dropdown]

Argument syntax: (optional)

toCLUE0.png
  • affiliatedomain.new - create a new subdomain using the command /ad new
  • affiliatedomain.new.custom - create a new subdomain with a custom prefix using the command /ad new (prefix)
  • affiliatedomain.new.others - create a new subdomain that links to another player using /ad new (prefix) (player)
  • affiliatedomain.delete - delete a subdomain using /ad delete
  • affiliatedomain.test - test a domain using /ad test
  • affiliatedomain.trigger - trigger a reward for a player using /ad trigger (player)
  • affiliatedomain.attach - attach a player to a subdomain using /ad attach
  • affiliatedomain.detach - detach a player to a subdomain using /ad detach
  • affiliatedomain.info - use the command /ad info
  • affiliatedomain.reload - reload the config using /ad reload

kich3RJ.png
[dropdown=PlaceholderAPI]
AffiliateDomain currently has 6 placeholders. They are as following:
  • %affiliatedomain_domain% - The full domain which the player owns. Example: 'subdomain.yourdomain.org'
  • %affiliatedomain_subdomain% - Shows only the subdomain which the player owns. Example: 'mysubdomain'
  • %affiliatedomain_affiliates% - Shows the amount of unique joins from the subdomain the player owns.
  • %affiliatedomain_attached% - Shows the full domain which the player is attached to. Example: 'subdomain1.yourdomain.org'
  • %affiliatedomain_subattached% - Shows the subdomain the player is attached to. Example: 'notmysubdomain'
  • %affiliatedomain_attached_owner% - Shows the owner of the subdomain the player is attached to. Example: 'SubdomainOwner123'
[/dropdown]

xlTaqja.png

If you have any questions regarding this plugin, want to report a bug, want to see the plugin in action or want to suggest a feature. Please contact me in this discord group: https://discord.gg/jtd9pG4 or under 'discussions' in this resource. I am very likely to respond quickly and help you with your problem.

[dropdown=TOS]
By purchasing the AffiliateDomain plugin you agree to the following terms and conditions!
1) You may not decompile or edit the source code without written permission from the developer
2) I am not obliged to provide support (although I most likely will)
3) You acknowledge that there will be NO REFUNDS issued and you will not file a chargeback, dispute, or claim through PayPal.
4) You will not redistribute the AffiliateDomain plugin or any of its source code publicly or privately.
5) If you do not follow the conditions above I can at any time revoke your access to the plugin and its future versions.
[/dropdown]

NZ2Z5XQ.png

The plugin uses TaskChain by Aikar, which I’m very grateful for.

If you use the reviews section to report bugs, you will be given less priority! Hit me up in the discord for maximum priority clear.png