9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2025-12-30 04:19:30 +00:00
This commit is contained in:
XiaoMoMi
2023-10-03 00:17:44 +08:00
parent 89efe4fa15
commit ec92087704
11 changed files with 134 additions and 48 deletions

View File

@@ -37,6 +37,20 @@ public interface Ranking {
*/
CompetitionPlayer getCompetitionPlayer(String player);
/**
* Add a player to ranking
*
* @param competitionPlayer player
*/
void addPlayer(CompetitionPlayer competitionPlayer);
/**
* Remove a player from ranking
*
* @param player player
*/
void removePlayer(String player);
/**
* Returns an iterator for iterating over pairs of player names and scores.
*

View File

@@ -29,8 +29,7 @@ import org.bukkit.inventory.PlayerInventory;
public abstract class AbstractGamingPlayer implements GamingPlayer, Runnable {
private final FishingManager manager;
private final long deadline;
protected long deadline;
protected boolean success;
protected CancellableTask task;
protected Player player;
@@ -67,11 +66,6 @@ public abstract class AbstractGamingPlayer implements GamingPlayer, Runnable {
return true;
}
@Override
public boolean onLeftClick() {
return false;
}
@Override
public boolean onChat(String message) {
return false;

View File

@@ -35,11 +35,6 @@ public interface GamingPlayer {
*/
boolean onRightClick();
/**
* @return whether to cancel the event
*/
boolean onLeftClick();
/**
* @return whether to cancel the event
*/