Archived
0

Added migrate command

This commit is contained in:
Pepich
2017-05-11 18:31:09 +02:00
parent 84316c4596
commit 0179d7563c
2 changed files with 12 additions and 2 deletions

View File

@@ -31,7 +31,6 @@ command socialspy {
run commands_del command; run commands_del command;
help Deletes a command from the list of commands that you're listening to.; help Deletes a command from the list of commands that you're listening to.;
} }
stripcolor on { stripcolor on {
run stripcolor_on; run stripcolor_on;
} }
@@ -52,4 +51,8 @@ command socialspy {
} }
perm utils.socialspy; perm utils.socialspy;
type player; type player;
migrate {
run migrate;
type console;
}
} }

View File

@@ -17,7 +17,7 @@ import com.redstoner.misc.Utils;
import com.redstoner.modules.CoreModule; import com.redstoner.modules.CoreModule;
import com.redstoner.modules.datamanager.DataManager; import com.redstoner.modules.datamanager.DataManager;
@Version(major = 3, minor = 0, revision = 0, compatible = 3) @Version(major = 3, minor = 0, revision = 2, compatible = 3)
public class Socialspy implements CoreModule public class Socialspy implements CoreModule
{ {
@Override @Override
@@ -262,4 +262,11 @@ public class Socialspy implements CoreModule
{ {
return "&7"; return "&7";
} }
@Command(hook = "migrate")
public boolean migrate(CommandSender sender)
{
DataManager.migrateAll("Message");
return true;
}
} }