Move chairs api package
This commit is contained in:
parent
5c34b00302
commit
8c9c3579a8
@ -1,4 +1,4 @@
|
||||
package com.cnaude.chairs.core.api;
|
||||
package com.cnaude.chairs.api;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.cnaude.chairs.core.api;
|
||||
package com.cnaude.chairs.api;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.Cancellable;
|
@ -1,4 +1,4 @@
|
||||
package com.cnaude.chairs.core.api;
|
||||
package com.cnaude.chairs.api;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.Cancellable;
|
@ -14,9 +14,9 @@ import org.bukkit.configuration.file.YamlConfiguration;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
import com.cnaude.chairs.api.ChairsAPI;
|
||||
import com.cnaude.chairs.commands.ChairsCommand;
|
||||
import com.cnaude.chairs.commands.ChairsIgnoreList;
|
||||
import com.cnaude.chairs.core.api.ChairsAPI;
|
||||
import com.cnaude.chairs.listeners.NANLoginListener;
|
||||
import com.cnaude.chairs.listeners.TrySitEventListener;
|
||||
import com.cnaude.chairs.listeners.TryUnsitEventListener;
|
||||
|
@ -33,8 +33,8 @@ public class TrySitEventListener implements Listener {
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||
public void onPlayerInteract(PlayerInteractEvent event) {
|
||||
Player player = event.getPlayer();
|
||||
if (event.getAction() == Action.RIGHT_CLICK_BLOCK) {
|
||||
Player player = event.getPlayer();
|
||||
Block block = event.getClickedBlock();
|
||||
if (sitAllowed(player, block)) {
|
||||
event.setCancelled(true);
|
||||
|
@ -8,7 +8,7 @@ import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.entity.Vehicle;
|
||||
|
||||
import com.cnaude.chairs.core.api.ChairsAPI;
|
||||
import com.cnaude.chairs.api.ChairsAPI;
|
||||
|
||||
public class CraftChairsArrow extends CraftArrow implements Vehicle {
|
||||
|
||||
|
@ -8,7 +8,7 @@ import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.entity.Vehicle;
|
||||
|
||||
import com.cnaude.chairs.core.api.ChairsAPI;
|
||||
import com.cnaude.chairs.api.ChairsAPI;
|
||||
|
||||
public class CraftChairsArrow extends CraftArrow implements Vehicle {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user