mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 08:27:45 +00:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
57920b02b7
2 files changed
+4
-5
No files matched your search
@@ -33,7 +33,6 @@ import noppes.npcs.scripted.NpcAPI;
|
||||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Set;
|
||||
import java.util.Timer;
|
||||
import java.util.UUID;
|
||||
|
||||
@Mod(modid = "customnpcs", name = "CustomNpcs", version = "1.7")
|
||||
@@ -48,8 +47,8 @@ public class CustomNpcs {
|
||||
public static boolean ScriptingEnabled = true;
|
||||
|
||||
@ConfigProp(info = "Enables/Disables the use of the the ECMA6 Javascript standard instead of ECMA5.1." +
|
||||
"\nEnabling this adds many more features to JS in scripts, but may cause some scripts to break" +
|
||||
"\non servers that run Java 8 or lower. Disabled by default.")
|
||||
"\nEnabling this adds many more features to JS in scripts. Only use if on Java 8 or higher." +
|
||||
"\nNot all ECMA 6 language is supported through this functionality.")
|
||||
public static boolean ScriptingECMA6 = false;
|
||||
|
||||
@ConfigProp(info = "Enables global player event scripts to be used in the scripter. You can still see and write code in the scripter, but these scripts won't run. True by default.")
|
||||
|
||||
@@ -17,7 +17,7 @@ public class VersionChecker extends Thread{
|
||||
|
||||
}
|
||||
public void run(){
|
||||
String name = '\u00A7'+ "2CustomNpcs" + '\u00A7' + "f";
|
||||
String name = '\u00A7'+ "cCustomNPC+" + '\u00A7' + "f";
|
||||
String link = '\u00A7'+"9"+'\u00A7' + "nClick here";
|
||||
String text = name +" installed. For more info " + link;
|
||||
|
||||
@@ -36,7 +36,7 @@ public class VersionChecker extends Thread{
|
||||
}
|
||||
}
|
||||
ChatComponentTranslation message = new ChatComponentTranslation(text);
|
||||
message.getChatStyle().setChatClickEvent(new ClickEvent(Action.OPEN_URL, "http://www.kodevelopment.nl/minecraft/customnpcs/"));
|
||||
message.getChatStyle().setChatClickEvent(new ClickEvent(Action.OPEN_URL, "https://www.curseforge.com/minecraft/mc-mods/customnpc-plus"));
|
||||
player.addChatMessage(message);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user