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
1 changed files with 1 additions and 1 deletions

View File

@ -1264,7 +1264,7 @@ public class OfflinePlayer implements Player {
@Deprecated
public void setBanned(boolean banned) {
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 (banned) {