mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-09-27 22:27:27 +02:00
Add deprecation warnings for names in Domains.
This commit is contained in:
parent
91a1494634
commit
2ed60eba02
@ -73,7 +73,9 @@ public PlayerDomain(String[] names) {
|
|||||||
* Add the given player to the domain, identified by the player's name.
|
* Add the given player to the domain, identified by the player's name.
|
||||||
*
|
*
|
||||||
* @param name the name of the player
|
* @param name the name of the player
|
||||||
|
* @deprecated names are deprecated in favor of UUIDs in MC 1.7+
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public void addPlayer(String name) {
|
public void addPlayer(String name) {
|
||||||
checkNotNull(name);
|
checkNotNull(name);
|
||||||
if (!name.trim().isEmpty()) {
|
if (!name.trim().isEmpty()) {
|
||||||
@ -111,7 +113,9 @@ public void addPlayer(LocalPlayer player) {
|
|||||||
* Remove the given player from the domain, identified by the player's name.
|
* Remove the given player from the domain, identified by the player's name.
|
||||||
*
|
*
|
||||||
* @param name the name of the player
|
* @param name the name of the player
|
||||||
|
* @deprecated names are deprecated in favor of UUIDs in MC 1.7+
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public void removePlayer(String name) {
|
public void removePlayer(String name) {
|
||||||
checkNotNull(name);
|
checkNotNull(name);
|
||||||
setDirty(true);
|
setDirty(true);
|
||||||
@ -152,7 +156,9 @@ public boolean contains(LocalPlayer player) {
|
|||||||
* Get the set of player names.
|
* Get the set of player names.
|
||||||
*
|
*
|
||||||
* @return the set of player names
|
* @return the set of player names
|
||||||
|
* @deprecated names are deprecated in favor of UUIDs in MC 1.7+
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public Set<String> getPlayers() {
|
public Set<String> getPlayers() {
|
||||||
return Collections.unmodifiableSet(names);
|
return Collections.unmodifiableSet(names);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user