Added migrate command
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user