Okay so i'm creating an simple votepoint skript, The only problem i have is that everytime i restart/reload the server everyone losses all their vote points. Can anyone help i have tried everything but it just wont work
Thats the entire skript so yea pls help
command /votepointadmin [<text>] [<player>] [<number>]:
aliases: /vpa
permission: vpa.*
permission message: &4&lYOU DO NOT HAVE ACCESS TO THAT COMMAND!
trigger:
if arg-1 is not set:
send "&8&l****** &6&l&nVOTE ADMIN&r &8&l******" to player
send " "
send "&e/vpa give &7<player> <amount>" to player
send "&e/vpa remove &7<player> <amount>" to player
send "&e/vpa set &7<player> <amount>" to player
send " "
send "&8&l****** &6&l&nVOTE ADMIN&r &8&l******" to player
if arg-1 is "give":
if arg-2 is not set:
send "&8(&6VOTE&8) &c&lYou have to choose an player!" to player
else:
if arg-3 is not set:
send "&8(&6VOTE&8) &c&lYou have to choose an amount!" to player
else:
add arg-3 to {votepoints.%arg-2%}
send "&8(&6VOTE&8) &6&lYou gave %arg-2% %arg-3% vote points" to player
if arg-1 is "remove":
if arg-2 is not set:
send "&8(&6VOTE&8) &c&lYou have to choose an player!" to player
else:
if arg-3 is not set:
send "&8(&6VOTE&8) &c&lYou have to choose an amount!" to player
else:
remove arg-3 from {votepoints.%arg-2%}
send "&8(&6VOTE&8) &6&lYou removed %arg-3% from %arg-2%'s vote points" to player
if arg-1 is "set":
if arg-2 is not set:
send "&8(&6VOTE&8) &c&lYou have to choose an player!" to player
else:
if arg-3 is not set:
send "&8(&6VOTE&8) &c&lYou have to choose an amount!" to player
else:
set {votepoints.%arg-2%} to arg-3
send "&8(&6VOTE&8) &6&lYou set %arg-2%'s vote points to %arg-3%" to player
command /votepoints [<text>]:
aliases: /vp
trigger:
if {votepoints.%player%} is not set:
set {votepoints.%player%} to 0
if arg-1 is not set:
send "&6&lYou're Vote Points: &a&l%{votepoints.%player%}%"
else:
aliases: /vpa
permission: vpa.*
permission message: &4&lYOU DO NOT HAVE ACCESS TO THAT COMMAND!
trigger:
if arg-1 is not set:
send "&8&l****** &6&l&nVOTE ADMIN&r &8&l******" to player
send " "
send "&e/vpa give &7<player> <amount>" to player
send "&e/vpa remove &7<player> <amount>" to player
send "&e/vpa set &7<player> <amount>" to player
send " "
send "&8&l****** &6&l&nVOTE ADMIN&r &8&l******" to player
if arg-1 is "give":
if arg-2 is not set:
send "&8(&6VOTE&8) &c&lYou have to choose an player!" to player
else:
if arg-3 is not set:
send "&8(&6VOTE&8) &c&lYou have to choose an amount!" to player
else:
add arg-3 to {votepoints.%arg-2%}
send "&8(&6VOTE&8) &6&lYou gave %arg-2% %arg-3% vote points" to player
if arg-1 is "remove":
if arg-2 is not set:
send "&8(&6VOTE&8) &c&lYou have to choose an player!" to player
else:
if arg-3 is not set:
send "&8(&6VOTE&8) &c&lYou have to choose an amount!" to player
else:
remove arg-3 from {votepoints.%arg-2%}
send "&8(&6VOTE&8) &6&lYou removed %arg-3% from %arg-2%'s vote points" to player
if arg-1 is "set":
if arg-2 is not set:
send "&8(&6VOTE&8) &c&lYou have to choose an player!" to player
else:
if arg-3 is not set:
send "&8(&6VOTE&8) &c&lYou have to choose an amount!" to player
else:
set {votepoints.%arg-2%} to arg-3
send "&8(&6VOTE&8) &6&lYou set %arg-2%'s vote points to %arg-3%" to player
command /votepoints [<text>]:
aliases: /vp
trigger:
if {votepoints.%player%} is not set:
set {votepoints.%player%} to 0
if arg-1 is not set:
send "&6&lYou're Vote Points: &a&l%{votepoints.%player%}%"
else:
send "&6&l%arg-1 parsed as an player%'s Vote Points: &a&l%{votepoints.%arg-1 parsed as a player%}%"
Thats the entire skript so yea pls help