J'ai un problème avec un Skript d'ATM que je viens d'installer sur mon serveur.
Lorsque je reload le plugin, ce message apparait :
Code du Skript en question :
# /$$$$$$ /$$$$$$$$ /$$ /$$
# /$$__ $$|__ $$__/| $$$ /$$$
# | $$ \ $$ | $$ | $$$$ /$$$$
# | $$$$$$$$ | $$ | $$ $$/$$ $$
# | $$__ $$ | $$ | $$ $$$| $$
# | $$ | $$ | $$ | $$\ $ | $$
# | $$ | $$ | $$ | $$ \/ | $$
# |__/ |__/ |__/ |__/ |__/
#
#
# by: @RepublicanSensei
# Thanks for buying ATM!
#
Version: 2.0
#
#
# INSTALLATION:
# - ATM.sk - Put this in plugins/Skript/scripts
#
# Download Skript, SKQuery, WildSkript, Vault!
#
# FOR CHEAP AND FAST PRIVATE PLUGINS;
# DEVELOPER SKYPE: republicandogukan
#
#
#
on load:
if file "plugins/ATM/values.yml" doesn't exists:
create file "plugins/ATM/values.yml"
set "invest.1" to "*" in yaml file "plugins/ATM/values.yml"
set "invest.10" to "*" in yaml file "plugins/ATM/values.yml"
set "invest.50" to "*" in yaml file "plugins/ATM/values.yml"
set "invest.100" to "*" in yaml file "plugins/ATM/values.yml"
set "invest.250" to "*" in yaml file "plugins/ATM/values.yml"
set "invest.500" to "*" in yaml file "plugins/ATM/values.yml"
set "invest.1000" to "*" in yaml file "plugins/ATM/values.yml"
set "invest.5000" to "*" in yaml file "plugins/ATM/values.yml"
set "invest.10000" to "*" in yaml file "plugins/ATM/values.yml"
set "withdraw.1" to "*" in yaml file "plugins/ATM/values.yml"
set "withdraw.10" to "*" in yaml file "plugins/ATM/values.yml"
set "withdraw.50" to "*" in yaml file "plugins/ATM/values.yml"
set "withdraw.100" to "*" in yaml file "plugins/ATM/values.yml"
set "withdraw.250" to "*" in yaml file "plugins/ATM/values.yml"
set "withdraw.500" to "*" in yaml file "plugins/ATM/values.yml"
set "withdraw.1000" to "*" in yaml file "plugins/ATM/values.yml"
set "withdraw.5000" to "*" in yaml file "plugins/ATM/values.yml"
set "withdraw.10000" to "*" in yaml file "plugins/ATM/values.yml"
if file "plugins/ATM/config.sk" doesn't exists:
wf "on load:" to "plugins/ATM/config.sk"
wf " set {ATMprefix} to ""&2&lATM &f&l»&7""" to "plugins/ATM/config.sk"
wf " set {currency} to ""$""" to "plugins/ATM/config.sk"
wf " set {startAmount} to 0" to "plugins/ATM/config.sk"
wf " set {soundsEnabled} to true" to "plugins/ATM/config.sk"
wf " set {investColor} to ""&e""" to "plugins/ATM/config.sk"
wf " set {withdrawColor} to ""&7""" to "plugins/ATM/config.sk"
wf " set {investItemIcon} to ""gold ingot"" parsed as material" to "plugins/ATM/config.sk"
wf " set {withdrawItemIcon} to ""iron ingot"" parsed as material" to "plugins/ATM/config.sk"
wf " set {guiRows} to 3" to "plugins/ATM/config.sk"
wf " set {guiGlassPaneItem} to ""95:15"" parsed as material" to "plugins/ATM/config.sk"
wf " set {playerBalanceItem} to ""397:3"" parsed as material" to "plugins/ATM/config.sk"
wf " set {bankValueItem} to ""371"" parsed as material" to "plugins/ATM/config.sk"
wf " set {exitGuiItem} to ""rose red"" parsed as material" to "plugins/ATM/config.sk"
wf " " to "plugins/ATM/config.sk"
if file "plugins/ATM/messages.sk" doesn't exists:
wf "on load:" to "plugins/ATM/messages.sk"
wf " set {noPerm} to ""No permission!""" to "plugins/ATM/messages.sk"
wf " set {transferOK} to ""&aTransfer successful!""" to "plugins/ATM/messages.sk"
wf " set {transferError_1} to ""&7You do not have enough money!""" to "plugins/ATM/messages.sk"
wf " set {transferError_2} to ""&7You do not have enough money in bank!""" to "plugins/ATM/messages.sk"
wf " set {guiHeader} to ""&8&nATM""" to "plugins/ATM/messages.sk"
wf " set {investMessage} to ""&6Invest: &e{VALUE}""" to "plugins/ATM/messages.sk"
wf " set {withdrawMessage} to ""&8Withdraw: &7{VALUE}""" to "plugins/ATM/messages.sk"
wf " set {exitGui} to ""&cClose ATM""" to "plugins/ATM/messages.sk"
wf " set {bankValue} to ""&6Your bank account: &e""" to "plugins/ATM/messages.sk"
wf " set {playerBalance} to ""&9Your player account: &b""" to "plugins/ATM/messages.sk"
wf " set {investLore} to ""&7Click to invest &a{VALUE}""" to "plugins/ATM/messages.sk"
wf " set {withdrawLore} to ""&7Click to withdraw &a{VALUE}""" to "plugins/ATM/messages.sk"
wf " set {exitGuiLore} to ""&7Click here for close atm menu.""" to "plugins/ATM/messages.sk"
wf " set {changedBank} to ""&a{PLAYER}&7's bank account changed to &a{NEW}$!""" to "plugins/ATM/messages.sk"
wf " set {reloadedMessage} to ""&aPlugin reloaded.""" to "plugins/ATM/messages.sk"
wf " set {isNotNumber} to ""&aEnter correct integer.""" to "plugins/ATM/messages.sk"
wf " set {noBankAccount} to ""&aThis player hasn't a bank account.""" to "plugins/ATM/messages.sk"
wf " set {enterNumber} to ""&aEnter a integer.""" to "plugins/ATM/messages.sk"
wf " set {enterPlayer} to ""&aEnter player name.""" to "plugins/ATM/messages.sk"
wait 3 ticks
load scripts from "plugins/ATM"
on join:
if {atm::%uuid of player%::bank} is not set:
if {startAmount} is set:
set {atm::%uuid of player%::bank} to {startAmount}
else:
set {atm::%uuid of player%::bank} to 0
command /bank [<text>] [<text>] [<text>]:
aliases: /atm
trigger:
if arg 1 is not set:
if player has permission "atm.menu" or "atm.admin" or "atm.*":
wait 1 ticks
open chest with {guiRows} rows named "%{guiHeader}%" to player
wait 2 ticks
set {_i} to 0
set {_i::*} to configuration section "invest" get of "plugins/ATM/values.yml"
set {_w::*} to configuration section "withdraw" get of "plugins/ATM/values.yml"
loop {_i::*}:
set {_msgName} to {investMessage}
set {_msgLore} to {investLore}
replace all "{VALUE}" with "%loop-value%" in {_msgName}
replace all "{VALUE}" with "%loop-value%" in {_msgLore}
format slot {_i} of player with {investItemIcon} named "%{investColor}%%{_msgName}%%{currency}%" with lore "%{_msgLore}%%{currency}%" to close then run "atmConsole invest %player% %loop-value%"
add 1 to {_i}
loop {_w::*}:
set {_msgName} to {withdrawMessage}
set {_msgLore} to {withdrawLore}
replace all "{VALUE}" with "%loop-value%" in {_msgName}
replace all "{VALUE}" with "%loop-value%" in {_msgLore}
format slot {_i} of player with {withdrawItemIcon} named "%{withdrawColor}%%{_msgName}%%{currency}%" with lore "%{_msgLore}%%{currency}%" to close then run "atmConsole withdraw %player% %loop-value%"
add 1 to {_i}
if {guiRows} is greater or equal to 3:
set {_sayi} to 18
loop 3 times:
format slot {_sayi} of player with {guiGlassPaneItem} to close then run [execute player command "/bank"]
add 1 to {_sayi}
format slot 21 of player with {playerBalanceItem} named "%{playerBalance}%%player's balance%" to close then run [execute player command "/bank"]
format slot 22 of player with {exitGuiItem} named "%{exitGui}%" with lore "%{exitGuiLore}%" to close
format slot 23 of player with {bankValueItem} named "%{bankValue}%%{atm::%uuid of player%::bank}%" to close then run [execute player command "/bank"]
set {_sayi} to 24
loop 3 times:
format slot {_sayi} of player with {guiGlassPaneItem} to close then run [execute player command "/bank"]
add 1 to {_sayi}
else:
send "%{ATMprefix}% %{noPerm}%"
play raw sound "note.bass" at player with pitch 1 volume 20
stop
else if arg 1 is "reload":
if player has permission "atm.reload" or "atm.admin" or "atm.*":
load scripts from "plugins/ATM"
send "%{ATMprefix}% %{reloadedMessage}%"
else:
send "%{ATMprefix}% %{noPerm}%"
play raw sound "note.bass" at player with pitch 1 volume 20
stop
else if arg 1 is "playerbank":
if player has permission "atm.playerbank" or "atm.admin" or "atm.*":
if arg 2 is set:
if arg 3 is set:
set {_p} to "%arg 2%" parsed as player
set {_uuid} to "%uuid of {_p}%"
if {atm::%{_uuid}%::bank} is set:
set {_new} to "%arg 3%" parsed as integer
if {_new} is set:
if {_new} is integer:
set {atm::%{_uuid}%::bank} to {_new}
set {_s} to {changedBank}
replace all "{PLAYER}" with "%{_p}%" in {_s}
replace all "{NEW}" with "%{_new}%" in {_s}
send "%{ATMprefix}% %{_s}%" to player
else:
send "%{ATMprefix}% %{isNotNumber}%"
play raw sound "note.bass" at player with pitch 1 volume 5
stop
else:
send "%{ATMprefix}% %{isNotNumber}%"
play raw sound "note.bass" at player with pitch 1 volume 5
stop
else:
send "%{ATMprefix}% %{noBankAccount}%"
play raw sound "note.bass" at player with pitch 1 volume 5
stop
else:
send "%{ATMprefix}% %{enterNumber}%"
play raw sound "note.bass" at player with pitch 1 volume 5
stop
else:
send "%{ATMprefix}% %{enterPlayer}%"
play raw sound "note.bass" at player with pitch 1 volume 5
stop
else:
send "%{ATMprefix}% %{noPerm}%"
play raw sound "note.bass" at player with pitch 1 volume 5
stop
command /atmConsole [<text>] [<text>] [<text>]:
executable by: console
trigger:
if arg 1 is "invert":
set {_p} to "%arg 2%" parsed as player
set {_uuid} to "%uuid of {_p}%"
set {_para} to "%arg 3%" parsed as integer
if {_p}'s balance is greater or equal to {_para}:
remove {_para} from {_p}'s balance
play raw sound "note.pling" at {_p} with pitch 1 volume 5
add {_para} to {atm::%{_uuid}%::bank}
send "%{ATMprefix}% %{transferOK}%" to {_p}
close {_p}'s inventory
execute {_p} command "bank"
else:
play raw sound "note.bass" at {_p} with pitch 1 volume 5
send "%{ATMprefix}% %{transferError_1}%" to {_p}
close {_p}'s inventory
execute {_p} command "bank"
else if arg 1 is "withdraw":
set {_p} to "%arg 2%" parsed as player
set {_uuid} to "%uuid of {_p}%"
set {_para} to "%arg 3%" parsed as integer
if {atm::%{_uuid}%::bank} is greater or equal to {_para}:
remove {_para} from {atm::%{_uuid}%::bank}
play raw sound "note.pling" at {_p} with pitch 1 volume 5
add {_para} to {_p}'s balance
send "%{ATMprefix}% %{transferOK}%" to {_p}
close {_p}'s inventory
execute {_p} command "bank"
else:
play raw sound "note.bass" at {_p} with pitch 1 volume 5
send "%{ATMprefix}% %{transferError_2}%" to {_p}
close {_p}'s inventory
execute {_p} command "bank"
Je possède Spigot en 1.11.2
Skript en 1.11.2
WildSkript en 1.11
Skquery en 1.11
Vault en 1.11
Je ne comprend donc pas d'où viens cette erreur
En espérant avoir été assez précis ! Merci de votre aide !
Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.
Question
FrAstraz
Bonjours à toutes et à tous !
J'ai un problème avec un Skript d'ATM que je viens d'installer sur mon serveur.
Lorsque je reload le plugin, ce message apparait :
Code du Skript en question :
Je possède Spigot en 1.11.2
Skript en 1.11.2
WildSkript en 1.11
Skquery en 1.11
Vault en 1.11
Je ne comprend donc pas d'où viens cette erreur
En espérant avoir été assez précis ! Merci de votre aide !
10 réponses à cette question
Messages recommandés