Add leaveSit method to api
This commit is contained in:
parent
b409aa9b7a
commit
ab539e5a79
@ -1,18 +1,22 @@
|
||||
package com.cnaude.chairs.api;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.cnaude.chairs.core.PlayerSitData;
|
||||
|
||||
public class ChairsAPI {
|
||||
|
||||
private static PlayerSitData pdata;
|
||||
protected static void init(PlayerSitData pdata) {
|
||||
ChairsAPI.pdata = pdata;
|
||||
}
|
||||
|
||||
public static boolean isSitting(Player player) {
|
||||
return pdata.isSitting(player);
|
||||
}
|
||||
|
||||
}
|
||||
package com.cnaude.chairs.api;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.cnaude.chairs.core.PlayerSitData;
|
||||
|
||||
public class ChairsAPI {
|
||||
|
||||
private static PlayerSitData pdata;
|
||||
protected static void init(PlayerSitData pdata) {
|
||||
ChairsAPI.pdata = pdata;
|
||||
}
|
||||
|
||||
public static boolean isSitting(Player player) {
|
||||
return pdata.isSitting(player);
|
||||
}
|
||||
|
||||
public static void leaveSit(Player player) {
|
||||
pdata.unsitPlayerForce(player);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user