Skip to content

Commit

Permalink
fix(core): ServerListPingEvent is not cancellable in bukkit
Browse files Browse the repository at this point in the history
  • Loading branch information
Misat11 committed Aug 21, 2024
1 parent b1154d4 commit 07127fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import org.screamingsandals.lib.event.server.ServerListPingEvent;
import org.screamingsandals.lib.impl.adventure.spectator.AdventureBackend;
import org.screamingsandals.lib.impl.bukkit.BukkitCore;
import org.screamingsandals.lib.impl.bukkit.event.BukkitCancellable;
import org.screamingsandals.lib.spectator.Component;

import java.net.InetAddress;
Expand All @@ -34,7 +33,7 @@
@RequiredArgsConstructor
@EqualsAndHashCode(onlyExplicitlyIncluded = true)
@ToString(onlyExplicitlyIncluded = true)
public class BukkitServerListPingEvent implements ServerListPingEvent, BukkitCancellable {
public class BukkitServerListPingEvent implements ServerListPingEvent {
@Getter
@EqualsAndHashCode.Include
@ToString.Include
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
package org.screamingsandals.lib.event.server;

import org.jetbrains.annotations.NotNull;
import org.screamingsandals.lib.event.CancellableEvent;
import org.screamingsandals.lib.event.Event;
import org.screamingsandals.lib.event.PlatformEvent;
import org.screamingsandals.lib.spectator.Component;

import java.net.InetAddress;

// TODO: move to shared-core?
public interface ServerListPingEvent extends CancellableEvent, PlatformEvent {
public interface ServerListPingEvent extends Event, PlatformEvent {
@NotNull InetAddress address();

@NotNull Component description();
Expand Down

0 comments on commit 07127fb

Please sign in to comment.