This file contains hidden or 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
# If you know the host and port, you may skip this and use MinecraftServer("example.org", 1234) | |
server = MinecraftServer("doge.bitquest.co",25565) | |
# 'status' is supported by all Minecraft servers that are version 1.7 or higher. | |
status = server.status() | |
print("The server has {0} players and replied in {1} ms".format(status.players.online, status.latency)) | |
# 'ping' is supported by all Minecraft servers that are version 1.7 or higher. | |
# It is included in a 'status' call, but is exposed separate if you do not require the additional info. | |
latency = server.ping() | |
print("The server replied in {0} ms".format(latency)) | |
# 'query' has to be enabled in a servers' server.properties file. |
This file contains hidden or 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
#include <ButtonConstants.au3> | |
#include <GUIConstantsEx.au3> | |
#include <StaticConstants.au3> | |
#include <WindowsConstants.au3> | |
#include <MsgBoxConstants.au3> | |
#include <EditConstants.au3> | |
#include <Array.au3> | |
#include <Inet.au3> | |
Func FileSelector() | |
Local Const $sMessage = "Choose a PATH to install the libraries to" |
This file contains hidden or 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 masecla.practicepvp.serializers; | |
import java.io.ByteArrayInputStream; | |
import java.io.ByteArrayOutputStream; | |
import java.io.ObjectInputStream; | |
import java.io.ObjectOutputStream; | |
import org.bukkit.inventory.ItemStack; | |
public class ItemStackSerializer { |
This file contains hidden or 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
public static void update(Player who) { | |
LiteBoardAPI.toggleScoreboard(who, false); | |
List<String> scoreboardLines = new ArrayList<String>(); | |
List<String> ltr = new ArrayList<String>(); | |
List<Player> players = getOrderedPlayers(); | |
// Generate the lines from the config | |
for (int i = 1; i <= 15; i++) { | |
scoreboardLines | |
.add(globals.mains.getConfig().getString("scoreboard.lines.line" + Integer.toString(i) + "-text")); |