Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed a startup bug. Also, fixed the RESET color on Windows.

  • Loading branch information...
commit 6e1af5848bd7c180e51eff9a6d1087231c0ed2df 1 parent 284e473
@LadyCailin LadyCailin authored
View
65 README.md
@@ -1,32 +1,35 @@
-CommandHelper
-=============
-
-CommandHelper adds simple command aliases, complex macros,
-and the ability to script your own commands and events into Minecraft,
-using the MethodScript scripting language.
-
-Compiling
----------
-
-You need to have Maven installed (http://maven.apache.org). Once installed,
-simply run:
-
- mvn clean package install
-
-Maven will automatically download dependencies for you. Note: For that to work,
-be sure to add Maven to your "PATH".
-
-Contributing
-------------
-
-We happily accept contributions. The best way to do this is to fork
-CommandHelper on GitHub, add your changes, and then submit a pull request.
-We'll look at it, make comments, and merge it into CommandHelper if
-everything works out.
-
-By submitting code, you agree to dual license your code under the
-the MIT License, barring the special restriction regarding code submissions,
-explained in the SPECIAL_LICENSE.txt file, which is attached.
-
-Portions of CommandHelper are copyright: wraithguard01, sk89q, Deaygo,
+CommandHelper
+=============
+
+CommandHelper adds simple command aliases, complex macros,
+and the ability to script your own commands and events into Minecraft,
+using the MethodScript scripting language.
+
+Compiling
+---------
+
+You need to have Maven installed (http://maven.apache.org). Once installed,
+simply run:
+
+ mvn clean package install
+
+Maven will automatically download dependencies for you. Note: For that to work,
+be sure to add Maven to your "PATH". If you get a message about tests failing,
+try running:
+
+ mvn -Pprovisional-build clean package install
+
+Contributing
+------------
+
+We happily accept contributions. The best way to do this is to fork
+CommandHelper on GitHub, add your changes, and then submit a pull request.
+We'll look at it, make comments, and merge it into CommandHelper if
+everything works out.
+
+By submitting code, you agree to dual license your code under the
+the MIT License, barring the special restriction regarding code submissions,
+explained in the SPECIAL_LICENSE.txt file, which is attached.
+
+Portions of CommandHelper are copyright: wraithguard01, sk89q, Deaygo,
t3hk0d3, zml2008, EntityReborn, and albatrossen
View
16 src/main/java/com/laytonsmith/PureUtilities/TermColors.java
@@ -106,6 +106,8 @@ public static void cls(){
@color public static String STRIKE = special("strike");
@color public static String UNDERLINE = special("underline");
@color public static String ITALIC = special("italic");
+
+ @color public static String RESET = special("reset");
private static Map<String, String> defaults = new HashMap<String, String>();
private static List<Field> fields = null;
@@ -174,14 +176,18 @@ private static String special(String type){
return "\033[3m";
}
}
+ if(type.equals("reset")){
+ return "\033[0m";
+ }
return "";
}
public static String reset(){
- if(SYSTEM.equals(SYS.WINDOWS)){
- return ""; //lol, it's already reset
- }
- return "\033[0m";
+ return RESET;
+// if(SYSTEM.equals(SYS.WINDOWS)){
+// return ""; //lol, it's already reset
+// }
+// return "\033[0m";
}
/**
* Returns the specified color code, foreground, and dark.
@@ -255,6 +261,8 @@ public static void pl(CharSequence c) {
static{
if(SYSTEM == SYS.WINDOWS){
DisableColors();
+ } else {
+ EnableColors();
}
}
}
View
5 src/main/java/com/laytonsmith/commandhelper/CommandHelperPlugin.java
@@ -110,6 +110,11 @@ public void onLoad() {
public void onEnable() {
self = this;
myServer = StaticLayer.GetServer();
+ try {
+ Prefs.init(new File(chDirectory, "preferences.txt"));
+ } catch (IOException ex) {
+ Logger.getLogger(CommandHelperPlugin.class.getName()).log(Level.SEVERE, null, ex);
+ }
CHLog.initialize(chDirectory);
try {
ConnectionMixinFactory.ConnectionMixinOptions options = new ConnectionMixinFactory.ConnectionMixinOptions();
Please sign in to comment.
Something went wrong with that request. Please try again.