diff --git a/src/com/sekwah/advancedportals/coreconnector/container/PlayerContainer.java b/src/com/sekwah/advancedportals/coreconnector/container/PlayerContainer.java index 7755a31..cece56d 100644 --- a/src/com/sekwah/advancedportals/coreconnector/container/PlayerContainer.java +++ b/src/com/sekwah/advancedportals/coreconnector/container/PlayerContainer.java @@ -1,18 +1,29 @@ 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 */ public class PlayerContainer { - public String getUUID() { - return ""; + private final Player player; + + public PlayerContainer(Player player) { + this.player = player; + } + + public UUID getUUID() { + return player.getUniqueId(); } public void sendMessage(String message) { + player.sendMessage(message); } public boolean isOp() { - return false; + return player.isOp(); } }