mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-17 20:11:21 +02:00
Fix another NPE in AlternativeCommandsHandler
This commit is contained in:
@@ -42,7 +42,11 @@ public class AlternativeCommandsHandler
|
|||||||
PluginCommand reg = ess.getServer().getPluginCommand(pluginName + ":" + pc.getName().toLowerCase(Locale.ENGLISH));
|
PluginCommand reg = ess.getServer().getPluginCommand(pluginName + ":" + pc.getName().toLowerCase(Locale.ENGLISH));
|
||||||
if (reg == null)
|
if (reg == null)
|
||||||
{
|
{
|
||||||
reg = Bukkit.getServer().getPluginCommand(pc.getName().toLowerCase(Locale.ENGLISH));
|
reg = ess.getServer().getPluginCommand(pc.getName().toLowerCase(Locale.ENGLISH));
|
||||||
|
}
|
||||||
|
if (reg == null)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
for (String label : labels)
|
for (String label : labels)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user