Expose the player's lock repository

This commit is contained in:
Alexander Söderberg 2020-07-23 19:30:52 +02:00 committed by Alexander Söderberg
parent ad40ab7e1e
commit 6a63e5bb51

View File

@ -836,6 +836,15 @@ public abstract class PlotPlayer<P> implements CommandCaller, OfflinePlotPlayer
}
}
/**
* Get this player's {@link LockRepository}
*
* @return Lock repository instance
*/
@Nonnull public LockRepository getLockRepository() {
return this.lockRepository;
}
@FunctionalInterface
public interface PlotPlayerConverter<BaseObject> {
PlotPlayer<?> convert(BaseObject object);