Other available versions. Ordered by newest to oldest versions:
Just so you know, we don't know the file format for every file. If it's just a bunch of random characters, it's probably a .zip or .jar.
# Skript by The77Gamer
#Please don't copy this skript
command /maths [<text>]:
permission: maths.start
trigger:
delete {number1}
delete {number2}
broadcast "&8[&6Maths&8] &7-----Maths question----"
if arg-1 is set:
if arg-1 is "+":
set {number1} to random integer between 0 and 1000
set {number2} to random integer between 0 and 1000
broadcast "&8[&6Maths&8] &7%{number1}% + %{number2}%"
loop all players:
if loop-player has permission "the77event.mathscheat":
if {mathscheat.%loop-player%} is true:
send "&a%{number1}+{number2}% is the answer!" to loop-player
if arg-1 is "*" or "x":
set {number1} to random integer between 10 and 100
set {number2} to random integer between 10 and 100
broadcast "&8[&6Maths&8] &7%{number1}% * %{number2}%"
loop all players:
if loop-player has permission "the77event.mathscheat":
if {mathscheat.%loop-player%} is true:
send "&a%{number1}*{number2}% is the answer!" to loop-player
else:
chance of 50%:
set {number1} to random integer between 0 and 1000
set {number2} to random integer between 0 and 1000
broadcast "&8[&6Maths&8] &7%{number1}% + %{number2}%"
loop all players:
if loop-player has permission "the77event.mathscheat":
if {mathscheat.%loop-player%} is true:
send "&a%{number1}+{number2}% is the answer!" to loop-player
else:
set {number1} to random integer between 10 and 100
set {number2} to random integer between 10 and 100
broadcast "&8[&6Maths&8] &7%{number1}% * %{number2}%"
loop all players:
if loop-player has permission "the77event.mathscheat":
if {mathscheat.%loop-player%} is true:
send "&a%{number1}*{number2}% is the answer!" to loop-player
on chat:
if message is "%{number1}+{number2}%":
broadcast "&8[&6Maths&8] &6%player% &7 has won!"
cancel event
give 2 nether stars named "&dMystic Crate &dKey" to player
add 1 to {wins.%player%}
if {maths.infinite} is true:
execute console command "maths"
if message is "%{number1}*{number2}%":
broadcast "&8[&6Maths&8] &6%player% &7 has won!"
cancel event
give 5 nether stars named "&dMystic Crate &dKey" to player
add 1 to {wins.%player%}
if {maths.infinite} is true:
execute console command "maths"
every minute:
if {maths.auto} is true:
execute console command "maths"
command /mathsauto:
permission: maths.auto
trigger:
if {maths.auto} is true:
set {maths.auto} to false
send "&cTurned automaths off"
else:
set {maths.auto} to true
send "&aTurned automaths on"
command /mathscheat:
permission: maths.cheattoggle
trigger:
if {mathscheat.%player%} is false:
set {mathscheat.%player%} to true
send "&aTurned mathscheat on"
else:
set {mathscheat.%player%} to false
send "&cTurned mathscheat off"
on join:
if player does not have permission "maths.cheat":
set {mathscheat.%player%} to false
command /mathsinfinite:
permission: maths.infinite
trigger:
if {maths.infinite} is true:
set {maths.infinite} to false
send "&cTurned off infinitemaths"
else:
set {maths.infinite} to true
set {maths.auto} to false
send "&aTurned on infinitemaths"
command /wins [<offline player>]:
trigger:
if arg-1 is not set:
send "&aYou have %{wins.%player%}% wins!"
if arg-1 is set:
else:
send "&a%arg-1% has %{wins.%arg-1%}% wins!"