KrunghCrow
An event that requires player to guess the correct number

Supported Games
GameServerKingsGameServerKings

Dependencies

Skill Tree- Optional

ServerRewards - Optional

Economics - Optional

XPerience - Optional

Battlepass - Optional

Info

This plugin adds an event where players have to try and guess a randomly generated number between two set numbers. The winner gets a prize (SkillTree, XPerience, Battlepass, Economics, ServerRewards, Items or Run Commands)

Chat Commands

  • /gtn start -- Start a basic event with the default numbers set in the config file
  • /gtn start <min> <max> -- Start an event with the numbers set
  • /gtn end -- End the current event
  • /guess <number> -- Submit a guess
  • /top -- Opens UI Leader Board for Top 10 Winners (command changeable in config)

Console Commands

  • gtn start -- Start a basic event with the default numbers set in the config file
  • gtn start <min> <max> -- Start an event with the numbers set
  • gtn end -- End the current event
  • gtn_wipe -- Manually clear data file (auto wipes on server wipe)

Permissions

  • guessthenumber.enter - players with this permission can enter in events
  • guessthenumber.admin - players with this permission can use the /gtn commands (administration features)

Configuration

{
  "Announce Settings": {
    "Game Tip Duration": 20,
    "Prefix": "[<color=#abf229>Guess The Number</color>] ",
    "Show all Guess Attempts to chat": false,
    "Show all Guess Attempts to GameTips": false,
    "SteamID": 0,
    "Use Chat Messages": false,
    "Use Game Tip Messages": true
   },
  "Event Settings": {
    "Auto Event Repeat Time": 600,
    "Auto Events Enabled": false,
    "Default Number Max": 100,
    "Default Number Min": 1,
    "Event Length": 30,
    "Max Tries": 1
  },
  "LeaderBoard UI Settings": {
    "Command": "top"
  },
  "Online Settings": {
    "Minimum amount of players to be online to start the game": "1"
  },
  "Reward Battlepass Settings": {
    "Amount 1st currency (loss)": 10,
    "Amount 1st currency (win)": 20,
    "Amount 2nd currency (loss)": 10,
    "Amount 2nd currency (win)": 20,
    "Use Battlepass 1st currency": false,
    "Use Battlepass 2nd currency": false,
    "Use Battlepass on loss": false
  },
  "Reward Command Settings": {
    "Command Name": "Display Name For Command Reward Message",
    "Command To Execute": "o.grant user {playerId} some.permission",
    "Use Command": false
  },
  "Reward Economics Settings": {
    "Amount (loss)": 10,
    "Amount (win)": 20,
    "Use Economics": true,
    "Use Economics on loss": true
  },
  "Reward Item Settings": {
    "Amount": 100,
    "Custom Display Name": "",
    "Item Shortname": "scrap",
    "Item Skin ID": 0,
    "Use Item": false
  },
  "Reward ServerRewards Settings": {
    "Amount (loss)": 10,
    "Amount (win)": 20,
    "Use ServerRewards": false,
    "Use ServerRewards on loss": false
  },
  "Reward SkillTree Settings": {
    "Amount (loss)": 50,
    "Amount (win)": 100,
    "Use SkillTree": false,
    "Use SkillTree on loss": false
  },
  "Reward XPerience Settings": {
    "Amount (loss)": 50,
    "Amount (win)": 100,
    "Use XPerience": false,
    "Use XPerience on loss": false
  }
}

Localization

{
  "No Permission": "You cannot use this command!",
  "Event Already Active": "There is currently already an event that is active!",
  "Event Started": "A random number event has started, correctly guess the random number to win a prize!\nUse <color=#abf229>/guess <number></color> to enter between <color=#abf229>{0}</color> and <color=#abf229>{1}</color>",
  "Help Message": "<color=#abf229>/gtn start</color> (this will use the default min/max set in the config)",
  "Help Message1": "<color=#abf229>/gtn start <min number> <max number></color> (allows you to set custom min/max numbers)",
  "Help Message2": "<color=#abf229>/gtn end</color> (will end the current event)",
  "No Event": "There are no current events active",
  "Max Tries": "You have already guessed the maximum number of times",
  "Event Win": "<color=#abf229>{0}</color> has won the event! (correct number was <color=#abf229>{1}</color>)",
  "Battlepass Reward1": "For winning you are rewarded (BP1) : <color=#abf229>{0}</color>",
  "Battlepass loss Reward1": "Incorrect answer you get (BP1) : <color=#abf229>{0}</color>",
  "Battlepass Reward2": "For winning you are rewarded (BP2) : <color=#abf229>{0}</color>",
  "Battlepass loss Reward2": "Incorrect answer you get (BP2) : <color=#abf229>{0}</color>",
  "Economics Reward": "For winning you are rewarded $ <color=#abf229>{0}</color>",
  "Economics loss Reward": "Incorrect answer you get $ <color=#abf229>{0}</color>",
  "ServerRewards Reward": "For winning you are rewarded <color=#abf229>{0}</color> RP",
  "ServerRewards loss Reward": "Incorrect answer you get <color=#abf229>{0}</color> RP",
  "Wrong Number": "You guessed the wrong number\nGuesses remaining this round : ",
  "/guess Invalid Syntax": "Invalid syntax! /guess <number>",
  "Event Timed Out": "The event time has run out and no one successfully guessed the number!\nThe Number to guess was : <color=#abf229>{0}</color>",
  "Invalid Guess Entry": "The guess you entered was invalid! numbers only please",
  "Event Created": "The event has been succesfully created, the winning number is <color=#abf229>{0}</color>",
  "GTN console invalid syntax": "Invalid syntax! gtn <start/end> <min number> <max number>",
  "SkillTree Reward": "For winning you are rewarded <color=#abf229>{0}</color> XP",
  "SkillTree loss Reward": "Incorrect answer you get <color=#abf229>{0}</color> XP",
  "XPerience Reward": "For winning you are rewarded <color=#abf229>{0}</color> XP",
  "XPerience loss Reward": "Incorrect answer you get <color=#abf229>{0}</color> XP",
  "Item Reward": "For winning you are rewarded <color=#abf229>{0}</color>",
  "Command Reward": "For winning you are rewarded <color=#abf229>{0}</color>",
  "UI_TITLE": "Guess The Number",
  "UI_TOP_TEXT": "Top 10 Players",
  "UI_NO_PLAYERS": "Nobody Has Played Yet! :(",
  "UI_PLAYERS": "{0}. {1} - Wins: <color=#abf229>{2}</color>"
}

Credits

  • Dora, the original author of this plugin
  • Plugin requested by Frank Costello
  • redBDGR, the previous maintainer of this plugin upto v2.0.2
  • Krungh Crow, the previous maintainer of this plugin upto v2.1.3
This plugin is unlicensed and the original author reserves all rights to it.

The original author may request that this plugin be removed and there is a risk that the plugin may be unavailable in the future.

Note that the current maintainer may not have permission to assign a license to the plugin if they are not the original author, so explicit permission would need to be obtained from the original author in order for the plugin to remain openly available and guarantee that it will be around for all to enjoy going forward.