mirror of
https://github.com/YouHaveTrouble/CommandWhitelist.git
synced 2026-05-12 06:26:57 +00:00
small fixes and missing author for waterfall
This commit is contained in:
+1
-3
@@ -13,15 +13,13 @@ public class BungeeTabcompleteListener implements Listener {
|
||||
public void onTabcomplete(net.md_5.bungee.api.event.TabCompleteEvent event) {
|
||||
if (!(event.getReceiver() instanceof ProxiedPlayer)) return;
|
||||
ProxiedPlayer player = (ProxiedPlayer) event.getReceiver();
|
||||
if (event.getSuggestions().isEmpty()) return;
|
||||
if (player.hasPermission(CWPermission.BYPASS.permission())) return;
|
||||
|
||||
CommandUtil.filterSuggestions(
|
||||
event.getCursor(),
|
||||
event.getSuggestions(),
|
||||
CommandWhitelistWaterfall.getSuggestions(player)
|
||||
);
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+1
-2
@@ -15,8 +15,7 @@ public class WaterfallDefineCommandsListener implements Listener {
|
||||
public void onProxyDefineCommandsEvent(io.github.waterfallmc.waterfall.event.ProxyDefineCommandsEvent event) {
|
||||
if (event.getReceiver() instanceof ProxiedPlayer) {
|
||||
ProxiedPlayer player = (ProxiedPlayer) event.getReceiver();
|
||||
if (player.hasPermission(CWPermission.BYPASS.permission()))
|
||||
return;
|
||||
if (player.hasPermission(CWPermission.BYPASS.permission())) return;
|
||||
HashMap<String, Command> commandHashMap = new HashMap<>();
|
||||
CommandWhitelistWaterfall.getCommands(player).forEach(cmdName ->
|
||||
CommandWhitelistWaterfall.getPlugin().getProxy().getPluginManager().getCommands()
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
name: CommandWhitelist
|
||||
author: YouHaveTrouble
|
||||
version: ${project.version}
|
||||
main: eu.endermite.commandwhitelist.waterfall.CommandWhitelistWaterfall
|
||||
description: You decide what commands players can use or tab complete on your server!
|
||||
|
||||
Reference in New Issue
Block a user