Lottery icon

Lottery -----

Encourage players to bet money to be in with a chance of winning the pot.



Dependencies:
---------------------------------------------------------------------------------------------------
WIKI

---------------------------------------------------------------------------------------------------
Config:

Localization:
Command:
GUI:
Options:
---------------------------------------------------------------------------------------------------
TestServer (LiveDemo):

  • IP: play.plugin.innouniq.com - 1.21.3
---------------------------------------------------------------------------------------------------
Placeholders:
(Used at Figures, GUIs)
  • {time} - Remaining time to draw

PlaceholderAPI
---------------------------------------------------------------------------------------------------
LotteryAPI

Code (Java):
package com.innouniq.plugin.Lottery.API ;

/**
* Method to get remaining time to draw.
*
* @return Remaining time, or null if round is not running.
*/

( int ) LotteryAPI. get ( ). getRemainingTime ( ) ;

/**
* Method to get parsed remaining time to draw to digital format.
* Format: HH:MM:SS. Where HH represents Hours, MM minutes and SS seconds.
*
* @return Parsed remaining time, or null if round is not running.
*/

( String ) LotteryAPI. get ( ). getDigitalFormatOfRemainingTime ( ) ;

/**
* Method to get parsed remaining time to draw to described format.
* E.g.:
* 1 Hour, 23 Minutes and 10 Seconds
* 1 Hour and 10 Minutes
* 1 Hour
* 10 Minutes
* 30 Seconds
*
* @return Parsed remaining time, or null if round is not running.
*/

( String ) LotteryAPI. get ( ). getDescribedFormatOfRemainingTime ( ) ;

/**
* Creates LotteryGUI. There player can see current round status, purchase tickets or look at personal/summary stats.
*
* @param player Target, whom to open GUI.
*/

( void ) LotteryAPI. get ( ). openLotteryGUI (target ) ;
 
---------------------------------------------------------------------------------------------------
[​IMG]
Resource Information
Author:
----------
Total Downloads: 275
First Release: Oct 13, 2016
Last Update: Nov 30, 2024
Category: ---------------
All-Time Rating:
23 ratings
Find more info at www.innouniq.com...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings