Configuration Tutorial

The config is configurable and very easy to configure aswell. :D

Strings

There are 2 strings you can change.

  • StartCountDownText
  • EndedCountDownText

    StartCountDownText will be shown when a new timer has been started. EndedCountDownText will be show when the timer has finished.

Variables

There are a few variables you can use to help you out with. Those are:

  • %player%
  • %duration%
  • %onlineplayers%

    '%player%' is the player who started the countdown timer. For example: 'Ahh! Come on! %player% has started a new countdown timer.' Will be: 'Ahh! Come on! Staartvin has started a new countdown timer.'

    '%duration%' is the time it takes before the countdown timer is finished. '%duration%' can be either in seconds, minutes or hours. For example: '%player% has started a new countdown timer which lasts %duration%. This will be: Staartvin has started a new countdown timer which lasts 30 seconds/10 minutes/10 hours.

    '%onlineplayers%' are all players that are online. For example: 'eco give %onlineplayers% 50'. This will give all players 50 money.

Colour codes


SimpleCountDown also allows strings to be colour coded. All colour codes are on this page: link! Note that instead of the dollar sign used in 1.1.2 and before, we now use a new sign (&). Example sentence: &eGet up you bloody bastard! This would show up in yellow.

Command lists

A command list is a list where you can write down commands which will be performed after the countdown timer has finished. There are already a few examples there. To create a new one, you just have to use a editor such as Notepad (Which I use). DON'T USE TABS. USE 4 SPACES INSTEAD You write your commandlist down as done in the config.

Example:

Let's say we want a new countdown timer which will broadcast a message to everyone on the server. This is the code you get in the default config:

CommandsList:
  herobrine:
  - broadcast I am HEROBRINE!

  staartvin:
  - broadcast Staartvin is awesome!


To create a new commandlist, you type name under the last line. As done here:

CommandsList:
  herobrine:
  - broadcast I am HEROBRINE!

  staartvin:
  - broadcast Staartvin is awesome!

  broadcast:


Don't forget the semi-colon after the name you type! As you can see, I've created a new list called 'broadcast'. It doesn't do anything at all right now. Let's make it useful. We'll broadcast a message saying that everyone is cool who plays on this server!

CommandsList:
  herobrine:
  - broadcast I am HEROBRINE!

  staartvin:
  - broadcast Staartvin is awesome!

  broadcast:
  - broadcast Everyone who reads this is cool!


As you can see. It will perform the command /broadcast with as a message 'Everyone who reads this is cool'. Any command can be performed. Any command of any plugin. Use your imagination!

Now, we let the countdown timer do his job. Type: /countdown start <time> broadcast. This will start a countdown timer with a certain end time and it will perform the /broadcast at the end! Congratulations!

Notice Time in Seconds



This will be the times when the countdown timer notices everyone how much time is left. These times must be in seconds!

Display Texts On



This is a list of strings to show at a certain time when a countdown timer is running. The '>' marks a seperation and is neccessary! After the '>' is the second when the message should be shown. It's not that hard, is it?


Comments

Posts Quoted:
Reply
Clear All Quotes