Implement missing FakeWorld and OfflinePlayer methods

This commit is contained in:
md678685 2019-05-08 13:49:54 +01:00
parent 78b2dba42a
commit 365efe4f2d
2 changed files with 13 additions and 2 deletions

View File

@ -23,6 +23,7 @@ import org.bukkit.metadata.MetadataValue;
import org.bukkit.permissions.Permission;
import org.bukkit.permissions.PermissionAttachment;
import org.bukkit.permissions.PermissionAttachmentInfo;
import org.bukkit.persistence.PersistentDataContainer;
import org.bukkit.plugin.Plugin;
import org.bukkit.potion.PotionEffect;
import org.bukkit.potion.PotionEffectType;
@ -162,6 +163,11 @@ public class OfflinePlayer implements Player {
return null;
}
@Override
public Pose getPose() {
return null;
}
@Override
public boolean performCommand(String string) {
return false;
@ -1614,4 +1620,9 @@ public class OfflinePlayer implements Player {
@Override
public void updateCommands() {
}
@Override
public PersistentDataContainer getPersistentDataContainer() {
return null;
}
}

View File

@ -112,7 +112,7 @@ public class FakeWorld implements World {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
//@Override
public boolean unloadChunk(int i, int i1, boolean bln, boolean bln1) {
throw new UnsupportedOperationException("Not supported yet.");
}
@ -122,7 +122,7 @@ public class FakeWorld implements World {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
//@Override
public boolean unloadChunkRequest(int i, int i1, boolean bln) {
throw new UnsupportedOperationException("Not supported yet.");
}