File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
com/johnymuffin/beta/discordauth Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ public DiscordAuthListener(DiscordAuthentication plugin) {
2020
2121 @ Override
2222 public void onMessageReceived (MessageReceivedEvent event ) {
23- if (event .getAuthor ().isBot () || event .getAuthor (). isFake ()) return ;
23+ if (event .getAuthor ().isBot () || event .isWebhookMessage ()) return ;
2424 String [] ags = event .getMessage ().getContentRaw ().split (" " );
2525 if (ags [0 ].toLowerCase ().equals ("!link" )) {
2626 if (ags .length != 2 ) {
Original file line number Diff line number Diff line change 22
33import com .johnymuffin .beta .discordauth .commands .DiscordAuthCommand ;
44import com .johnymuffin .discordcore .DiscordCore ;
5+ import com .projectposeidon .api .PoseidonUUID ;
56import org .bukkit .Bukkit ;
67import org .bukkit .event .Event ;
78import org .bukkit .plugin .PluginDescriptionFile ;
@@ -104,7 +105,7 @@ public boolean isPoseidonPresent() {
104105
105106 public UUID getPlayerUUID (String playerName ) {
106107 if (poseidonPresent ) {
107- //TODO: Return UUID from Poseidon Cache
108+ return PoseidonUUID . getPlayerGracefulUUID ( playerName );
108109 }
109110 return UUID .fromString (playerName );
110111 }
Original file line number Diff line number Diff line change 11name : DiscordAuthentication
22main : com.johnymuffin.beta.discordauth.DiscordAuthentication
33author : JohnyMuffin
4- version : 1.1.1
4+ version : 1.1.2
55depend : [DiscordCore]
66commands :
77 discordauth :
You can’t perform that action at this time.
0 commit comments