-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redesign authCompleteAsync and implement a Bukkit Event
- Loading branch information
Showing
7 changed files
with
85 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
Bukkit/src/main/java/net/dries007/mclink/MCLinkAuthEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package net.dries007.mclink; | ||
|
||
/* | ||
* Copyright (c) 2018 Dries007 & Brian Ronald. All rights reserved | ||
*/ | ||
|
||
import com.google.common.collect.ImmutableCollection; | ||
import net.dries007.mclink.api.Authentication; | ||
import org.bukkit.event.Event; | ||
import org.bukkit.event.HandlerList; | ||
|
||
public class MCLinkAuthEvent extends Event { | ||
private static final HandlerList handlers = new HandlerList(); | ||
private ImmutableCollection<Authentication> authentication; | ||
private org.bukkit.entity.Player player; | ||
|
||
public MCLinkAuthEvent(org.bukkit.entity.Player player, ImmutableCollection<Authentication> authentication) { | ||
this.player = player; | ||
this.authentication = authentication; | ||
} | ||
|
||
@Override | ||
public HandlerList getHandlers() { | ||
return handlers; | ||
} | ||
|
||
public static HandlerList getHandlerList() { | ||
return handlers; | ||
} | ||
|
||
public org.bukkit.entity.Player getPlayer() { | ||
return player; | ||
} | ||
|
||
public ImmutableCollection<Authentication> getAuthentication() { | ||
return authentication; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters