mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 03:03:43 +01:00 
			
		
		
		
	Sponge fixes
This commit is contained in:
		@@ -95,7 +95,7 @@ public class DebugExec extends SubCommand {
 | 
			
		||||
            TaskManager.runTaskLater(new Runnable() {
 | 
			
		||||
                @Override
 | 
			
		||||
                public void run() {
 | 
			
		||||
                    onCommand(ConsolePlayer.getConsole(), new String[] {"runasync", "start.js"});
 | 
			
		||||
                    onCommand(ConsolePlayer.getConsole(), new String[] {"run", "start.js"});
 | 
			
		||||
                }
 | 
			
		||||
            }, 1);
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
@@ -337,7 +337,7 @@ public class MainCommand extends CommandManager<PlotPlayer> {
 | 
			
		||||
            MainUtil.sendMessage(plr, C.NOT_VALID_SUBCOMMAND);
 | 
			
		||||
            {
 | 
			
		||||
                List<Command<PlotPlayer>> cmds = getCommands(null, plr);
 | 
			
		||||
                if (label == null || (cmd = new StringComparison<>(label, cmds).getMatchObject()) == null) {
 | 
			
		||||
                if (label == null || cmds.size() == 0 || (cmd = new StringComparison<>(label, cmds).getMatchObject()) == null) {
 | 
			
		||||
                    MainUtil.sendMessage(plr, C.DID_YOU_MEAN, "/plot help");
 | 
			
		||||
                }
 | 
			
		||||
                else {
 | 
			
		||||
 
 | 
			
		||||
@@ -50,7 +50,7 @@ public class StringMan {
 | 
			
		||||
        else if (obj instanceof Collection<?>) {
 | 
			
		||||
            String result = "";
 | 
			
		||||
            String prefix = "";
 | 
			
		||||
            for (Object element : (List<?>) obj) {
 | 
			
		||||
            for (Object element : (Collection<?>) obj) {
 | 
			
		||||
                result += prefix + getString(element);
 | 
			
		||||
                prefix = ",";
 | 
			
		||||
            }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user