mirror of
https://github.com/arcadiadevs/hubcore.git
synced 2024-11-25 06:45:11 +01:00
General fixes
This commit is contained in:
parent
4844cc0ecf
commit
b6001646d6
@ -31,7 +31,6 @@ public class JoinEvent implements Listener {
|
||||
player.getInventory().remove(item);
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
if (!PSH.getConfig().getBoolean("gui.player-menu.item.enabled")) {
|
||||
@ -40,7 +39,6 @@ public class JoinEvent implements Listener {
|
||||
player.getInventory().remove(item);
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
new Thread(() -> {
|
||||
@ -67,8 +65,13 @@ public class JoinEvent implements Listener {
|
||||
itemStack.setItemMeta(itemMeta);
|
||||
itemStack1.setItemMeta(itemMeta1);
|
||||
|
||||
Bukkit.getScheduler().runTask(PSH, () -> player.getInventory().setItem(PSH.getConfig().getInt("gui.selector.item.location"), itemStack));
|
||||
Bukkit.getScheduler().runTask(PSH, () -> player.getInventory().setItem(PSH.getConfig().getInt("gui.player-menu.item.location"), itemStack1));
|
||||
if (PSH.getConfig().getBoolean("gui.selector.item.enabled")) {
|
||||
Bukkit.getScheduler().runTask(PSH, () -> player.getInventory().setItem(PSH.getConfig().getInt("gui.selector.item.location"), itemStack));
|
||||
}
|
||||
|
||||
if (PSH.getConfig().getBoolean("gui.player-menu.item.enabled")) {
|
||||
Bukkit.getScheduler().runTask(PSH, () -> player.getInventory().setItem(PSH.getConfig().getInt("gui.player-menu.item.location"), itemStack1));
|
||||
}
|
||||
}).start();
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user