2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.minecraft.internal.message.data;
16 * Object representing Minecraft server.
18 * @author Mattias Markehed - Initial contribution
20 public class ServerData {
22 private int maxPlayers;
26 * Get max number of players.
28 * @return max number of players.
30 public int getMaxPlayers() {
35 * Get the number of players.
37 * @return number of players.
39 public int getPlayers() {