Skip to content
Montmo90 edited this page Oct 26, 2020 · 3 revisions

Introduction

The Lotto Plugin allows players who wish to play Lotto, the system or the admin randomly draws a number and designates if there is a winner.

Play

The player plays the lotto against Space Credit (the price of the ticket can be changed) and he chooses a number for example 30 !lotto play 30

The system pulls a number between the interval, it is displayed in the chat (for the moment the message does not pass in the channel of a discord)

If there is a winner, the player can collect their winnings with the !lotto recove command.

Each time the lotto is won or lost, an amount is added to the lotto jackpot.

Players can play for the next draw.

Settings

During settings it is advisable to close the lotto !lotto open false to prevent players from playing.

change the interval between which the number will be drawn (ex: 0 et 100) !lotto number max 100 the zero cannot be changed.

Manual draw

Type the command !lotto draw auto false to deactivate the automatic draw.

To make a draw, the administrator must perform the !lotto draw start command

Automatic draw

Type the command !lotto draw auto true to activate the automatic draw.

The server admin defines the day(s) and time for each draw.
Example Wednesday and Saturday at 8:00pm !lotto draw days false false false true false false true
!lotto draw hour 8:00pm

Once the settings are complete you can open the lotto !lotto open true

Change the name "Lotto" in chat

In the LottoTranslates.xml file, find the <TranslateStruct id="lotto" value="lotto" /> ligne and replace the value with your name, save file and reload in-game with the command !lotto reload