Implement empty OfflinePlayer methods instead of NSY exceptions.

This commit is contained in:
Ali Moghnieh 2016-06-18 14:08:58 +01:00
parent 203e8b0a75
commit ac4a1565a1
1 changed files with 5 additions and 3 deletions

View File

@ -1459,11 +1459,13 @@ public class OfflinePlayer implements Player {
@Override
public void sendTitle(String title, String subtitle) {
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public AttributeInstance getAttribute(Attribute attribute) {
throw new UnsupportedOperationException("Not supported yet.");
// GetAttribute is nullable as per CraftAttributeMap. This might need to be
// improved to support cases where dummy null instances should be returned.
return null;
}
}
}