mirror of
https://github.com/Matthww/PlayerInfo.git
synced 2025-04-21 06:47:05 +00:00
Fix for undefined index
This commit is contained in:
parent
6beb5c682c
commit
98863d55a6
@ -48,6 +48,9 @@ class PlayerInfo extends PluginBase implements Listener {
|
||||
public function onJoin(PlayerJoinEvent $joinEvent) {
|
||||
if($this->getConfig()->get("Save") == true) {
|
||||
$player = $joinEvent->getPlayer();
|
||||
if (!in_array($player->getName(), $this->PlayerData)) {
|
||||
return false;
|
||||
}
|
||||
$cdata = $this->PlayerData[$player->getName()];
|
||||
$os = ["Unknown", "Android", "iOS", "macOS", "FireOS", "GearVR", "HoloLens", "Windows 10", "Windows", "Dedicated", "Orbis", "NX"];
|
||||
$UI = ["Classic UI", "Pocket UI"];
|
||||
|
Loading…
x
Reference in New Issue
Block a user