forked from RapahelS/ReferralDomains
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed to spigot plugin more support for functions. And works perfect Forked from https://github.com/RapahelS/ReferralDomains He added CNAME & A RECORD support Updated to support 1.21.1+
- Loading branch information
Showing
21 changed files
with
131 additions
and
27 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# ReferralDomains by xIdentified | ||
# Join Discord for support - https://discord.gg/rV7emXHSjp | ||
|
||
cloudfare-api-key: <PASTE_YOUR_KEY_HERE> | ||
zone-id: <ZONE_ID_HERE> | ||
server-ip: 0.0.0.0 | ||
server-port: 25565 | ||
domain: "archforge.net" | ||
record-type: "A" # or "CNAME" | ||
# cname-content: "dynDNS or other domain" # Domain for CNAME-Record | ||
|
||
referrer-rewards: | ||
- 'give {player} diamond 5' | ||
- 'eco give {player} 1000' | ||
- 'say Thanks for referring a friend, {player}!' | ||
referrer-random-reward: true # if false they'll get all rewards instead | ||
|
||
new-player-rewards: | ||
- 'give {player} iron_ingot 10' | ||
- 'eco give {player} 500' | ||
- 'say Welcome to the server, {player}!' | ||
new-player-random-reward: true | ||
|
||
required_online_minutes: 10 # How long does the new player need to stay online before both players get rewards? | ||
allow_same_ip_referrals: false | ||
|
||
debug_mode: false |
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+2.04 KB
target/classes/me/xidentified/referraldomains/ReferralDomains$1.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+3.68 KB
target/classes/me/xidentified/referraldomains/commands/CheckDomainCommand.class
Binary file not shown.
Binary file added
BIN
+2.25 KB
target/classes/me/xidentified/referraldomains/commands/ReferralCountCommand.class
Binary file not shown.
Binary file added
BIN
+8.91 KB
target/classes/me/xidentified/referraldomains/commands/ReferralLinkCommand.class
Binary file not shown.
Binary file added
BIN
+4.04 KB
target/classes/me/xidentified/referraldomains/commands/RemoveReferralCommand.class
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: ReferralDomains | ||
version: '1.4' | ||
main: me.xidentified.referraldomains.ReferralDomains | ||
api-version: '1.19' | ||
commands: | ||
referral-link: | ||
description: Generate a referral link | ||
usage: /<command> | ||
referralcount: | ||
description: Check the number of players you've referred | ||
usage: /<command> | ||
check-domain: | ||
description: Check the status of a player's referral domain | ||
usage: /<command> <playerName> | ||
remove-referral-link: | ||
description: Delete a player's referral DNS record | ||
usage: /<command> <playerName> | ||
testreferral: | ||
description: Simulate a referral for testing purposes | ||
usage: /<command> <referrer> <referred> | ||
permission: referral.admin | ||
permissions: | ||
referral.create: | ||
description: Allows creation of referral links | ||
default: true | ||
referral.check: | ||
description: Allows you to check status of a player domain | ||
default: op | ||
referral.admin: | ||
description: Allows use of admin commands (remove links, etc) | ||
default: op |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
artifactId=ReferralDomains | ||
groupId=me.xIdentified | ||
version=1.4 |
9 changes: 9 additions & 0 deletions
9
target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
me\xidentified\referraldomains\commands\CheckDomainCommand.class | ||
me\xidentified\referraldomains\commands\ReferralLinkCommand.class | ||
me\xidentified\referraldomains\commands\RemoveReferralCommand.class | ||
me\xidentified\referraldomains\SQLiteStorage.class | ||
me\xidentified\referraldomains\EventListener.class | ||
me\xidentified\referraldomains\PlaceholderAPI.class | ||
me\xidentified\referraldomains\ReferralDomains$1.class | ||
me\xidentified\referraldomains\commands\ReferralCountCommand.class | ||
me\xidentified\referraldomains\ReferralDomains.class |
8 changes: 8 additions & 0 deletions
8
target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
C:\Users\Sven\IdeaProjects\ReferralDomains\src\main\java\me\xidentified\referraldomains\ReferralDomains.java | ||
C:\Users\Sven\IdeaProjects\ReferralDomains\src\main\java\me\xidentified\referraldomains\commands\CheckDomainCommand.java | ||
C:\Users\Sven\IdeaProjects\ReferralDomains\src\main\java\me\xidentified\referraldomains\commands\ReferralLinkCommand.java | ||
C:\Users\Sven\IdeaProjects\ReferralDomains\src\main\java\me\xidentified\referraldomains\SQLiteStorage.java | ||
C:\Users\Sven\IdeaProjects\ReferralDomains\src\main\java\me\xidentified\referraldomains\commands\RemoveReferralCommand.java | ||
C:\Users\Sven\IdeaProjects\ReferralDomains\src\main\java\me\xidentified\referraldomains\EventListener.java | ||
C:\Users\Sven\IdeaProjects\ReferralDomains\src\main\java\me\xidentified\referraldomains\PlaceholderAPI.java | ||
C:\Users\Sven\IdeaProjects\ReferralDomains\src\main\java\me\xidentified\referraldomains\commands\ReferralCountCommand.java |
Binary file not shown.