Skip to content

Commit

Permalink
Fixed: Various minor bugs in compatibility
Browse files Browse the repository at this point in the history
Signed-off-by: DevDrizzy <[email protected]>
  • Loading branch information
DevDrizzy committed Nov 4, 2024
1 parent ea7e88d commit eaad4d8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@
<groupId>com.github.cryptomorin</groupId>
<artifactId>XSeries</artifactId>
<version>11.3.0</version>
<scope>compile</scope>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>xyz.refinedev.api</groupId>
<artifactId>SkinAPI</artifactId>
<version>1.0</version>
<scope>compile</scope>
<scope>provided</scope>
</dependency>

<!--Annotations-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ private void preventGlitch(Player player, UserProfile userProfile) {

GlitchFixEvent glitchFixEvent = new GlitchFixEvent(player);
if (TablistHandler.getInstance().getPlugin().isEnabled()) {
Bukkit.getScheduler().runTask(TablistHandler.getInstance().getPlugin(), () -> Bukkit.getPluginManager().callEvent(glitchFixEvent));
Bukkit.getPluginManager().callEvent(glitchFixEvent);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,17 @@
*/

@Getter
@RequiredArgsConstructor
public class GlitchFixEvent extends Event implements Cancellable {

private static final HandlerList handlers = new HandlerList();

private final Player player;
private boolean cancelled;

private static final HandlerList handlers = new HandlerList();
public GlitchFixEvent(Player player) {
super(true);
this.player = player;
}

public static HandlerList getHandlerList() {
return handlers;
Expand Down

0 comments on commit eaad4d8

Please sign in to comment.