Fix players unable to break blocks at spawn

This commit is contained in:
libraryaddict 2015-10-24 08:40:57 +13:00
parent 7f025ad029
commit 43cd0f86a9
2 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,6 @@
package mineplex.hub; package mineplex.hub;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.plugin.java.JavaPlugin;
@ -71,6 +72,7 @@ public class Hub extends JavaPlugin implements IRelation
@Override @Override
public void onEnable() public void onEnable()
{ {
Bukkit.setSpawnRadius(0);
getConfig().addDefault(WEB_CONFIG, "http://accounts.mineplex.com/"); getConfig().addDefault(WEB_CONFIG, "http://accounts.mineplex.com/");
getConfig().set(WEB_CONFIG, getConfig().getString(WEB_CONFIG)); getConfig().set(WEB_CONFIG, getConfig().getString(WEB_CONFIG));
saveConfig(); saveConfig();

View File

@ -2,10 +2,12 @@ package nautilus.game.arcade;
import java.io.File; import java.io.File;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.plugin.java.JavaPlugin;
import mineplex.core.FoodDupeFix; import mineplex.core.FoodDupeFix;
import org.omg.CORBA._PolicyStub; import org.omg.CORBA._PolicyStub;
import net.minecraft.server.v1_8_R3.BiomeBase; import net.minecraft.server.v1_8_R3.BiomeBase;
@ -77,6 +79,7 @@ public class Arcade extends JavaPlugin
@Override @Override
public void onEnable() public void onEnable()
{ {
Bukkit.setSpawnRadius(0);
//Delete Old Games Folders //Delete Old Games Folders
DeleteFolders(); DeleteFolders();