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
public void alertOperators(org.bukkit.command.CommandSender sender, String alert) | |
{ | |
for(Player player : Bukkit.getOnlinePlayers()) | |
{ | |
if(player.isOp()) | |
{ | |
if(!sender.getName().equals(player.getName())) | |
{ | |
player.sendMessage("§7§o["+sender.getName()+": "+alert+"]"); | |
} |
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
private void pullPlayer(Player player, Location location) | |
{ | |
Location playerLoc = player.getLocation(); | |
playerLoc.setY(playerLoc.getY() + 0.5D); | |
player.teleport(playerLoc); | |
double g = -0.08D; | |
double d = location.distance(playerLoc); | |
double t = d; |
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 de.codebucket.mysql; | |
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.PreparedStatement; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; | |
public class Database | |
{ |
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 de.codebucket.mysql; | |
import java.util.HashMap; | |
import java.util.Map; | |
public class Operators | |
{ | |
public enum DataTypes | |
{ | |
Text(1), Char(2), Int(3), Decimal(4), Float(5), Double(6), Boolean(7), Date(8), Time(9); |
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 de.codebucket.mysql; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import de.codebucket.mysql.Operators.DataTypes; |
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 de.codebucket.mysql; | |
import java.sql.SQLException; | |
import java.util.List; | |
import java.util.Random; | |
import de.codebucket.mysql.Operators.DataTypes; | |
public class SqlTest | |
{ |
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 de.zh32.slp; | |
import com.google.gson.Gson; | |
import java.io.ByteArrayOutputStream; | |
import java.io.DataInputStream; | |
import java.io.DataOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.io.OutputStream; |
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
public enum EnchantmentType | |
{ | |
TOOL(Arrays.asList(32, 33, 34, 35)), | |
ARMOR(Arrays.asList(0, 1, 2, 3, 4, 7, 34)), | |
SWORD(Arrays.asList(16, 17, 18, 19, 20, 34)), | |
ARROW(Arrays.asList(48, 49, 50, 51, 34)); | |
private List<Integer> enchantments; | |
EnchantmentType(List<Integer> enchantments) |
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
private InetAddress inet; | |
private long start; | |
private long end; | |
public PingTest(InetAddress inet) | |
{ | |
this.inet = inet; | |
this.start = System.currentTimeMillis(); | |
this.end = (this.start -1); | |
} |
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 de.codebucket.accounttool; | |
import java.util.UUID; | |
import de.codebucket.utils.NameFetcher; | |
import de.codebucket.utils.UUIDFetcher; | |
public class MojangRepository | |
{ | |
public static String getUsername(UUID uuid) throws Exception |
OlderNewer