use of net.glowstone.net.message.play.player.ServerDifficultyMessage in project Glowstone by GlowstoneMC.
the class GlowWorld method setDifficulty.
@Override
public void setDifficulty(Difficulty difficulty) {
this.difficulty = difficulty;
ServerDifficultyMessage message = new ServerDifficultyMessage(difficulty);
for (GlowPlayer player : getRawPlayers()) {
player.getSession().send(message);
}
}
Aggregations