Skip to content

Commit

Permalink
Upstream merge from feature/chunks-cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
ewized committed Apr 7, 2016
2 parents 85d93a9 + 3c7ff24 commit 932cc2c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 34 deletions.
1 change: 0 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
@@ -1,4 +1,3 @@
<<<<<<< HEAD
#Sun Mar 13 21:11:07 PDT 2016
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
Expand Down
Expand Up @@ -5,6 +5,7 @@
package net.year4000.utilities.sponge;

import net.year4000.utilities.Tokens;
import net.year4000.utilities.sponge.command.ChunksCommand;
import net.year4000.utilities.sponge.command.PluginCommand;
import net.year4000.utilities.sponge.command.SystemCommand;
import org.spongepowered.api.event.Listener;
Expand Down Expand Up @@ -32,5 +33,6 @@ public void onUtilitiesInit(GameInitializationEvent event) {
PluginCommand.register(this);
// FlyCommand.register(this); todo disable, should be in drip
SystemCommand.register(this);
ChunksCommand.register(this);
}
}

This file was deleted.

Expand Up @@ -2,7 +2,7 @@

import com.google.common.collect.Lists;
import net.year4000.utilities.sponge.Messages;
import net.year4000.utilities.sponge.UtilitiesPlugin;
import net.year4000.utilities.sponge.Utilities;
import org.spongepowered.api.Sponge;
import org.spongepowered.api.command.CommandException;
import org.spongepowered.api.command.CommandPermissionException;
Expand All @@ -23,7 +23,7 @@
import java.util.List;
import java.util.concurrent.TimeUnit;

import static net.year4000.utilities.sponge.Messages.*;
import static net.year4000.utilities.sponge.Messages.CHUNKS_WORLD;

/** View the status of the chunks of each world */
public final class ChunksCommand implements CommandExecutor {
Expand Down Expand Up @@ -89,7 +89,7 @@ public CommandResult execute(CommandSource src, CommandContext args) throws Comm
player.sendMessage(ChatTypes.ACTION_BAR, Text.of(Messages.NOTICE, "Unloading server chunks, use caution when building."));
});
})
.submit(UtilitiesPlugin.get());
.submit(Utilities.get());

Sponge.getScheduler().createTaskBuilder()
.async()
Expand All @@ -115,7 +115,7 @@ public CommandResult execute(CommandSource src, CommandContext args) throws Comm
player.sendMessage(ChatTypes.ACTION_BAR, Text.of(Messages.SUCCESS, TextColors.GOLD, TextStyles.BOLD, "It's OK, you may resume your work."));
});
})
.submit(UtilitiesPlugin.get());
.submit(Utilities.get());

return CommandResult.success();
}
Expand Down

0 comments on commit 932cc2c

Please sign in to comment.