Added different types of messaging
authorJan Hasebos <davywebshowjan@gmail.com>
Wed, 8 Jun 2016 08:54:14 +0000 (10:54 +0200)
committerJan Hasebos <davywebshowjan@gmail.com>
Wed, 8 Jun 2016 08:54:14 +0000 (10:54 +0200)
levitateab.sk [new file with mode: 0644]
levitatech.sk [new file with mode: 0644]
levitateno.sk [new file with mode: 0644]
levitatest.sk [new file with mode: 0644]
levitateti.sk [new file with mode: 0644]

diff --git a/levitateab.sk b/levitateab.sk
new file mode 100644 (file)
index 0000000..a2de79f
--- /dev/null
@@ -0,0 +1,33 @@
+# Config
+
+variables:
+# Change the delay between uses
+       {levitate.config.delay} = 30
+
+
+
+# Skript
+
+on join:
+       execute console command "/speed fly 0.7 %player%"
+on sneak toggle:
+       set {levitate.%player%.waited} to difference between now and {levitate.%player%.lastused}
+       if player's gamemode is creative:
+               execute console command "/tm amsg -silent %player% &cYou cant levitate in creative!"
+               stop
+               
+       if {levitate.%player%.waited} is less than 1 seconds:
+               stop
+               
+       if {levitate.%player%.waited} is less than {levitate.config.delay} seconds:
+               set {levitate.%player%.waited.inverted} to difference between {levitate.config.delay} seconds and {levitate.%player%.waited}
+               execute console command "/tm amsg -silent %player% &cLevitate is on cooldown | %{levitate.%player%.waited.inverted}%"
+               stop
+               
+       execute console command "/fly %player% on"
+       execute console command "/tm amsg -silent %player% &bLevitate Activated!"
+       set {levitate.%player%.lastused} to now 
+       wait 1.5 seconds
+       execute console command "/fly %player% off"
+       execute console command "/tm amsg -silent %player% &3Levitate Deactivated!"
+       set {levitate.%player%.lastused} to now
diff --git a/levitatech.sk b/levitatech.sk
new file mode 100644 (file)
index 0000000..4397875
--- /dev/null
@@ -0,0 +1,33 @@
+# Config
+
+variables:
+# Change the delay between uses
+       {levitate.config.delay} = 30
+
+
+
+# Skript
+
+on join:
+       execute console command "/speed fly 0.7 %player%"
+on sneak toggle:
+       set {levitate.%player%.waited} to difference between now and {levitate.%player%.lastused}
+       if player's gamemode is creative:
+               send "&cYou cant levitate in creative!"
+               stop
+               
+       if {levitate.%player%.waited} is less than 1 seconds:
+               stop
+               
+       if {levitate.%player%.waited} is less than {levitate.config.delay} seconds:
+               set {levitate.%player%.waited.inverted} to difference between {levitate.config.delay} seconds and {levitate.%player%.waited}
+               send "&cLevitate is on cooldown | %{levitate.%player%.waited.inverted}%"
+               stop
+               
+       execute console command "/fly %player% on"
+       send "&bLevitate Activated!"
+       set {levitate.%player%.lastused} to now 
+       wait 1.5 seconds
+       execute console command "/fly %player% off"
+       send "&3Levitate Deactivated!"
+       set {levitate.%player%.lastused} to now
diff --git a/levitateno.sk b/levitateno.sk
new file mode 100644 (file)
index 0000000..1ee7310
--- /dev/null
@@ -0,0 +1,29 @@
+# Config
+
+variables:
+# Change the delay between uses
+       {levitate.config.delay} = 30
+
+
+
+# Skript
+
+on join:
+       execute console command "/speed fly 0.7 %player%"
+on sneak toggle:
+       set {levitate.%player%.waited} to difference between now and {levitate.%player%.lastused}
+       if player's gamemode is creative:
+               stop
+               
+       if {levitate.%player%.waited} is less than 1 seconds:
+               stop
+               
+       if {levitate.%player%.waited} is less than {levitate.config.delay} seconds:
+               set {levitate.%player%.waited.inverted} to difference between {levitate.config.delay} seconds and {levitate.%player%.waited}
+               stop
+               
+       execute console command "/fly %player% on"
+       set {levitate.%player%.lastused} to now 
+       wait 1.5 seconds
+       execute console command "/fly %player% off"
+       set {levitate.%player%.lastused} to now
diff --git a/levitatest.sk b/levitatest.sk
new file mode 100644 (file)
index 0000000..4cfb3d9
--- /dev/null
@@ -0,0 +1,33 @@
+# Config
+
+variables:
+# Change the delay between uses
+       {levitate.config.delay} = 30
+
+
+
+# Skript
+
+on join:
+       execute console command "/speed fly 0.7 %player%"
+on sneak toggle:
+       set {levitate.%player%.waited} to difference between now and {levitate.%player%.lastused}
+       if player's gamemode is creative:
+               execute console command "/titlemanager msg -silent %player% <nl>&cYou cant levitate in creative!"
+               stop
+               
+       if {levitate.%player%.waited} is less than 1 seconds:
+               stop
+               
+       if {levitate.%player%.waited} is less than {levitate.config.delay} seconds:
+               set {levitate.%player%.waited.inverted} to difference between {levitate.config.delay} seconds and {levitate.%player%.waited}
+               execute console command "/titlemanager msg -silent %player% <nl>&cLevitate is on cooldown | %{levitate.%player%.waited.inverted}%"
+               stop
+               
+       execute console command "/fly %player% on"
+       execute console command "/titlemanager msg -silent %player% <nl>&bLevitate Activated!"
+       set {levitate.%player%.lastused} to now 
+       wait 1.5 seconds
+       execute console command "/fly %player% off"
+       execute console command "/titlemanager msg -silent %player% <nl>&3Levitate Deactivated!"
+       set {levitate.%player%.lastused} to now
diff --git a/levitateti.sk b/levitateti.sk
new file mode 100644 (file)
index 0000000..1ae5b14
--- /dev/null
@@ -0,0 +1,33 @@
+# Config
+
+variables:
+# Change the delay between uses
+       {levitate.config.delay} = 30
+
+
+
+# Skript
+
+on join:
+       execute console command "/speed fly 0.7 %player%"
+on sneak toggle:
+       set {levitate.%player%.waited} to difference between now and {levitate.%player%.lastused}
+       if player's gamemode is creative:
+               execute console command "/titlemanager msg -silent %player% &cYou cant levitate in creative!"
+               stop
+               
+       if {levitate.%player%.waited} is less than 1 seconds:
+               stop
+               
+       if {levitate.%player%.waited} is less than {levitate.config.delay} seconds:
+               set {levitate.%player%.waited.inverted} to difference between {levitate.config.delay} seconds and {levitate.%player%.waited}
+               execute console command "/titlemanager msg -silent %player% &cLevitate is on cooldown | %{levitate.%player%.waited.inverted}%"
+               stop
+               
+       execute console command "/fly %player% on"
+       execute console command "/titlemanager msg -silent %player% &bLevitate Activated!"
+       set {levitate.%player%.lastused} to now 
+       wait 1.5 seconds
+       execute console command "/fly %player% off"
+       execute console command "/titlemanager msg -silent %player% &3Levitate Deactivated!"
+       set {levitate.%player%.lastused} to now
This page took 0.147943 seconds and 4 git commands to generate.