From 0179d7563c9691d1bf8ebe633165700cd4eefb07 Mon Sep 17 00:00:00 2001 From: Pepich Date: Thu, 11 May 2017 18:31:09 +0200 Subject: [PATCH] Added migrate command --- src/com/redstoner/modules/socialspy/Socialspy.cmd | 5 ++++- src/com/redstoner/modules/socialspy/Socialspy.java | 9 ++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/com/redstoner/modules/socialspy/Socialspy.cmd b/src/com/redstoner/modules/socialspy/Socialspy.cmd index dfd7073..241f51b 100644 --- a/src/com/redstoner/modules/socialspy/Socialspy.cmd +++ b/src/com/redstoner/modules/socialspy/Socialspy.cmd @@ -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; + } } \ No newline at end of file diff --git a/src/com/redstoner/modules/socialspy/Socialspy.java b/src/com/redstoner/modules/socialspy/Socialspy.java index 5f5bd3c..0cd272d 100644 --- a/src/com/redstoner/modules/socialspy/Socialspy.java +++ b/src/com/redstoner/modules/socialspy/Socialspy.java @@ -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; + } }