mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-29 14:15:41 +01:00
Removed deprecated method isPlayer(User)
This commit is contained in:
parent
f545a4576e
commit
1262a08a22
@ -513,18 +513,6 @@ public abstract class CompositeCommand extends Command implements PluginIdentifi
|
|||||||
return onlyPlayer;
|
return onlyPlayer;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Convenience method to check if a user is a player
|
|
||||||
* @param user - the User
|
|
||||||
* @return true if sender is a player
|
|
||||||
* @deprecated use {@link User#isPlayer()}
|
|
||||||
* @forRemoval 1.18.0
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
protected boolean isPlayer(User user) {
|
|
||||||
return user.isPlayer();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets whether this command should only be run by players.
|
* Sets whether this command should only be run by players.
|
||||||
* If this is set to {@code true}, this command will only be runnable by objects implementing {@link Player}.
|
* If this is set to {@code true}, this command will only be runnable by objects implementing {@link Player}.
|
||||||
|
Loading…
Reference in New Issue
Block a user