mirror of
https://github.com/trainerlord/WorldSystem.git
synced 2025-04-18 20:36:00 +02:00
Update WSCommands.java
This commit is contained in:
parent
27345d0a05
commit
b12bea3bd7
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user