mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2024-11-29 22:13:21 +01:00
work on the player container
This commit is contained in:
parent
30cec4e7f6
commit
b4575a954e
@ -1,18 +1,29 @@
|
|||||||
package com.sekwah.advancedportals.coreconnector.container;
|
package com.sekwah.advancedportals.coreconnector.container;
|
||||||
|
|
||||||
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Just a temporary container for whenever advanced portals needs to get data from a player
|
* Just a temporary container for whenever advanced portals needs to get data from a player
|
||||||
*/
|
*/
|
||||||
public class PlayerContainer {
|
public class PlayerContainer {
|
||||||
|
|
||||||
public String getUUID() {
|
private final Player player;
|
||||||
return "";
|
|
||||||
|
public PlayerContainer(Player player) {
|
||||||
|
this.player = player;
|
||||||
|
}
|
||||||
|
|
||||||
|
public UUID getUUID() {
|
||||||
|
return player.getUniqueId();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void sendMessage(String message) {
|
public void sendMessage(String message) {
|
||||||
|
player.sendMessage(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isOp() {
|
public boolean isOp() {
|
||||||
return false;
|
return player.isOp();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user