Add new commands to metrics

This commit is contained in:
libraryaddict
2020-01-04 07:46:02 +13:00
parent 3536bf63c3
commit 64f9da47c9
6 changed files with 56 additions and 5 deletions

View File

@@ -85,6 +85,8 @@ public class CopyDisguiseCommand implements CommandExecutor {
sendMessage(sender, LibsMsg.CLICK_TO_COPY_WITH_SKIN, DisguiseParser.parseToString(disguise), true);
}
DisguiseUtilities.setCopyDisguiseCommandUsed();
return true;
}

View File

@@ -141,6 +141,8 @@ public class GrabSkinCommand implements CommandExecutor {
}
sender.spigot().sendMessage(builder.create());
DisguiseUtilities.setGrabSkinCommandUsed();
}
};

View File

@@ -164,6 +164,8 @@ public class SaveDisguiseCommand implements CommandExecutor {
try {
DisguiseAPI.addCustomDisguise(name, disguiseString);
sender.sendMessage(LibsMsg.CUSTOM_DISGUISE_SAVED.get(name));
DisguiseUtilities.setSaveDisguiseCommandUsed();
}
catch (DisguiseParseException e) {
if (e.getMessage() != null) {