-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finishing touches for 0.5.1. Optimization task improvments
- Loading branch information
1 parent
c8f972a
commit a637f01
Showing
14 changed files
with
195 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
modGroup=rocks.milspecsg | ||
modVersion=0.5.1-SNAPSHOT | ||
modVersion=0.5.1 | ||
modBaseName=MSDataSync |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 10 additions & 8 deletions
18
sponge/src/main/java/rocks/milspecsg/msdatasync/PluginPermissions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
package rocks.milspecsg.msdatasync; | ||
|
||
public abstract class PluginPermissions { | ||
|
||
public static final String MANUAL_OPTIMIZATION = "msdatasync.command.optimize.base"; | ||
public static final String MANUAL_OPTIMIZATION_ALL = "msdatasync.command.optimize.all"; | ||
public static final String EDIT_SNAPSHOTS = "msdatasync.command.snapshot.edit"; | ||
public static final String VIEW_SNAPSHOTS = "msdatasync.command.snapshot.base"; | ||
public static final String LOCK_COMMAND = "msdatasync.command.lock"; | ||
public static final String RELOAD_COMMAND = "msdatasync.command.reload"; | ||
public static final String MANUAL_SYNC_COMMAND = "msdatasync.command.sync"; | ||
public static final String LOCK_COMMAND = "msdatasync.lock"; | ||
public static final String RELOAD_COMMAND = "msdatasync.reload"; | ||
public static final String SNAPSHOT_BASE = "msdatasync.snapshot.base"; | ||
public static final String SNAPSHOT_CREATE = "msdatasync.snapshot.create"; | ||
public static final String SNAPSHOT_DELETE = "msdatasync.snapshot.delete"; | ||
public static final String SNAPSHOT_RESTORE = "msdatasync.snapshot.restore"; | ||
public static final String SNAPSHOT_VIEW_EDIT = "msdatasync.snapshot.view.edit"; | ||
public static final String SNAPSHOT_VIEW_BASE = "msdatasync.snapshot.view.base"; | ||
public static final String MANUAL_OPTIMIZATION_ALL = "msdatasync.optimize.all"; | ||
public static final String MANUAL_OPTIMIZATION_BASE = "msdatasync.optimize.base"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
sponge/src/main/java/rocks/milspecsg/msdatasync/commands/SyncInfoCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package rocks.milspecsg.msdatasync.commands; | ||
|
||
import org.spongepowered.api.command.CommandException; | ||
import org.spongepowered.api.command.CommandResult; | ||
import org.spongepowered.api.command.CommandSource; | ||
import org.spongepowered.api.command.args.CommandContext; | ||
import org.spongepowered.api.command.spec.CommandExecutor; | ||
import org.spongepowered.api.text.Text; | ||
import org.spongepowered.api.text.action.TextActions; | ||
import org.spongepowered.api.text.format.TextColors; | ||
import rocks.milspecsg.msdatasync.MSDataSyncPluginInfo; | ||
import rocks.milspecsg.msdatasync.misc.CommandUtils; | ||
|
||
import javax.inject.Inject; | ||
import java.net.MalformedURLException; | ||
import java.net.URL; | ||
|
||
public class SyncInfoCommand implements CommandExecutor { | ||
|
||
@Inject | ||
CommandUtils commandUtils; | ||
@Override | ||
public CommandResult execute(CommandSource source, CommandContext context) throws CommandException { | ||
commandUtils.createInfoPage(source); | ||
return CommandResult.success(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.