Skip to content

Commit 3674e00

Browse files
committed
Fixed voting module failing due to one or more other autocommands not having names
1 parent c6d0ce8 commit 3674e00

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Essentials/Commands/VotingModule.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public void Vote(string name)
5757
return;
5858
}
5959

60-
_command = EssentialsPlugin.Instance.Config.AutoCommands.FirstOrDefault(c => c.Name.Equals(name));
60+
_command = EssentialsPlugin.Instance.Config.AutoCommands.FirstOrDefault(c => string.IsNullOrEmpty(c.Name) && c.Name.Equals(name));
6161

6262
if (_command == null || _command.CommandTrigger != Trigger.Vote)
6363
{

0 commit comments

Comments
 (0)