|
| 1 | +/* |
| 2 | + * This file is a part of project QuickShop, the name is CommandManager.java |
| 3 | + * Copyright (C) PotatoCraft Studio and contributors |
| 4 | + * |
| 5 | + * This program is free software: you can redistribute it and/or modify it |
| 6 | + * under the terms of the GNU General Public License as published by the |
| 7 | + * Free Software Foundation, either version 3 of the License, or |
| 8 | + * (at your option) any later version. |
| 9 | + * |
| 10 | + * This program is distributed in the hope that it will be useful, but WITHOUT |
| 11 | + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 12 | + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 13 | + * for more details. |
| 14 | + * |
| 15 | + * You should have received a copy of the GNU General Public License |
| 16 | + * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | + * |
| 18 | + */ |
| 19 | + |
1 | 20 | package org.maxgamer.quickshop.api.command; |
2 | 21 |
|
3 | 22 | import org.bukkit.command.Command; |
@@ -40,14 +59,6 @@ boolean onCommand( |
40 | 59 | @NotNull String commandLabel, |
41 | 60 | @NotNull String[] cmdArg); |
42 | 61 |
|
43 | | - /** |
44 | | - * Method for capturing generic type |
45 | | - */ |
46 | | - @SuppressWarnings("unchecked") |
47 | | - default <T1, T2 extends T1> T2 capture(T1 type) { |
48 | | - return (T2) type; |
49 | | - } |
50 | | - |
51 | 62 | boolean checkPermissions(CommandSender sender, String commandLabel, String[] cmdArg, List<String> permissionList, PermissionType permissionType, Action action); |
52 | 63 |
|
53 | 64 |
|
@@ -75,6 +86,6 @@ public String getName() { |
75 | 86 |
|
76 | 87 | enum PermissionType { |
77 | 88 | REQUIRE, |
78 | | - SELECTIVE; |
| 89 | + SELECTIVE |
79 | 90 | } |
80 | 91 | } |
0 commit comments