mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-21 07:46:52 +00:00
remove World#isTerraWorld
This commit is contained in:
1 parent
a753351137
commit
fe68aa6279
6 files changed
+1
-11
No files matched your search
+1
-1
@@ -66,7 +66,7 @@ public class TerraCommandManager implements CommandManager {
|
||||
return;
|
||||
}
|
||||
|
||||
if(commandClass.isAnnotationPresent(WorldCommand.class) && (!(sender instanceof Player) || !(((Player) sender).world()).isTerraWorld())) {
|
||||
if(commandClass.isAnnotationPresent(WorldCommand.class) && (!(sender instanceof Player))) {
|
||||
sender.sendMessage("Command must be executed in a Terra world.");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user