GuessTheNumber

If anyone would like to continue this simple project before I delete it, will gain full ownership/management of the project. Please pm regarding this matter.

Thanks.

Features

This plugin aims to provide users with something a little fun, just to bypass sometime or earn a reward. This plugin schedules a broadcast announcing to users to guess a value between x - x (where x is configurable). Once the user has submitted their answer, it will compare their answers with the random number, and if it's correct they will automatically receive an item which also can be configured in the config file.

Installation

Just drag and drop into your servers '\plugin' directory.

Permissions

PermissionFunction
guess.useGives access to /guess <value> or /g <value>
guess.adminGives access to /gtn start
guess.adminGives access to /gtn info - (Default users have no need to access this)

Commands

CommandFunctionAlias
/gtn infoLists commandsN/A
/guess <value>Submits your answer against random value/g <value>
/gtn startStarts/Restarts scheduled broadcastN/A

Config

values:
  min: 1
  max: 5
  item-prize: 57
  # Your message if the value is incorrect
  wrong-value-message: '&cWrong number, try again!'
broadcaster:
  enable: true
  # Values below are set in seconds.
  # When you want it to start after the correct answer.
  start-delay: 60
  # How often you want the message announced (in seconds).
  interval: 120
  # Your broadcast message
  # Do NOT delete the min and max variables
  broadcast-message: '&2Guess a number between %min% - %max%'
  # Your broadcast message for the winner
  # Do NOT delete the player variable
  broadcast-winning-message: '&9%player% &2has won the prize!'

Source

Github - Source

To-Do

  • Add a cooldown before enabling the scheduled broadcast
  • Commands to edit the config file in game
  • Add reload command
  • Add stop command

Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files