Created
March 1, 2015 00:48
-
-
Save kyriog/c5f8fadeed1eb439b7cc to your computer and use it in GitHub Desktop.
Craftbukkit 1.8 food regen bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package fr.kyriog.spigot18bug; | |
import org.bukkit.Bukkit; | |
import org.bukkit.Difficulty; | |
import org.bukkit.plugin.java.JavaPlugin; | |
public class Plugin extends JavaPlugin { | |
@Override | |
public void onEnable() { | |
Bukkit.getWorlds().get(0).setDifficulty(Difficulty.PEACEFUL); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment