mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 20:00:46 +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
|
@Override
|
||||||
public void sendTitle(String title, String subtitle) {
|
public void sendTitle(String title, String subtitle) {
|
||||||
throw new UnsupportedOperationException("Not supported yet.");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public AttributeInstance getAttribute(Attribute attribute) {
|
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