mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-24 11:45:31 +01:00
Renamed TeamEvent.TeamMakeLeaderEvent to TeamEvent.TeamSetOwnerEvent
This commit is contained in:
parent
13c483e5eb
commit
14a3ed6792
@ -62,7 +62,7 @@ public class IslandTeamSetownerCommand extends CompositeCommand {
|
||||
IslandBaseEvent event = TeamEvent.builder()
|
||||
.island(getIslands()
|
||||
.getIsland(getWorld(), playerUUID))
|
||||
.reason(TeamEvent.Reason.MAKELEADER)
|
||||
.reason(TeamEvent.Reason.SETOWNER)
|
||||
.involvedPlayer(targetUUID)
|
||||
.build();
|
||||
getPlugin().getServer().getPluginManager().callEvent(event);
|
||||
|
@ -21,7 +21,7 @@ public class TeamEvent {
|
||||
REJECT,
|
||||
LEAVE,
|
||||
KICK,
|
||||
MAKELEADER,
|
||||
SETOWNER,
|
||||
INFO,
|
||||
DELETE,
|
||||
UNKNOWN,
|
||||
@ -63,13 +63,13 @@ public class TeamEvent {
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Event fires before a make leader is performed on an island.
|
||||
* To get the old owner, get from the island object. The new leader is the player's UUID.
|
||||
* Event fires before a setowner is performed on an island.
|
||||
* To get the old owner, get from the island object. The new owner is the player's UUID.
|
||||
* @author tastybento
|
||||
*
|
||||
*/
|
||||
public static class TeamMakeLeaderEvent extends IslandBaseEvent {
|
||||
private TeamMakeLeaderEvent(Island island, UUID player, boolean admin, Location location) {
|
||||
public static class TeamSetOwnerEvent extends IslandBaseEvent {
|
||||
private TeamSetOwnerEvent(Island island, UUID player, boolean admin, Location location) {
|
||||
// Final variables have to be declared in the constructor
|
||||
super(island, player, admin, location);
|
||||
}
|
||||
@ -170,8 +170,8 @@ public class TeamEvent {
|
||||
return new TeamRejectEvent(island, player, admin, location);
|
||||
case KICK:
|
||||
return new TeamKickEvent(island, player, admin, location);
|
||||
case MAKELEADER:
|
||||
return new TeamMakeLeaderEvent(island, player, admin, location);
|
||||
case SETOWNER:
|
||||
return new TeamSetOwnerEvent(island, player, admin, location);
|
||||
case INFO:
|
||||
return new TeamInfoEvent(island, player, admin, location);
|
||||
case DELETE:
|
||||
|
Loading…
Reference in New Issue
Block a user