Fix Spigot annotation mistakes
while some of these may of been true, they are extreme cases and cause a ton of noise to plugin developers. Use ApiStatus.Internal instead of Deprecated for actual internal API that continues to have use (internally). These do not help plugin developers if they bring moise noise than value.
This commit is contained in:
@@ -43,7 +43,10 @@ public class PlayerBedLeaveEvent extends PlayerEvent implements Cancellable {
|
||||
* {@link Player#setBedSpawnLocation(Location)}.
|
||||
*
|
||||
* @return true if the spawn location will be changed
|
||||
* @deprecated the respawn point is now set when the player enter the bed and
|
||||
* this option doesn't work since MC 1.15.
|
||||
*/
|
||||
@Deprecated(forRemoval = true) // Paper - Unused
|
||||
public boolean shouldSetSpawnLocation() {
|
||||
return setBedSpawn;
|
||||
}
|
||||
@@ -59,7 +62,10 @@ public class PlayerBedLeaveEvent extends PlayerEvent implements Cancellable {
|
||||
* {@link Player#setBedSpawnLocation(Location)}.
|
||||
*
|
||||
* @param setBedSpawn true to change the new spawn location
|
||||
* @deprecated the respawn point is now set when the player enter the bed and
|
||||
* this option doesn't work since MC 1.15.
|
||||
*/
|
||||
@Deprecated(forRemoval = true) // Paper - Unused
|
||||
public void setSpawnLocation(boolean setBedSpawn) {
|
||||
this.setBedSpawn = setBedSpawn;
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ public class PlayerMoveEvent extends PlayerEvent implements Cancellable {
|
||||
*
|
||||
* @return Location the player moved to
|
||||
*/
|
||||
@Nullable
|
||||
@NotNull // Paper
|
||||
public Location getTo() {
|
||||
return to;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user