ReferGift v1.0.9 If you refer a friend to the server your on, the server will gift you a configurable item with a configurable amount! For you to recieve this gift you must have your friend type /referedby <yourname>. Description: safety Checks so people cant constantly refer themselves or friends. command locking system. Command only can be used once per person. configurable gifts with amounts. broadcasts who refered whom. saves a list in the config of who used the command. saves a list in the config of who refered whom. Commands: checks plugin version /rg version refering command /referredby <name> reloads config + server /rg reload player wasnt refered but still receives gift /notreferred Permissions: Code: refergift.config.reload refergift.referrals refergift.referredby refergift.notreferred refergift.version Requirements: Vault + any permissions system + economy Configuration Template: Spoiler (Move your mouse to the spoiler area to reveal the content) Show Spoiler Hide Spoiler Code: # ReferGift refergift: title: ReferGift alreadyreferred: You have already been listed! getreferredby: ' got referred by ' YouWereRewarded: You have been rewarded thanksfor: 'Thanks for refering ' configreloaded: Configs reloaded! noreferself: You can't refer yourself you silly goose! confignoperms: No permissions to reload config! playernotavailable: Player is not available! offlinegiftmsg: Thanks for refering a player to the server! wereyoureferred1: If you were referred to this server type or if you were not referred type wereyoureferred2: /referredby <player> wereyoureferred3: /notreferred savingitemtofile: Saving gift to file! referredgeneralnoperms: No permissions to use /referredby! notreferredmsg: Thanks for choosing our server! playerreferralamount: ' referred ' notreferrednoperms: No permissions to use /notreferred! playersingular: ' player' playerhasnoinfo: has not referred a player! playermultiple: ' players' nicetrynoloopholes: Nice try! Dont use loopholes! alreadynotreferred: You have already referred someone! ranoutoftimemsg: You ran out of time to refer someone! You cannot try again! thanksforgiftmsg: Thanks for refering a player to our server! notreferredmsg2: You said that you were not referred! You cannot try again! versionnoperms: No permissions to check version! typetochat: type /chat on totalnoperms: No permissions to check referring totals! welcomemsg: 'Welcome back ' thereferrer: You have referred someone. You cant be the referred one! gift: '56' notreferred: gift: gift: '56' amount: 1 moneyamount: 10 amount: 1 referredby: moneyamount: 10 delay: 1200 money: switch: true welcomemessage: switch: true Code: #DO NOT EDIT THIS FILE. IF YOU DO THERE WILL BE ERRORS! I WILL NOT SUPPORT THOSE WHO EDIT THIS FILE! #THIS FILE CONTAINS ALL LISTS THAT ARE USED TO STORE PLAYER NAMES! #NotReferred #ReferredList #RewardSave #TheReferred #TheReferrer Gifts run off of IDs. thereferred = the referred player referredlist = list of who refered whom. thereferrer = who referred the player notreferred = who wasnt referred nochatting = list of who cant chat rewardsave = who gets their offline reward welcomemessage:switch: true When this is set to true, all returning players will receive a welcome message. When this is false they wont get the message. money:switch: true When this is set true then the player will receive money instead of blocks. Metrics: http://mcstats.org/plugin/ReferGift Download: https://dl.dropbox.com/u/1015938/plugins/ReferGift.jar BukkitDev: http://dev.bukkit.org/server-mods/refergift/ Todo: Spoiler (Move your mouse to the spoiler area to reveal the content) Show Spoiler Hide Spoiler proper chatting system Changelog: v1.0.8 - Semi rebuilt Fixes all deprecations. Fixes a couple silly command issues. Removed chatting system till I get a proper one going. started working on a new arraylist system. v1.0.9 - small update Cleaned up plugin. file size is smaller adds seperate file for arraylists only. Loads, saves, and fully understands the new file. file is called "lists.yml". its' located with the default config in the ReferGift folder. Shutoff server and delete the old refergift folder. Start server with v1.0.9 installed and the new file will generate. Why should you delete the other config? It just prevents errors. Issues: Plugin wont work? Follow this form. Plugin version your running - Server version your running - Java version your PC/server is running - What did you do that caused this error? Be specific! - Are you renting a server or are you dedicated? yes or no - Provide photo evidence or possible video evidence. - Getting a NPE? Any errors popping up in the console? Show me them within a - Code: if you find any - Spelling issues backward configs bad permission nodes or any other ridiculous issues post them here politely. Common errors while using my plugins: Lists not saving to correct location: Fix - Stop server, delete config, restart server. ReferGift by William Bakunis is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.Based on a work at ReferGiftPermissions beyond the scope of this license may be available at TopGear93 Profile.