java.lang.Object
moe.maple.api.script.model.ScriptPreferences
public class ScriptPreferences extends Object
Created on 8/26/2019.
-
Field Summary
Fields Modifier and Type Field Description static ScriptPreferencesDEFAULT -
Method Summary
Modifier and Type Method Description ScriptPreferencescatchExceptions(boolean enabled)ScriptPreferencesforceOkOnSay(boolean enabled)booleanshouldCatchExceptions()If true, scripts will catch all exceptions thrown and issueMoeScript.end().booleanshouldForceOkOnSay()IfforceOkOnSayis true, all script 'say' calls will end with 'OK'.
-
Field Details
-
Method Details
-
catchExceptions
-
forceOkOnSay
-
shouldForceOkOnSay
public boolean shouldForceOkOnSay()IfforceOkOnSayis true, all script 'say' calls will end with 'OK'. Example: Given the pseudo script { say("0", "1", "2").andThen(()=>askMenu("pick", "one")) } If true, "2" would end with Ok else "2" would be next.- Returns:
- Your preference.
-
shouldCatchExceptions
public boolean shouldCatchExceptions()If true, scripts will catch all exceptions thrown and issueMoeScript.end(). If false, scripts will throw exceptions and not callMoeScript.end().
-