From 261fc8201600fdaefc5fc4a4a6f54f3b4c8e4387 Mon Sep 17 00:00:00 2001 From: Luck Date: Wed, 12 Apr 2017 17:25:22 +0100 Subject: [PATCH] Remove getuuid command why did that ever exist anyways --- .../commands/impl/user/UserGetUUID.java | 47 ------------------- .../commands/impl/user/UserMainCommand.java | 1 - .../luckperms/common/constants/Message.java | 1 - .../common/constants/Permission.java | 1 - 4 files changed, 50 deletions(-) delete mode 100644 common/src/main/java/me/lucko/luckperms/common/commands/impl/user/UserGetUUID.java diff --git a/common/src/main/java/me/lucko/luckperms/common/commands/impl/user/UserGetUUID.java b/common/src/main/java/me/lucko/luckperms/common/commands/impl/user/UserGetUUID.java deleted file mode 100644 index 24b1dbce..00000000 --- a/common/src/main/java/me/lucko/luckperms/common/commands/impl/user/UserGetUUID.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) 2016 Lucko (Luck) - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -package me.lucko.luckperms.common.commands.impl.user; - -import me.lucko.luckperms.common.commands.CommandException; -import me.lucko.luckperms.common.commands.CommandResult; -import me.lucko.luckperms.common.commands.abstraction.SubCommand; -import me.lucko.luckperms.common.commands.sender.Sender; -import me.lucko.luckperms.common.constants.Message; -import me.lucko.luckperms.common.constants.Permission; -import me.lucko.luckperms.common.core.model.User; -import me.lucko.luckperms.common.plugin.LuckPermsPlugin; -import me.lucko.luckperms.common.utils.Predicates; - -import java.util.List; - -public class UserGetUUID extends SubCommand { - public UserGetUUID() { - super("getuuid", "Displays the user's internal LuckPerms unique id", Permission.USER_GETUUID, Predicates.alwaysFalse(), null); - } - - @Override - public CommandResult execute(LuckPermsPlugin plugin, Sender sender, User user, List args, String label) throws CommandException { - Message.USER_GETUUID.send(sender, user.getName(), user.getUuid().toString()); - return CommandResult.SUCCESS; - } -} diff --git a/common/src/main/java/me/lucko/luckperms/common/commands/impl/user/UserMainCommand.java b/common/src/main/java/me/lucko/luckperms/common/commands/impl/user/UserMainCommand.java index 7c1ca50d..c8a5854e 100644 --- a/common/src/main/java/me/lucko/luckperms/common/commands/impl/user/UserMainCommand.java +++ b/common/src/main/java/me/lucko/luckperms/common/commands/impl/user/UserMainCommand.java @@ -48,7 +48,6 @@ public class UserMainCommand extends MainCommand { .add(new CommandPermission<>(true)) .add(new CommandParent<>(true)) .add(new CommandMeta<>(true)) - .add(new UserGetUUID()) .add(new UserSwitchPrimaryGroup()) .add(new UserPromote()) .add(new UserDemote()) diff --git a/common/src/main/java/me/lucko/luckperms/common/constants/Message.java b/common/src/main/java/me/lucko/luckperms/common/constants/Message.java index 673d336c..39a8faec 100644 --- a/common/src/main/java/me/lucko/luckperms/common/constants/Message.java +++ b/common/src/main/java/me/lucko/luckperms/common/constants/Message.java @@ -300,7 +300,6 @@ public enum Message { INFO_PARENT_HEADER("&f- &aParent Groups:", true), INFO_TEMP_PARENT_HEADER("&f- &aTemporary Parent Groups:", true), - USER_GETUUID("&bThe UUID of &b{0}&b is &b{1}&b.", true), USER_REMOVEGROUP_ERROR_PRIMARY("You cannot remove a user from their primary group.", true), USER_PRIMARYGROUP_SUCCESS("&b{0}&a's primary group was set to &b{1}&a.", true), USER_PRIMARYGROUP_WARN_OPTION("&cWarning: The primary group calculation method being used by this server &7({0}) &cmay not reflect this change.", true), diff --git a/common/src/main/java/me/lucko/luckperms/common/constants/Permission.java b/common/src/main/java/me/lucko/luckperms/common/constants/Permission.java index be14d0eb..9aad2b95 100644 --- a/common/src/main/java/me/lucko/luckperms/common/constants/Permission.java +++ b/common/src/main/java/me/lucko/luckperms/common/constants/Permission.java @@ -84,7 +84,6 @@ public enum Permission { USER_META_REMOVETEMP_PREFIX(list("meta.removetempprefix", "removetempprefix"), Type.USER), USER_META_REMOVETEMP_SUFFIX(list("meta.removetempsuffix", "removetempsuffix"), Type.USER), USER_META_CLEAR(list("meta.clear", "clearmeta"), Type.USER), - USER_GETUUID(list("getuuid"), Type.USER), USER_SWITCHPRIMARYGROUP(list("switchprimarygroup", "setprimarygroup"), Type.USER), USER_SHOWTRACKS(list("showtracks"), Type.USER), USER_PROMOTE(list("promote"), Type.USER),