You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it["EVALUATE-SCRIPT-ERROR"] ="An error occurred during script {script_name} evaluation, please check the script format."
146
+
it["EVALUATE-TEMP-SCRIPT-ERROR"] ="An error occurred during temp script evaluation, please check the script format."
147
+
it["EXECUTE-SCRIPT-ERROR"] ="An error occurred when the script {script_name} executes the function {execute_main}, please check the script format."
148
+
it["EXECUTE-SCRIPT-FUNCTION-NOT-FOUND-ERROR"] ="An error occurred when the script {script_name} executes the function {execute_main}, this function not found!"
149
+
it["EXECUTE-TEMP-SCRIPT-ERROR"] ="An error occurred when the temp script executes the function {execute_main}, please check the script format."
150
+
it["EXECUTE-SCRIPT-FUNCTION-NOT-FOUND-ERROR"] ="An error occurred when the temp script executes the function {execute_main}, this function not found!"
if (file.name.contains("")) returnPair(null, ProcessResult(ProcessResultType.FAILED, "File name cannot contain spaces!"))
84
+
if (file.name.contains("")) returnPair(null, ProcessResult(ProcessResultType.FAILED, languages["SCRIPT-MANAGER.PROCESS-RESULT.SCRIPT-FILE-NAME-CANNOT-SPACES"]))
88
85
if (file.isDirectory) {
89
86
return loadFromFolderScript(file)
90
87
}
@@ -173,7 +170,9 @@ class ScriptManager {
173
170
total++
174
171
if (it.second.type ==ProcessResultType.FAILED|| it.first ==null) {
175
172
fail++
176
-
plugin.server.console.sendMessage(FormatHeader.ERROR, "An error occurred while loading script ${file.name}, reason: §8${it.second.message}")
0 commit comments