- Jan 20, 2018
- 1,501
- 108
- 63
- 20
You don't have to check the log level, you can also just check the messageTry to detect when / re reload config is given.
That is, if it is an INFO record.
Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.
If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!
Now, what are you waiting for? Join the community now!
You can always check out skUnity Downloads for downloads and any other information about Skript!
You don't have to check the log level, you can also just check the messageTry to detect when / re reload config is given.
That is, if it is an INFO record.
You do NOT need to use log level. Use [the] log[ged] message to get the message. That's all you need to checkThe problem is how. I can not find the way, and in the documentation does not specify its use, nor an example. It's just a line and now.
Expression:
[the] log [message] level
Could it be used?
if log "[Skript]" is info:
I really do not understand, I've tried a lot and it does not work.
Skript-Logs will need a special version of Skript to work properly?
You do NOT need to use log level. Use [the] log[ged] message to get the message. That's all you need to check
on log:
the logged messange to ""
# Code?
[10:16:09 ERROR]: Can't understand this condition/effect: the logged message to
"[Skript]" (Error.sk, line 2: the logged message to "[Skript]"')
Use something like this:It's what I understand about what you just told me.
Try the following but I do not think it's the right thing to do. And how could I do a conditional?
code_language.skript:on log: the logged messange to "" # Code?
Error:
code_language.skript:[10:16:09 ERROR]: Can't understand this condition/effect: the logged message to "[Skript]" (Error.sk, line 2: the logged message to "[Skript]"')
on log:
logged message parsed as "java.lang.IllegalArgumentException: Team name '%text%' is already in use at org.apache.commons.lang.Validate.isTrue(Validate.java:136)" is set
broadcast "error!"
Use something like this:
code_language.skript:on log: logged message parsed as "java.lang.IllegalArgumentException: Team name '%text%' is already in use at org.apache.commons.lang.Validate.isTrue(Validate.java:136)" broadcast "error!"
[23:05:04 ERROR]: Can't understand this condition/effect: logged message parsed
as "java.lang.IllegalArgumentException: Team name '%text%' is already in use at
org.apache.commons.lang.Validate.isTrue(Validate.java:136)" (Error.sk, line 2: l
ogged message parsed as "java.lang.IllegalArgumentException: Team name '%text%'
is already in use at org.apache.commons.lang.Validate.isTrue(Validate.java:136)"
')
Sorry, I forgot 2 words. I edited my message, try againI do not know if it's you or me but it keeps giving error. I copy the code as is and it does not work mark the following.
code_language.skript:[23:05:04 ERROR]: Can't understand this condition/effect: logged message parsed as "java.lang.IllegalArgumentException: Team name '%text%' is already in use at org.apache.commons.lang.Validate.isTrue(Validate.java:136)" (Error.sk, line 2: l ogged message parsed as "java.lang.IllegalArgumentException: Team name '%text%' is already in use at org.apache.commons.lang.Validate.isTrue(Validate.java:136)" ')
After all, I do not know how to solve this, I'll have to try Java.
TPGamesNL said:Sorry, I forgot 2 words. I edited my message, try again
[12:07:44] [Server thread/ERROR]: ': Team name '%text%' is already in use at org.apache.commons.lang.Validate.isTrue(Validate.java:136)"' is not a valid item data (Error.sk, line 2: logged message parsed as "java.lang.IllegalArgumentException: Team name '%text%' is already in use at org.apache.commons.lang.Validate.isTrue(Validate.java:136)" is set')
TryI really know that it is very annoying. But I can not understand the proper functioning of ADDON Skriot-Logs.
Still causing error in the console:
code_language.skript:[12:07:44] [Server thread/ERROR]: ': Team name '%text%' is already in use at org.apache.commons.lang.Validate.isTrue(Validate.java:136)"' is not a valid item data (Error.sk, line 2: logged message parsed as "java.lang.IllegalArgumentException: Team name '%text%' is already in use at org.apache.commons.lang.Validate.isTrue(Validate.java:136)" is set')
I do not try variants because I repeat, I do not understand the operation of the addon.
on log:
set {_msg} to logged message
set {_t::*} to {_msg} parsed as "java.lang.IllegalArgumentException: Team name %text% is already in use at org.apache.commons.lang.Validate.isTrue\(Validate.java:136\)"
{_t::*} is set
broadcast "error!"