mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-09-28 23:57:27 +02:00
Implement empty OfflinePlayer methods instead of NSY exceptions.
This commit is contained in:
parent
203e8b0a75
commit
ac4a1565a1
@ -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 New Issue
Block a user