Update WSCommands.java

This commit is contained in:
CrazyCloudCraft | Argantiu 2022-07-15 13:00:07 +02:00 committed by GitHub
parent 27345d0a05
commit b12bea3bd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -164,8 +164,8 @@ public class WSCommands {
}
public boolean infoComannd(CommandSender sender, Command command, String label, String[] args) {
if (sender instanceof Player) {
Player p = (Player) sender;
if (sender instanceof Player p) {
// Player p = (Player) sender;
WorldPlayer wp = new WorldPlayer(p, p.getWorld().getName());
if (!wp.isOnSystemWorld()) {
p.sendMessage(MessageConfig.getNotOnWorld());