Permalink
Fetching contributors…
Cannot retrieve contributors at this time
130 lines (101 sloc) 3.35 KB

You can find different sample configurations for rewards

This is the default config

services {
	DEFAULT{
	broadcast="<GREEN><username> <GOLD>has voted @ <GREEN><service> <GOLD>and received <GREEN>5 Diamonds !"
	playermessage="<GREEN>Thanks for voting at <AQUA><service> !"
	commands=[
		"give <username> book 5"
	]
	}
	
	MC-Index{
	broadcast="<GREEN><username> <GOLD>has voted @ <GREEN> MC-Index <GOLD>and received <GREEN>5 Diamonds !"
	playermessage="<GREEN>Thanks for voting at <AQUA><service> !"
	commands=[
		"give <username> book 5"
	]
	}
}

Now if you want to add web site, just add this under services:

NameOfService{
	broadcast="<GREEN><username> <GOLD>has voted @ <GREEN> MC-Index <GOLD>and received <GREEN>5 Diamonds !"
	playermessage="<GREEN>Thanks for voting at <AQUA><service> !"
	commands=[
		"give <username> book 5",
		"give <username> redstone_block 5"
	]
}

For broadcast and playermessage, you can use this variable:

  • <service> = service name
  • <username>= player username
  • <votes> = current vote total
  • For color you can use the following variables or directly §
  • <AQUA> <BLACK> <BLUE> <DARK_AQUA> <DARK_BLUE>
  • <DARK_GRAY> <DARK_GREEN> <DARK_PURPLE> <DARK_RED> <GOLD>
  • <GRAY> <GREEN> <LIGHT_PURPLE> <RED> <WHITE> <YELLOW> <BOLD>
  • <ITALIC> <UNDERLINE> <STRIKETHROUGH> <STRIKE>
  • <STRIKETHROUGH> <MAGIC> <RESET>

Extra Reward

To enable additional rewards, you need to set True to AddExtraReward.

The extra reward is based on the % Example with GiveChanceReward=true

The example below would give a 30% chance of a voter receiving an extra 5 book, and a 10.50% chance of an extra 5 book and 5 ghast tear.

ExtraReward{
	"30"{
		broadcast="<GREEN><username> <GOLD>was super lucky and received an <GREEN>extra 5 book"
		playermessage="<GREEN>You were super lucky and received an <GREEN> extra 5 book "
		commands=[
			"give <username> book 5"
		]
	}
	"10.5"{
		broadcast="<GREEN><username> <GOLD>was lucky and received an <GREEN>extra 5 ghast tear”
		playermessage="<GREEN>You were lucky and received an extra 5 book!"
		commands=[
			"give <username> ghast tear 5"
		]
	}
}

Now if I take the same config and I turn GiveChanceReward to false

I have 70 % to have any, 20% to have 5 book and 10% to have 5 ghast tear

Tips:

If you want to give random rewards use the ExtraReward part as in the following example.

services {
	DEFAULT{
	broadcast="<GREEN><username> <GOLD>has voted @ <GREEN><service"
	playermessage="<GREEN>Thanks for voting at <AQUA><service> !"
	commands=[
		
	]
	}
	
	MC-Index{
	broadcast="<GREEN><username> <GOLD>has voted @ <GREEN> MC-Index "
	playermessage="<GREEN>Thanks for voting at <AQUA><service> !"
	commands=[
			]
	}
}
ExtraReward{
	30{
		broadcast="<GREEN><username> <GOLD>was super lucky and received an <GREEN>extra 5 book"
		playermessage="<GREEN>You were super lucky and received an <GREEN> extra 5 book "
		commands=[
			"give <username> book 5"
		]
	}
	10{
		broadcast="<GREEN><username> <GOLD>was lucky and received an <GREEN>extra 5 ghast tear”
		playermessage="<GREEN>You were lucky and received an extra 5 book!"
		commands=[
			"give <username> ghast tear 5"
		]
	}
}

Now I will get the rewards as in the Extra Reward part