mirror of
https://github.com/Xiao-MoMi/Custom-Fishing.git
synced 2025-12-30 04:19:30 +00:00
click
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -35,11 +35,6 @@ public interface GamingPlayer {
|
||||
*/
|
||||
boolean onRightClick();
|
||||
|
||||
/**
|
||||
* @return whether to cancel the event
|
||||
*/
|
||||
boolean onLeftClick();
|
||||
|
||||
/**
|
||||
* @return whether to cancel the event
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user