Fix typo in OfflinePlayer#setBanned(boolean).

This commit is contained in:
Ali Moghnieh 2017-06-18 21:32:24 +01:00
parent 171b2b6a37
commit ec3dc50e20
No known key found for this signature in database
GPG key ID: F09D3A1BAF2E6D70

View file

@ -1264,7 +1264,7 @@ public class OfflinePlayer implements Player {
@Deprecated @Deprecated
public void setBanned(boolean banned) { public void setBanned(boolean banned) {
if (ReflUtil.getNmsVersionObject().isHigherThanOrEqualTo(ReflUtil.V1_12_R1)) { if (ReflUtil.getNmsVersionObject().isHigherThanOrEqualTo(ReflUtil.V1_12_R1)) {
throw new UnsupportedOperationException("Cannot called setBanned on MC 1.12 and higher."); throw new UnsupportedOperationException("Cannot call setBanned on MC 1.12 and higher.");
} }
if (base.getName() == null && getName() != null) { if (base.getName() == null && getName() != null) {
if (banned) { if (banned) {