Disabled main world creative block

This commit is contained in:
alisolarflare 2016-12-26 22:40:35 -05:00
parent e122ba0fbb
commit dc57298c04

View file

@ -1,27 +1,28 @@
package buttondevteam.alipresents.components.hotfix;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
import com.earth2me.essentials.Essentials;
import buttondevteam.alipresents.architecture.Component;
import buttondevteam.alipresents.components.hotfix.hotfixes.CowSpawnLoop;
import buttondevteam.alipresents.components.hotfix.hotfixes.CreativeKillLoop;
import buttondevteam.alipresents.components.hotfix.hotfixes.GrassBreakListener;
import buttondevteam.alipresents.components.hotfix.hotfixes.MobKillListener;
import buttondevteam.alipresents.components.hotfix.hotfixes.NetherDisableListener;
public class HotfixComponent extends Component {
@Override
public void register(JavaPlugin plugin) {
registerListener(plugin, new NetherDisableListener());
registerListener(plugin, new CowSpawnLoop(plugin));
registerListener(plugin, new MobKillListener((Essentials) Bukkit.getPluginManager().getPlugin("Essentials")));
registerListener(plugin, new GrassBreakListener());
registerListener(plugin, new CreativeKillLoop(plugin));
}
}
package buttondevteam.alipresents.components.hotfix;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
import com.earth2me.essentials.Essentials;
import buttondevteam.alipresents.architecture.Component;
import buttondevteam.alipresents.components.hotfix.hotfixes.CowSpawnLoop;
import buttondevteam.alipresents.components.hotfix.hotfixes.ElytraFireworks;
import buttondevteam.alipresents.components.hotfix.hotfixes.GrassBreakListener;
import buttondevteam.alipresents.components.hotfix.hotfixes.MobKillListener;
import buttondevteam.alipresents.components.hotfix.hotfixes.NetherDisableListener;
public class HotfixComponent extends Component {
@Override
public void register(JavaPlugin plugin) {
registerListener(plugin, new NetherDisableListener());
registerListener(plugin, new CowSpawnLoop(plugin));
registerListener(plugin, new MobKillListener((Essentials) Bukkit.getPluginManager().getPlugin("Essentials")));
registerListener(plugin, new GrassBreakListener());
//registerListener(plugin, new CreativeKillLoop(plugin));
registerListener(plugin, new ElytraFireworks(plugin));
}
}