Browse Source

new specialized concat

Kajetan Johannes Hammerle 3 years ago
parent
commit
0e8fc7d9fa

+ 2 - 2
src/main/java/me/km/snuviscript/commands/CommandUtils.java

@@ -79,11 +79,11 @@ public class CommandUtils {
         UUID uuid = getUUID(o);
         return bank.getId(uuid);
     }
-    
+
     public static Class getNamedClass(String s) throws ClassNotFoundException {
         return Class.forName(s);
     }
-    
+
     public static BlockState getBlockState(Location l) {
         return l.getWorld().getBlockState(l.getBlockPos());
     }

+ 2 - 0
src/main/java/me/km/snuviscript/commands/Commands.java

@@ -40,5 +40,7 @@ public class Commands {
             SnuviConfig config = (SnuviConfig) in[0].get(sc);
             scheduler.scheduleAsyncTask(() -> config.save(sc));
         });
+        sm.registerFunction("text.concat2", (sc, in) -> concat(sc, 0, "", in));
+        sm.registerAlias("text.concat2", "concat2");
     }
 }