Skip to content
This repository has been archived by the owner on Nov 12, 2018. It is now read-only.

Commit

Permalink
Return if no event key provider found
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertHerhold committed Dec 24, 2017
1 parent 2555e4f commit 1e4654a
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@ public String provide(FishingEvent.Stop event) {

public void processEvent(Event event, Player player) {
EventKeyProvider<Event> keyProvider = resolveKeyProvider(event.getClass());

if (keyProvider == null) {
return;
}

final String key = keyProvider.provide(event);

processEvent(event, player, key, 1);
Expand Down

0 comments on commit 1e4654a

Please sign in to comment.