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 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 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 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 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 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 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 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 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 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 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 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 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
| 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 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 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+"]"); | |
| } |
NewerOlder