mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 11:49:12 +00:00
Implement empty OfflinePlayer methods instead of NSY exceptions.
This commit is contained in:
parent
203e8b0a75
commit
ac4a1565a1
1 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue