ReferredByMe
ReferredByMe is a plugin that allows users to refer other users to the server, letting them get rewards in return, and you to get more players to join your server. This plugin is still early in development, and so if you find any bugs, please let me know so I can fix them as soon as possible. Feel free to make suggestions too.
Commands and Permissions;
Usage - description - permission
- /refer <player> - Says who referred them to the server - ReferredByMe.refer
- /referinfo [player] - Gets information on the player. Who referred them, and how many people they have referred. - ReferredByMe.info
- /referversion - Checks information on the version you are using - ReferredByMe.version
- /referreload - Reloads the config file - ReferredByMe.reload
- /referleader - Checks which player has the most referrals - ReferredByMe.leader
- /referrank - Checks which player has the most referrals - ReferredByMe.leader
- /referconfig - Edits the config in-game - ReferredByMe.config
- /referclaim - Claims unclaimed rewards - ReferredByMe.claim
ReferRank LeaderBoard Signs
You can now create leaderboards from signs. Just type;
- [referrank]
- <which rank>
- This will produce a sign that says
- [referrank]
- <rank>
- <player>
- <Referrals>
- Signs update whenever you right-click them.
Features
- Stops players from referring themselves
- Doesn't allow players to use the /refer command, if someone else has claimed they were referred by this user. This is to prevent people from doing a "I refer you and you refer me" sort of thing.
- Doesn't allow users to say they have been referred by someone, if they claimed they have already been referred by another user.
- Customizable messages
- Customizable Rewards. After a certain amount of referrals, or every time a user refers a certain number of players. You may use as many tiers as you wish.
- Stops players from referring users that have the same IP. This is to prevent users from referring themselves with alternate accounts.
Config
Users who are updating from V0.5.1 or earlier, must change the config to follow the style shown here, otherwise, there will be a lot of bugs. http://dev.bukkit.org/server-mods/referredbyme/pages/example-config/
The config allows you to change the messages that appear on the screen, and edit the rewards. When a player gets a certain amount of rewards, then a command will be executed from the console. If you want the player to get a reward every time they referred someone, set "Recurring" to '1'. Variables: {player} - Replaced by the player who joined/executed the command {target} - The player a command is targeted to.
To disable Welcome messages, set WelcomeMessage, ReferElse and/or ReferredBy to ''. (double apostrophe)
Planned Future Features
- MySQL support.
Bugs and Requests
If you find a bug, or just want something added to the plugin, use the ticket system. It's easier on me than using the comments below. Make sure the bug/request hasn't already been posted before posting and that you are using the latest version.
Open Source
ReferredByMe is open-sourced. Feel free to take a look at the code, or even contribute to it. Source on GitHub
-
View User Profile
-
Send Message
Posted Aug 1, 2013hi, the plugin works but I get these errors. I know what it says but I can't find the errors it displays in my config, could you help me please? i'll send a link with my config later :)
org.bukkit.plugin.java.JavaPlugin.reloadConfig(JavaPlugin.java:117) 01.08 13:05:44 [Server] INFO at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:175) 01.08 13:05:44 [Server] INFO at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:105) 01.08 13:05:44 [Server] INFO at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:138) 01.08 13:05:44 [Server] INFO at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55) 01.08 13:05:44 [Server] INFO ^ 01.08 13:05:44 [Server] INFO - give {target} 42 01.08 13:05:44 [Server] INFO in "<string>", line 64, column 3: 01.08 13:05:44 [Server] INFO expected <block end>, but found BlockEntry 01.08 13:05:44 [Server] INFO ^ 01.08 13:05:44 [Server] INFO Tiers: 3 01.08 13:05:44 [Server] INFO in "<string>", line 60, column 3:
-
View User Profile
-
Send Message
Posted Jul 28, 2013Uploaded V0.7, just need to wait for bukkit to approve it.
Rewards are no longer executed immediately, instead you must use /referclaim to claim any unclaimed rewards.
-
View User Profile
-
Send Message
Posted Jul 27, 2013@cmasson
The player who you used /refer for, is not online, and therefore couldn't receive their rewards. Try it with someone who's online and it should work.
I'll try add an on-command feature to V0.7, where players would receive their rewards using commands, rather than immediately.
-
View User Profile
-
Send Message
Posted Jul 27, 2013@obscurehero
Their isn't an error, the can't find user is something "printed" by the console :)
-
View User Profile
-
Send Message
Posted Jul 27, 2013ty! :)
-
View User Profile
-
Send Message
Posted Jul 26, 2013V0.6 has been uploaded, and I am now just waiting for bukkit to approve it.
-
View User Profile
-
Send Message
Posted Jul 25, 2013Sorry for the huge absence, but I'm back now, and V0.6 should be out shortly. If you need a working version for 1.6.2, you may use this (Updated by @obscurehero ) Note:This build is unofficial and has not been approved by the bukkitdev staff. Use at your own risk.
@cmasson Ticket based on this error. (Not Resolved)
@obscurehero Thank you for updated the plugin and adding multiple commands per tier whilst I was gone :)
-
View User Profile
-
Send Message
Posted Jul 23, 2013@cmasson
I'm not sure why it 'can't find user' for you. Is the user that you're using /refer for in the config? Is the 'cant find user' something printed to console or is it an error in-game?
-
View User Profile
-
Send Message
Posted Jul 23, 2013thank you to update but it still won't work
-
View User Profile
-
Send Message
Posted Jul 21, 2013@Ultimga Ok, I built this against 1.6.2 and I also added the ability to execute mutliple commands for each tier and for the recurring command. It looks ugly, lots of repetitive code... I'll clean it up later...
It's not official, but I submitted a PR if laxynd comes back...so, obviously use at your own risk. Format your config.yml similar to this. You can add as many commands as you'd like here...
-
View User Profile
-
Send Message
Posted Jul 20, 2013It always says "can't find user", I like this plugin very much, please fix this. :)
-
View User Profile
-
Send Message
Posted Jul 4, 2013This doesn't seem to be working for 1.6.1! When will an update be released?
-
View User Profile
-
Send Message
Posted Jun 14, 2013@obscurehero
Ok thanks
-
View User Profile
-
Send Message
Posted Jun 14, 2013@Ultimga
not the way the sourcecode is written. It only sends one argument to the commandsender (ie to console) you need to find a way to send multiple commands in one argument. The only way I knew how to do that without modifying the source was to use a scripting plugin.
I'm poking my nose into the java (it's been 10 years since I took my intro to java course...eek) and it 'seems' relatively simple (no offense to laxynd its an awesome plugin). If I figure out how to make the changes I need, figure out how to compile it, and then push it back to github... I'll let you know...at least until laxynd comes back.
-
View User Profile
-
Send Message
Posted Jun 14, 2013Are you able to do multiple commands for a single tier? Ex:
-
View User Profile
-
Send Message
Posted Jun 9, 2013@milesmcc
I'm getting this too, if I find a fix, I'll tell you.
-
View User Profile
-
Send Message
Posted Jun 9, 2013@obscurehero
Sooo, I solved this issue myself. Used commandhelper and created a script for myself
-
View User Profile
-
Send Message
Posted Jun 6, 2013@laxynd -
I'm trying to use Commandr: to give a reward both to the {player} and the {target} but I can't figure out how to have two commands sent. Near as I can tell the code is set to only accept one argument and then send that to the console.
Am I missing a way to do this?
-
View User Profile
-
Send Message
Posted Jun 1, 2013Whenever a player types /refer <player>, it says "player not found" when the player is online.
Any ideas?
-
View User Profile
-
Send Message
Posted May 18, 2013The players section of my config.yml is doing some strange stuff...
It adds the players when they login. Then, when they do /refer, it adds another entry, but puts §f in front of their name.
Players are also not receiving rewards when someone uses /refer.