[22:18:25 INFO]: Nelwyrr issued server command: /sk reload cannabisv2
[22:18:25 ERROR]: #!#!
[22:18:25 ERROR]: #!#! [skript] Severe Error:
[22:18:25 ERROR]: #!#! Could not load cannabisv2.sk
[22:18:25 ERROR]: #!#!
[22:18:25 ERROR]: #!#! Something went horribly wrong with Skript.
[22:18:25 ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[22:18:25 ERROR]: #!#! Your Minecraft version or server software appears to be unsupported by Skript (bensku's version).
[22:18:25 ERROR]: #!#! Currently only supported servers are Spigot and its forks for Minecraft 1.9 or newer.
[22:18:25 ERROR]: #!#! Other versions might work, but since you're getting this error message something is NOT working,
[22:18:25 ERROR]: #!#! nor it will work, unless you switch to supported platform.
[22:18:25 ERROR]: #!#! Issue tracker: https://github.com/bensku/Skript/issues (only if you know what you're doing!)
[22:18:25 ERROR]: #!#!
[22:18:25 ERROR]: #!#! Stack trace:
[22:18:25 ERROR]: #!#! java.lang.IllegalStateException: Cannot use classinfos until registration is over
[22:18:25 ERROR]: #!#! at ch.njol.skript.registrations.Classes.checkAllowClassInfoInteraction(Classes.java:241)
[22:18:25 ERROR]: #!#! at ch.njol.skript.registrations.Classes.getClassInfoFromUserInput(Classes.java:336)
[22:18:25 ERROR]: #!#! at ch.njol.skript.lang.function.Functions.loadSignature(Functions.java:177)
[22:18:25 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadStructure(ScriptLoader.java:811)
[22:18:25 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadStructure(ScriptLoader.java:773)
[22:18:25 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadStructure(ScriptLoader.java:755)
[22:18:25 ERROR]: #!#! at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:187)
[22:18:25 ERROR]: #!#! at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
[22:18:25 ERROR]: #!#! at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141)
[22:18:25 ERROR]: #!#! at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641)
[22:18:25 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162)
[22:18:25 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997)
[22:18:25 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45)
[22:18:25 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1)
[22:18:25 ERROR]: #!#! at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13)
[22:18:25 ERROR]: #!#! at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
[22:18:25 ERROR]: #!#! at java.util.concurrent.FutureTask.run(Unknown Source)
[22:18:25 ERROR]: #!#! at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44)
[22:18:25 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715)
[22:18:25 ERROR]: #!#! at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)
[22:18:25 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
[22:18:25 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
[22:18:25 ERROR]: #!#! at java.lang.Thread.run(Unknown Source)
[22:18:25 ERROR]: #!#!
[22:18:25 ERROR]: #!#! Version Information:
[22:18:25 ERROR]: #!#! Skript: 2.2-dev32
[22:18:25 ERROR]: #!#! Bukkit: 1.8.8-R0.1-SNAPSHOT
[22:18:25 ERROR]: #!#! Minecraft: 1.8.8
[22:18:25 ERROR]: #!#! Java: 1.8.0_144 (Java HotSpot(TM) 64-Bit Server VM 25.144-b01)
[22:18:25 ERROR]: #!#! OS: Windows 10 amd64 10.0
[22:18:25 ERROR]: #!#!
[22:18:25 ERROR]: #!#! Running CraftBukkit: false
[22:18:25 ERROR]: #!#! Running Spigot (or compatible): true
[22:18:25 ERROR]: #!#! Running Paper (or compatible): false
[22:18:25 ERROR]: #!#!
[22:18:25 ERROR]: #!#! Current node: function sugar(p: player): (cannabisv2.sk, line 38)
[22:18:25 ERROR]: #!#! Current item: null
[22:18:25 ERROR]: #!#! Thread: Server thread
[22:18:25 ERROR]: #!#!
[22:18:25 ERROR]: #!#! Language: english
[22:18:25 ERROR]: #!#! Link parse mode: DISABLED
[22:18:25 ERROR]: #!#!
[22:18:25 ERROR]: #!#! End of Error.
[22:18:25 ERROR]: #!#!
Et voila mes 2 skript en cours :
[spoiler=SKRIPT 1]
command /casino:
trigger:
open chest with 3 rows named "&6&lCasino" to player
wait 1 ticks
set {_slot} to 0
loop 4 times:
format slot {_slot} of player with black glass named "&8." to close then run [make player execute command "."]
add 1 to {_slot}
format slot {_slot} of player with yellow glass named "&8." to close then run [make player execute command "."]
add 1 to {_slot}
format slot {_slot} of player with black glass named "&8." to close then run [make player execute command "."]
set {_slot} to 18
loop 4 times:
format slot {_slot} of player with black glass named "&8." to close then run [make player execute command "."]
add 1 to {_slot}
format slot {_slot} of player with yellow glass named "&8." to close then run [make player execute command "."]
add 1 to {_slot}
format slot {_slot} of player with black glass named "&8." to close then run [make player execute command "."]
format slot 11 of player with compass named "&6&lJackpot" to close then run [make player execute command "open jpp"]
format slot 13 of player with compass named "&6&lP F C" to close then run [make player execute command "open rps"]
format slot 15 of player with compass named "&6&lCF" to close then run [make player execute command "open cf"]
command /open [<text>] [<player>]:
trigger:
wait 2 ticks
if arg 1 is "jpp":
execute player command "jackpot"
if arg 1 is "rps":
execute player command "rps"
if arg 1 is "cf":
execute player command "cf"
#===============================#
# #
# #
# PUNISHEMENT #
# #
# #
#===============================#
if arg 1 is "cheat":
execute player command "ppcheat %arg 2%"
message "test"
if arg 1 is "chat":
execute player command "ppchat %arg 2%"
if arg 1 is "anti-jeux":
execute player command "ppantis-jeux %arg 2%"
on join:
if {infraction.%player%} is not set :
set {infraction.%player%} to 0
else:
stop
command /ppresethistorique [<player>]:
permission: punish.setinfraction
permission message: &4tu n'as pas la permission
trigger:
clear {infraction.%arg 1%::*}
message "&6L'historique de &l%arg 1% &6a ete remis a zero"
send "&6Votre historique d'infraction a ete remis a zero par &l%player%" to argument 1
command /setinfraction [<player>] [<integer>] :
permission: punish.setinfraction
permission message: &4tu n'as pas la permission
trigger:
set {infraction.%arg 1%} to argument 2
message "&6&l%arg 1% &6à maintenant &l%{infraction.%arg 1%}% infraction(s)"
command /pp [<player>]:
permission: punish.pp
permission message: &4tu n'as pas la permission
trigger:
open chest with 4 rows named "&6&lPunish" to player
wait 1 ticks
set {_slot} to 0
loop 4 times:
format slot {_slot} of player with black glass named "&8." to be unstealable
add 1 to {_slot}
format slot {_slot} of player with yellow glass named "&8." to be unstealable
add 1 to {_slot}
format slot {_slot} of player with black glass named "&8." to be unstealable
set {_slot} to 27
loop 4 times:
format slot {_slot} of player with black glass named "&8." to be unstealable
add 1 to {_slot}
format slot {_slot} of player with yellow glass named "&8." to be unstealable
add 1 to {_slot}
format slot {_slot} of player with black glass named "&8." to be unstealable
format slot 4 of player with skull of argument 1 named "&4%arg 1% :" with lore "* %{infraction.%arg 1%}% infraction(s) ||* %{infraction.%arg 1%::1}%||* %{infraction.%arg 1%::2}%||* %{infraction.%arg 1%::3}%||* %{infraction.%arg 1%::4}%||* %{infraction.%arg 1%::5}%" to be unstealable
format slot 11 of player with diamond sword named "&6&lCheat" to close then run [make player execute command "open cheat %arg 1%"]
format slot 13 of player with paper named "&6&lChat" to close then run [make player execute command "open chat %arg 1%"]
format slot 15 of player with lava bucket named "&6&lAnti jeux" to close then run [make player execute command "open anti-jeux %arg 1%"]
format slot 22 of player with clock named "&6&lHistorique" to close then run [make player execute command "pphistorique %arg 1%"]
command /pphistorique [<player>]:
permission: punish.pp
permission message: &4tu n'as pas la permission
trigger:
set {_loop} to 1
loop {infraction.%arg 1%::*}:
message "%{infraction.%arg 1%::%{_loop}%}%"
add 1 to {_loop}
#===================#
# Cheat #
#===================#
command /ppcheat [<player>]:
permission: punish.pp
permission message: &4tu n'as pas la permission
trigger:
open chest with 3 rows named "&6&lPunish" to player
wait 1 ticks
set {_slot} to 0
loop 4 times:
format slot {_slot} of player with black glass named "&8." to be unstealable
add 1 to {_slot}
format slot {_slot} of player with yellow glass named "&8." to be unstealable
add 1 to {_slot}
format slot {_slot} of player with black glass named "&8." to be unstealable
set {_slot} to 18
loop 4 times:
format slot {_slot} of player with black glass named "&8." to be unstealable
add 1 to {_slot}
format slot {_slot} of player with yellow glass named "&8." to be unstealable
add 1 to {_slot}
format slot {_slot} of player with black glass named "&8." to be unstealable
format slot 4 of player with skull of argument 1 named "&4%arg 1% :" with lore "* %{infraction.%arg 1%}% infraction(s)" to be unstealable
format slot 9 of player with diamond ore named "&6&lX-ray" with lore "* ban 14 jours" to close then run [make player execute command "infraction cheat %arg 1% 14d &4X-Ray"]
format slot 10 of player with diamond sword named "&6&lKill-aura" with lore "* ban 14 jours" to close then run [make player execute command "infraction cheat %arg 1% 14d &4Kill-Aura"]
format slot 11 of player with feather named "&6&lFly" with lore "* ban 21 jours" to close then run [make player execute command "infraction cheat %arg 1% 21d &4Fly"]
format slot 12 of player with bow named "&6&lAimBot" with lore "* ban 7 jours" to close then run [make player execute command "infraction cheat %arg 1% 7d &4AimBot"]
format slot 13 of player with diamond chestplate named "&6&lCheat &e(autre)" with lore "* ban 14 jours" to close then run [make player execute command "infraction cheat %arg 1% 14d &4Cheat"]
#===================#
# Chat #
#===================#
command /ppchat [<player>]:
permission: punish.pp
permission message: &4tu n'as pas la permission
trigger:
open chest with 3 rows named "&6&lPunish" to player
wait 1 ticks
set {_slot} to 0
loop 4 times:
format slot {_slot} of player with black glass named "&8." to be unstealable
add 1 to {_slot}
format slot {_slot} of player with yellow glass named "&8." to be unstealable
add 1 to {_slot}
format slot {_slot} of player with black glass named "&8." to be unstealable
set {_slot} to 18
loop 4 times:
format slot {_slot} of player with black glass named "&8." to be unstealable
add 1 to {_slot}
format slot {_slot} of player with yellow glass named "&8." to be unstealable
add 1 to {_slot}
format slot {_slot} of player with black glass named "&8." to be unstealable
format slot 4 of player with skull of argument 1 named "&4%arg 1% :" with lore "* %{infraction.%arg 1%}% infraction(s)" to be unstealable
format slot 9 of player with bow named "&6&lDouble poste" with lore "* mute 5min" to close then run [make player execute command "infraction chat %arg 1% 5m &4Spam légé"]
format slot 10 of player with bow named "&6&lSpam moyen" with lore "* mute 1h" to close then run [make player execute command "infraction chat %arg 1% 1h &4Spam"]
format slot 11 of player with bow named "&6&lSpam violent" with lore "* mute 6h" to close then run [make player execute command "infraction chat %arg 1% 6h &4Spam violent"]
format slot 12 of player with lava bucket named "&6&lInsulte legère &e(ex: sale batard)" with lore "* mute 30min" to close then run [make player execute command "infraction chat %arg 1% 30min &4Insulte légère"]
format slot 13 of player with lava bucket named "&6&lInsulte grave &e(ex: Fils de pu**)" with lore "* mute 2h" to close then run [make player execute command "infraction chat %arg 1% 2h &4Insulte grave"]
format slot 14 of player with lava bucket named "&6&lInsulte staff &e(intolerant)" with lore "* mute 6h" to close then run [make player execute command "infraction chat %arg 1% 6h &4Insulte staff"]
format slot 15 of player with lava bucket named "&6&lIrrespect envers le staff" with lore "* mute 15min" to close then run [make player execute command "infraction chat %arg 1% 10m &4Irrespect envers le staff"]
#===================#
# anti-jeux #
#===================#
command /ppantis-jeux [<player>]:
permission: punish.pp
permission message: &4tu n'as pas la permission
trigger:
open chest with 3 rows named "&6&lPunish" to player
wait 1 ticks
set {_slot} to 0
loop 4 times:
format slot {_slot} of player with black glass named "&8." to be unstealable
add 1 to {_slot}
format slot {_slot} of player with yellow glass named "&8." to be unstealable
add 1 to {_slot}
format slot {_slot} of player with black glass named "&8." to be unstealable
set {_slot} to 18
loop 4 times:
format slot {_slot} of player with black glass named "&8." to be unstealable
add 1 to {_slot}
format slot {_slot} of player with yellow glass named "&8." to be unstealable
add 1 to {_slot}
format slot {_slot} of player with black glass named "&8." to be unstealable
format slot 4 of player with skull of argument 1 named "&4%arg 1% :" with lore "* %{infraction.%arg 1%}% infraction(s)" to be unstealable
format slot 9 of player with tnt named "&6&lGrief WarZone" with lore "* ban 1 jours" to close then run [make player execute command "infraction anti-jeux %arg 1% 1d &4Grief-WarZone"]
command /infraction [<text>] [<player>] [<text>] [<text>] :
permission: punish.pp
permission message: &4tu n'as pas la permission
trigger:
if arg 1 is not set :
message "&6Vous ne devez pas utiliser cette commande comme ceci &4faite /pp [player] "
if arg 1 is "cheat":
add 1 to {infraction.%arg 2%}
execute console command "tempban %arg 2% %arg 3% %arg 4%"
broadcast "&6Le joueur &l%arg 2% &6a été banni(e) pour %arg 4%"
if arg 1 is "chat":
add 1 to {infraction.%arg 2%}
execute console command "mute %arg 2% %arg 3%"
broadcast "&6Le joueur &l%arg 2% &6a été muté pour %arg 4%"
if arg 1 is "anti-jeux":
add 1 to {infraction.%arg 2%}
execute console command "tempban %arg 2% %arg 3% %arg 4%"
broadcast "&6Le joueur &l%arg 2% &6a été banni(e) pour %arg 4%"
add argument 4 to {infraction.%arg 2%::*}
[spoiler=SKRIPT 2]
options:
Nom: &7[&eCannabis&7]
Prix: 2000
#=================
on load:
set {cannabis.item.traité} to sugar cane
#========================================================================
on load:
register new shapeless recipe for sugar cane item named "&c&lCannabis" using 351:15, 31:2, 351:15, 31:1, 287, 31:1, 2, 41, 2
#===========================================================================
on right click :
if name of player's tool is "&6&lCocaïne":
remove 1 gunpowder from player's inventory
apply instant health 2 to player for 1 seconds
apply blindness to player for 5 seconds
apply regeneration 1 to player for 120 seconds
apply slowness 1 to player for 50 seconds
if name of player's tool is "&6&lPoudre":
remove 1 sugar from player's inventory
apply nausea 1 to player for 20 seconds
apply slowness 2 to player for 7 seconds
apply speed 2 to player for 80 seconds
apply strength 2 to player for 80 seconds
apply fire resistance 1 to player for 480 seconds
if name of player's tool is "&6&lPillule":
remove 1 ghast tear from player's inventory
apply water breathing 1 to player for 120 seconds
apply night vision 1 to player for 120 seconds
apply jump boost 1 to player for 120 seconds
apply regeneration 1 to player for 60 seconds
apply weakness 1 to player for 60 seconds
apply slowness 1 to player for 30 seconds
apply blindness 1 to player for 5 seconds
#===========================================================================
#============================================================================
function sugar(p: player):
if {_p}'s inventory contains sugar cane named "&c&lCannabis":
subtract 1 sugar cane from {_p}'s inventory
give 1 sugar named "&6&lPoudre" with lore "&6&lPoudre de perlimpimpin" to {_p}
function vente(p: player):
if {_p}'s inventory contains sugar cane named "&c&lCannabis":
subtract 1 sugar cane from {_p}'s inventory
add 2000 to {_p}'s balance
#========================================================================
on right click on villager:
if name of entity is "&fDealeur":
cancel event
wait 1 ticks
open chest with 3 rows named "&3Traitement du Cannabis" to event-player
format gui slot 15 of event-player with sugar cane named "&3Vendre un de Cannabis" with lore "&3Prix actuel du cannabis : {@Prix}" to run function vente(event-player)
format gui slot 11 of event-player with sugar named "&3Poudre" with lore "&3Echanger votre cannabis contre de la poudre" to run function sugar(event-player)
#==================================================================================
command /drogue [<text>]:
trigger:
if player is op:
if arg 1 is "dealeur":
set {_loc} to player's location
wait 2 ticks
spawn a villager at {_loc}
set name of spawned entity to "&fDealeur"
apply slowness 20 to the spawned entity for 99999999999 seconds
#===============================================================================
Et j'aimerais bien que je puisse utiliser mes scripts donc merci à ceux qui m'aideront
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
bixoumi7
Voila l'erreur :
[spoiler=ERREUR]
Et voila mes 2 skript en cours :
[spoiler=SKRIPT 1]
[spoiler=SKRIPT 2]
Et j'aimerais bien que je puisse utiliser mes scripts donc merci à ceux qui m'aideront
1 réponse à cette question
Messages recommandés