Skocz do zawartości
  • 0

Problem z skryptem


supermichalpol
 Udostępnij

Pytanie

Witam, otóż próbuje napisać skrypt pod plugin Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść! wykorzystując jego API. A oto mój skrypt:

 

command /dodajpremium <offlineplayer>:    description: dodanie gracza do listy    aliases: dp    usage: /dodajpremium <gracz>    permission: premium.add    trigger:                set AutoInWhiteListStatus of %offlinePlayer% to WHITE_LISTED

Ale pokazuje mi się cały czas error w 7 linijce, i mam pytanie jak to naprawić? Jeden użytkownik napisał, że mam dodać do tego "Add arg to exceptions" ale nie wiem gdzie mam to wstawić. Proszę o szybką pomoc :). Oczywiście za pomoc dam like :D.

 

PS: Proszę oto API pluginu pod skript:

 

  1. [*]
#    %player% PremiumStatus is [not] equals to (PREMIUM|CRACKED|EXCEPTION|ERROR|NOT_LOGGED_IN)
[*]
#    %player% PremiumStatus is [not] (premium|exception|error|cracked|cracked Exact|Not Logged In|Vaild)
[*]
#    %offlinePlayer% AutoInWhiteListStatus is [not] equals to (BLACK_LISTED|WHITE_LISTED|UNKNOWN|PREMIUM)
[*]
#    %offlinePlayer% AutoInWhiteListStatus is [not] (Joinable|BlackListed|WhiteListed|Unknown|Premium)
[*]
#    %offlinePlayer% has [not] enabled login
[*]
#    %offlinePlayer% is [not] exception
[*]
#    add %offlinePlayer% to exceptions
[*]
#    remove %offlinePlayer% from exceptions
[*]
#    add %offlinePlayer% to enabled logins
[*]
#    remove %offlinePlayer% from enabled logins
[*]
#    set PremiumStatus of %player% to (PREMIUM|CRACKED|EXCEPTION|ERROR|NOT_LOGGED_IN)
[*]
#    set AutoInWhiteListStatus of %offlinePlayer% to (BLACK_LISTED|WHITE_LISTED|UNKNOWN)
[*]
#    remove AutoInWhiteListStatus of %offlinePlayer%
[*]
#    enable AutoIn whitelist
[*]
#    disable AutoIn whitelist
[*]
#    is AutoIn whitelist enabled
[*]
#    force login %player%
[*]
#    force register %offlinePlayer%
[*]
#    force logout %player%
[*]
#    is registered %player%
[*]
#    is logged in %player%
[*]
#    save AutoIn configuration file
[*]
#    reload AutoIn configuration file
[*]
#    on pre force login:
[*]
#    on force login:

Odnośnik do komentarza
Udostępnij na innych stronach

18 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Zamiast /sk reload all spróbuj /sk reload <nazwa skryptu>.

Zrobiłem tak i nadal nic:

Dołączona grafika

 

I usunąłem zbędne rzeczy i skrypt wygląda tak:

command /dodajpremium <offlineplayer>:    description: dodanie gracza do listy    usage: /dodajpremium <gracz>    trigger:               set AutoInWhiteListStatus of arg to WHITE_LISTED
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

No to nie wiem. Na pewno masz kompatybilną wersję tego dodatku?

Pobrałem najnowszą wersję skript i tego pluginu auto-in.

 

Za to dopiero teraz zauważyłem oto taki fragment ERRORA:

[18:51:41 ERROR]: #!#![18:51:41 ERROR]: #!#! [Skript] Severe Error:[18:51:41 ERROR]: #!#! Could not load dodajpremium.sk[18:51:41 ERROR]: #!#![18:51:41 ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.[18:51:41 ERROR]: #!#! If you're a server admin however please go toZarejestruj się lub zaloguj, aby zobaczyć ukrytą treść! ERROR]: #!#! and check whether this error has already been reported.[18:51:41 ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it,[18:51:41 ERROR]: #!#! and describe what you did before it happened and/or whatyou think caused the error.[18:51:41 ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well.[18:51:41 ERROR]: #!#! By following this guide fixing the error should be easy and done fast.[18:51:41 ERROR]: #!#![18:51:41 ERROR]: #!#! Stack trace:[18:51:41 ERROR]: #!#! ch.njol.skript.lang.SkriptParser$MalformedPatternException: Missing closing bracket ')' [pattern: set ((AutoInWhiteListStatus|AutoIn WhiteList Status|AutoIn White List Status) of %offlineplayers/strings%|%offlineplayers/strings% ((AutoInWhiteListStatus|AutoIn WhiteList Status|AutoIn White List Status)) to BLACK_LISTED][18:51:41 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.nextBracket(SkriptParser.java:730)[18:51:41 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1068)[18:51:41 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:981)[18:51:41 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:942)[18:51:41 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:942)[18:51:41 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:209)[18:51:41 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:164)[18:51:41 ERROR]: #!#!     at ch.njol.skript.lang.Statement.parse(Statement.java:42)[18:51:41 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:615)[18:51:41 ERROR]: #!#!     at ch.njol.skript.command.Commands.loadCommand(Commands.java:449)[18:51:41 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:462)[18:51:41 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:239)[18:51:41 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:193)[18:51:41 ERROR]: #!#!     at ch.njol.skript.Skript$2.run(Skript.java:378)[18:51:41 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftTask.run(CraftTask.java:71)[18:51:41 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350)[18:51:41 ERROR]: #!#!     at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:641)[18:51:41 ERROR]: #!#!     at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:289)[18:51:41 ERROR]: #!#!     at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:584)[18:51:41 ERROR]: #!#!     at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:490)[18:51:41 ERROR]: #!#!     at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628)[18:51:41 ERROR]: #!#![18:51:41 ERROR]: #!#! Version Information:[18:51:41 ERROR]: #!#!   Skript: 2.1.2[18:51:41 ERROR]: #!#!   Bukkit: 1.7.10-R0.1-SNAPSHOT[18:51:41 ERROR]: #!#!   Minecraft: 1.7.10[18:51:41 ERROR]: #!#!   Java: 1.7.0_67[18:51:41 ERROR]: #!#![18:51:41 ERROR]: #!#! Running CraftBukkit: false[18:51:41 ERROR]: #!#![18:51:41 ERROR]: #!#! Current node: set AutoInWhiteListStatus of arg to WHITE_LISTED (dodajpremium.sk, line 5)[18:51:41 ERROR]: #!#! Current item: null[18:51:41 ERROR]: #!#![18:51:41 ERROR]: #!#! Thread: Server thread[18:51:41 ERROR]: #!#![18:51:41 ERROR]: #!#! End of Error.[18:51:41 ERROR]: #!#!

Edytowane przez supermichalpol
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

Z tego błędu wynika że nie działa sam dodatek. Możesz zgłosić to do twórcy lub napisać tu:

http://dev.bukkit.org/server-mods/skript/tickets/'>>http://dev.bukkit.org/server-mods/skript/tickets/

Jeśli jest ci to bardzo potrzebne, proponuję użyć zwykłej whitelisty.

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

Z tego błędu wynika że nie działa sam dodatek. Możesz zgłosić to do twórcy lub napisać tu:

http://dev.bukkit.org/server-mods/skript/tickets/'>>http://dev.bukkit.org/server-mods/skript/tickets/

Jeśli jest ci to bardzo potrzebne, proponuję użyć zwykłej whitelisty.

Jest mi to bardzo potrzebne. Tylko, że ta whitelista w pluginie robi tak, że WSZYSCY gracze premium mogą wejść, i niektórzy co są na liście i mają no-premium. A ja chce tego użyć na serwerze publicznym, więc wpisywanie ich do whitelisty ręcznie nie wchodzi w grę  ;-;

Edytowane przez supermichalpol
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

Dodaj ten kod z dwukropkiem do "on join:".

OK zrobiłem taki skrypt:

on join:player PremiumStatus is equals to CRACKED:   {whitelista::%player%} is not set:      kick player due to "Nie masz premium"

Ale pokazuje za to error, że mam usunąć dwukropek w 2 linijce:

[09:34:44 INFO]: [Skript] Reloading the config and all scripts...[09:34:44 INFO]: Loaded a total of 11504 english aliases[09:34:44 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (dodajpremium.sk, line 1: on join:')[09:34:44 ERROR]: can't understand this event: 'player PremiumStatus is equals to CRACKED' (dodajpremium.sk, line 2: player PremiumStatus is equals to CRACKED:')[09:34:44 INFO]: Loaded 1 script with a total of 1 trigger and 0 commands in 0 seconds[09:34:44 INFO]: [Skript] Encountered 1 error while reloading the config and all scripts!

A jak ten dwukropek w drugiej linijce usunę to pokazują się takie errory:

[09:36:15 INFO]: [Skript] Reloading the config and all scripts...[09:36:15 INFO]: Loaded a total of 11504 english aliases[09:36:15 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (dodajpremium.sk, line 1: on join:')[09:36:15 ERROR]: indentation error: expected 0 tabs, but found 3 spaces (dodajpremium.sk, line 3: {whitelista::%player%} is not set:')[09:36:15 ERROR]: indentation error: expected 0 tabs, but found 6 spaces (dodajpremium.sk, line 4: kick player due to "Nie masz premium"')[09:36:15 ERROR]: invalid line - all code has to be put into triggers (dodajpremium.sk, line 2: player PremiumStatus is equals to CRACKED')[09:36:15 INFO]: Loaded 1 script with a total of 1 trigger and 0 commands in 0 seconds[09:36:15 INFO]: [Skript] Encountered 3 errors while reloading the config and all scripts!
Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...