Skip to content

Commit

Permalink
Changing inconsistent code
Browse files Browse the repository at this point in the history
This is the only event which does not return a BukkitMC*Event instead it returned a Bukkit event. Which is no longer accepted.
  • Loading branch information
Ecconia committed Jun 14, 2018
1 parent f5a7ada commit b98b1a4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -552,8 +552,8 @@ public void setJoinMessage(String message) {
pje.setJoinMessage(message);
}

public static PlayerJoinEvent _instantiate(MCPlayer player, String message) {
return new PlayerJoinEvent(((BukkitMCPlayer) player)._Player(), message);
public static BukkitMCPlayerJoinEvent _instantiate(MCPlayer player, String message) {
return new BukkitMCPlayerJoinEvent(new PlayerJoinEvent(((BukkitMCPlayer) player)._Player(), message));
}
}

Expand Down

0 comments on commit b98b1a4

Please sign in to comment.