mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-02-26 17:21:32 +01: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
|
||||
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 New Issue
Block a user