Removed TeamChatEvent, CoopJoinEvent and CoopLeaveEvent

because their related features won't be implemented in BSB
This commit is contained in:
Florian CUNY 2017-12-28 15:30:18 +01:00
parent 390d58cc8b
commit c2271ae229
3 changed files with 0 additions and 138 deletions

View File

@ -1,43 +0,0 @@
package us.tastybento.bskyblock.api.events.team;
import java.util.UUID;
import us.tastybento.bskyblock.api.events.IslandBaseEvent;
import us.tastybento.bskyblock.database.objects.Island;
/**
* Fired when a player joins an island team as a coop member
*
* @author tastybento
* @since 1.0
*/
public class CoopJoinEvent extends IslandBaseEvent {
private final UUID player, inviter;
/**
* @param island
* @param player
* @param inviter
*/
public CoopJoinEvent(Island island, UUID player, UUID inviter) {
super(island);
this.player = player;
this.inviter = inviter;
}
/**
* The UUID of the player who were coop'd
* @return the coop'd
*/
public UUID getPlayer() {
return player;
}
/**
* The UUID of the player who invited the player to join the island
* @return the inviter
*/
public UUID getInviter() {
return inviter;
}
}

View File

@ -1,44 +0,0 @@
package us.tastybento.bskyblock.api.events.team;
import java.util.UUID;
import us.tastybento.bskyblock.api.events.IslandBaseEvent;
import us.tastybento.bskyblock.database.objects.Island;
/**
* Fired when a player leaves an island coop
*
* @author tastybento
* @since 1.0
*/
public class CoopLeaveEvent extends IslandBaseEvent {
private final UUID player, expeller;
/**
* Note that not all coop leaving events can be cancelled because they could be due to bigger events than
* coop, e.g., an island being reset.
* @param island
* @param player
* @param expeller
*/
public CoopLeaveEvent(Island island, UUID player, UUID expeller) {
super(island);
this.player = player;
this.expeller = expeller;
}
/**
* The UUID of the player who left
* @return the player who left the coop
*/
public UUID getPlayer() {
return player;
}
/**
* @return the expelling player
*/
public UUID getExpeller() {
return expeller;
}
}

View File

@ -1,51 +0,0 @@
package us.tastybento.bskyblock.api.events.team;
import java.util.UUID;
import us.tastybento.bskyblock.api.events.IslandBaseEvent;
import us.tastybento.bskyblock.database.objects.Island;
/**
* This event is fired when a player talks in TeamChat
*
* @author Poslovitch
* @since 1.0
*/
public class TeamChatEvent extends IslandBaseEvent {
private final UUID player;
private String message;
/**
* @param island
* @param player
* @param message
*/
public TeamChatEvent(Island island, UUID player, String message) {
super(island);
this.player = player;
this.message = message;
}
/**
* @return the player who talked
*/
public UUID getPlayer() {
return player;
}
/**
* Gets the message that the player is attempting to send.
* @return the message
*/
public String getMessage() {
return this.message;
}
/**
* Sets the message that the player will send.
* @param message the message to send
*/
public void setMessage(String message) {
this.message = message;
}
}