Remove unneeded imports
This commit is contained in:
parent
0b269b46e4
commit
7d1e7590b4
|
|
@ -1,7 +1,6 @@
|
|||
package com.alttd.playershops.config;
|
||||
|
||||
import com.alttd.galaxy.configuration.AbstractConfiguration;
|
||||
import com.alttd.playershops.api.Shop;
|
||||
import com.alttd.playershops.api.ShopType;
|
||||
|
||||
import java.io.File;
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ package com.alttd.playershops.config;
|
|||
import com.alttd.galaxy.configuration.AbstractConfiguration;
|
||||
import com.alttd.playershops.api.ShopType;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.HashMap;
|
||||
|
||||
public class DatabaseConfig extends AbstractConfiguration {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ package com.alttd.playershops.config;
|
|||
import com.alttd.galaxy.configuration.AbstractConfiguration;
|
||||
import com.alttd.playershops.api.ShopType;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.HashMap;
|
||||
|
||||
public class MessageConfig extends AbstractConfiguration {
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@ import org.bukkit.event.block.SignChangeEvent;
|
|||
import org.bukkit.event.player.PlayerJoinEvent;
|
||||
import org.bukkit.permissions.PermissionAttachmentInfo;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
public class PlayerListener extends EventListener {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ package com.alttd.playershops.listener;
|
|||
|
||||
import com.alttd.playershops.PlayerShops;
|
||||
import com.alttd.playershops.api.Shop;
|
||||
import com.alttd.playershops.config.Config;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Tag;
|
||||
import org.bukkit.block.Block;
|
||||
|
|
@ -23,7 +22,8 @@ public class ShopListener extends EventListener {
|
|||
@EventHandler(ignoreCancelled = true)
|
||||
public void onEntityExplosion(EntityExplodeEvent event) {
|
||||
if(!this.isRegistered) return;
|
||||
|
||||
// This might be heavy when tnt is chained, would it be better to expand the unbreakable block api in galaxy and use that?
|
||||
// No need for slow bukkit events eating up cpu and memory
|
||||
Iterator<Block> blockIterator = event.blockList().iterator();
|
||||
Shop shop = null;
|
||||
while (blockIterator.hasNext()) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user