NameMCLikes
Do you want to reward players for liking your server on NameMC?
This plugin/API hybrid helps you with that.
Config
Code (Java):
The IP to your server
(
this has to be same as NameMC server
)
server
-ip
:
"example.com"
How often should the plugin check
for namemc likes
?
(in ticks,
default
=
10 minutes
)
check
-interval
:
12000
What rewards should be given to a newly liked user
?
(commands, use
%player
%
for the player
's name)
rewards: []
What commands should run when a person unlikes? (commands, use %player% for the player's name
)
unlike
-commands
:
[
]
Don
't touch, stores the data for the liked users.
liked-users: []
Setting the plugin up
- Install the plugin from SpigotMC.
- Place in your plugins folder
- Setup the config as you wish.
- Enjoy!
For developers
Do you want to, let's say, make your own rewards or your own events when someone likes? It's simple. Add this plugin as a dependency.
To check if a player has liked, use
Code (Java):
NameMCPlugin.
getInstance
(
).
hasLiked
(UUID uniqueId
)
To do your own code when someone likes, use the
Code (Java):
PlayerLikeEvent
.
That's it! If you like this library, I wouldn't mind a star on
GitHub.
Check out my Fiverr for custom orders
here.