Added migrate command
This commit is contained in:
@@ -31,7 +31,6 @@ command socialspy {
|
||||
run commands_del command;
|
||||
help Deletes a command from the list of commands that you're listening to.;
|
||||
}
|
||||
|
||||
stripcolor on {
|
||||
run stripcolor_on;
|
||||
}
|
||||
@@ -52,4 +51,8 @@ command socialspy {
|
||||
}
|
||||
perm utils.socialspy;
|
||||
type player;
|
||||
migrate {
|
||||
run migrate;
|
||||
type console;
|
||||
}
|
||||
}
|
||||
@@ -17,7 +17,7 @@ import com.redstoner.misc.Utils;
|
||||
import com.redstoner.modules.CoreModule;
|
||||
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
|
||||
{
|
||||
@Override
|
||||
@@ -262,4 +262,11 @@ public class Socialspy implements CoreModule
|
||||
{
|
||||
return "&7";
|
||||
}
|
||||
|
||||
@Command(hook = "migrate")
|
||||
public boolean migrate(CommandSender sender)
|
||||
{
|
||||
DataManager.migrateAll("Message");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user