Search in sources :

Example 1 with ServerDifficultyMessage

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);
    }
}
Also used : ServerDifficultyMessage(net.glowstone.net.message.play.player.ServerDifficultyMessage)

Aggregations

ServerDifficultyMessage (net.glowstone.net.message.play.player.ServerDifficultyMessage)1