Separated PlayerSpawnEvent and PlayerJoinEvent, PluginMessages now uses String channels, Added PluginMessageEvent

This commit is contained in:
LOOHP
2022-04-25 19:13:31 +01:00
parent 7ad2b19177
commit 0ac9810554
9 changed files with 135 additions and 38 deletions
@@ -19,23 +19,12 @@
package com.loohp.limbo.events.player;
import com.loohp.limbo.location.Location;
import com.loohp.limbo.player.Player;
public class PlayerJoinEvent extends PlayerEvent {
private Location spawnLocation;
public PlayerJoinEvent(Player player, Location spawnLoc) {
public PlayerJoinEvent(Player player) {
super(player);
spawnLocation = spawnLoc;
}
public Location getSpawnLocation() {
return spawnLocation;
}
public void setSpawnLocation(Location spawnLocation) {
this.spawnLocation = spawnLocation;
}
}