mirror of
https://github.com/plexusorg/Plex.git
synced 2025-02-12 04:00:15 +00:00
me when i dont finish my own code
This commit is contained in:
parent
5f7a89d7cd
commit
13a458859c
1 changed files with 2 additions and 2 deletions
|
@ -80,8 +80,8 @@ public class CommandBlockerManager
|
||||||
int ind = regexOrMatch.indexOf(' ');
|
int ind = regexOrMatch.indexOf(' ');
|
||||||
if (ind == -1 && regexOrMatch.endsWith(":"))
|
if (ind == -1 && regexOrMatch.endsWith(":"))
|
||||||
{
|
{
|
||||||
//block all commands from this plugin for the specified rank
|
String pluginName = regexOrMatch.substring(0, regexOrMatch.length() - 1);
|
||||||
Plugin plugin = Arrays.stream(Plex.get().getServer().getPluginManager().getPlugins()).findAny().orElse(null);
|
Plugin plugin = Arrays.stream(Plex.get().getServer().getPluginManager().getPlugins()).filter(pl -> pl.getName().equalsIgnoreCase(pluginName)).findAny().orElse(null);
|
||||||
if (plugin != null)
|
if (plugin != null)
|
||||||
{
|
{
|
||||||
List<Command> commandList = PluginCommandYamlParser.parse(plugin);
|
List<Command> commandList = PluginCommandYamlParser.parse(plugin);
|
||||||
|
|
Loading…
Reference in a new issue