About Rewards for Online
Allows administrators to set rewards and players to receive rewards for time spent on the server
Features:
-
This plugin will provide your players with rewards for the time they spend in the game.
-
Allows you to set one or more rewards that are issued randomly.
-
Allows you to set currency as reward.
-
Allows you to bind GUI.
-
Allows you to change "menu open" command (After changing the command, delete the lang file and restart the plugin.).
-
Allows you to set your server and currency logo, and also set currency name.
-
Allows you enable/disable the reward notification.
-
Has an informative and beautiful GUI.
-
GUI can be fully customized using config.
Commands:
/rmenu - open 'Rewards for Online' menu
/setreward - set reward(s)
/removereward - remove reward
/showrewards - opens list of time and reward
Configuration file:
{ "Time rewards (in seconds)": {}, "Command to open the rewards menu": "menu", "GUI Settings": { "Main Panel Background": "0.1 0.1 0.1 0.95", "Main Panel Material": "assets/content/ui/uibackgroundblur-ingamemenu.mat", "Info Panel Material": "assets/content/ui/uibackgroundblur-ingamemenu.mat", "Info Panel Background Color": "0.1 0.1 0.1 1", "Info Panel Font": "robotocondensed-bold.ttf", "Title Color": "0.95 0.95 0.95 1", "Title Font": "robotocondensed-bold.ttf", "Title Font Size": 26, "Text Color": "0.8 0.8 0.8 1", "Text Font Size": 14, "Text Font": "robotocondensed-bold.ttf", "Timer Text Font": "robotocondensed-bold.ttf", "Button Text Font Size": 11, "Button Text Font (Claim/wait/claimed)": "robotocondensed-bold.ttf", "Close Button Font": "robotocondensed-bold.ttf", "Close Button Font Size": 14, "Close Button Color": "1.0 0.4 0.4 1", "Button Claim Color": "0.3 0.6 0.2 1", "Button Wait Color": "0.7 0.3 0.2 1", "Button Claimed Color": "0.4 0.4 0.4 1", "Button Text Color": "1 1 1 1", "Reward Button Text Color": "1 1 1 1", "Card Background": "0.15 0.15 0.15 0.7", "Card Time Color": "0.9 0.9 0.9 1", "Card Reward Color": "1 1 1 1", "Icon Color": "1 1 1 1", "Reward Item Text Color": "0.9 0.9 0.9 1", "Reward Item Font Size": 10, "Page Number Font": "RobotoCondensed-Bold.ttf", "Page Number Font Size": 14, "Page Number Color": "0.8 0.8 0.8 1", "Right Switch Page Button Color": "0.3 0.3 0.3 0.8", "Left Switch Page Button Color": "0.3 0.3 0.3 0.8", "Dividing Line": "0.3 0.3 0.3 0.5", "Fade in number (0f - 1f)": 0.2 }, "Title text": "Your server name!", "Currency Image URL (for ImageLibrary)": "https://github.com/StuffyWhip/Icons/blob/main/Coins.png?raw=true", "Logo Image URL (for ImageLibrary)": "https://i.imgur.com/znQvBMi.png", "Currency key (what you write in /setreward)": "coins", "Currency display name (what shows in menu)": "coins", "Show help message on connect?": true, "Enable chat notification when reward is available?": true, "Close button sound": "assets/bundled/prefabs/fx/notice/loot.drag.dropsuccess.fx.prefab", "Item received sound": "assets/bundled/prefabs/fx/notice/loot.drag.dropsuccess.fx.prefab", "Coins received sound": "assets/bundled/prefabs/fx/notice/loot.drag.dropsuccess.fx.prefab", "Error sound": "assets/prefabs/locks/keypad/effects/lock.code.denied.prefab", "Page switch sound": "assets/bundled/prefabs/fx/notice/loot.drag.dropsuccess.fx.prefab", "Open info pannel sound": "assets/bundled/prefabs/fx/notice/loot.drag.dropsuccess.fx.prefab" }
Lang file:
{ "NoPermission": "You don't have permission to use this command!", "ItemNotFound": "Item with shortname '{0}' not found.", "CmdUsage": "Usage: {0}", "SetRewardUsage": "/setreward <time_seconds> <item1_shortname> <amount1> [<item2_shortname> <amount2> ...]", "SetRewardInvalidFormat": "Invalid format for item '{0}'. Specify a valid item shortname and positive integer amount.", "SetRewardNoRewards": "You didn't specify any valid rewards.", "SetRewardSuccess": "Reward set for {0} seconds: {1}", "RemoveRewardUsage": "/removereward <time_seconds>", "RemoveRewardSuccess": "Reward for {0} seconds removed.", "RemoveRewardNotFound": "Reward for {0} seconds not found.", "ClaimErrorNoRewardExists": "This reward does not exist or is empty.", "ClaimErrorAlreadyClaimed": "This reward has already been claimed.", "ClaimErrorNotEnoughTime": "Not enough online time to claim this reward.", "ClaimSuccessItem": "<color=#81D4FA>Received:</color> {0} x{1}", "ClaimSuccessCoins": "<color=#81D4FA>Received:</color> {0} {1}", "ClaimInventoryFull": "<color=#FFCC80>Inventory full!</color> Item {0} x{1} dropped nearby.", "ClaimErrorNoArgs": "No reward time specified.", "GUIPlayerOnlineTime": "Total online time: {0}", "GUIStuffy": "by Stuffy", "GUINoRewardsConfigured": "No rewards configured by admin yet.", "GUIButtonClaim": "RECEIVE", "GUIButtonWait": "WAIT", "GUIButtonClaimed": "✔ RECEIVED", "GUICloseButton": "✗ CLOSE", "0s": "0s", "TimeDaySuffix": "d", "TimeHourSuffix": "h", "TimeMinuteSuffix": "m", "TimeSecondSuffix": "s", "RewardInfoTitle": "Rewards for {0}:", "Close": "Close", "RewardFor": "Reward for {0}:", "RandomRewardFor": "Random Reward for {0}:", "HelpMessage": "Use <color=#FFD700>/{0}</color> to open the rewards menu. You can bind a key: <color=#FFD700>bind <key> {0}</color>", "RewardAvailableNotify": "<color=#81D4FA>A new reward is available!</color> Use <color=#FFD700>/{0}</color> to open the menu and claim it." }
Plugin Demo:
Icons for currency:
You can use ready-made icons for currency:
1) Coins icon:
https://github.com/StuffyWhip/Icons/blob/main/Coins.png?raw=true
2) Banknote icon:
https://i.ibb.co/NZnjSFz/kuyura.png
FAQ:
Q: Where can I find "shortname" to set a reward?
A: https://rusthelp.com/tools/admin/item-list
Q: Where can I find "Materials" or sound effects to customizate my GUI?
A: You can find it here: https://github.com/OrangeWulf/Rust-Docs/tree/master/Extended