mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-24 01:58:42 +01:00
Ignore case when checking Event name
This commit is contained in:
parent
911c47702a
commit
f47e88e23b
@ -3018,7 +3018,7 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
|
||||
|
||||
public Event getEvent(String name) {
|
||||
for (Event e : events) {
|
||||
if (e.getName().equals(name)){
|
||||
if (e.getName().equalsIgnoreCase(name)){
|
||||
return e;
|
||||
} else if (e.getName().toLowerCase().startsWith(name.toLowerCase())) {
|
||||
return e;
|
||||
|
Loading…
Reference in New Issue
Block a user