Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
0ad844d1b5
@ -16,6 +16,8 @@
|
||||
<element id="extracted-dir" path="$PROJECT_DIR$/Libraries/commons-pool2-2.2.jar" path-in-jar="/" />
|
||||
<element id="extracted-dir" path="$PROJECT_DIR$/Libraries/jedis-2.4.2.jar" path-in-jar="/" />
|
||||
<element id="extracted-dir" path="$PROJECT_DIR$/Libraries/gson-2.2.1.jar" path-in-jar="/" />
|
||||
<element id="module-output" name="Mineplex.Database" />
|
||||
<element id="extracted-dir" path="$PROJECT_DIR$/Libraries/jooq-3.4.2.jar" path-in-jar="/" />
|
||||
</root>
|
||||
</artifact>
|
||||
</component>
|
@ -16,6 +16,8 @@
|
||||
<element id="module-output" name="Mineplex.ServerData" />
|
||||
<element id="module-output" name="Nautilus.Game.Arcade" />
|
||||
<element id="file-copy" path="$PROJECT_DIR$/Nautilus.Game.Arcade/plugin.yml" />
|
||||
<element id="module-output" name="Mineplex.Database" />
|
||||
<element id="extracted-dir" path="$PROJECT_DIR$/Libraries/jooq-3.4.2.jar" path-in-jar="/" />
|
||||
</root>
|
||||
</artifact>
|
||||
</component>
|
13
Plugins/.idea/libraries/jooq.xml
Normal file
13
Plugins/.idea/libraries/jooq.xml
Normal file
@ -0,0 +1,13 @@
|
||||
<component name="libraryTable">
|
||||
<library name="jooq">
|
||||
<CLASSES>
|
||||
<root url="jar://$PROJECT_DIR$/Libraries/jooq-3.4.2.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC>
|
||||
<root url="jar://$PROJECT_DIR$/Libraries/jooq-3.4.2-javadoc.jar!/" />
|
||||
</JAVADOC>
|
||||
<SOURCES>
|
||||
<root url="jar://$PROJECT_DIR$/Libraries/jooq-3.4.2-sources.jar!/" />
|
||||
</SOURCES>
|
||||
</library>
|
||||
</component>
|
11
Plugins/.idea/libraries/jooq_codegen.xml
Normal file
11
Plugins/.idea/libraries/jooq_codegen.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<component name="libraryTable">
|
||||
<library name="jooq-codegen">
|
||||
<CLASSES>
|
||||
<root url="jar://$PROJECT_DIR$/Libraries/jooq-3.4.2.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/Libraries/jooq-codegen-3.4.2.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/Libraries/jooq-meta-3.4.2.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
9
Plugins/.idea/libraries/mysql_connector.xml
Normal file
9
Plugins/.idea/libraries/mysql_connector.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<component name="libraryTable">
|
||||
<library name="mysql-connector">
|
||||
<CLASSES>
|
||||
<root url="jar://$PROJECT_DIR$/Libraries/mysql-connector-java-5.1.32-bin.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
@ -2,9 +2,11 @@
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/Classpath.Dummy/Classpath.Dummy.iml" filepath="$PROJECT_DIR$/Classpath.Dummy/Classpath.Dummy.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/Mineplex.Bungee.Mineplexer/Mineplex.Bungee.Mineplexer.iml" filepath="$PROJECT_DIR$/Mineplex.Bungee.Mineplexer/Mineplex.Bungee.Mineplexer.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/Mineplex.Core/Mineplex.Core.iml" filepath="$PROJECT_DIR$/Mineplex.Core/Mineplex.Core.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/Mineplex.Core.Common/Mineplex.Core.Common.iml" filepath="$PROJECT_DIR$/Mineplex.Core.Common/Mineplex.Core.Common.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/Mineplex.Database/Mineplex.Database.iml" filepath="$PROJECT_DIR$/Mineplex.Database/Mineplex.Database.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/Mineplex.Hub/Mineplex.Hub.iml" filepath="$PROJECT_DIR$/Mineplex.Hub/Mineplex.Hub.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/Mineplex.MapParser/Mineplex.MapParser.iml" filepath="$PROJECT_DIR$/Mineplex.MapParser/Mineplex.MapParser.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/Mineplex.Minecraft.BungeeSigns/Mineplex.Minecraft.BungeeSigns.iml" filepath="$PROJECT_DIR$/Mineplex.Minecraft.BungeeSigns/Mineplex.Minecraft.BungeeSigns.iml" />
|
||||
@ -12,7 +14,6 @@
|
||||
<module fileurl="file://$PROJECT_DIR$/Mineplex.Minecraft.Game.Core/Mineplex.Minecraft.Game.Core.iml" filepath="$PROJECT_DIR$/Mineplex.Minecraft.Game.Core/Mineplex.Minecraft.Game.Core.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/Mineplex.ServerData/Mineplex.ServerData.iml" filepath="$PROJECT_DIR$/Mineplex.ServerData/Mineplex.ServerData.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/Mineplex.ServerMonitor/Mineplex.ServerMonitor.iml" filepath="$PROJECT_DIR$/Mineplex.ServerMonitor/Mineplex.ServerMonitor.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/Nautilus.Core.CraftBukkit/Nautilus.Core.CraftBukkit.iml" filepath="$PROJECT_DIR$/Nautilus.Core.CraftBukkit/Nautilus.Core.CraftBukkit.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/Nautilus.Game.Arcade/Nautilus.Game.Arcade.iml" filepath="$PROJECT_DIR$/Nautilus.Game.Arcade/Nautilus.Game.Arcade.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
|
@ -10,7 +10,7 @@
|
||||
<option name="ENABLE_SWING_INSPECTOR" value="false" />
|
||||
<option name="ENV_VARIABLES" />
|
||||
<option name="PASS_PARENT_ENVS" value="true" />
|
||||
<module name="Nautilus.Core.CraftBukkit" />
|
||||
<module name="Classpath.Dummy" />
|
||||
<envs />
|
||||
<RunnerSettings RunnerId="Debug">
|
||||
<option name="DEBUG_PORT" value="" />
|
||||
|
24
Plugins/.idea/runConfigurations/Database.xml
Normal file
24
Plugins/.idea/runConfigurations/Database.xml
Normal file
@ -0,0 +1,24 @@
|
||||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="Database" type="Application" factoryName="Application" singleton="true">
|
||||
<option name="MAIN_CLASS_NAME" value="org.jooq.util.GenerationTool" />
|
||||
<option name="VM_PARAMETERS" value="" />
|
||||
<option name="PROGRAM_PARAMETERS" value="/jOOQConfig.xml" />
|
||||
<option name="WORKING_DIRECTORY" value="file://$MODULE_DIR$" />
|
||||
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
|
||||
<option name="ALTERNATIVE_JRE_PATH" value="" />
|
||||
<option name="ENABLE_SWING_INSPECTOR" value="false" />
|
||||
<option name="ENV_VARIABLES" />
|
||||
<option name="PASS_PARENT_ENVS" value="true" />
|
||||
<module name="Mineplex.Database" />
|
||||
<envs />
|
||||
<RunnerSettings RunnerId="Debug">
|
||||
<option name="DEBUG_PORT" value="" />
|
||||
<option name="TRANSPORT" value="0" />
|
||||
<option name="LOCAL" value="true" />
|
||||
</RunnerSettings>
|
||||
<RunnerSettings RunnerId="Run" />
|
||||
<ConfigurationWrapper RunnerId="Debug" />
|
||||
<ConfigurationWrapper RunnerId="Run" />
|
||||
<method />
|
||||
</configuration>
|
||||
</component>
|
@ -10,7 +10,7 @@
|
||||
<option name="ENABLE_SWING_INSPECTOR" value="false" />
|
||||
<option name="ENV_VARIABLES" />
|
||||
<option name="PASS_PARENT_ENVS" value="true" />
|
||||
<module name="Nautilus.Core.CraftBukkit" />
|
||||
<module name="" />
|
||||
<envs />
|
||||
<RunnerSettings RunnerId="Debug">
|
||||
<option name="DEBUG_PORT" value="" />
|
||||
|
@ -10,7 +10,7 @@
|
||||
<option name="ENABLE_SWING_INSPECTOR" value="false" />
|
||||
<option name="ENV_VARIABLES" />
|
||||
<option name="PASS_PARENT_ENVS" value="true" />
|
||||
<module name="Nautilus.Core.CraftBukkit" />
|
||||
<module name="" />
|
||||
<envs />
|
||||
<RunnerSettings RunnerId="Debug">
|
||||
<option name="DEBUG_PORT" value="" />
|
||||
|
13
Plugins/Classpath.Dummy/Classpath.Dummy.iml
Normal file
13
Plugins/Classpath.Dummy/Classpath.Dummy.iml
Normal file
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" name="craftbukkit" level="project" />
|
||||
</component>
|
||||
</module>
|
||||
|
BIN
Plugins/Libraries/jooq-3.4.2-javadoc.jar
Normal file
BIN
Plugins/Libraries/jooq-3.4.2-javadoc.jar
Normal file
Binary file not shown.
BIN
Plugins/Libraries/jooq-3.4.2-sources.jar
Normal file
BIN
Plugins/Libraries/jooq-3.4.2-sources.jar
Normal file
Binary file not shown.
BIN
Plugins/Libraries/jooq-3.4.2.jar
Normal file
BIN
Plugins/Libraries/jooq-3.4.2.jar
Normal file
Binary file not shown.
BIN
Plugins/Libraries/jooq-codegen-3.4.2.jar
Normal file
BIN
Plugins/Libraries/jooq-codegen-3.4.2.jar
Normal file
Binary file not shown.
BIN
Plugins/Libraries/jooq-meta-3.4.2.jar
Normal file
BIN
Plugins/Libraries/jooq-meta-3.4.2.jar
Normal file
Binary file not shown.
BIN
Plugins/Libraries/mysql-connector-java-5.1.32-bin.jar
Normal file
BIN
Plugins/Libraries/mysql-connector-java-5.1.32-bin.jar
Normal file
Binary file not shown.
@ -1,4 +1,4 @@
|
||||
package mineplex.core.disguise.disguises;
|
||||
package mineplex.core.common;
|
||||
|
||||
import net.minecraft.server.v1_7_R4.Entity;
|
||||
import net.minecraft.server.v1_7_R4.NBTTagCompound;
|
@ -3,6 +3,7 @@ package mineplex.core.common.util;
|
||||
import java.lang.reflect.Field;
|
||||
import java.util.HashMap;
|
||||
|
||||
import mineplex.core.common.DummyEntity;
|
||||
import net.minecraft.server.v1_7_R4.DataWatcher;
|
||||
import net.minecraft.server.v1_7_R4.EntityPlayer;
|
||||
import net.minecraft.server.v1_7_R4.MathHelper;
|
||||
@ -12,6 +13,8 @@ import net.minecraft.server.v1_7_R4.PacketPlayOutEntityMetadata;
|
||||
import net.minecraft.server.v1_7_R4.PacketPlayOutSpawnEntityLiving;
|
||||
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.craftbukkit.v1_7_R4.CraftWorld;
|
||||
import org.bukkit.craftbukkit.v1_7_R4.entity.CraftPlayer;
|
||||
import org.bukkit.entity.EntityType;
|
||||
import org.bukkit.entity.Player;
|
||||
@ -20,7 +23,7 @@ import org.bukkit.scheduler.BukkitRunnable;
|
||||
|
||||
public class UtilDisplay
|
||||
{
|
||||
public static final int ENTITY_ID = 1234;
|
||||
public static final int ENTITY_ID = 777777;
|
||||
|
||||
private static HashMap<String, Boolean> hasHealthBar = new HashMap<String, Boolean>();
|
||||
|
||||
@ -35,9 +38,9 @@ public class UtilDisplay
|
||||
PacketPlayOutSpawnEntityLiving mobPacket = new PacketPlayOutSpawnEntityLiving();
|
||||
|
||||
mobPacket.a = (int) ENTITY_ID; //Entity ID
|
||||
mobPacket.b = (byte) EntityType.ENDER_DRAGON.getTypeId(); //Mob type (ID: 64)
|
||||
mobPacket.b = (byte) EntityType.WITHER.getTypeId(); //Mob type (ID: 64)
|
||||
mobPacket.c = (int) Math.floor(loc.getBlockX() * 32.0D); //X position
|
||||
mobPacket.d = (int) MathHelper.floor(-200 * 32.0D); //Y position
|
||||
mobPacket.d = (int) MathHelper.floor(loc.getBlockY() * 32.0D); //Y position
|
||||
mobPacket.e = (int) Math.floor(loc.getBlockZ() * 32.0D); //Z position
|
||||
mobPacket.f = (byte) 0; //Pitch
|
||||
mobPacket.g = (byte) 0; //Head Pitch
|
||||
@ -46,7 +49,7 @@ public class UtilDisplay
|
||||
mobPacket.j = (short) 0; //Y velocity
|
||||
mobPacket.k = (short) 0; //Z velocity
|
||||
|
||||
DataWatcher watcher = getWatcher(text, healthPercent * 200);
|
||||
DataWatcher watcher = getWatcher(text, 101 + healthPercent * 99, loc.getWorld());
|
||||
|
||||
mobPacket.l = watcher;
|
||||
|
||||
@ -76,14 +79,22 @@ public class UtilDisplay
|
||||
return metaPacket;
|
||||
}
|
||||
|
||||
public static DataWatcher getWatcher(String text, double health){
|
||||
DataWatcher watcher = new DataWatcher(null);
|
||||
public static DataWatcher getWatcher(String text, double health, World world)
|
||||
{
|
||||
DataWatcher watcher = new DataWatcher(new DummyEntity(((CraftWorld)world).getHandle()));
|
||||
|
||||
watcher.a(0, (Byte) (byte) 32); //Flags, 0x20 = invisible
|
||||
watcher.a(0, (Byte) (byte) 0); //Flags, 0x20 = invisible
|
||||
watcher.a(6, (Float) (float) health);
|
||||
watcher.a(2, (String) text); //Entity name
|
||||
watcher.a(10, (String) text); //Entity name
|
||||
watcher.a(11, (Byte) (byte) 1); //Show name, 1 = show, 0 = don't show
|
||||
watcher.a(3, (Byte) (byte) 0); //Show name, 1 = show, 0 = don't show
|
||||
watcher.a(11, (Byte) (byte) 0); //Show name, 1 = show, 0 = don't show
|
||||
watcher.a(16, (Integer) (int) health); //Wither health, 200 = full health
|
||||
watcher.a(20, (Integer) (int) 0); //Wither invuln, 200 = full health
|
||||
|
||||
int i1 = watcher.getInt(0);
|
||||
watcher.watch(0, Byte.valueOf((byte)(i1 | 1 << 5)));
|
||||
watcher.watch(20, 0);
|
||||
|
||||
return watcher;
|
||||
}
|
||||
@ -91,7 +102,11 @@ public class UtilDisplay
|
||||
//Other methods
|
||||
public static void displayTextBar(JavaPlugin plugin, final Player player, double healthPercent, String text)
|
||||
{
|
||||
PacketPlayOutSpawnEntityLiving mobPacket = getMobPacket(text, healthPercent, player.getLocation());
|
||||
PacketPlayOutEntityDestroy destroyEntityPacket = getDestroyEntityPacket();
|
||||
|
||||
sendPacket(player, destroyEntityPacket);
|
||||
|
||||
PacketPlayOutSpawnEntityLiving mobPacket = getMobPacket(text, healthPercent, player.getEyeLocation().getDirection().multiply(24).toLocation(player.getWorld()).add(player.getLocation()));
|
||||
|
||||
sendPacket(player, mobPacket);
|
||||
hasHealthBar.put(player.getName(), true);
|
||||
@ -108,18 +123,21 @@ public class UtilDisplay
|
||||
}
|
||||
|
||||
public static void displayLoadingBar(final String text, final String completeText, final Player player, final int healthAdd, final long delay, final boolean loadUp, final JavaPlugin plugin){
|
||||
PacketPlayOutSpawnEntityLiving mobPacket = getMobPacket(text, 0, player.getLocation());
|
||||
PacketPlayOutEntityDestroy destroyEntityPacket = getDestroyEntityPacket();
|
||||
|
||||
sendPacket(player, destroyEntityPacket);
|
||||
PacketPlayOutSpawnEntityLiving mobPacket = getMobPacket(text, 0, player.getEyeLocation().getDirection().multiply(24).toLocation(player.getWorld()).add(player.getLocation()));
|
||||
|
||||
sendPacket(player, mobPacket);
|
||||
hasHealthBar.put(player.getName(), true);
|
||||
|
||||
new BukkitRunnable(){
|
||||
int health = (loadUp ? 0 : 200);
|
||||
int health = (loadUp ? 100 : 200);
|
||||
|
||||
@Override
|
||||
@Override
|
||||
public void run(){
|
||||
if((loadUp ? health < 200 : health > 0)){
|
||||
DataWatcher watcher = getWatcher(text, health);
|
||||
if((loadUp ? health < 200 : health > 100)){
|
||||
DataWatcher watcher = getWatcher(text, health, player.getWorld());
|
||||
PacketPlayOutEntityMetadata metaPacket = getMetadataPacket(watcher);
|
||||
|
||||
sendPacket(player, metaPacket);
|
||||
@ -130,7 +148,7 @@ public class UtilDisplay
|
||||
health -= healthAdd;
|
||||
}
|
||||
} else {
|
||||
DataWatcher watcher = getWatcher(text, (loadUp ? 200 : 0));
|
||||
DataWatcher watcher = getWatcher(text, (loadUp ? 200 : 100), player.getWorld());
|
||||
PacketPlayOutEntityMetadata metaPacket = getMetadataPacket(watcher);
|
||||
PacketPlayOutEntityDestroy destroyEntityPacket = getDestroyEntityPacket();
|
||||
|
||||
@ -144,7 +162,7 @@ public class UtilDisplay
|
||||
sendPacket(player, mobPacket);
|
||||
hasHealthBar.put(player.getName(), true);
|
||||
|
||||
DataWatcher watcher2 = getWatcher(completeText, 200);
|
||||
DataWatcher watcher2 = getWatcher(completeText, 200, player.getWorld());
|
||||
PacketPlayOutEntityMetadata metaPacket2 = getMetadataPacket(watcher2);
|
||||
|
||||
sendPacket(player, metaPacket2);
|
||||
@ -166,7 +184,7 @@ public class UtilDisplay
|
||||
}
|
||||
|
||||
public static void displayLoadingBar(final String text, final String completeText, final Player player, final int secondsDelay, final boolean loadUp, JavaPlugin plugin){
|
||||
final int healthChangePerSecond = 200 / secondsDelay;
|
||||
final int healthChangePerSecond = 100 / secondsDelay;
|
||||
|
||||
displayLoadingBar(text, completeText, player, healthChangePerSecond, 20L, loadUp, plugin);
|
||||
}
|
||||
|
@ -54,6 +54,12 @@ public class UtilInv
|
||||
|
||||
public static boolean contains(Player player, Material item, byte data, int required)
|
||||
{
|
||||
return contains(player, null, item, data, required);
|
||||
}
|
||||
|
||||
public static boolean contains(Player player, String itemNameContains, Material item, byte data, int required)
|
||||
{
|
||||
|
||||
for (int i : player.getInventory().all(item).keySet())
|
||||
{
|
||||
if (required <= 0)
|
||||
@ -61,10 +67,21 @@ public class UtilInv
|
||||
|
||||
ItemStack stack = player.getInventory().getItem(i);
|
||||
|
||||
if (stack != null && stack.getAmount() > 0 && (stack.getData() == null || stack.getData().getData() == data))
|
||||
{
|
||||
required -= stack.getAmount();
|
||||
}
|
||||
if (stack == null)
|
||||
continue;
|
||||
|
||||
if (stack.getAmount() <= 0)
|
||||
continue;
|
||||
|
||||
if (data >=0 &&
|
||||
stack.getData() != null && stack.getData().getData() != data)
|
||||
continue;
|
||||
|
||||
if (itemNameContains != null &&
|
||||
(stack.getItemMeta().getDisplayName() == null || !stack.getItemMeta().getDisplayName().contains(itemNameContains)))
|
||||
continue;
|
||||
|
||||
required -= stack.getAmount();
|
||||
}
|
||||
|
||||
if (required <= 0)
|
||||
@ -196,10 +213,15 @@ public class UtilInv
|
||||
|
||||
public static boolean IsItem(ItemStack item, Material type, byte data)
|
||||
{
|
||||
return IsItem(item, type.getId(), data);
|
||||
return IsItem(item, null, type.getId(), data);
|
||||
}
|
||||
|
||||
public static boolean IsItem(ItemStack item, int id, byte data)
|
||||
public static boolean IsItem(ItemStack item, String name, Material type, byte data)
|
||||
{
|
||||
return IsItem(item, name, type.getId(), data);
|
||||
}
|
||||
|
||||
public static boolean IsItem(ItemStack item, String name, int id, byte data)
|
||||
{
|
||||
if (item == null)
|
||||
return false;
|
||||
@ -210,6 +232,9 @@ public class UtilInv
|
||||
if (data != -1 && GetData(item) != data)
|
||||
return false;
|
||||
|
||||
if (name != null && (item.getItemMeta().getDisplayName() == null || !item.getItemMeta().getDisplayName().contains(name)))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -247,12 +272,12 @@ public class UtilInv
|
||||
{
|
||||
boolean match = false;
|
||||
|
||||
if (IsItem(event.getCurrentItem(), type, data))
|
||||
if (IsItem(event.getCurrentItem(), name, type, data))
|
||||
match = true;
|
||||
|
||||
if (IsItem(event.getWhoClicked().getInventory().getItem(event.getHotbarButton()), type, data))
|
||||
if (IsItem(event.getWhoClicked().getInventory().getItem(event.getHotbarButton()), name, type, data))
|
||||
match = true;
|
||||
|
||||
|
||||
if (!match)
|
||||
return;
|
||||
|
||||
@ -266,10 +291,10 @@ public class UtilInv
|
||||
if (event.getCurrentItem() == null)
|
||||
return;
|
||||
|
||||
IsItem(event.getCurrentItem(), type, data);
|
||||
IsItem(event.getCurrentItem(), name, type, data);
|
||||
|
||||
//Type
|
||||
if (!IsItem(event.getCurrentItem(), type, data))
|
||||
if (!IsItem(event.getCurrentItem(), name, type, data))
|
||||
return;
|
||||
//Inform
|
||||
UtilPlayer.message(event.getWhoClicked(), F.main("Inventory", "You cannot move " + F.item(name) + "."));
|
||||
|
@ -15,6 +15,8 @@
|
||||
<orderEntry type="module" module-name="Mineplex.Core.Common" />
|
||||
<orderEntry type="module" module-name="Mineplex.ServerData" />
|
||||
<orderEntry type="library" name="craftbukkit" level="project" />
|
||||
<orderEntry type="library" name="jooq" level="project" />
|
||||
<orderEntry type="module" module-name="Mineplex.Database" />
|
||||
</component>
|
||||
</module>
|
||||
|
||||
|
311
Plugins/Mineplex.Core/src/mineplex/core/CustomTagFix.java
Normal file
311
Plugins/Mineplex.Core/src/mineplex/core/CustomTagFix.java
Normal file
@ -0,0 +1,311 @@
|
||||
package mineplex.core;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import java.util.List;
|
||||
|
||||
import mineplex.core.common.DummyEntity;
|
||||
import mineplex.core.common.util.NautHashMap;
|
||||
import mineplex.core.packethandler.PacketVerifier;
|
||||
import mineplex.core.packethandler.PlayerPacketEvent;
|
||||
import net.minecraft.server.v1_7_R4.DataWatcher;
|
||||
import net.minecraft.server.v1_7_R4.EnumEntitySize;
|
||||
import net.minecraft.server.v1_7_R4.MathHelper;
|
||||
import net.minecraft.server.v1_7_R4.Packet;
|
||||
import net.minecraft.server.v1_7_R4.PacketPlayOutAttachEntity;
|
||||
import net.minecraft.server.v1_7_R4.PacketPlayOutEntityDestroy;
|
||||
import net.minecraft.server.v1_7_R4.PacketPlayOutEntityMetadata;
|
||||
import net.minecraft.server.v1_7_R4.PacketPlayOutSpawnEntityLiving;
|
||||
import net.minecraft.server.v1_7_R4.WatchableObject;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.craftbukkit.v1_7_R4.CraftWorld;
|
||||
import org.bukkit.craftbukkit.v1_7_R4.entity.CraftPlayer;
|
||||
import org.bukkit.entity.EntityType;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.EventPriority;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
public class CustomTagFix extends MiniPlugin
|
||||
{
|
||||
private static int _fakeIdCounter = 455000;
|
||||
private NautHashMap<Integer, Integer> _entityMap = new NautHashMap<Integer, Integer>();
|
||||
|
||||
private Field _destroyId;
|
||||
|
||||
public CustomTagFix(JavaPlugin plugin)
|
||||
{
|
||||
super("Custom Tag Fix", plugin);
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
_destroyId = PacketPlayOutEntityDestroy.class.getDeclaredField("a");
|
||||
_destroyId.setAccessible(true);
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
System.out.println("Field exception in CustomTagFix : ");
|
||||
exception.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@EventHandler(priority = EventPriority.HIGHEST)
|
||||
public void handlePackets(PlayerPacketEvent event)
|
||||
{
|
||||
Packet packet = event.getPacket();
|
||||
Player owner = event.getPlayer();
|
||||
PacketVerifier verifier = event.getVerifier();
|
||||
|
||||
if (((CraftPlayer)owner).getHandle().playerConnection.networkManager.getVersion() >= 47)
|
||||
{
|
||||
if (packet instanceof PacketPlayOutSpawnEntityLiving)
|
||||
{
|
||||
PacketPlayOutSpawnEntityLiving spawnPacket = (PacketPlayOutSpawnEntityLiving)packet;
|
||||
|
||||
final String entityName = spawnPacket.l.getString(10);
|
||||
|
||||
if (spawnPacket.l.getByte(11) == 1 || spawnPacket.l.getByte(3) == 1)
|
||||
{
|
||||
int newId = _fakeIdCounter++;
|
||||
sendProtocolPackets(owner, spawnPacket.a, newId, entityName, verifier);
|
||||
_entityMap.put(spawnPacket.a, newId);
|
||||
}
|
||||
|
||||
}
|
||||
else if (packet instanceof PacketPlayOutEntityMetadata)
|
||||
{
|
||||
PacketPlayOutEntityMetadata metaPacket = (PacketPlayOutEntityMetadata)packet;
|
||||
|
||||
if (!_entityMap.containsKey(metaPacket.a) && metaPacket.a != 777777)
|
||||
{
|
||||
String entityName = "";
|
||||
for (WatchableObject watchable : (List<WatchableObject>)metaPacket.b)
|
||||
{
|
||||
if ((watchable.a() == 10 || watchable.a() == 2) && watchable.b() instanceof String)
|
||||
{
|
||||
entityName = (String)watchable.b();
|
||||
}
|
||||
}
|
||||
|
||||
if (!entityName.isEmpty())
|
||||
{
|
||||
int newId = _fakeIdCounter++;
|
||||
sendProtocolPackets(owner, metaPacket.a, newId, entityName, verifier);
|
||||
_entityMap.put(metaPacket.a, newId);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (packet instanceof PacketPlayOutEntityDestroy)
|
||||
{
|
||||
try
|
||||
{
|
||||
for (int id : (int[])_destroyId.get(packet))
|
||||
{
|
||||
if (_entityMap.containsKey(id))
|
||||
{
|
||||
verifier.bypassProcess(new PacketPlayOutEntityDestroy(_entityMap.get(id)));
|
||||
_entityMap.remove(id);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
exception.printStackTrace();
|
||||
}
|
||||
}
|
||||
else if (packet instanceof PacketPlayOutAttachEntity)
|
||||
{
|
||||
PacketPlayOutAttachEntity attachPacket = (PacketPlayOutAttachEntity)packet;
|
||||
|
||||
if (attachPacket.c == owner.getEntityId())
|
||||
{
|
||||
event.setCancelled(true);
|
||||
//verifier.bypassProcess(new PacketPlayOutEntityDestroy(attachPacket.b));
|
||||
/*
|
||||
System.out.println("Adding patch item.");
|
||||
PacketPlayOutSpawnEntityLiving armorPacket = new PacketPlayOutSpawnEntityLiving();
|
||||
armorPacket.a = _fakeIdCounter++;
|
||||
armorPacket.b = (byte) EntityType.SLIME.getTypeId();
|
||||
armorPacket.c = (int)EnumEntitySize.SIZE_2.a(100);
|
||||
armorPacket.d = (int)MathHelper.floor(64 * 32.0D);
|
||||
armorPacket.e = (int)EnumEntitySize.SIZE_2.a(100);
|
||||
armorPacket.i = (byte) ((int) (0 * 256.0F / 360.0F));
|
||||
armorPacket.j = (byte) ((int) (0 * 256.0F / 360.0F));
|
||||
armorPacket.k = (byte) ((int) (0 * 256.0F / 360.0F));
|
||||
|
||||
double var2 = 3.9D;
|
||||
double var4 = 0;
|
||||
double var6 = 0;
|
||||
double var8 = 0;
|
||||
|
||||
if (var4 < -var2)
|
||||
{
|
||||
var4 = -var2;
|
||||
}
|
||||
|
||||
if (var6 < -var2)
|
||||
{
|
||||
var6 = -var2;
|
||||
}
|
||||
|
||||
if (var8 < -var2)
|
||||
{
|
||||
var8 = -var2;
|
||||
}
|
||||
|
||||
if (var4 > var2)
|
||||
{
|
||||
var4 = var2;
|
||||
}
|
||||
|
||||
if (var6 > var2)
|
||||
{
|
||||
var6 = var2;
|
||||
}
|
||||
|
||||
if (var8 > var2)
|
||||
{
|
||||
var8 = var2;
|
||||
}
|
||||
|
||||
armorPacket.f = (int)(var4 * 8000.0D);
|
||||
armorPacket.g = (int)(var6 * 8000.0D);
|
||||
armorPacket.h = (int)(var8 * 8000.0D);
|
||||
|
||||
final DataWatcher watcher = new DataWatcher(new DummyEntity(((CraftWorld)owner.getWorld()).getHandle()));
|
||||
|
||||
watcher.a(0, Byte.valueOf((byte)0));
|
||||
watcher.a(1, Short.valueOf((short)300));
|
||||
watcher.a(2, "");
|
||||
watcher.a(3, Byte.valueOf((byte) 0));
|
||||
watcher.a(4, Byte.valueOf((byte)0));
|
||||
watcher.a(7, Integer.valueOf(0));
|
||||
watcher.a(8, Byte.valueOf((byte)0));
|
||||
watcher.a(9, Byte.valueOf((byte)0));
|
||||
watcher.a(6, Float.valueOf(1.0F));
|
||||
watcher.a(10, Byte.valueOf((byte)0));
|
||||
|
||||
// Set invisible
|
||||
int i1 = watcher.getInt(0);
|
||||
watcher.watch(0, Byte.valueOf((byte)(i1 | 1 << 5)));
|
||||
|
||||
// Set small
|
||||
byte b1 = watcher.getByte(10);
|
||||
b1 = (byte)(b1 | 0x1);
|
||||
|
||||
watcher.watch(10, Byte.valueOf(b1));
|
||||
|
||||
armorPacket.l = watcher;
|
||||
|
||||
verifier.bypassProcess(packet);
|
||||
|
||||
attachPacket.c = armorPacket.a;
|
||||
|
||||
PacketPlayOutAttachEntity attachPacket2 = new PacketPlayOutAttachEntity();
|
||||
attachPacket2.c = owner.getEntityId();
|
||||
attachPacket2.b = attachPacket.a;
|
||||
attachPacket2.a = 0;
|
||||
verifier.bypassProcess(packet);
|
||||
*/
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void sendProtocolPackets(final Player owner, final int entityId, final int newEntityId, final String entityName, final PacketVerifier packetList)
|
||||
{
|
||||
Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(GetPlugin(), new Runnable()
|
||||
{
|
||||
public void run()
|
||||
{
|
||||
final PacketPlayOutSpawnEntityLiving packet = new PacketPlayOutSpawnEntityLiving();
|
||||
packet.a = newEntityId;
|
||||
packet.b = (byte) 30;
|
||||
packet.c = (int)EnumEntitySize.SIZE_2.a(100);
|
||||
packet.d = (int)MathHelper.floor(64 * 32.0D);
|
||||
packet.e = (int)EnumEntitySize.SIZE_2.a(100);
|
||||
packet.i = (byte) ((int) (0 * 256.0F / 360.0F));
|
||||
packet.j = (byte) ((int) (0 * 256.0F / 360.0F));
|
||||
packet.k = (byte) ((int) (0 * 256.0F / 360.0F));
|
||||
|
||||
double var2 = 3.9D;
|
||||
double var4 = 0;
|
||||
double var6 = 0;
|
||||
double var8 = 0;
|
||||
|
||||
if (var4 < -var2)
|
||||
{
|
||||
var4 = -var2;
|
||||
}
|
||||
|
||||
if (var6 < -var2)
|
||||
{
|
||||
var6 = -var2;
|
||||
}
|
||||
|
||||
if (var8 < -var2)
|
||||
{
|
||||
var8 = -var2;
|
||||
}
|
||||
|
||||
if (var4 > var2)
|
||||
{
|
||||
var4 = var2;
|
||||
}
|
||||
|
||||
if (var6 > var2)
|
||||
{
|
||||
var6 = var2;
|
||||
}
|
||||
|
||||
if (var8 > var2)
|
||||
{
|
||||
var8 = var2;
|
||||
}
|
||||
|
||||
packet.f = (int)(var4 * 8000.0D);
|
||||
packet.g = (int)(var6 * 8000.0D);
|
||||
packet.h = (int)(var8 * 8000.0D);
|
||||
|
||||
final DataWatcher watcher = new DataWatcher(new DummyEntity(((CraftWorld)owner.getWorld()).getHandle()));
|
||||
|
||||
watcher.a(0, Byte.valueOf((byte)0));
|
||||
watcher.a(1, Short.valueOf((short)300));
|
||||
watcher.a(2, "");
|
||||
watcher.a(3, Byte.valueOf((byte) 0));
|
||||
watcher.a(4, Byte.valueOf((byte)0));
|
||||
watcher.a(7, Integer.valueOf(0));
|
||||
watcher.a(8, Byte.valueOf((byte)0));
|
||||
watcher.a(9, Byte.valueOf((byte)0));
|
||||
watcher.a(6, Float.valueOf(1.0F));
|
||||
watcher.a(10, Byte.valueOf((byte)0));
|
||||
|
||||
// Set invisible
|
||||
int i1 = watcher.getInt(0);
|
||||
watcher.watch(0, Byte.valueOf((byte)(i1 | 1 << 5)));
|
||||
|
||||
// Set small
|
||||
byte b1 = watcher.getByte(10);
|
||||
b1 = (byte)(b1 | 0x1);
|
||||
|
||||
watcher.watch(10, Byte.valueOf(b1));
|
||||
|
||||
watcher.watch(2, entityName);
|
||||
watcher.watch(3, Byte.valueOf((byte)1));
|
||||
|
||||
packet.l = watcher;
|
||||
|
||||
packetList.bypassProcess(packet);
|
||||
|
||||
PacketPlayOutAttachEntity vehiclePacket = new PacketPlayOutAttachEntity();
|
||||
vehiclePacket.a = 0;
|
||||
vehiclePacket.b = packet.a;
|
||||
vehiclePacket.c = entityId;
|
||||
|
||||
packetList.bypassProcess(vehiclePacket);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
@ -16,6 +16,7 @@ import mineplex.core.cosmetic.ui.button.ActivateGadgetButton;
|
||||
import mineplex.core.cosmetic.ui.button.DeactivateGadgetButton;
|
||||
import mineplex.core.cosmetic.ui.button.GadgetButton;
|
||||
import mineplex.core.donation.DonationManager;
|
||||
import mineplex.core.gadget.gadgets.MorphNotch;
|
||||
import mineplex.core.gadget.types.Gadget;
|
||||
import mineplex.core.gadget.types.GadgetType;
|
||||
import mineplex.core.gadget.types.ItemGadget;
|
||||
@ -62,6 +63,11 @@ public class GadgetPage extends ShopPageBase<CosmeticManager, CosmeticShop>
|
||||
|
||||
protected void addGadget(Gadget gadget, int slot)
|
||||
{
|
||||
if (gadget instanceof MorphNotch)
|
||||
{
|
||||
setItem(slot, new ShopItem(gadget.GetDisplayMaterial(), gadget.GetDisplayData(), "Disabled " + gadget.GetName(), new String[] { "Sorry! Currently disabled until fix is made for 1.8 players!" }, 1, false, false));
|
||||
return;
|
||||
}
|
||||
List<String> itemLore = new ArrayList<String>();
|
||||
|
||||
if (gadget.GetCost(CurrencyType.Coins) >= 0)
|
||||
|
@ -3,6 +3,7 @@ package mineplex.core.disguise;
|
||||
import java.lang.reflect.Field;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
|
||||
@ -34,23 +35,19 @@ import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.player.PlayerQuitEvent;
|
||||
import org.bukkit.event.world.ChunkUnloadEvent;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
import org.bukkit.util.Vector;
|
||||
|
||||
import mineplex.core.MiniPlugin;
|
||||
import mineplex.core.common.util.NautHashMap;
|
||||
import mineplex.core.common.util.UtilMath;
|
||||
import mineplex.core.disguise.disguises.DisguiseBase;
|
||||
import mineplex.core.disguise.disguises.DisguiseBlock;
|
||||
import mineplex.core.disguise.disguises.DisguiseInsentient;
|
||||
import mineplex.core.disguise.disguises.DisguisePlayer;
|
||||
import mineplex.core.packethandler.IPacketRunnable;
|
||||
import mineplex.core.packethandler.PacketHandler;
|
||||
import mineplex.core.packethandler.PacketVerifier;
|
||||
import mineplex.core.packethandler.PlayerPacketEvent;
|
||||
import mineplex.core.timing.TimingManager;
|
||||
import mineplex.core.updater.UpdateType;
|
||||
import mineplex.core.updater.event.UpdateEvent;
|
||||
|
||||
public class DisguiseManager extends MiniPlugin implements IPacketRunnable
|
||||
public class DisguiseManager extends MiniPlugin
|
||||
{
|
||||
private NautHashMap<Integer, DisguiseBase> _spawnPacketMap = new NautHashMap<Integer, DisguiseBase>();
|
||||
private NautHashMap<Integer, PacketPlayOutEntityVelocity> _movePacketMap = new NautHashMap<Integer, PacketPlayOutEntityVelocity>();
|
||||
@ -61,17 +58,17 @@ public class DisguiseManager extends MiniPlugin implements IPacketRunnable
|
||||
private HashSet<String> _delTempList = new HashSet<String>();
|
||||
private NautHashMap<DisguiseBase, HashSet<Player>> _disguisePlayerMap = new NautHashMap<DisguiseBase, HashSet<Player>>();
|
||||
|
||||
private boolean _handlingPacket = false;
|
||||
|
||||
private Field _attributesA;
|
||||
private Field _soundB;
|
||||
private Field _soundC;
|
||||
private Field _soundD;
|
||||
|
||||
public DisguiseManager(JavaPlugin plugin, PacketHandler packetHandler)
|
||||
public DisguiseManager(JavaPlugin plugin)
|
||||
{
|
||||
super("Disguise Manager", plugin);
|
||||
|
||||
packetHandler.AddPacketRunnable(this);
|
||||
|
||||
try
|
||||
{
|
||||
_attributesA = PacketPlayOutUpdateAttributes.class.getDeclaredField("a");
|
||||
@ -136,15 +133,14 @@ public class DisguiseManager extends MiniPlugin implements IPacketRunnable
|
||||
{
|
||||
if (!disguise.GetEntity().isAlive())
|
||||
return;
|
||||
|
||||
if (players == null || players.length == 0)
|
||||
|
||||
if (players != null && players.length != 0)
|
||||
{
|
||||
players = Bukkit.getOnlinePlayers().toArray(new Player[Bukkit.getOnlinePlayers().size()]);
|
||||
disguise.Global = false;
|
||||
}
|
||||
|
||||
_spawnPacketMap.put(disguise.GetEntityId(), disguise);
|
||||
_disguisePlayerMap.put(disguise, new HashSet<Player>());
|
||||
_disguisePlayerMap.get(disguise).addAll(Arrays.asList(players));
|
||||
|
||||
reApplyDisguise(disguise);
|
||||
}
|
||||
@ -158,7 +154,9 @@ public class DisguiseManager extends MiniPlugin implements IPacketRunnable
|
||||
_movePacketMap.remove(entity.getEntityId());
|
||||
_moveTempMap.remove(entity.getEntityId());
|
||||
|
||||
for (Player player : _disguisePlayerMap.get(disguise))
|
||||
Collection<? extends Player> players = (disguise.Global ? Bukkit.getOnlinePlayers() : _disguisePlayerMap.get(disguise));
|
||||
|
||||
for (Player player : players)
|
||||
{
|
||||
if (entity == player)
|
||||
continue;
|
||||
@ -180,9 +178,17 @@ public class DisguiseManager extends MiniPlugin implements IPacketRunnable
|
||||
|
||||
public void reApplyDisguise(final DisguiseBase disguise)
|
||||
{
|
||||
reApplyDisguise(disguise, 1);
|
||||
}
|
||||
|
||||
public void reApplyDisguise(final DisguiseBase disguise, long reapplyTime)
|
||||
{
|
||||
_handlingPacket = true;
|
||||
PacketPlayOutEntityDestroy destroyPacket = new PacketPlayOutEntityDestroy(disguise.GetEntityId());
|
||||
|
||||
for (Player player : _disguisePlayerMap.get(disguise))
|
||||
Collection<? extends Player> players = (disguise.Global ? Bukkit.getOnlinePlayers() : _disguisePlayerMap.get(disguise));
|
||||
|
||||
for (Player player : players)
|
||||
{
|
||||
if (disguise.GetEntity() == ((CraftPlayer)player).getHandle())
|
||||
continue;
|
||||
@ -191,7 +197,7 @@ public class DisguiseManager extends MiniPlugin implements IPacketRunnable
|
||||
|
||||
entityPlayer.playerConnection.sendPacket(destroyPacket);
|
||||
}
|
||||
|
||||
|
||||
List<Packet> tempArmor = new ArrayList<Packet>();
|
||||
|
||||
if (disguise instanceof DisguiseInsentient && disguise.GetEntity() instanceof LivingEntity)
|
||||
@ -205,25 +211,30 @@ public class DisguiseManager extends MiniPlugin implements IPacketRunnable
|
||||
|
||||
final List<Packet> armorPackets = tempArmor;
|
||||
|
||||
Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(GetPlugin(), new Runnable()
|
||||
Bukkit.getServer().getScheduler().runTaskLater(GetPlugin(), new Runnable()
|
||||
{
|
||||
public void run()
|
||||
{
|
||||
_handlingPacket = true;
|
||||
Packet spawnPacket = disguise.GetSpawnPacket();
|
||||
for (Player player : _disguisePlayerMap.get(disguise))
|
||||
{
|
||||
if (disguise.GetEntity() == ((CraftPlayer)player).getHandle())
|
||||
continue;
|
||||
|
||||
|
||||
EntityPlayer entityPlayer = ((CraftPlayer)player).getHandle();
|
||||
entityPlayer.playerConnection.sendPacket(disguise.GetSpawnPacket());
|
||||
entityPlayer.playerConnection.sendPacket(spawnPacket);
|
||||
|
||||
for (Packet packet : armorPackets)
|
||||
{
|
||||
entityPlayer.playerConnection.sendPacket(packet);
|
||||
}
|
||||
}
|
||||
_handlingPacket = false;
|
||||
}
|
||||
});
|
||||
}, reapplyTime);
|
||||
|
||||
_handlingPacket = false;
|
||||
}
|
||||
|
||||
public void reApplyDisguise(final DisguiseBase disguise, final Player player)
|
||||
@ -267,7 +278,9 @@ public class DisguiseManager extends MiniPlugin implements IPacketRunnable
|
||||
|
||||
public void updateDisguise(DisguiseBase disguise)
|
||||
{
|
||||
for (Player player : _disguisePlayerMap.get(disguise))
|
||||
Collection<? extends Player> players = (disguise.Global ? Bukkit.getOnlinePlayers() : _disguisePlayerMap.get(disguise));
|
||||
|
||||
for (Player player : players)
|
||||
{
|
||||
if (disguise.GetEntity() == ((CraftPlayer)player).getHandle())
|
||||
continue;
|
||||
@ -347,27 +360,34 @@ public class DisguiseManager extends MiniPlugin implements IPacketRunnable
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean run(final Packet packet, Player owner, final PacketVerifier packetList)
|
||||
@EventHandler
|
||||
public void handlePackets(PlayerPacketEvent event)
|
||||
{
|
||||
if (_handlingPacket)
|
||||
return;
|
||||
|
||||
final Packet packet = event.getPacket();
|
||||
Player owner = event.getPlayer();
|
||||
final PacketVerifier packetVerifier = event.getVerifier();
|
||||
|
||||
if (packet instanceof PacketPlayOutNamedEntitySpawn)
|
||||
{
|
||||
int entityId = ((PacketPlayOutNamedEntitySpawn)packet).a;
|
||||
|
||||
if (_spawnPacketMap.containsKey(entityId) && _disguisePlayerMap.get(_spawnPacketMap.get(entityId)).contains(owner))
|
||||
if (_spawnPacketMap.containsKey(entityId) && (_spawnPacketMap.get(entityId).Global || _disguisePlayerMap.get(_spawnPacketMap.get(entityId)).contains(owner)))
|
||||
{
|
||||
packetList.forceProcess(_spawnPacketMap.get(entityId).GetSpawnPacket());
|
||||
return false;
|
||||
handlePacket(_spawnPacketMap.get(entityId).GetSpawnPacket(), packetVerifier);
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
else if (packet instanceof PacketPlayOutSpawnEntity)
|
||||
{
|
||||
int entityId = ((PacketPlayOutSpawnEntity)packet).a;
|
||||
|
||||
if (_spawnPacketMap.containsKey(entityId) && _disguisePlayerMap.get(_spawnPacketMap.get(entityId)).contains(owner))
|
||||
if (_spawnPacketMap.containsKey(entityId) && (_spawnPacketMap.get(entityId).Global || _disguisePlayerMap.get(_spawnPacketMap.get(entityId)).contains(owner)))
|
||||
{
|
||||
packetList.forceProcess(_spawnPacketMap.get(entityId).GetSpawnPacket());
|
||||
return false;
|
||||
handlePacket(_spawnPacketMap.get(entityId).GetSpawnPacket(), packetVerifier);
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
else if (packet instanceof PacketPlayOutUpdateAttributes)
|
||||
@ -387,11 +407,11 @@ public class DisguiseManager extends MiniPlugin implements IPacketRunnable
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
if (_spawnPacketMap.containsKey(entityId) && owner.getEntityId() != entityId && _disguisePlayerMap.get(_spawnPacketMap.get(entityId)).contains(owner))
|
||||
if (_spawnPacketMap.containsKey(entityId) && owner.getEntityId() != entityId && (_spawnPacketMap.get(entityId).Global || _disguisePlayerMap.get(_spawnPacketMap.get(entityId)).contains(owner)))
|
||||
{
|
||||
// Crash clients with meta to a block id.
|
||||
if (_spawnPacketMap.get(entityId) instanceof DisguiseBlock)
|
||||
return false;
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
else if (packet instanceof PacketPlayOutAnimation)
|
||||
@ -400,7 +420,7 @@ public class DisguiseManager extends MiniPlugin implements IPacketRunnable
|
||||
|
||||
if (containsSpawnDisguise(owner, entityId) && owner.getEntityId() != entityId)
|
||||
{
|
||||
return false;
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
else if (packet instanceof PacketPlayOutEntityMetadata)
|
||||
@ -409,8 +429,8 @@ public class DisguiseManager extends MiniPlugin implements IPacketRunnable
|
||||
|
||||
if (containsSpawnDisguise(owner, entityId) && owner.getEntityId() != entityId)
|
||||
{
|
||||
packetList.forceProcess(_spawnPacketMap.get(entityId).GetMetaDataPacket());
|
||||
return false;
|
||||
handlePacket(_spawnPacketMap.get(entityId).GetMetaDataPacket(), packetVerifier);
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
else if (packet instanceof PacketPlayOutEntityEquipment)
|
||||
@ -421,7 +441,7 @@ public class DisguiseManager extends MiniPlugin implements IPacketRunnable
|
||||
{
|
||||
if (!((DisguiseInsentient)_spawnPacketMap.get(entityId)).armorVisible() && ((PacketPlayOutEntityEquipment)packet).b != 0)
|
||||
{
|
||||
return false;
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -437,11 +457,11 @@ public class DisguiseManager extends MiniPlugin implements IPacketRunnable
|
||||
}
|
||||
else if (velocityPacket.b == 0 && velocityPacket.c == 0 && velocityPacket.d == 0)
|
||||
{
|
||||
return true;
|
||||
return;
|
||||
}
|
||||
else if (_spawnPacketMap.containsKey(velocityPacket.a))
|
||||
{
|
||||
return false;
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
else if (packet instanceof PacketPlayOutRelEntityMove)
|
||||
@ -450,7 +470,7 @@ public class DisguiseManager extends MiniPlugin implements IPacketRunnable
|
||||
|
||||
// Only for viewers
|
||||
if (movePacket.a == owner.getEntityId())
|
||||
return true;
|
||||
return;
|
||||
|
||||
if (_goingUp.contains(movePacket.a) && movePacket.c != 0 && movePacket.c < 20)
|
||||
{
|
||||
@ -459,7 +479,7 @@ public class DisguiseManager extends MiniPlugin implements IPacketRunnable
|
||||
}
|
||||
|
||||
if (!containsSpawnDisguise(owner, movePacket.a))
|
||||
return true;
|
||||
return;
|
||||
|
||||
final PacketPlayOutEntityVelocity velocityPacket = new PacketPlayOutEntityVelocity();
|
||||
velocityPacket.a = movePacket.a;
|
||||
@ -478,7 +498,7 @@ public class DisguiseManager extends MiniPlugin implements IPacketRunnable
|
||||
|
||||
_movePacketMap.put(movePacket.a, velocityPacket);
|
||||
|
||||
packetList.forceProcess(velocityPacket);
|
||||
packetVerifier.bypassProcess(velocityPacket);
|
||||
|
||||
if (_goingUp.contains(movePacket.a) && movePacket.c != 0 && movePacket.c > 20)
|
||||
{
|
||||
@ -486,7 +506,7 @@ public class DisguiseManager extends MiniPlugin implements IPacketRunnable
|
||||
{
|
||||
public void run()
|
||||
{
|
||||
packetList.forceProcess(velocityPacket);
|
||||
packetVerifier.bypassProcess(velocityPacket);
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -502,7 +522,7 @@ public class DisguiseManager extends MiniPlugin implements IPacketRunnable
|
||||
|
||||
// Only for viewers
|
||||
if (movePacket.a == owner.getEntityId())
|
||||
return true;
|
||||
return;
|
||||
|
||||
if (_goingUp.contains(movePacket.a) && movePacket.c != 0 && movePacket.c <= 20)
|
||||
{
|
||||
@ -511,7 +531,7 @@ public class DisguiseManager extends MiniPlugin implements IPacketRunnable
|
||||
}
|
||||
|
||||
if (!containsSpawnDisguise(owner, movePacket.a))
|
||||
return true;
|
||||
return;
|
||||
|
||||
final PacketPlayOutEntityVelocity velocityPacket = new PacketPlayOutEntityVelocity();
|
||||
velocityPacket.a = movePacket.a;
|
||||
@ -530,7 +550,7 @@ public class DisguiseManager extends MiniPlugin implements IPacketRunnable
|
||||
|
||||
_movePacketMap.put(movePacket.a, velocityPacket);
|
||||
|
||||
packetList.forceProcess(velocityPacket);
|
||||
packetVerifier.bypassProcess(velocityPacket);
|
||||
|
||||
if (_goingUp.contains(movePacket.a) && movePacket.c != 0 && movePacket.c > 20)
|
||||
{
|
||||
@ -538,7 +558,7 @@ public class DisguiseManager extends MiniPlugin implements IPacketRunnable
|
||||
{
|
||||
public void run()
|
||||
{
|
||||
packetList.forceProcess(velocityPacket);
|
||||
packetVerifier.bypassProcess(velocityPacket);
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -569,13 +589,18 @@ public class DisguiseManager extends MiniPlugin implements IPacketRunnable
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
private void handlePacket(Packet packet, PacketVerifier verifier)
|
||||
{
|
||||
_handlingPacket = true;
|
||||
verifier.process(packet);
|
||||
_handlingPacket = false;
|
||||
}
|
||||
|
||||
private boolean containsSpawnDisguise(Player owner, int entityId)
|
||||
{
|
||||
return _spawnPacketMap.containsKey(entityId) && (_disguisePlayerMap.containsKey(_spawnPacketMap.get(entityId)) && _disguisePlayerMap.get(_spawnPacketMap.get(entityId)).contains(owner));
|
||||
return _spawnPacketMap.containsKey(entityId) && (_spawnPacketMap.get(entityId).Global || (_disguisePlayerMap.containsKey(_spawnPacketMap.get(entityId)) && _disguisePlayerMap.get(_spawnPacketMap.get(entityId)).contains(owner)));
|
||||
}
|
||||
|
||||
public void PrepAddDisguise(Player caller, EntityType entityType)
|
||||
|
@ -1,6 +1,7 @@
|
||||
package mineplex.core.disguise.disguises;
|
||||
|
||||
import mineplex.core.common.*;
|
||||
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.craftbukkit.v1_7_R4.CraftWorld;
|
||||
import org.bukkit.craftbukkit.v1_7_R4.entity.CraftEntity;
|
||||
@ -9,6 +10,7 @@ import net.minecraft.server.v1_7_R4.DataWatcher;
|
||||
import net.minecraft.server.v1_7_R4.Entity;
|
||||
import net.minecraft.server.v1_7_R4.Packet;
|
||||
import net.minecraft.server.v1_7_R4.PacketPlayOutEntityMetadata;
|
||||
|
||||
import org.bukkit.entity.*;
|
||||
|
||||
public abstract class DisguiseBase
|
||||
@ -18,6 +20,8 @@ public abstract class DisguiseBase
|
||||
|
||||
private DisguiseBase _soundDisguise;
|
||||
|
||||
public boolean Global = true;
|
||||
|
||||
public DisguiseBase(org.bukkit.entity.Entity entity)
|
||||
{
|
||||
Entity = ((CraftEntity)entity).getHandle();
|
||||
|
@ -42,7 +42,7 @@ public class DisguiseBlock extends DisguiseBase
|
||||
packet.h = MathHelper.d(Entity.pitch * 256.0F / 360.0F);
|
||||
packet.i = MathHelper.d(Entity.yaw * 256.0F / 360.0F);
|
||||
packet.j = 70;
|
||||
packet.k = _blockId | _blockData << 16;
|
||||
packet.k = _blockId | _blockData << 12;
|
||||
|
||||
double d1 = Entity.motX;
|
||||
double d2 = Entity.motY;
|
||||
|
@ -1,12 +1,15 @@
|
||||
package mineplex.core.disguise.disguises;
|
||||
|
||||
import org.spigotmc.ProtocolData;
|
||||
|
||||
public abstract class DisguiseHuman extends DisguiseLiving
|
||||
{
|
||||
public DisguiseHuman(org.bukkit.entity.Entity entity)
|
||||
{
|
||||
super(entity);
|
||||
|
||||
DataWatcher.a(16, Byte.valueOf((byte)0));
|
||||
DataWatcher.a(10, new ProtocolData.HiddenByte( (byte) 0 ) ); // Spigot - protocol patch, handle new metadata value
|
||||
DataWatcher.a(16, new ProtocolData.DualByte( (byte) 0, (byte) 0 ) );
|
||||
DataWatcher.a(17, Float.valueOf(0.0F));
|
||||
DataWatcher.a(18, Integer.valueOf(0));
|
||||
}
|
||||
|
@ -1,5 +1,7 @@
|
||||
package mineplex.core.disguise.disguises;
|
||||
|
||||
import org.spigotmc.ProtocolData;
|
||||
|
||||
import net.minecraft.server.v1_7_R4.MathHelper;
|
||||
import net.minecraft.server.v1_7_R4.Packet;
|
||||
import net.minecraft.server.v1_7_R4.PacketPlayOutNamedEntitySpawn;
|
||||
|
@ -1,315 +0,0 @@
|
||||
package mineplex.core.fakeEntity;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
|
||||
import net.minecraft.server.v1_7_R4.BlockCloth;
|
||||
import net.minecraft.server.v1_7_R4.DataWatcher;
|
||||
import net.minecraft.server.v1_7_R4.Entity;
|
||||
import net.minecraft.server.v1_7_R4.EntityLiving;
|
||||
import net.minecraft.server.v1_7_R4.EntitySlime;
|
||||
import net.minecraft.server.v1_7_R4.EnumEntitySize;
|
||||
import net.minecraft.server.v1_7_R4.MathHelper;
|
||||
import net.minecraft.server.v1_7_R4.Packet;
|
||||
import net.minecraft.server.v1_7_R4.PacketPlayOutSpawnEntityLiving;
|
||||
import net.minecraft.server.v1_7_R4.PacketPlayOutEntityDestroy;
|
||||
import net.minecraft.server.v1_7_R4.PacketPlayOutAttachEntity;
|
||||
import net.minecraft.server.v1_7_R4.PacketPlayOutEntityMetadata;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.craftbukkit.v1_7_R4.CraftWorld;
|
||||
import org.bukkit.entity.EntityType;
|
||||
|
||||
public class FakeEntity
|
||||
{
|
||||
private static int _entityIdCounter = 50000;
|
||||
|
||||
private int _entityId;
|
||||
private Location _location;
|
||||
private EntityType _entityType;
|
||||
|
||||
private static Field _spawnDataWatcherField;
|
||||
private static Field _spawnListField;
|
||||
|
||||
public FakeEntity(EntityType entityType, Location location)
|
||||
{
|
||||
_entityId = _entityIdCounter++;
|
||||
_entityType = entityType;
|
||||
_location = location;
|
||||
|
||||
SetSpawnDataWatcherField();
|
||||
SetSpawnListField();
|
||||
}
|
||||
|
||||
public int GetEntityId()
|
||||
{
|
||||
return _entityId;
|
||||
}
|
||||
|
||||
public EntityType GetEntityType()
|
||||
{
|
||||
return _entityType;
|
||||
}
|
||||
|
||||
public void SetLocation(Location location)
|
||||
{
|
||||
_location = location;
|
||||
}
|
||||
|
||||
public Location GetLocation()
|
||||
{
|
||||
return _location;
|
||||
}
|
||||
|
||||
public Packet Spawn()
|
||||
{
|
||||
return Spawn(_entityId);
|
||||
}
|
||||
|
||||
public Packet Destroy()
|
||||
{
|
||||
return new PacketPlayOutEntityDestroy(new int[] { GetEntityId() });
|
||||
}
|
||||
|
||||
public Packet Spawn(int id)
|
||||
{
|
||||
PacketPlayOutSpawnEntityLiving packet = new PacketPlayOutSpawnEntityLiving();
|
||||
packet.a = id;
|
||||
packet.b = (byte) _entityType.getTypeId();
|
||||
packet.c = (int)EnumEntitySize.SIZE_2.a(_location.getX());
|
||||
packet.d = (int)MathHelper.floor(_location.getY() * 32.0D);
|
||||
packet.e = (int)EnumEntitySize.SIZE_2.a(_location.getZ());
|
||||
packet.i = (byte) ((int) (_location.getYaw() * 256.0F / 360.0F));
|
||||
packet.j = (byte) ((int) (_location.getPitch() * 256.0F / 360.0F));
|
||||
packet.k = (byte) ((int) (_location.getYaw() * 256.0F / 360.0F));
|
||||
|
||||
double var2 = 3.9D;
|
||||
double var4 = 0;
|
||||
double var6 = 0;
|
||||
double var8 = 0;
|
||||
|
||||
if (var4 < -var2)
|
||||
{
|
||||
var4 = -var2;
|
||||
}
|
||||
|
||||
if (var6 < -var2)
|
||||
{
|
||||
var6 = -var2;
|
||||
}
|
||||
|
||||
if (var8 < -var2)
|
||||
{
|
||||
var8 = -var2;
|
||||
}
|
||||
|
||||
if (var4 > var2)
|
||||
{
|
||||
var4 = var2;
|
||||
}
|
||||
|
||||
if (var6 > var2)
|
||||
{
|
||||
var6 = var2;
|
||||
}
|
||||
|
||||
if (var8 > var2)
|
||||
{
|
||||
var8 = var2;
|
||||
}
|
||||
|
||||
packet.f = (int)(var4 * 8000.0D);
|
||||
packet.g = (int)(var6 * 8000.0D);
|
||||
packet.h = (int)(var8 * 8000.0D);
|
||||
|
||||
DataWatcher dataWatcher = new DataWatcher(new EntitySlime(((CraftWorld)Bukkit.getWorlds().get(0)).getHandle()));
|
||||
|
||||
UpdateDataWatcher(dataWatcher);
|
||||
|
||||
try
|
||||
{
|
||||
_spawnDataWatcherField.set(packet, dataWatcher);
|
||||
}
|
||||
catch (IllegalArgumentException e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
catch (IllegalAccessException e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
_spawnListField.set(packet, dataWatcher.b());
|
||||
}
|
||||
catch (IllegalArgumentException e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
catch (IllegalAccessException e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
return packet;
|
||||
}
|
||||
|
||||
public Packet Hide()
|
||||
{
|
||||
return Hide(_entityId);
|
||||
}
|
||||
|
||||
public Packet Hide(int entityId)
|
||||
{
|
||||
DataWatcher dataWatcher = new DataWatcher(new EntitySlime(((CraftWorld)Bukkit.getWorlds().get(0)).getHandle()));
|
||||
|
||||
UpdateDataWatcher(dataWatcher);
|
||||
|
||||
dataWatcher.watch(0, Byte.valueOf((byte) 32));
|
||||
|
||||
return new PacketPlayOutEntityMetadata(entityId, dataWatcher, false);
|
||||
}
|
||||
|
||||
public Packet Show()
|
||||
{
|
||||
DataWatcher dataWatcher = new DataWatcher(new EntitySlime(((CraftWorld)Bukkit.getWorlds().get(0)).getHandle()));
|
||||
|
||||
UpdateDataWatcher(dataWatcher);
|
||||
|
||||
return new PacketPlayOutEntityMetadata(_entityId, dataWatcher, true);
|
||||
}
|
||||
|
||||
public Packet SetVehicle(int vehicleId)
|
||||
{
|
||||
PacketPlayOutAttachEntity vehiclePacket = new PacketPlayOutAttachEntity();
|
||||
vehiclePacket.a = 0;
|
||||
vehiclePacket.b = _entityId;
|
||||
vehiclePacket.c = vehicleId;
|
||||
|
||||
return vehiclePacket;
|
||||
}
|
||||
|
||||
public Packet SetPassenger(int passengerId)
|
||||
{
|
||||
return SetPassenger(passengerId, _entityId);
|
||||
}
|
||||
|
||||
public Packet SetPassenger(int passengerId, int entityId)
|
||||
{
|
||||
PacketPlayOutAttachEntity vehiclePacket = new PacketPlayOutAttachEntity();
|
||||
vehiclePacket.a = 0;
|
||||
vehiclePacket.b = passengerId;
|
||||
vehiclePacket.c = entityId;
|
||||
|
||||
return vehiclePacket;
|
||||
}
|
||||
|
||||
protected void UpdateDataWatcher(DataWatcher dataWatcher)
|
||||
{
|
||||
dataWatcher.a(0, Byte.valueOf((byte) 0));
|
||||
dataWatcher.a(1, Short.valueOf((short)300));
|
||||
dataWatcher.a(6, Float.valueOf(4.0F));
|
||||
dataWatcher.a(7, Integer.valueOf(0));
|
||||
dataWatcher.a(8, Byte.valueOf((byte)0));
|
||||
dataWatcher.a(9, Byte.valueOf((byte) 0));
|
||||
dataWatcher.a(10, " ");
|
||||
dataWatcher.a(11, Byte.valueOf((byte)0));
|
||||
|
||||
switch (_entityType)
|
||||
{
|
||||
case BAT:
|
||||
case BLAZE:
|
||||
case PIG:
|
||||
case SHEEP:
|
||||
case IRON_GOLEM:
|
||||
case GHAST:
|
||||
dataWatcher.a(16, new Byte((byte) 0));
|
||||
break;
|
||||
case CREEPER:
|
||||
dataWatcher.a(16, Byte.valueOf((byte) -1));
|
||||
dataWatcher.a(17, Byte.valueOf((byte) 0));
|
||||
break;
|
||||
case ENDERMAN:
|
||||
dataWatcher.a(16, new Byte((byte) 0));
|
||||
dataWatcher.a(17, new Byte((byte) 0));
|
||||
dataWatcher.a(18, new Byte((byte) 0));
|
||||
break;
|
||||
case PLAYER:
|
||||
dataWatcher.a(16, Byte.valueOf((byte) 0));
|
||||
dataWatcher.a(17, Byte.valueOf((byte) 0));
|
||||
break;
|
||||
case OCELOT:
|
||||
case SPIDER:
|
||||
dataWatcher.a(16, new Byte((byte) 0));
|
||||
break;
|
||||
case WOLF:
|
||||
dataWatcher.a(18, new Integer(20));
|
||||
dataWatcher.a(19, new Byte((byte) 0));
|
||||
dataWatcher.a(20, new Byte((byte) BlockCloth.b(1)));
|
||||
case SKELETON:
|
||||
dataWatcher.a(13, new Byte((byte) 0));
|
||||
break;
|
||||
case SLIME:
|
||||
dataWatcher.a(16, new Byte((byte) 1));
|
||||
break;
|
||||
case WITCH:
|
||||
dataWatcher.a(21, Byte.valueOf((byte) 0));
|
||||
break;
|
||||
case WITHER:
|
||||
dataWatcher.a(16, new Integer(100));
|
||||
dataWatcher.a(17, new Integer(0));
|
||||
dataWatcher.a(18, new Integer(0));
|
||||
dataWatcher.a(19, new Integer(0));
|
||||
dataWatcher.a(20, new Integer(0));
|
||||
break;
|
||||
case ZOMBIE:
|
||||
dataWatcher.a(13, Byte.valueOf((byte) 0));
|
||||
dataWatcher.a(14, Byte.valueOf((byte) 0));
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private void SetSpawnListField()
|
||||
{
|
||||
if (_spawnListField == null)
|
||||
{
|
||||
try
|
||||
{
|
||||
_spawnListField = PacketPlayOutSpawnEntityLiving.class.getDeclaredField("m");
|
||||
_spawnListField.setAccessible(true);
|
||||
}
|
||||
catch (NoSuchFieldException e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
catch (SecurityException e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void SetSpawnDataWatcherField()
|
||||
{
|
||||
if (_spawnDataWatcherField == null)
|
||||
{
|
||||
try
|
||||
{
|
||||
_spawnDataWatcherField = PacketPlayOutSpawnEntityLiving.class.getDeclaredField("l");
|
||||
_spawnDataWatcherField.setAccessible(true);
|
||||
}
|
||||
catch (NoSuchFieldException e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
catch (SecurityException e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,115 +0,0 @@
|
||||
package mineplex.core.fakeEntity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.server.v1_7_R4.Packet;
|
||||
|
||||
import org.bukkit.craftbukkit.v1_7_R4.entity.CraftPlayer;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
import mineplex.core.MiniPlugin;
|
||||
import mineplex.core.common.util.NautHashMap;
|
||||
import mineplex.core.packethandler.PacketHandler;
|
||||
|
||||
public class FakeEntityManager extends MiniPlugin
|
||||
{
|
||||
public static FakeEntityManager Instance;
|
||||
|
||||
private PacketHandler _packetHandler;
|
||||
|
||||
private NautHashMap<String, List<FakeEntity>> _playerFakeEntityMap;
|
||||
|
||||
public FakeEntityManager(JavaPlugin plugin)
|
||||
{
|
||||
super("Fake Entity Manager", plugin);
|
||||
|
||||
_playerFakeEntityMap = new NautHashMap<String, List<FakeEntity>>();
|
||||
}
|
||||
|
||||
public static void Initialize(JavaPlugin plugin)
|
||||
{
|
||||
Instance = new FakeEntityManager(plugin);
|
||||
}
|
||||
|
||||
public void AddFakeEntity(FakeEntity entity, String name)
|
||||
{
|
||||
if (!_playerFakeEntityMap.containsKey(name))
|
||||
{
|
||||
_playerFakeEntityMap.put(name, new ArrayList<FakeEntity>());
|
||||
}
|
||||
|
||||
_playerFakeEntityMap.get(name).add(entity);
|
||||
}
|
||||
|
||||
public void ClearFakes(String name)
|
||||
{
|
||||
_playerFakeEntityMap.remove(name);
|
||||
}
|
||||
|
||||
public void ClearFakeFor(FakeEntity entity, String name)
|
||||
{
|
||||
if (!_playerFakeEntityMap.containsKey(name))
|
||||
{
|
||||
_playerFakeEntityMap.put(name, new ArrayList<FakeEntity>());
|
||||
}
|
||||
|
||||
_playerFakeEntityMap.get(name).remove(entity);
|
||||
}
|
||||
|
||||
public List<FakeEntity> GetFakesFor(String name)
|
||||
{
|
||||
if (!_playerFakeEntityMap.containsKey(name))
|
||||
{
|
||||
_playerFakeEntityMap.put(name, new ArrayList<FakeEntity>());
|
||||
}
|
||||
|
||||
return _playerFakeEntityMap.get(name);
|
||||
}
|
||||
|
||||
public void SetPacketHandler(PacketHandler packetHandler)
|
||||
{
|
||||
_packetHandler = packetHandler;
|
||||
}
|
||||
|
||||
public void RemoveForward(Player viewer)
|
||||
{
|
||||
_packetHandler.RemoveForward(viewer);
|
||||
}
|
||||
|
||||
public void ForwardMovement(Player viewer, Player traveller, int entityId)
|
||||
{
|
||||
_packetHandler.ForwardMovement(viewer, traveller.getEntityId(), entityId);
|
||||
}
|
||||
|
||||
public void BlockMovement(Player otherPlayer, int entityId)
|
||||
{
|
||||
_packetHandler.BlockMovement(otherPlayer, entityId);
|
||||
}
|
||||
|
||||
public void FakePassenger(Player viewer, int entityId, Packet attachPacket)
|
||||
{
|
||||
_packetHandler.FakePassenger(viewer, entityId, attachPacket);
|
||||
}
|
||||
|
||||
public void RemoveFakePassenger(Player viewer, int entityId)
|
||||
{
|
||||
_packetHandler.RemoveFakePassenger(viewer, entityId);
|
||||
}
|
||||
|
||||
public void FakeVehicle(Player viewer, int entityId, Packet attachPacket)
|
||||
{
|
||||
_packetHandler.FakeVehicle(viewer, entityId, attachPacket);
|
||||
}
|
||||
|
||||
public void RemoveFakeVehicle(Player viewer, int entityId)
|
||||
{
|
||||
_packetHandler.RemoveFakeVehicle(viewer, entityId);
|
||||
}
|
||||
|
||||
public void SendPacketTo(Packet packet, Player player)
|
||||
{
|
||||
((CraftPlayer)player).getHandle().playerConnection.sendPacket(packet);
|
||||
}
|
||||
}
|
@ -1,79 +0,0 @@
|
||||
package mineplex.core.fakeEntity;
|
||||
|
||||
import net.minecraft.server.v1_7_R4.EnumEntitySize;
|
||||
import net.minecraft.server.v1_7_R4.MathHelper;
|
||||
import net.minecraft.server.v1_7_R4.Packet;
|
||||
import net.minecraft.server.v1_7_R4.PacketPlayOutSpawnEntity;
|
||||
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.entity.EntityType;
|
||||
|
||||
public class FakeFallingBlock extends FakeEntity
|
||||
{
|
||||
private int _materialId;
|
||||
private byte _data;
|
||||
|
||||
public FakeFallingBlock(int materialId, byte data, Location location)
|
||||
{
|
||||
super(EntityType.FALLING_BLOCK, location);
|
||||
|
||||
_materialId = materialId;
|
||||
_data = data;
|
||||
}
|
||||
|
||||
public Packet Spawn(int id)
|
||||
{
|
||||
PacketPlayOutSpawnEntity packet = new PacketPlayOutSpawnEntity();
|
||||
packet.a = id;
|
||||
packet.b = (int)EnumEntitySize.SIZE_2.a(GetLocation().getX());
|
||||
packet.c = (int)MathHelper.floor(GetLocation().getY() * 32.0D);
|
||||
packet.d = (int)EnumEntitySize.SIZE_2.a(GetLocation().getZ());
|
||||
|
||||
double var4 = 0;
|
||||
double var6 = .045;
|
||||
double var8 = 0;
|
||||
double var10 = 3.9D;
|
||||
|
||||
if (var4 < -var10)
|
||||
{
|
||||
var4 = -var10;
|
||||
}
|
||||
|
||||
if (var6 < -var10)
|
||||
{
|
||||
var6 = -var10;
|
||||
}
|
||||
|
||||
if (var8 < -var10)
|
||||
{
|
||||
var8 = -var10;
|
||||
}
|
||||
|
||||
if (var4 > var10)
|
||||
{
|
||||
var4 = var10;
|
||||
}
|
||||
|
||||
if (var6 > var10)
|
||||
{
|
||||
var6 = var10;
|
||||
}
|
||||
|
||||
if (var8 > var10)
|
||||
{
|
||||
var8 = var10;
|
||||
}
|
||||
|
||||
packet.e = (int)(var4 * 8000.0D);
|
||||
packet.f = (int)(var6 * 8000.0D);
|
||||
packet.g = (int)(var8 * 8000.0D);
|
||||
packet.h = 0;
|
||||
packet.i = 0;
|
||||
packet.j = 70;
|
||||
packet.k = _materialId | _data << 16;
|
||||
|
||||
System.out.println("Creating fake falling block with entityId " + GetEntityId());
|
||||
|
||||
return packet;
|
||||
}
|
||||
}
|
@ -1,85 +0,0 @@
|
||||
package mineplex.core.fakeEntity;
|
||||
|
||||
import net.minecraft.server.v1_7_R4.DataWatcher;
|
||||
import net.minecraft.server.v1_7_R4.ItemStack;
|
||||
import net.minecraft.server.v1_7_R4.MathHelper;
|
||||
import net.minecraft.server.v1_7_R4.Packet;
|
||||
import net.minecraft.server.v1_7_R4.PacketPlayOutSpawnEntity;
|
||||
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.craftbukkit.v1_7_R4.inventory.CraftItemStack;
|
||||
import org.bukkit.entity.EntityType;
|
||||
|
||||
public class FakeItemDrop extends FakeEntity
|
||||
{
|
||||
private ItemStack _itemStack;
|
||||
|
||||
public FakeItemDrop(org.bukkit.inventory.ItemStack itemStack, Location location)
|
||||
{
|
||||
super(EntityType.DROPPED_ITEM, location);
|
||||
|
||||
_itemStack = CraftItemStack.asNMSCopy(itemStack);
|
||||
}
|
||||
|
||||
public Packet Spawn()
|
||||
{
|
||||
PacketPlayOutSpawnEntity packet = new PacketPlayOutSpawnEntity();
|
||||
packet.a = GetEntityId();
|
||||
packet.b = MathHelper.floor(GetLocation().getX() * 32.0D);
|
||||
packet.c = MathHelper.floor(GetLocation().getY() * 32.0D);
|
||||
packet.d = MathHelper.floor(GetLocation().getZ() * 32.0D);
|
||||
packet.h = MathHelper.d(GetLocation().getYaw() * 256.0F / 360.0F);
|
||||
packet.i = MathHelper.d(GetLocation().getPitch() * 256.0F / 360.0F);
|
||||
packet.j = 2;
|
||||
packet.k = 1;
|
||||
|
||||
double d0 = 0;
|
||||
double d1 = 0;
|
||||
double d2 = 0;
|
||||
double d3 = 3.9D;
|
||||
|
||||
if (d0 < -d3) {
|
||||
d0 = -d3;
|
||||
}
|
||||
|
||||
if (d1 < -d3) {
|
||||
d1 = -d3;
|
||||
}
|
||||
|
||||
if (d2 < -d3) {
|
||||
d2 = -d3;
|
||||
}
|
||||
|
||||
if (d0 > d3) {
|
||||
d0 = d3;
|
||||
}
|
||||
|
||||
if (d1 > d3) {
|
||||
d1 = d3;
|
||||
}
|
||||
|
||||
if (d2 > d3) {
|
||||
d2 = d3;
|
||||
}
|
||||
|
||||
packet.e = (int) (d0 * 8000.0D);
|
||||
packet.f = (int) (d1 * 8000.0D);
|
||||
packet.g = (int) (d2 * 8000.0D);
|
||||
|
||||
return packet;
|
||||
}
|
||||
|
||||
protected void UpdateDataWatcher(DataWatcher dataWatcher)
|
||||
{
|
||||
dataWatcher.a(0, Byte.valueOf((byte) 0));
|
||||
dataWatcher.a(1, Short.valueOf((short)300));
|
||||
dataWatcher.a(8, Integer.valueOf(0));
|
||||
dataWatcher.a(9, Byte.valueOf((byte) 0));
|
||||
dataWatcher.a(10, new net.minecraft.server.v1_7_R4.ItemStack(_itemStack.getItem(), _itemStack.count));
|
||||
}
|
||||
|
||||
public void SetItemStack(org.bukkit.inventory.ItemStack itemStack)
|
||||
{
|
||||
_itemStack = CraftItemStack.asNMSCopy(itemStack);
|
||||
}
|
||||
}
|
@ -1,50 +0,0 @@
|
||||
package mineplex.core.fakeEntity;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import java.util.UUID;
|
||||
|
||||
import net.minecraft.server.v1_7_R4.DataWatcher;
|
||||
import net.minecraft.server.v1_7_R4.EntitySlime;
|
||||
import net.minecraft.server.v1_7_R4.MathHelper;
|
||||
import net.minecraft.server.v1_7_R4.Packet;
|
||||
import net.minecraft.server.v1_7_R4.PacketPlayOutNamedEntitySpawn;
|
||||
import net.minecraft.util.com.mojang.authlib.GameProfile;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.craftbukkit.v1_7_R4.CraftWorld;
|
||||
import org.bukkit.entity.EntityType;
|
||||
|
||||
public class FakePlayer extends FakeEntity
|
||||
{
|
||||
private String _name;
|
||||
|
||||
private static Field _spawnDataWatcherField;
|
||||
|
||||
public FakePlayer(String name, Location location)
|
||||
{
|
||||
super(EntityType.PLAYER, location);
|
||||
|
||||
_name = name;
|
||||
}
|
||||
|
||||
public Packet Spawn(int id)
|
||||
{
|
||||
PacketPlayOutNamedEntitySpawn packet = new PacketPlayOutNamedEntitySpawn();
|
||||
packet.a = id;
|
||||
packet.b = new GameProfile(UUID.randomUUID(), _name);
|
||||
packet.c = MathHelper.floor(GetLocation().getX() * 32.0D);
|
||||
packet.d = MathHelper.floor(GetLocation().getY() * 32.0D);
|
||||
packet.e = MathHelper.floor(GetLocation().getZ() * 32.0D);
|
||||
packet.f = (byte) ((int) (GetLocation().getYaw() * 256.0F / 360.0F));
|
||||
packet.g = (byte) ((int) (GetLocation().getPitch() * 256.0F / 360.0F));
|
||||
|
||||
DataWatcher dataWatcher = new DataWatcher(new EntitySlime(((CraftWorld)Bukkit.getWorlds().get(0)).getHandle()));
|
||||
|
||||
UpdateDataWatcher(dataWatcher);
|
||||
|
||||
packet.i = dataWatcher;
|
||||
|
||||
return packet;
|
||||
}
|
||||
}
|
@ -1,10 +0,0 @@
|
||||
package mineplex.core.fakeEntity;
|
||||
|
||||
public class LeashData
|
||||
{
|
||||
public int LeashedID;
|
||||
public int LeasherID;
|
||||
|
||||
public boolean LeashedOn;
|
||||
public boolean LeasherOn;
|
||||
}
|
@ -1,6 +1,5 @@
|
||||
package mineplex.core.friend;
|
||||
|
||||
import net.minecraft.server.v1_7_R4.Packet;
|
||||
import net.minecraft.server.v1_7_R4.PacketPlayOutPlayerInfo;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
@ -21,28 +20,24 @@ import mineplex.core.friend.command.DeleteFriend;
|
||||
import mineplex.core.friend.data.FriendData;
|
||||
import mineplex.core.friend.data.FriendRepository;
|
||||
import mineplex.core.friend.ui.FriendTabList;
|
||||
import mineplex.core.packethandler.IPacketRunnable;
|
||||
import mineplex.core.packethandler.PacketHandler;
|
||||
import mineplex.core.packethandler.PacketVerifier;
|
||||
import mineplex.core.packethandler.PlayerPacketEvent;
|
||||
import mineplex.core.timing.TimingManager;
|
||||
import mineplex.core.updater.UpdateType;
|
||||
import mineplex.core.updater.event.UpdateEvent;
|
||||
|
||||
public class FriendManager extends MiniClientPlugin<FriendData> implements IPacketRunnable
|
||||
public class FriendManager extends MiniClientPlugin<FriendData>
|
||||
{
|
||||
private FriendRepository _repository;
|
||||
|
||||
private NautHashMap<Player, FriendTabList> _playerTabMap;
|
||||
private boolean _sendingPackets = false;
|
||||
|
||||
public FriendManager(JavaPlugin plugin, PacketHandler packetHandler)
|
||||
public FriendManager(JavaPlugin plugin)
|
||||
{
|
||||
super("Friends", plugin);
|
||||
|
||||
_repository = new FriendRepository(plugin);
|
||||
_playerTabMap = new NautHashMap<Player, FriendTabList>();
|
||||
|
||||
packetHandler.AddPacketRunnable(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -139,15 +134,16 @@ public class FriendManager extends MiniClientPlugin<FriendData> implements IPack
|
||||
_playerTabMap.remove(event.getPlayer());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean run(Packet packet, Player owner, PacketVerifier packetList)
|
||||
@EventHandler
|
||||
public void handleFriendPackets(PlayerPacketEvent event)
|
||||
{
|
||||
if (packet instanceof PacketPlayOutPlayerInfo)
|
||||
{
|
||||
return _sendingPackets;
|
||||
}
|
||||
if (event.isCancelled())
|
||||
return;
|
||||
|
||||
return true;
|
||||
if (event.getPacket() instanceof PacketPlayOutPlayerInfo)
|
||||
{
|
||||
event.setCancelled(_sendingPackets);
|
||||
}
|
||||
}
|
||||
|
||||
public void addFriend(final Player caller, final String name)
|
||||
|
@ -0,0 +1,68 @@
|
||||
package mineplex.core.leaderboard;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
import mineplex.core.database.RepositoryBase;
|
||||
import mineplex.database.Tables;
|
||||
import org.jooq.DSLContext;
|
||||
import org.jooq.Query;
|
||||
import org.jooq.impl.DSL;
|
||||
|
||||
public class LeaderboardRepository extends RepositoryBase
|
||||
{
|
||||
public LeaderboardRepository(JavaPlugin plugin)
|
||||
{
|
||||
super(plugin, "jdbc:mysql://db.mineplex.com:3306/Account?autoReconnect=true&failOverReadOnly=false&maxReconnects=10", "root", "tAbechAk3wR7tuTh");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void initialize()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void update()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void saveStats(int tournamentId, int gameId, Map<UUID, Boolean> wins)
|
||||
{
|
||||
DSLContext context;
|
||||
|
||||
synchronized (this)
|
||||
{
|
||||
context = DSL.using(getConnection());
|
||||
}
|
||||
|
||||
List<Query> queryList = new ArrayList<>(wins.size());
|
||||
|
||||
for (Map.Entry<UUID, Boolean> entry : wins.entrySet())
|
||||
{
|
||||
int winIncrement = entry.getValue() ? 1 : 0;
|
||||
|
||||
Query query = context
|
||||
.insertInto(Tables.tournamentLeaderboard)
|
||||
.set(Tables.tournamentLeaderboard.tournamentId, tournamentId)
|
||||
.set(Tables.tournamentLeaderboard.gameId, gameId)
|
||||
.set(Tables.tournamentLeaderboard.accountId, DSL.select(Tables.accounts.id)
|
||||
.from(Tables.accounts)
|
||||
.where(Tables.accounts.uuid.eq(entry.getKey().toString())))
|
||||
.set(Tables.tournamentLeaderboard.wins, winIncrement)
|
||||
.set(Tables.tournamentLeaderboard.total, 1)
|
||||
.onDuplicateKeyUpdate()
|
||||
.set(Tables.tournamentLeaderboard.wins, Tables.tournamentLeaderboard.wins.plus(winIncrement))
|
||||
.set(Tables.tournamentLeaderboard.total, Tables.tournamentLeaderboard.total.plus(1));
|
||||
|
||||
queryList.add(query);
|
||||
}
|
||||
|
||||
context.batch(queryList).execute();
|
||||
}
|
||||
}
|
@ -1,10 +0,0 @@
|
||||
package mineplex.core.packethandler;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import net.minecraft.server.v1_7_R4.Packet;
|
||||
|
||||
public interface IPacketRunnable
|
||||
{
|
||||
boolean run(Packet packet, Player owner, PacketVerifier packetList);
|
||||
}
|
@ -1,215 +0,0 @@
|
||||
package mineplex.core.packethandler;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashSet;
|
||||
|
||||
import mineplex.core.MiniPlugin;
|
||||
import mineplex.core.common.util.NautHashMap;
|
||||
import net.minecraft.server.v1_7_R4.Packet;
|
||||
|
||||
import org.bukkit.craftbukkit.v1_7_R4.entity.CraftPlayer;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.EventPriority;
|
||||
import org.bukkit.event.player.PlayerJoinEvent;
|
||||
import org.bukkit.event.player.PlayerQuitEvent;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
public class PacketHandler extends MiniPlugin
|
||||
{
|
||||
private NautHashMap<String, NautHashMap<Integer, Integer>> _forwardMap;
|
||||
private NautHashMap<String, HashSet<Integer>> _blockMap;
|
||||
private NautHashMap<String, NautHashMap<Integer, Packet>> _fakeVehicleMap;
|
||||
private NautHashMap<String, NautHashMap<Integer, Packet>> _fakePassengerMap;
|
||||
private ArrayList<IPacketRunnable> _packetRunnables;
|
||||
|
||||
public PacketHandler(JavaPlugin plugin)
|
||||
{
|
||||
super("PacketHandler", plugin);
|
||||
|
||||
_forwardMap = new NautHashMap<String, NautHashMap<Integer, Integer>>();
|
||||
_blockMap = new NautHashMap<String, HashSet<Integer>>();
|
||||
_fakeVehicleMap = new NautHashMap<String, NautHashMap<Integer, Packet>>();
|
||||
_fakePassengerMap = new NautHashMap<String, NautHashMap<Integer, Packet>>();
|
||||
_packetRunnables = new ArrayList<IPacketRunnable>();
|
||||
}
|
||||
|
||||
public String GetDataType(int c)
|
||||
{
|
||||
switch (c)
|
||||
{
|
||||
case 0:
|
||||
return "Byte";
|
||||
case 1:
|
||||
return "Short";
|
||||
case 2:
|
||||
return "Integer";
|
||||
case 3:
|
||||
return "Float";
|
||||
case 4:
|
||||
return "String";
|
||||
case 5:
|
||||
return "ItemStack";
|
||||
case 6:
|
||||
return "ChunkCoordinates";
|
||||
}
|
||||
|
||||
return "Say what?";
|
||||
}
|
||||
|
||||
public void AddPacketRunnable(IPacketRunnable runnable)
|
||||
{
|
||||
_packetRunnables.add(runnable);
|
||||
}
|
||||
|
||||
public void RemovePacketRunnable(IPacketRunnable runnable)
|
||||
{
|
||||
_packetRunnables.remove(runnable);
|
||||
}
|
||||
|
||||
public Packet GetFakeAttached(Player owner, int a)
|
||||
{
|
||||
return _fakeVehicleMap.get(owner.getName()).get(a);
|
||||
}
|
||||
|
||||
public boolean IsFakeAttached(Player owner, int a)
|
||||
{
|
||||
return _fakeVehicleMap.containsKey(owner.getName()) && _fakeVehicleMap.get(owner.getName()).containsKey(a);
|
||||
}
|
||||
public Packet GetFakePassenger(Player owner, int a)
|
||||
{
|
||||
return _fakePassengerMap.get(owner.getName()).get(a);
|
||||
}
|
||||
|
||||
public boolean IsFakePassenger(Player owner, int a)
|
||||
{
|
||||
return _fakePassengerMap.containsKey(owner.getName()) && _fakePassengerMap.get(owner.getName()).containsKey(a);
|
||||
}
|
||||
|
||||
public boolean IsBlocked(Player owner, int a)
|
||||
{
|
||||
return _blockMap.containsKey(owner.getName()) && _blockMap.get(owner.getName()).contains(a);
|
||||
}
|
||||
|
||||
public int GetForwardId(Player owner, int a)
|
||||
{
|
||||
return _forwardMap.get(owner.getName()).get(a);
|
||||
}
|
||||
|
||||
public boolean IsForwarded(Player owner, int a)
|
||||
{
|
||||
return _forwardMap.get(owner.getName()).containsKey(a);
|
||||
}
|
||||
|
||||
public boolean IsForwarding(Player owner)
|
||||
{
|
||||
return _forwardMap.containsKey(owner.getName());
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.MONITOR)
|
||||
public void onPlayerJoin(PlayerJoinEvent event)
|
||||
{
|
||||
in(event.getPlayer());
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.MONITOR)
|
||||
public void onPlayerQuit(PlayerQuitEvent event)
|
||||
{
|
||||
out(event.getPlayer());
|
||||
}
|
||||
|
||||
public void in(Player player)
|
||||
{
|
||||
((CraftPlayer) player).getHandle().playerConnection.PacketVerifier.addPacketVerifier(new PacketVerifier(player, this));
|
||||
}
|
||||
|
||||
public void out(Player player)
|
||||
{
|
||||
((CraftPlayer) player).getHandle().playerConnection.PacketVerifier.clearVerifiers();
|
||||
}
|
||||
|
||||
public void shutdown()
|
||||
{
|
||||
for (final Player player : this._plugin.getServer().getOnlinePlayers())
|
||||
{
|
||||
if (player != null)
|
||||
{
|
||||
this.out(player);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void ForwardMovement(Player viewer, int travellerId, int entityId)
|
||||
{
|
||||
if (!_forwardMap.containsKey(viewer.getName()))
|
||||
{
|
||||
_forwardMap.put(viewer.getName(), new NautHashMap<Integer, Integer>());
|
||||
}
|
||||
|
||||
_forwardMap.get(viewer.getName()).put(travellerId, entityId);
|
||||
}
|
||||
|
||||
public void BlockMovement(Player otherPlayer, int entityId)
|
||||
{
|
||||
if (!_blockMap.containsKey(otherPlayer.getName()))
|
||||
{
|
||||
_blockMap.put(otherPlayer.getName(), new HashSet<Integer>());
|
||||
}
|
||||
|
||||
_blockMap.get(otherPlayer.getName()).add(entityId);
|
||||
}
|
||||
|
||||
public void FakeVehicle(Player viewer, int entityId, Packet packet)
|
||||
{
|
||||
if (!_fakeVehicleMap.containsKey(viewer.getName()))
|
||||
{
|
||||
_fakeVehicleMap.put(viewer.getName(), new NautHashMap<Integer, Packet>());
|
||||
}
|
||||
|
||||
_fakeVehicleMap.get(viewer.getName()).put(entityId, packet);
|
||||
}
|
||||
|
||||
public void RemoveFakeVehicle(Player viewer, int entityId)
|
||||
{
|
||||
if (_fakeVehicleMap.containsKey(viewer.getName()))
|
||||
{
|
||||
_fakeVehicleMap.get(viewer.getName()).remove(entityId);
|
||||
}
|
||||
}
|
||||
|
||||
public void FakePassenger(Player viewer, int entityId, Packet packet)
|
||||
{
|
||||
if (!_fakePassengerMap.containsKey(viewer.getName()))
|
||||
{
|
||||
_fakePassengerMap.put(viewer.getName(), new NautHashMap<Integer, Packet>());
|
||||
}
|
||||
|
||||
_fakePassengerMap.get(viewer.getName()).put(entityId, packet);
|
||||
}
|
||||
|
||||
public void RemoveFakePassenger(Player viewer, int entityId)
|
||||
{
|
||||
if (_fakePassengerMap.containsKey(viewer.getName()))
|
||||
{
|
||||
_fakePassengerMap.get(viewer.getName()).remove(entityId);
|
||||
}
|
||||
}
|
||||
|
||||
public void RemoveForward(Player viewer)
|
||||
{
|
||||
_forwardMap.remove(viewer.getName());
|
||||
}
|
||||
|
||||
public boolean FireRunnables(Packet o, Player owner, PacketVerifier packetList)
|
||||
{
|
||||
boolean addOriginal = true;
|
||||
|
||||
for (IPacketRunnable packetRunnable : _packetRunnables)
|
||||
{
|
||||
if (!packetRunnable.run(o, owner, packetList))
|
||||
addOriginal = false;
|
||||
}
|
||||
|
||||
return addOriginal;
|
||||
}
|
||||
}
|
@ -2,33 +2,62 @@ package mineplex.core.packethandler;
|
||||
|
||||
import net.minecraft.server.v1_7_R4.IPacketVerifier;
|
||||
import net.minecraft.server.v1_7_R4.Packet;
|
||||
import net.minecraft.server.v1_7_R4.PacketPlayOutAnimation;
|
||||
import net.minecraft.server.v1_7_R4.PacketPlayOutAttachEntity;
|
||||
import net.minecraft.server.v1_7_R4.PacketPlayOutEntityDestroy;
|
||||
import net.minecraft.server.v1_7_R4.PacketPlayOutEntityEquipment;
|
||||
import net.minecraft.server.v1_7_R4.PacketPlayOutEntityMetadata;
|
||||
import net.minecraft.server.v1_7_R4.PacketPlayOutEntityVelocity;
|
||||
import net.minecraft.server.v1_7_R4.PacketPlayOutNamedEntitySpawn;
|
||||
import net.minecraft.server.v1_7_R4.PacketPlayOutPlayerInfo;
|
||||
import net.minecraft.server.v1_7_R4.PacketPlayOutRelEntityMove;
|
||||
import net.minecraft.server.v1_7_R4.PacketPlayOutRelEntityMoveLook;
|
||||
import net.minecraft.server.v1_7_R4.PacketPlayOutEntityTeleport;
|
||||
import net.minecraft.server.v1_7_R4.PacketPlayOutSpawnEntity;
|
||||
import net.minecraft.server.v1_7_R4.PacketPlayOutSpawnEntityLiving;
|
||||
import net.minecraft.server.v1_7_R4.PacketPlayOutUpdateAttributes;
|
||||
import net.minecraft.util.io.netty.util.concurrent.GenericFutureListener;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.craftbukkit.v1_7_R4.entity.CraftPlayer;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class PacketVerifier implements IPacketVerifier
|
||||
{
|
||||
private Player _owner;
|
||||
private PacketHandler _handler;
|
||||
|
||||
public PacketVerifier(Player owner, PacketHandler handler)
|
||||
public PacketVerifier(Player owner)
|
||||
{
|
||||
_owner = owner;
|
||||
_handler = handler;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean verify(Packet o)
|
||||
{
|
||||
return _handler.FireRunnables(o, _owner, this);
|
||||
if (o instanceof PacketPlayOutNamedEntitySpawn
|
||||
|| o instanceof PacketPlayOutSpawnEntity
|
||||
|| o instanceof PacketPlayOutSpawnEntityLiving
|
||||
|| o instanceof PacketPlayOutUpdateAttributes
|
||||
|| o instanceof PacketPlayOutAnimation
|
||||
|| o instanceof PacketPlayOutEntityMetadata
|
||||
|| o instanceof PacketPlayOutEntityEquipment
|
||||
|| o instanceof PacketPlayOutEntityVelocity
|
||||
|| o instanceof PacketPlayOutRelEntityMove
|
||||
|| o instanceof PacketPlayOutRelEntityMoveLook
|
||||
|| o instanceof PacketPlayOutPlayerInfo
|
||||
|| o instanceof PacketPlayOutEntityDestroy
|
||||
|| o instanceof PacketPlayOutAttachEntity)
|
||||
{
|
||||
PlayerPacketEvent event = new PlayerPacketEvent(_owner, o, this);
|
||||
|
||||
Bukkit.getServer().getPluginManager().callEvent(event);
|
||||
|
||||
return !event.isCancelled();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public void forceProcess(Packet packet)
|
||||
public void bypassProcess(Packet packet)
|
||||
{
|
||||
((CraftPlayer)_owner).getHandle().playerConnection.networkManager.handle(packet, new GenericFutureListener[0]);
|
||||
}
|
||||
@ -37,4 +66,9 @@ public class PacketVerifier implements IPacketVerifier
|
||||
{
|
||||
_owner = null;
|
||||
}
|
||||
|
||||
public void process(Packet packet)
|
||||
{
|
||||
((CraftPlayer)_owner).getHandle().playerConnection.sendPacket(packet);
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,60 @@
|
||||
package mineplex.core.packethandler;
|
||||
|
||||
import net.minecraft.server.v1_7_R4.Packet;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.Event;
|
||||
import org.bukkit.event.HandlerList;
|
||||
|
||||
public class PlayerPacketEvent extends Event
|
||||
{
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
|
||||
private Player _player;
|
||||
private Packet _packet;
|
||||
private PacketVerifier _verifier;
|
||||
|
||||
private boolean _cancelled = false;
|
||||
|
||||
public PlayerPacketEvent(Player player, Packet packet, PacketVerifier verifier)
|
||||
{
|
||||
_player = player;
|
||||
_packet = packet;
|
||||
_verifier = verifier;
|
||||
}
|
||||
|
||||
public HandlerList getHandlers()
|
||||
{
|
||||
return handlers;
|
||||
}
|
||||
|
||||
public static HandlerList getHandlerList()
|
||||
{
|
||||
return handlers;
|
||||
}
|
||||
|
||||
public Packet getPacket()
|
||||
{
|
||||
return _packet;
|
||||
}
|
||||
|
||||
public Player getPlayer()
|
||||
{
|
||||
return _player;
|
||||
}
|
||||
|
||||
public PacketVerifier getVerifier()
|
||||
{
|
||||
return _verifier;
|
||||
}
|
||||
|
||||
public void setCancelled(boolean cancel)
|
||||
{
|
||||
_cancelled = cancel;
|
||||
}
|
||||
|
||||
public boolean isCancelled()
|
||||
{
|
||||
return _cancelled;
|
||||
}
|
||||
}
|
@ -1,27 +0,0 @@
|
||||
package mineplex.core.sound;
|
||||
|
||||
import net.minecraft.server.v1_7_R4.Packet;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
import mineplex.core.MiniPlugin;
|
||||
import mineplex.core.packethandler.IPacketRunnable;
|
||||
import mineplex.core.packethandler.PacketHandler;
|
||||
import mineplex.core.packethandler.PacketVerifier;
|
||||
|
||||
public class SoundManager extends MiniPlugin implements IPacketRunnable
|
||||
{
|
||||
public SoundManager(JavaPlugin plugin, PacketHandler packetHandler)
|
||||
{
|
||||
super("Sound Manager", plugin);
|
||||
|
||||
packetHandler.AddPacketRunnable(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean run(Packet packet, Player owner, PacketVerifier packetList)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
14
Plugins/Mineplex.Database/Mineplex.Database.iml
Normal file
14
Plugins/Mineplex.Database/Mineplex.Database.iml
Normal file
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" name="jooq-codegen" level="project" />
|
||||
<orderEntry type="library" scope="RUNTIME" name="mysql-connector" level="project" />
|
||||
</component>
|
||||
</module>
|
||||
|
47
Plugins/Mineplex.Database/src/jOOQConfig.xml
Normal file
47
Plugins/Mineplex.Database/src/jOOQConfig.xml
Normal file
@ -0,0 +1,47 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<configuration xmlns="http://www.jooq.org/xsd/jooq-codegen-3.0.0.xsd">
|
||||
<!-- Configure the database connection here -->
|
||||
<jdbc>
|
||||
<driver>com.mysql.jdbc.Driver</driver>
|
||||
<url>jdbc:mysql://db.mineplex.com:3306</url>
|
||||
<user>root</user>
|
||||
<password>tAbechAk3wR7tuTh</password>
|
||||
</jdbc>
|
||||
|
||||
<generator>
|
||||
<!-- The default code generator. You can override this one, to generate
|
||||
your own code style Defaults to org.jooq.util.DefaultGenerator -->
|
||||
<name>org.jooq.util.DefaultGenerator</name>
|
||||
|
||||
<strategy>
|
||||
<name>mineplex.jooq.AsInDatabaseStrategy</name>
|
||||
</strategy>
|
||||
|
||||
<database>
|
||||
<!-- The database type. The format here is: org.util.[database].[database]Database -->
|
||||
<name>org.jooq.util.mysql.MySQLDatabase</name>
|
||||
|
||||
<!-- The database schema (or in the absence of schema support, in your
|
||||
RDBMS this can be the owner, user, database name) to be generated -->
|
||||
<inputSchema>Account</inputSchema>
|
||||
|
||||
<!-- All elements that are generated from your schema (A Java regular
|
||||
expression. Use the pipe to separate several expressions) Watch out for case-sensitivity.
|
||||
Depending on your database, this might be important! -->
|
||||
<includes>.*</includes>
|
||||
|
||||
<!-- All elements that are excluded from your schema (A Java regular expression.
|
||||
Use the pipe to separate several expressions). Excludes match before includes -->
|
||||
<excludes></excludes>
|
||||
</database>
|
||||
|
||||
<target>
|
||||
<!-- The destination package of your generated classes (within the destination
|
||||
directory) -->
|
||||
<packageName>mineplex.database</packageName>
|
||||
|
||||
<!-- The destination directory of your generated classes -->
|
||||
<directory>./src</directory>
|
||||
</target>
|
||||
</generator>
|
||||
</configuration>
|
50
Plugins/Mineplex.Database/src/mineplex/database/Account.java
Normal file
50
Plugins/Mineplex.Database/src/mineplex/database/Account.java
Normal file
@ -0,0 +1,50 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class Account extends org.jooq.impl.SchemaImpl implements java.io.Serializable, java.lang.Cloneable {
|
||||
|
||||
private static final long serialVersionUID = -1898637057;
|
||||
|
||||
/**
|
||||
* The singleton instance of <code>Account</code>
|
||||
*/
|
||||
public static final Account Account = new Account();
|
||||
|
||||
/**
|
||||
* No further instances allowed
|
||||
*/
|
||||
private Account() {
|
||||
super("Account");
|
||||
}
|
||||
|
||||
@Override
|
||||
public final java.util.List<org.jooq.Table<?>> getTables() {
|
||||
java.util.List result = new java.util.ArrayList();
|
||||
result.addAll(getTables0());
|
||||
return result;
|
||||
}
|
||||
|
||||
private final java.util.List<org.jooq.Table<?>> getTables0() {
|
||||
return java.util.Arrays.<org.jooq.Table<?>>asList(
|
||||
mineplex.database.tables.AccountFriend.accountFriend,
|
||||
mineplex.database.tables.AccountInventory.accountInventory,
|
||||
mineplex.database.tables.AccountPolls.accountPolls,
|
||||
mineplex.database.tables.AccountPreferences.accountPreferences,
|
||||
mineplex.database.tables.Accounts.accounts,
|
||||
mineplex.database.tables.AccountStats.accountStats,
|
||||
mineplex.database.tables.ItemCategories.itemCategories,
|
||||
mineplex.database.tables.Items.items,
|
||||
mineplex.database.tables.PlayerMap.playerMap,
|
||||
mineplex.database.tables.Polls.polls,
|
||||
mineplex.database.tables.Stats.stats,
|
||||
mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard);
|
||||
}
|
||||
}
|
128
Plugins/Mineplex.Database/src/mineplex/database/Keys.java
Normal file
128
Plugins/Mineplex.Database/src/mineplex/database/Keys.java
Normal file
@ -0,0 +1,128 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*
|
||||
* A class modelling foreign key relationships between tables of the <code>Account</code>
|
||||
* schema
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class Keys {
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// IDENTITY definitions
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.AccountFriend, java.lang.Integer> IDENTITY_accountFriend = Identities0.IDENTITY_accountFriend;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.AccountInventory, java.lang.Integer> IDENTITY_accountInventory = Identities0.IDENTITY_accountInventory;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.AccountPolls, java.lang.Integer> IDENTITY_accountPolls = Identities0.IDENTITY_accountPolls;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.AccountPreferences, java.lang.Integer> IDENTITY_accountPreferences = Identities0.IDENTITY_accountPreferences;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.Accounts, java.lang.Integer> IDENTITY_accounts = Identities0.IDENTITY_accounts;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.AccountStats, java.lang.Integer> IDENTITY_accountStats = Identities0.IDENTITY_accountStats;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.ItemCategories, java.lang.Integer> IDENTITY_itemCategories = Identities0.IDENTITY_itemCategories;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.Items, java.lang.Integer> IDENTITY_items = Identities0.IDENTITY_items;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.PlayerMap, java.lang.Integer> IDENTITY_playerMap = Identities0.IDENTITY_playerMap;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.Polls, java.lang.Integer> IDENTITY_polls = Identities0.IDENTITY_polls;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.Stats, java.lang.Integer> IDENTITY_stats = Identities0.IDENTITY_stats;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.TournamentLeaderboard, java.lang.Integer> IDENTITY_tournamentLeaderboard = Identities0.IDENTITY_tournamentLeaderboard;
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// UNIQUE and PRIMARY KEY definitions
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountFriend> KEY_accountFriend_PRIMARY = UniqueKeys0.KEY_accountFriend_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountInventory> KEY_accountInventory_PRIMARY = UniqueKeys0.KEY_accountInventory_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountInventory> KEY_accountInventory_accountItemIndex = UniqueKeys0.KEY_accountInventory_accountItemIndex;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountPolls> KEY_accountPolls_PRIMARY = UniqueKeys0.KEY_accountPolls_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountPolls> KEY_accountPolls_accountPollIndex = UniqueKeys0.KEY_accountPolls_accountPollIndex;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountPreferences> KEY_accountPreferences_PRIMARY = UniqueKeys0.KEY_accountPreferences_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountPreferences> KEY_accountPreferences_uuid_index = UniqueKeys0.KEY_accountPreferences_uuid_index;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.Accounts> KEY_accounts_PRIMARY = UniqueKeys0.KEY_accounts_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.Accounts> KEY_accounts_uuidIndex = UniqueKeys0.KEY_accounts_uuidIndex;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountStats> KEY_accountStats_PRIMARY = UniqueKeys0.KEY_accountStats_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountStats> KEY_accountStats_accountStatIndex = UniqueKeys0.KEY_accountStats_accountStatIndex;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ItemCategories> KEY_itemCategories_PRIMARY = UniqueKeys0.KEY_itemCategories_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ItemCategories> KEY_itemCategories_nameIndex = UniqueKeys0.KEY_itemCategories_nameIndex;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.Items> KEY_items_PRIMARY = UniqueKeys0.KEY_items_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.Items> KEY_items_uniqueNameCategoryIndex = UniqueKeys0.KEY_items_uniqueNameCategoryIndex;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.PlayerMap> KEY_playerMap_PRIMARY = UniqueKeys0.KEY_playerMap_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.PlayerMap> KEY_playerMap_playerIndex = UniqueKeys0.KEY_playerMap_playerIndex;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.Polls> KEY_polls_PRIMARY = UniqueKeys0.KEY_polls_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.Stats> KEY_stats_PRIMARY = UniqueKeys0.KEY_stats_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.Stats> KEY_stats_nameIndex = UniqueKeys0.KEY_stats_nameIndex;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.TournamentLeaderboard> KEY_tournamentLeaderboard_PRIMARY = UniqueKeys0.KEY_tournamentLeaderboard_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.TournamentLeaderboard> KEY_tournamentLeaderboard_leaderboard_account_game_UNIQUE = UniqueKeys0.KEY_tournamentLeaderboard_leaderboard_account_game_UNIQUE;
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// FOREIGN KEY definitions
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountInventory, mineplex.database.tables.records.Accounts> accountInventory_ibfk_1 = ForeignKeys0.accountInventory_ibfk_1;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountInventory, mineplex.database.tables.records.Items> accountInventory_ibfk_2 = ForeignKeys0.accountInventory_ibfk_2;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountPolls, mineplex.database.tables.records.Accounts> accountPolls_ibfk_1 = ForeignKeys0.accountPolls_ibfk_1;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountPolls, mineplex.database.tables.records.Polls> accountPolls_ibfk_2 = ForeignKeys0.accountPolls_ibfk_2;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountStats, mineplex.database.tables.records.Accounts> accountStats_ibfk_1 = ForeignKeys0.accountStats_ibfk_1;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountStats, mineplex.database.tables.records.Stats> accountStats_ibfk_2 = ForeignKeys0.accountStats_ibfk_2;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.Items, mineplex.database.tables.records.ItemCategories> items_ibfk_1 = ForeignKeys0.items_ibfk_1;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.TournamentLeaderboard, mineplex.database.tables.records.Accounts> FK_tournamentLeaderboard_accounts = ForeignKeys0.FK_tournamentLeaderboard_accounts;
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// [#1459] distribute members to avoid static initialisers > 64kb
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
private static class Identities0 extends org.jooq.impl.AbstractKeys {
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.AccountFriend, java.lang.Integer> IDENTITY_accountFriend = createIdentity(mineplex.database.tables.AccountFriend.accountFriend, mineplex.database.tables.AccountFriend.accountFriend.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.AccountInventory, java.lang.Integer> IDENTITY_accountInventory = createIdentity(mineplex.database.tables.AccountInventory.accountInventory, mineplex.database.tables.AccountInventory.accountInventory.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.AccountPolls, java.lang.Integer> IDENTITY_accountPolls = createIdentity(mineplex.database.tables.AccountPolls.accountPolls, mineplex.database.tables.AccountPolls.accountPolls.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.AccountPreferences, java.lang.Integer> IDENTITY_accountPreferences = createIdentity(mineplex.database.tables.AccountPreferences.accountPreferences, mineplex.database.tables.AccountPreferences.accountPreferences.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.Accounts, java.lang.Integer> IDENTITY_accounts = createIdentity(mineplex.database.tables.Accounts.accounts, mineplex.database.tables.Accounts.accounts.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.AccountStats, java.lang.Integer> IDENTITY_accountStats = createIdentity(mineplex.database.tables.AccountStats.accountStats, mineplex.database.tables.AccountStats.accountStats.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.ItemCategories, java.lang.Integer> IDENTITY_itemCategories = createIdentity(mineplex.database.tables.ItemCategories.itemCategories, mineplex.database.tables.ItemCategories.itemCategories.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.Items, java.lang.Integer> IDENTITY_items = createIdentity(mineplex.database.tables.Items.items, mineplex.database.tables.Items.items.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.PlayerMap, java.lang.Integer> IDENTITY_playerMap = createIdentity(mineplex.database.tables.PlayerMap.playerMap, mineplex.database.tables.PlayerMap.playerMap.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.Polls, java.lang.Integer> IDENTITY_polls = createIdentity(mineplex.database.tables.Polls.polls, mineplex.database.tables.Polls.polls.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.Stats, java.lang.Integer> IDENTITY_stats = createIdentity(mineplex.database.tables.Stats.stats, mineplex.database.tables.Stats.stats.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.TournamentLeaderboard, java.lang.Integer> IDENTITY_tournamentLeaderboard = createIdentity(mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard, mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard.id);
|
||||
}
|
||||
|
||||
private static class UniqueKeys0 extends org.jooq.impl.AbstractKeys {
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountFriend> KEY_accountFriend_PRIMARY = createUniqueKey(mineplex.database.tables.AccountFriend.accountFriend, mineplex.database.tables.AccountFriend.accountFriend.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountInventory> KEY_accountInventory_PRIMARY = createUniqueKey(mineplex.database.tables.AccountInventory.accountInventory, mineplex.database.tables.AccountInventory.accountInventory.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountInventory> KEY_accountInventory_accountItemIndex = createUniqueKey(mineplex.database.tables.AccountInventory.accountInventory, mineplex.database.tables.AccountInventory.accountInventory.accountId, mineplex.database.tables.AccountInventory.accountInventory.itemId);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountPolls> KEY_accountPolls_PRIMARY = createUniqueKey(mineplex.database.tables.AccountPolls.accountPolls, mineplex.database.tables.AccountPolls.accountPolls.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountPolls> KEY_accountPolls_accountPollIndex = createUniqueKey(mineplex.database.tables.AccountPolls.accountPolls, mineplex.database.tables.AccountPolls.accountPolls.accountId, mineplex.database.tables.AccountPolls.accountPolls.pollId);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountPreferences> KEY_accountPreferences_PRIMARY = createUniqueKey(mineplex.database.tables.AccountPreferences.accountPreferences, mineplex.database.tables.AccountPreferences.accountPreferences.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountPreferences> KEY_accountPreferences_uuid_index = createUniqueKey(mineplex.database.tables.AccountPreferences.accountPreferences, mineplex.database.tables.AccountPreferences.accountPreferences.uuid);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.Accounts> KEY_accounts_PRIMARY = createUniqueKey(mineplex.database.tables.Accounts.accounts, mineplex.database.tables.Accounts.accounts.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.Accounts> KEY_accounts_uuidIndex = createUniqueKey(mineplex.database.tables.Accounts.accounts, mineplex.database.tables.Accounts.accounts.uuid);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountStats> KEY_accountStats_PRIMARY = createUniqueKey(mineplex.database.tables.AccountStats.accountStats, mineplex.database.tables.AccountStats.accountStats.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountStats> KEY_accountStats_accountStatIndex = createUniqueKey(mineplex.database.tables.AccountStats.accountStats, mineplex.database.tables.AccountStats.accountStats.accountId, mineplex.database.tables.AccountStats.accountStats.statId);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ItemCategories> KEY_itemCategories_PRIMARY = createUniqueKey(mineplex.database.tables.ItemCategories.itemCategories, mineplex.database.tables.ItemCategories.itemCategories.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ItemCategories> KEY_itemCategories_nameIndex = createUniqueKey(mineplex.database.tables.ItemCategories.itemCategories, mineplex.database.tables.ItemCategories.itemCategories.name);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.Items> KEY_items_PRIMARY = createUniqueKey(mineplex.database.tables.Items.items, mineplex.database.tables.Items.items.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.Items> KEY_items_uniqueNameCategoryIndex = createUniqueKey(mineplex.database.tables.Items.items, mineplex.database.tables.Items.items.name, mineplex.database.tables.Items.items.categoryId);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.PlayerMap> KEY_playerMap_PRIMARY = createUniqueKey(mineplex.database.tables.PlayerMap.playerMap, mineplex.database.tables.PlayerMap.playerMap.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.PlayerMap> KEY_playerMap_playerIndex = createUniqueKey(mineplex.database.tables.PlayerMap.playerMap, mineplex.database.tables.PlayerMap.playerMap.playerName);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.Polls> KEY_polls_PRIMARY = createUniqueKey(mineplex.database.tables.Polls.polls, mineplex.database.tables.Polls.polls.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.Stats> KEY_stats_PRIMARY = createUniqueKey(mineplex.database.tables.Stats.stats, mineplex.database.tables.Stats.stats.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.Stats> KEY_stats_nameIndex = createUniqueKey(mineplex.database.tables.Stats.stats, mineplex.database.tables.Stats.stats.name);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.TournamentLeaderboard> KEY_tournamentLeaderboard_PRIMARY = createUniqueKey(mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard, mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.TournamentLeaderboard> KEY_tournamentLeaderboard_leaderboard_account_game_UNIQUE = createUniqueKey(mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard, mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard.gameId, mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard.accountId, mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard.tournamentId);
|
||||
}
|
||||
|
||||
private static class ForeignKeys0 extends org.jooq.impl.AbstractKeys {
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountInventory, mineplex.database.tables.records.Accounts> accountInventory_ibfk_1 = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.AccountInventory.accountInventory, mineplex.database.tables.AccountInventory.accountInventory.accountId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountInventory, mineplex.database.tables.records.Items> accountInventory_ibfk_2 = createForeignKey(mineplex.database.Keys.KEY_items_PRIMARY, mineplex.database.tables.AccountInventory.accountInventory, mineplex.database.tables.AccountInventory.accountInventory.itemId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountPolls, mineplex.database.tables.records.Accounts> accountPolls_ibfk_1 = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.AccountPolls.accountPolls, mineplex.database.tables.AccountPolls.accountPolls.accountId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountPolls, mineplex.database.tables.records.Polls> accountPolls_ibfk_2 = createForeignKey(mineplex.database.Keys.KEY_polls_PRIMARY, mineplex.database.tables.AccountPolls.accountPolls, mineplex.database.tables.AccountPolls.accountPolls.pollId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountStats, mineplex.database.tables.records.Accounts> accountStats_ibfk_1 = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.AccountStats.accountStats, mineplex.database.tables.AccountStats.accountStats.accountId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountStats, mineplex.database.tables.records.Stats> accountStats_ibfk_2 = createForeignKey(mineplex.database.Keys.KEY_stats_PRIMARY, mineplex.database.tables.AccountStats.accountStats, mineplex.database.tables.AccountStats.accountStats.statId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.Items, mineplex.database.tables.records.ItemCategories> items_ibfk_1 = createForeignKey(mineplex.database.Keys.KEY_itemCategories_PRIMARY, mineplex.database.tables.Items.items, mineplex.database.tables.Items.items.categoryId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.TournamentLeaderboard, mineplex.database.tables.records.Accounts> FK_tournamentLeaderboard_accounts = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard, mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard.accountId);
|
||||
}
|
||||
}
|
75
Plugins/Mineplex.Database/src/mineplex/database/Tables.java
Normal file
75
Plugins/Mineplex.Database/src/mineplex/database/Tables.java
Normal file
@ -0,0 +1,75 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*
|
||||
* Convenience access to all tables in Account
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class Tables {
|
||||
|
||||
/**
|
||||
* The table Account.accountFriend
|
||||
*/
|
||||
public static final mineplex.database.tables.AccountFriend accountFriend = mineplex.database.tables.AccountFriend.accountFriend;
|
||||
|
||||
/**
|
||||
* The table Account.accountInventory
|
||||
*/
|
||||
public static final mineplex.database.tables.AccountInventory accountInventory = mineplex.database.tables.AccountInventory.accountInventory;
|
||||
|
||||
/**
|
||||
* The table Account.accountPolls
|
||||
*/
|
||||
public static final mineplex.database.tables.AccountPolls accountPolls = mineplex.database.tables.AccountPolls.accountPolls;
|
||||
|
||||
/**
|
||||
* The table Account.accountPreferences
|
||||
*/
|
||||
public static final mineplex.database.tables.AccountPreferences accountPreferences = mineplex.database.tables.AccountPreferences.accountPreferences;
|
||||
|
||||
/**
|
||||
* The table Account.accounts
|
||||
*/
|
||||
public static final mineplex.database.tables.Accounts accounts = mineplex.database.tables.Accounts.accounts;
|
||||
|
||||
/**
|
||||
* The table Account.accountStats
|
||||
*/
|
||||
public static final mineplex.database.tables.AccountStats accountStats = mineplex.database.tables.AccountStats.accountStats;
|
||||
|
||||
/**
|
||||
* The table Account.itemCategories
|
||||
*/
|
||||
public static final mineplex.database.tables.ItemCategories itemCategories = mineplex.database.tables.ItemCategories.itemCategories;
|
||||
|
||||
/**
|
||||
* The table Account.items
|
||||
*/
|
||||
public static final mineplex.database.tables.Items items = mineplex.database.tables.Items.items;
|
||||
|
||||
/**
|
||||
* The table Account.playerMap
|
||||
*/
|
||||
public static final mineplex.database.tables.PlayerMap playerMap = mineplex.database.tables.PlayerMap.playerMap;
|
||||
|
||||
/**
|
||||
* The table Account.polls
|
||||
*/
|
||||
public static final mineplex.database.tables.Polls polls = mineplex.database.tables.Polls.polls;
|
||||
|
||||
/**
|
||||
* The table Account.stats
|
||||
*/
|
||||
public static final mineplex.database.tables.Stats stats = mineplex.database.tables.Stats.stats;
|
||||
|
||||
/**
|
||||
* The table Account.tournamentLeaderboard
|
||||
*/
|
||||
public static final mineplex.database.tables.TournamentLeaderboard tournamentLeaderboard = mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard;
|
||||
}
|
@ -0,0 +1,109 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class AccountFriend extends org.jooq.impl.TableImpl<mineplex.database.tables.records.AccountFriend> implements java.io.Serializable, java.lang.Cloneable {
|
||||
|
||||
private static final long serialVersionUID = 288902842;
|
||||
|
||||
/**
|
||||
* The singleton instance of <code>Account.accountFriend</code>
|
||||
*/
|
||||
public static final mineplex.database.tables.AccountFriend accountFriend = new mineplex.database.tables.AccountFriend();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<mineplex.database.tables.records.AccountFriend> getRecordType() {
|
||||
return mineplex.database.tables.records.AccountFriend.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountFriend.id</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountFriend, java.lang.Integer> id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountFriend.uuidSource</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountFriend, java.lang.String> uuidSource = createField("uuidSource", org.jooq.impl.SQLDataType.VARCHAR.length(100), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountFriend.uuidTarget</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountFriend, java.lang.String> uuidTarget = createField("uuidTarget", org.jooq.impl.SQLDataType.VARCHAR.length(100), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountFriend.mutual</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountFriend, java.lang.Byte> mutual = createField("mutual", org.jooq.impl.SQLDataType.TINYINT, this, "");
|
||||
|
||||
/**
|
||||
* Create a <code>Account.accountFriend</code> table reference
|
||||
*/
|
||||
public AccountFriend() {
|
||||
this("accountFriend", null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>Account.accountFriend</code> table reference
|
||||
*/
|
||||
public AccountFriend(java.lang.String alias) {
|
||||
this(alias, mineplex.database.tables.AccountFriend.accountFriend);
|
||||
}
|
||||
|
||||
private AccountFriend(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.AccountFriend> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private AccountFriend(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.AccountFriend> aliased, org.jooq.Field<?>[] parameters) {
|
||||
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Identity<mineplex.database.tables.records.AccountFriend, java.lang.Integer> getIdentity() {
|
||||
return mineplex.database.Keys.IDENTITY_accountFriend;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.UniqueKey<mineplex.database.tables.records.AccountFriend> getPrimaryKey() {
|
||||
return mineplex.database.Keys.KEY_accountFriend_PRIMARY;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.AccountFriend>> getKeys() {
|
||||
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.AccountFriend>>asList(mineplex.database.Keys.KEY_accountFriend_PRIMARY);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public mineplex.database.tables.AccountFriend as(java.lang.String alias) {
|
||||
return new mineplex.database.tables.AccountFriend(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
public mineplex.database.tables.AccountFriend rename(java.lang.String name) {
|
||||
return new mineplex.database.tables.AccountFriend(name, null);
|
||||
}
|
||||
}
|
@ -0,0 +1,117 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class AccountInventory extends org.jooq.impl.TableImpl<mineplex.database.tables.records.AccountInventory> implements java.io.Serializable, java.lang.Cloneable {
|
||||
|
||||
private static final long serialVersionUID = -113543162;
|
||||
|
||||
/**
|
||||
* The singleton instance of <code>Account.accountInventory</code>
|
||||
*/
|
||||
public static final mineplex.database.tables.AccountInventory accountInventory = new mineplex.database.tables.AccountInventory();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<mineplex.database.tables.records.AccountInventory> getRecordType() {
|
||||
return mineplex.database.tables.records.AccountInventory.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountInventory.id</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountInventory, java.lang.Integer> id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountInventory.accountId</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountInventory, java.lang.Integer> accountId = createField("accountId", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountInventory.itemId</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountInventory, java.lang.Integer> itemId = createField("itemId", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountInventory.count</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountInventory, java.lang.Integer> count = createField("count", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* Create a <code>Account.accountInventory</code> table reference
|
||||
*/
|
||||
public AccountInventory() {
|
||||
this("accountInventory", null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>Account.accountInventory</code> table reference
|
||||
*/
|
||||
public AccountInventory(java.lang.String alias) {
|
||||
this(alias, mineplex.database.tables.AccountInventory.accountInventory);
|
||||
}
|
||||
|
||||
private AccountInventory(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.AccountInventory> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private AccountInventory(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.AccountInventory> aliased, org.jooq.Field<?>[] parameters) {
|
||||
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Identity<mineplex.database.tables.records.AccountInventory, java.lang.Integer> getIdentity() {
|
||||
return mineplex.database.Keys.IDENTITY_accountInventory;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.UniqueKey<mineplex.database.tables.records.AccountInventory> getPrimaryKey() {
|
||||
return mineplex.database.Keys.KEY_accountInventory_PRIMARY;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.AccountInventory>> getKeys() {
|
||||
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.AccountInventory>>asList(mineplex.database.Keys.KEY_accountInventory_PRIMARY, mineplex.database.Keys.KEY_accountInventory_accountItemIndex);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.ForeignKey<mineplex.database.tables.records.AccountInventory, ?>> getReferences() {
|
||||
return java.util.Arrays.<org.jooq.ForeignKey<mineplex.database.tables.records.AccountInventory, ?>>asList(mineplex.database.Keys.accountInventory_ibfk_1, mineplex.database.Keys.accountInventory_ibfk_2);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public mineplex.database.tables.AccountInventory as(java.lang.String alias) {
|
||||
return new mineplex.database.tables.AccountInventory(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
public mineplex.database.tables.AccountInventory rename(java.lang.String name) {
|
||||
return new mineplex.database.tables.AccountInventory(name, null);
|
||||
}
|
||||
}
|
@ -0,0 +1,117 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class AccountPolls extends org.jooq.impl.TableImpl<mineplex.database.tables.records.AccountPolls> implements java.io.Serializable, java.lang.Cloneable {
|
||||
|
||||
private static final long serialVersionUID = 295371459;
|
||||
|
||||
/**
|
||||
* The singleton instance of <code>Account.accountPolls</code>
|
||||
*/
|
||||
public static final mineplex.database.tables.AccountPolls accountPolls = new mineplex.database.tables.AccountPolls();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<mineplex.database.tables.records.AccountPolls> getRecordType() {
|
||||
return mineplex.database.tables.records.AccountPolls.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountPolls.id</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountPolls, java.lang.Integer> id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountPolls.accountId</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountPolls, java.lang.Integer> accountId = createField("accountId", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountPolls.pollId</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountPolls, java.lang.Integer> pollId = createField("pollId", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountPolls.value</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountPolls, java.lang.Byte> value = createField("value", org.jooq.impl.SQLDataType.TINYINT.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* Create a <code>Account.accountPolls</code> table reference
|
||||
*/
|
||||
public AccountPolls() {
|
||||
this("accountPolls", null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>Account.accountPolls</code> table reference
|
||||
*/
|
||||
public AccountPolls(java.lang.String alias) {
|
||||
this(alias, mineplex.database.tables.AccountPolls.accountPolls);
|
||||
}
|
||||
|
||||
private AccountPolls(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.AccountPolls> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private AccountPolls(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.AccountPolls> aliased, org.jooq.Field<?>[] parameters) {
|
||||
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Identity<mineplex.database.tables.records.AccountPolls, java.lang.Integer> getIdentity() {
|
||||
return mineplex.database.Keys.IDENTITY_accountPolls;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.UniqueKey<mineplex.database.tables.records.AccountPolls> getPrimaryKey() {
|
||||
return mineplex.database.Keys.KEY_accountPolls_PRIMARY;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.AccountPolls>> getKeys() {
|
||||
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.AccountPolls>>asList(mineplex.database.Keys.KEY_accountPolls_PRIMARY, mineplex.database.Keys.KEY_accountPolls_accountPollIndex);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.ForeignKey<mineplex.database.tables.records.AccountPolls, ?>> getReferences() {
|
||||
return java.util.Arrays.<org.jooq.ForeignKey<mineplex.database.tables.records.AccountPolls, ?>>asList(mineplex.database.Keys.accountPolls_ibfk_1, mineplex.database.Keys.accountPolls_ibfk_2);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public mineplex.database.tables.AccountPolls as(java.lang.String alias) {
|
||||
return new mineplex.database.tables.AccountPolls(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
public mineplex.database.tables.AccountPolls rename(java.lang.String name) {
|
||||
return new mineplex.database.tables.AccountPolls(name, null);
|
||||
}
|
||||
}
|
@ -0,0 +1,144 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class AccountPreferences extends org.jooq.impl.TableImpl<mineplex.database.tables.records.AccountPreferences> implements java.io.Serializable, java.lang.Cloneable {
|
||||
|
||||
private static final long serialVersionUID = -48477652;
|
||||
|
||||
/**
|
||||
* The singleton instance of <code>Account.accountPreferences</code>
|
||||
*/
|
||||
public static final mineplex.database.tables.AccountPreferences accountPreferences = new mineplex.database.tables.AccountPreferences();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<mineplex.database.tables.records.AccountPreferences> getRecordType() {
|
||||
return mineplex.database.tables.records.AccountPreferences.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountPreferences.id</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountPreferences, java.lang.Integer> id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountPreferences.uuid</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountPreferences, java.lang.String> uuid = createField("uuid", org.jooq.impl.SQLDataType.VARCHAR.length(256), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountPreferences.filterChat</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountPreferences, java.lang.Byte> filterChat = createField("filterChat", org.jooq.impl.SQLDataType.TINYINT, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountPreferences.invisibility</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountPreferences, java.lang.Byte> invisibility = createField("invisibility", org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaulted(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountPreferences.games</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountPreferences, java.lang.Byte> games = createField("games", org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaulted(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountPreferences.visibility</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountPreferences, java.lang.Byte> visibility = createField("visibility", org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaulted(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountPreferences.friendChat</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountPreferences, java.lang.Byte> friendChat = createField("friendChat", org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaulted(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountPreferences.privateMessaging</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountPreferences, java.lang.Byte> privateMessaging = createField("privateMessaging", org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaulted(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountPreferences.showChat</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountPreferences, java.lang.Byte> showChat = createField("showChat", org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaulted(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountPreferences.partyRequests</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountPreferences, java.lang.Byte> partyRequests = createField("partyRequests", org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaulted(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountPreferences.forcefield</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountPreferences, java.lang.Byte> forcefield = createField("forcefield", org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaulted(true), this, "");
|
||||
|
||||
/**
|
||||
* Create a <code>Account.accountPreferences</code> table reference
|
||||
*/
|
||||
public AccountPreferences() {
|
||||
this("accountPreferences", null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>Account.accountPreferences</code> table reference
|
||||
*/
|
||||
public AccountPreferences(java.lang.String alias) {
|
||||
this(alias, mineplex.database.tables.AccountPreferences.accountPreferences);
|
||||
}
|
||||
|
||||
private AccountPreferences(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.AccountPreferences> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private AccountPreferences(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.AccountPreferences> aliased, org.jooq.Field<?>[] parameters) {
|
||||
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Identity<mineplex.database.tables.records.AccountPreferences, java.lang.Integer> getIdentity() {
|
||||
return mineplex.database.Keys.IDENTITY_accountPreferences;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.UniqueKey<mineplex.database.tables.records.AccountPreferences> getPrimaryKey() {
|
||||
return mineplex.database.Keys.KEY_accountPreferences_PRIMARY;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.AccountPreferences>> getKeys() {
|
||||
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.AccountPreferences>>asList(mineplex.database.Keys.KEY_accountPreferences_PRIMARY, mineplex.database.Keys.KEY_accountPreferences_uuid_index);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public mineplex.database.tables.AccountPreferences as(java.lang.String alias) {
|
||||
return new mineplex.database.tables.AccountPreferences(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
public mineplex.database.tables.AccountPreferences rename(java.lang.String name) {
|
||||
return new mineplex.database.tables.AccountPreferences(name, null);
|
||||
}
|
||||
}
|
@ -0,0 +1,117 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class AccountStats extends org.jooq.impl.TableImpl<mineplex.database.tables.records.AccountStats> implements java.io.Serializable, java.lang.Cloneable {
|
||||
|
||||
private static final long serialVersionUID = 1235880361;
|
||||
|
||||
/**
|
||||
* The singleton instance of <code>Account.accountStats</code>
|
||||
*/
|
||||
public static final mineplex.database.tables.AccountStats accountStats = new mineplex.database.tables.AccountStats();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<mineplex.database.tables.records.AccountStats> getRecordType() {
|
||||
return mineplex.database.tables.records.AccountStats.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountStats.id</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountStats, java.lang.Integer> id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountStats.accountId</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountStats, java.lang.Integer> accountId = createField("accountId", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountStats.statId</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountStats, java.lang.Integer> statId = createField("statId", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountStats.value</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountStats, java.lang.Integer> value = createField("value", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* Create a <code>Account.accountStats</code> table reference
|
||||
*/
|
||||
public AccountStats() {
|
||||
this("accountStats", null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>Account.accountStats</code> table reference
|
||||
*/
|
||||
public AccountStats(java.lang.String alias) {
|
||||
this(alias, mineplex.database.tables.AccountStats.accountStats);
|
||||
}
|
||||
|
||||
private AccountStats(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.AccountStats> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private AccountStats(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.AccountStats> aliased, org.jooq.Field<?>[] parameters) {
|
||||
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Identity<mineplex.database.tables.records.AccountStats, java.lang.Integer> getIdentity() {
|
||||
return mineplex.database.Keys.IDENTITY_accountStats;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.UniqueKey<mineplex.database.tables.records.AccountStats> getPrimaryKey() {
|
||||
return mineplex.database.Keys.KEY_accountStats_PRIMARY;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.AccountStats>> getKeys() {
|
||||
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.AccountStats>>asList(mineplex.database.Keys.KEY_accountStats_PRIMARY, mineplex.database.Keys.KEY_accountStats_accountStatIndex);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.ForeignKey<mineplex.database.tables.records.AccountStats, ?>> getReferences() {
|
||||
return java.util.Arrays.<org.jooq.ForeignKey<mineplex.database.tables.records.AccountStats, ?>>asList(mineplex.database.Keys.accountStats_ibfk_1, mineplex.database.Keys.accountStats_ibfk_2);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public mineplex.database.tables.AccountStats as(java.lang.String alias) {
|
||||
return new mineplex.database.tables.AccountStats(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
public mineplex.database.tables.AccountStats rename(java.lang.String name) {
|
||||
return new mineplex.database.tables.AccountStats(name, null);
|
||||
}
|
||||
}
|
@ -0,0 +1,134 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class Accounts extends org.jooq.impl.TableImpl<mineplex.database.tables.records.Accounts> implements java.io.Serializable, java.lang.Cloneable {
|
||||
|
||||
private static final long serialVersionUID = 235426766;
|
||||
|
||||
/**
|
||||
* The singleton instance of <code>Account.accounts</code>
|
||||
*/
|
||||
public static final mineplex.database.tables.Accounts accounts = new mineplex.database.tables.Accounts();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<mineplex.database.tables.records.Accounts> getRecordType() {
|
||||
return mineplex.database.tables.records.Accounts.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>Account.accounts.id</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.Accounts, java.lang.Integer> id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accounts.uuid</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.Accounts, java.lang.String> uuid = createField("uuid", org.jooq.impl.SQLDataType.VARCHAR.length(100).nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accounts.name</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.Accounts, java.lang.String> name = createField("name", org.jooq.impl.SQLDataType.VARCHAR.length(40), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accounts.gems</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.Accounts, java.lang.Integer> gems = createField("gems", org.jooq.impl.SQLDataType.INTEGER, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accounts.rank</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.Accounts, java.lang.String> rank = createField("rank", org.jooq.impl.SQLDataType.VARCHAR.length(40), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accounts.rankPerm</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.Accounts, java.lang.Byte> rankPerm = createField("rankPerm", org.jooq.impl.SQLDataType.TINYINT, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accounts.rankExpire</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.Accounts, java.lang.String> rankExpire = createField("rankExpire", org.jooq.impl.SQLDataType.CLOB.length(16777215), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accounts.lastLogin</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.Accounts, java.lang.String> lastLogin = createField("lastLogin", org.jooq.impl.SQLDataType.CLOB.length(16777215), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accounts.totalPlayTime</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.Accounts, java.lang.String> totalPlayTime = createField("totalPlayTime", org.jooq.impl.SQLDataType.CLOB.length(16777215), this, "");
|
||||
|
||||
/**
|
||||
* Create a <code>Account.accounts</code> table reference
|
||||
*/
|
||||
public Accounts() {
|
||||
this("accounts", null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>Account.accounts</code> table reference
|
||||
*/
|
||||
public Accounts(java.lang.String alias) {
|
||||
this(alias, mineplex.database.tables.Accounts.accounts);
|
||||
}
|
||||
|
||||
private Accounts(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.Accounts> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private Accounts(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.Accounts> aliased, org.jooq.Field<?>[] parameters) {
|
||||
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Identity<mineplex.database.tables.records.Accounts, java.lang.Integer> getIdentity() {
|
||||
return mineplex.database.Keys.IDENTITY_accounts;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.UniqueKey<mineplex.database.tables.records.Accounts> getPrimaryKey() {
|
||||
return mineplex.database.Keys.KEY_accounts_PRIMARY;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.Accounts>> getKeys() {
|
||||
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.Accounts>>asList(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.Keys.KEY_accounts_uuidIndex);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public mineplex.database.tables.Accounts as(java.lang.String alias) {
|
||||
return new mineplex.database.tables.Accounts(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
public mineplex.database.tables.Accounts rename(java.lang.String name) {
|
||||
return new mineplex.database.tables.Accounts(name, null);
|
||||
}
|
||||
}
|
@ -0,0 +1,99 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class ItemCategories extends org.jooq.impl.TableImpl<mineplex.database.tables.records.ItemCategories> implements java.io.Serializable, java.lang.Cloneable {
|
||||
|
||||
private static final long serialVersionUID = 1789014434;
|
||||
|
||||
/**
|
||||
* The singleton instance of <code>Account.itemCategories</code>
|
||||
*/
|
||||
public static final mineplex.database.tables.ItemCategories itemCategories = new mineplex.database.tables.ItemCategories();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<mineplex.database.tables.records.ItemCategories> getRecordType() {
|
||||
return mineplex.database.tables.records.ItemCategories.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>Account.itemCategories.id</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.ItemCategories, java.lang.Integer> id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.itemCategories.name</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.ItemCategories, java.lang.String> name = createField("name", org.jooq.impl.SQLDataType.VARCHAR.length(100), this, "");
|
||||
|
||||
/**
|
||||
* Create a <code>Account.itemCategories</code> table reference
|
||||
*/
|
||||
public ItemCategories() {
|
||||
this("itemCategories", null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>Account.itemCategories</code> table reference
|
||||
*/
|
||||
public ItemCategories(java.lang.String alias) {
|
||||
this(alias, mineplex.database.tables.ItemCategories.itemCategories);
|
||||
}
|
||||
|
||||
private ItemCategories(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.ItemCategories> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private ItemCategories(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.ItemCategories> aliased, org.jooq.Field<?>[] parameters) {
|
||||
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Identity<mineplex.database.tables.records.ItemCategories, java.lang.Integer> getIdentity() {
|
||||
return mineplex.database.Keys.IDENTITY_itemCategories;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.UniqueKey<mineplex.database.tables.records.ItemCategories> getPrimaryKey() {
|
||||
return mineplex.database.Keys.KEY_itemCategories_PRIMARY;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.ItemCategories>> getKeys() {
|
||||
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.ItemCategories>>asList(mineplex.database.Keys.KEY_itemCategories_PRIMARY, mineplex.database.Keys.KEY_itemCategories_nameIndex);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public mineplex.database.tables.ItemCategories as(java.lang.String alias) {
|
||||
return new mineplex.database.tables.ItemCategories(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
public mineplex.database.tables.ItemCategories rename(java.lang.String name) {
|
||||
return new mineplex.database.tables.ItemCategories(name, null);
|
||||
}
|
||||
}
|
@ -0,0 +1,117 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class Items extends org.jooq.impl.TableImpl<mineplex.database.tables.records.Items> implements java.io.Serializable, java.lang.Cloneable {
|
||||
|
||||
private static final long serialVersionUID = -2014464691;
|
||||
|
||||
/**
|
||||
* The singleton instance of <code>Account.items</code>
|
||||
*/
|
||||
public static final mineplex.database.tables.Items items = new mineplex.database.tables.Items();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<mineplex.database.tables.records.Items> getRecordType() {
|
||||
return mineplex.database.tables.records.Items.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>Account.items.id</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.Items, java.lang.Integer> id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.items.name</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.Items, java.lang.String> name = createField("name", org.jooq.impl.SQLDataType.VARCHAR.length(100), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.items.categoryId</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.Items, java.lang.Integer> categoryId = createField("categoryId", org.jooq.impl.SQLDataType.INTEGER, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.items.rarity</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.Items, java.lang.Integer> rarity = createField("rarity", org.jooq.impl.SQLDataType.INTEGER, this, "");
|
||||
|
||||
/**
|
||||
* Create a <code>Account.items</code> table reference
|
||||
*/
|
||||
public Items() {
|
||||
this("items", null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>Account.items</code> table reference
|
||||
*/
|
||||
public Items(java.lang.String alias) {
|
||||
this(alias, mineplex.database.tables.Items.items);
|
||||
}
|
||||
|
||||
private Items(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.Items> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private Items(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.Items> aliased, org.jooq.Field<?>[] parameters) {
|
||||
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Identity<mineplex.database.tables.records.Items, java.lang.Integer> getIdentity() {
|
||||
return mineplex.database.Keys.IDENTITY_items;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.UniqueKey<mineplex.database.tables.records.Items> getPrimaryKey() {
|
||||
return mineplex.database.Keys.KEY_items_PRIMARY;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.Items>> getKeys() {
|
||||
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.Items>>asList(mineplex.database.Keys.KEY_items_PRIMARY, mineplex.database.Keys.KEY_items_uniqueNameCategoryIndex);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.ForeignKey<mineplex.database.tables.records.Items, ?>> getReferences() {
|
||||
return java.util.Arrays.<org.jooq.ForeignKey<mineplex.database.tables.records.Items, ?>>asList(mineplex.database.Keys.items_ibfk_1);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public mineplex.database.tables.Items as(java.lang.String alias) {
|
||||
return new mineplex.database.tables.Items(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
public mineplex.database.tables.Items rename(java.lang.String name) {
|
||||
return new mineplex.database.tables.Items(name, null);
|
||||
}
|
||||
}
|
@ -0,0 +1,109 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class PlayerMap extends org.jooq.impl.TableImpl<mineplex.database.tables.records.PlayerMap> implements java.io.Serializable, java.lang.Cloneable {
|
||||
|
||||
private static final long serialVersionUID = -2057076686;
|
||||
|
||||
/**
|
||||
* The singleton instance of <code>Account.playerMap</code>
|
||||
*/
|
||||
public static final mineplex.database.tables.PlayerMap playerMap = new mineplex.database.tables.PlayerMap();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<mineplex.database.tables.records.PlayerMap> getRecordType() {
|
||||
return mineplex.database.tables.records.PlayerMap.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>Account.playerMap.id</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.PlayerMap, java.lang.Integer> id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.playerMap.playerName</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.PlayerMap, java.lang.String> playerName = createField("playerName", org.jooq.impl.SQLDataType.VARCHAR.length(256), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.playerMap.serverName</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.PlayerMap, java.lang.String> serverName = createField("serverName", org.jooq.impl.SQLDataType.VARCHAR.length(256), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.playerMap.us</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.PlayerMap, java.lang.Byte> us = createField("us", org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaulted(true), this, "");
|
||||
|
||||
/**
|
||||
* Create a <code>Account.playerMap</code> table reference
|
||||
*/
|
||||
public PlayerMap() {
|
||||
this("playerMap", null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>Account.playerMap</code> table reference
|
||||
*/
|
||||
public PlayerMap(java.lang.String alias) {
|
||||
this(alias, mineplex.database.tables.PlayerMap.playerMap);
|
||||
}
|
||||
|
||||
private PlayerMap(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.PlayerMap> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private PlayerMap(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.PlayerMap> aliased, org.jooq.Field<?>[] parameters) {
|
||||
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Identity<mineplex.database.tables.records.PlayerMap, java.lang.Integer> getIdentity() {
|
||||
return mineplex.database.Keys.IDENTITY_playerMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.UniqueKey<mineplex.database.tables.records.PlayerMap> getPrimaryKey() {
|
||||
return mineplex.database.Keys.KEY_playerMap_PRIMARY;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.PlayerMap>> getKeys() {
|
||||
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.PlayerMap>>asList(mineplex.database.Keys.KEY_playerMap_PRIMARY, mineplex.database.Keys.KEY_playerMap_playerIndex);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public mineplex.database.tables.PlayerMap as(java.lang.String alias) {
|
||||
return new mineplex.database.tables.PlayerMap(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
public mineplex.database.tables.PlayerMap rename(java.lang.String name) {
|
||||
return new mineplex.database.tables.PlayerMap(name, null);
|
||||
}
|
||||
}
|
@ -0,0 +1,129 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class Polls extends org.jooq.impl.TableImpl<mineplex.database.tables.records.Polls> implements java.io.Serializable, java.lang.Cloneable {
|
||||
|
||||
private static final long serialVersionUID = -669090314;
|
||||
|
||||
/**
|
||||
* The singleton instance of <code>Account.polls</code>
|
||||
*/
|
||||
public static final mineplex.database.tables.Polls polls = new mineplex.database.tables.Polls();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<mineplex.database.tables.records.Polls> getRecordType() {
|
||||
return mineplex.database.tables.records.Polls.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>Account.polls.id</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.Polls, java.lang.Integer> id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.polls.enabled</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.Polls, java.lang.Boolean> enabled = createField("enabled", org.jooq.impl.SQLDataType.BIT, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.polls.question</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.Polls, java.lang.String> question = createField("question", org.jooq.impl.SQLDataType.VARCHAR.length(256).nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.polls.answerA</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.Polls, java.lang.String> answerA = createField("answerA", org.jooq.impl.SQLDataType.VARCHAR.length(256).nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.polls.answerB</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.Polls, java.lang.String> answerB = createField("answerB", org.jooq.impl.SQLDataType.VARCHAR.length(256), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.polls.answerC</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.Polls, java.lang.String> answerC = createField("answerC", org.jooq.impl.SQLDataType.VARCHAR.length(256), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.polls.answerD</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.Polls, java.lang.String> answerD = createField("answerD", org.jooq.impl.SQLDataType.VARCHAR.length(256), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.polls.coinReward</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.Polls, java.lang.Integer> coinReward = createField("coinReward", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* Create a <code>Account.polls</code> table reference
|
||||
*/
|
||||
public Polls() {
|
||||
this("polls", null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>Account.polls</code> table reference
|
||||
*/
|
||||
public Polls(java.lang.String alias) {
|
||||
this(alias, mineplex.database.tables.Polls.polls);
|
||||
}
|
||||
|
||||
private Polls(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.Polls> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private Polls(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.Polls> aliased, org.jooq.Field<?>[] parameters) {
|
||||
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Identity<mineplex.database.tables.records.Polls, java.lang.Integer> getIdentity() {
|
||||
return mineplex.database.Keys.IDENTITY_polls;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.UniqueKey<mineplex.database.tables.records.Polls> getPrimaryKey() {
|
||||
return mineplex.database.Keys.KEY_polls_PRIMARY;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.Polls>> getKeys() {
|
||||
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.Polls>>asList(mineplex.database.Keys.KEY_polls_PRIMARY);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public mineplex.database.tables.Polls as(java.lang.String alias) {
|
||||
return new mineplex.database.tables.Polls(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
public mineplex.database.tables.Polls rename(java.lang.String name) {
|
||||
return new mineplex.database.tables.Polls(name, null);
|
||||
}
|
||||
}
|
@ -0,0 +1,99 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class Stats extends org.jooq.impl.TableImpl<mineplex.database.tables.records.Stats> implements java.io.Serializable, java.lang.Cloneable {
|
||||
|
||||
private static final long serialVersionUID = -1049298598;
|
||||
|
||||
/**
|
||||
* The singleton instance of <code>Account.stats</code>
|
||||
*/
|
||||
public static final mineplex.database.tables.Stats stats = new mineplex.database.tables.Stats();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<mineplex.database.tables.records.Stats> getRecordType() {
|
||||
return mineplex.database.tables.records.Stats.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>Account.stats.id</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.Stats, java.lang.Integer> id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.stats.name</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.Stats, java.lang.String> name = createField("name", org.jooq.impl.SQLDataType.VARCHAR.length(100), this, "");
|
||||
|
||||
/**
|
||||
* Create a <code>Account.stats</code> table reference
|
||||
*/
|
||||
public Stats() {
|
||||
this("stats", null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>Account.stats</code> table reference
|
||||
*/
|
||||
public Stats(java.lang.String alias) {
|
||||
this(alias, mineplex.database.tables.Stats.stats);
|
||||
}
|
||||
|
||||
private Stats(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.Stats> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private Stats(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.Stats> aliased, org.jooq.Field<?>[] parameters) {
|
||||
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Identity<mineplex.database.tables.records.Stats, java.lang.Integer> getIdentity() {
|
||||
return mineplex.database.Keys.IDENTITY_stats;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.UniqueKey<mineplex.database.tables.records.Stats> getPrimaryKey() {
|
||||
return mineplex.database.Keys.KEY_stats_PRIMARY;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.Stats>> getKeys() {
|
||||
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.Stats>>asList(mineplex.database.Keys.KEY_stats_PRIMARY, mineplex.database.Keys.KEY_stats_nameIndex);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public mineplex.database.tables.Stats as(java.lang.String alias) {
|
||||
return new mineplex.database.tables.Stats(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
public mineplex.database.tables.Stats rename(java.lang.String name) {
|
||||
return new mineplex.database.tables.Stats(name, null);
|
||||
}
|
||||
}
|
@ -0,0 +1,132 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class TournamentLeaderboard extends org.jooq.impl.TableImpl<mineplex.database.tables.records.TournamentLeaderboard> implements java.io.Serializable, java.lang.Cloneable {
|
||||
|
||||
private static final long serialVersionUID = -2050960225;
|
||||
|
||||
/**
|
||||
* The singleton instance of <code>Account.tournamentLeaderboard</code>
|
||||
*/
|
||||
public static final mineplex.database.tables.TournamentLeaderboard tournamentLeaderboard = new mineplex.database.tables.TournamentLeaderboard();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<mineplex.database.tables.records.TournamentLeaderboard> getRecordType() {
|
||||
return mineplex.database.tables.records.TournamentLeaderboard.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>Account.tournamentLeaderboard.id</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.TournamentLeaderboard, java.lang.Integer> id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.tournamentLeaderboard.tournamentId</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.TournamentLeaderboard, java.lang.Integer> tournamentId = createField("tournamentId", org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaulted(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.tournamentLeaderboard.accountId</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.TournamentLeaderboard, java.lang.Integer> accountId = createField("accountId", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.tournamentLeaderboard.gameId</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.TournamentLeaderboard, java.lang.Integer> gameId = createField("gameId", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.tournamentLeaderboard.wins</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.TournamentLeaderboard, java.lang.Integer> wins = createField("wins", org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaulted(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.tournamentLeaderboard.total</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.TournamentLeaderboard, java.lang.Integer> total = createField("total", org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaulted(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.tournamentLeaderboard.ratio</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.TournamentLeaderboard, java.lang.Double> ratio = createField("ratio", org.jooq.impl.SQLDataType.FLOAT, this, "");
|
||||
|
||||
/**
|
||||
* Create a <code>Account.tournamentLeaderboard</code> table reference
|
||||
*/
|
||||
public TournamentLeaderboard() {
|
||||
this("tournamentLeaderboard", null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>Account.tournamentLeaderboard</code> table reference
|
||||
*/
|
||||
public TournamentLeaderboard(java.lang.String alias) {
|
||||
this(alias, mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard);
|
||||
}
|
||||
|
||||
private TournamentLeaderboard(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.TournamentLeaderboard> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private TournamentLeaderboard(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.TournamentLeaderboard> aliased, org.jooq.Field<?>[] parameters) {
|
||||
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Identity<mineplex.database.tables.records.TournamentLeaderboard, java.lang.Integer> getIdentity() {
|
||||
return mineplex.database.Keys.IDENTITY_tournamentLeaderboard;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.UniqueKey<mineplex.database.tables.records.TournamentLeaderboard> getPrimaryKey() {
|
||||
return mineplex.database.Keys.KEY_tournamentLeaderboard_PRIMARY;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.TournamentLeaderboard>> getKeys() {
|
||||
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.TournamentLeaderboard>>asList(mineplex.database.Keys.KEY_tournamentLeaderboard_PRIMARY, mineplex.database.Keys.KEY_tournamentLeaderboard_leaderboard_account_game_UNIQUE);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.ForeignKey<mineplex.database.tables.records.TournamentLeaderboard, ?>> getReferences() {
|
||||
return java.util.Arrays.<org.jooq.ForeignKey<mineplex.database.tables.records.TournamentLeaderboard, ?>>asList(mineplex.database.Keys.FK_tournamentLeaderboard_accounts);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public mineplex.database.tables.TournamentLeaderboard as(java.lang.String alias) {
|
||||
return new mineplex.database.tables.TournamentLeaderboard(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
public mineplex.database.tables.TournamentLeaderboard rename(java.lang.String name) {
|
||||
return new mineplex.database.tables.TournamentLeaderboard(name, null);
|
||||
}
|
||||
}
|
@ -0,0 +1,234 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.tables.records;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class AccountFriend extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.AccountFriend> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record4<java.lang.Integer, java.lang.String, java.lang.String, java.lang.Byte> {
|
||||
|
||||
private static final long serialVersionUID = -1730990134;
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountFriend.id</code>.
|
||||
*/
|
||||
public void setId(java.lang.Integer value) {
|
||||
setValue(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountFriend.id</code>.
|
||||
*/
|
||||
public java.lang.Integer getId() {
|
||||
return (java.lang.Integer) getValue(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountFriend.uuidSource</code>.
|
||||
*/
|
||||
public void setUuidSource(java.lang.String value) {
|
||||
setValue(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountFriend.uuidSource</code>.
|
||||
*/
|
||||
public java.lang.String getUuidSource() {
|
||||
return (java.lang.String) getValue(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountFriend.uuidTarget</code>.
|
||||
*/
|
||||
public void setUuidTarget(java.lang.String value) {
|
||||
setValue(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountFriend.uuidTarget</code>.
|
||||
*/
|
||||
public java.lang.String getUuidTarget() {
|
||||
return (java.lang.String) getValue(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountFriend.mutual</code>.
|
||||
*/
|
||||
public void setMutual(java.lang.Byte value) {
|
||||
setValue(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountFriend.mutual</code>.
|
||||
*/
|
||||
public java.lang.Byte getMutual() {
|
||||
return (java.lang.Byte) getValue(3);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Record1<java.lang.Integer> key() {
|
||||
return (org.jooq.Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record4 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row4<java.lang.Integer, java.lang.String, java.lang.String, java.lang.Byte> fieldsRow() {
|
||||
return (org.jooq.Row4) super.fieldsRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row4<java.lang.Integer, java.lang.String, java.lang.String, java.lang.Byte> valuesRow() {
|
||||
return (org.jooq.Row4) super.valuesRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field1() {
|
||||
return mineplex.database.tables.AccountFriend.accountFriend.id;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field2() {
|
||||
return mineplex.database.tables.AccountFriend.accountFriend.uuidSource;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field3() {
|
||||
return mineplex.database.tables.AccountFriend.accountFriend.uuidTarget;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Byte> field4() {
|
||||
return mineplex.database.tables.AccountFriend.accountFriend.mutual;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value2() {
|
||||
return getUuidSource();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value3() {
|
||||
return getUuidTarget();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Byte value4() {
|
||||
return getMutual();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountFriend value1(java.lang.Integer value) {
|
||||
setId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountFriend value2(java.lang.String value) {
|
||||
setUuidSource(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountFriend value3(java.lang.String value) {
|
||||
setUuidTarget(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountFriend value4(java.lang.Byte value) {
|
||||
setMutual(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountFriend values(java.lang.Integer value1, java.lang.String value2, java.lang.String value3, java.lang.Byte value4) {
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached AccountFriend
|
||||
*/
|
||||
public AccountFriend() {
|
||||
super(mineplex.database.tables.AccountFriend.accountFriend);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised AccountFriend
|
||||
*/
|
||||
public AccountFriend(java.lang.Integer id, java.lang.String uuidSource, java.lang.String uuidTarget, java.lang.Byte mutual) {
|
||||
super(mineplex.database.tables.AccountFriend.accountFriend);
|
||||
|
||||
setValue(0, id);
|
||||
setValue(1, uuidSource);
|
||||
setValue(2, uuidTarget);
|
||||
setValue(3, mutual);
|
||||
}
|
||||
}
|
@ -0,0 +1,234 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.tables.records;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class AccountInventory extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.AccountInventory> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record4<java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer> {
|
||||
|
||||
private static final long serialVersionUID = 522435571;
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountInventory.id</code>.
|
||||
*/
|
||||
public void setId(java.lang.Integer value) {
|
||||
setValue(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountInventory.id</code>.
|
||||
*/
|
||||
public java.lang.Integer getId() {
|
||||
return (java.lang.Integer) getValue(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountInventory.accountId</code>.
|
||||
*/
|
||||
public void setAccountId(java.lang.Integer value) {
|
||||
setValue(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountInventory.accountId</code>.
|
||||
*/
|
||||
public java.lang.Integer getAccountId() {
|
||||
return (java.lang.Integer) getValue(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountInventory.itemId</code>.
|
||||
*/
|
||||
public void setItemId(java.lang.Integer value) {
|
||||
setValue(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountInventory.itemId</code>.
|
||||
*/
|
||||
public java.lang.Integer getItemId() {
|
||||
return (java.lang.Integer) getValue(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountInventory.count</code>.
|
||||
*/
|
||||
public void setCount(java.lang.Integer value) {
|
||||
setValue(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountInventory.count</code>.
|
||||
*/
|
||||
public java.lang.Integer getCount() {
|
||||
return (java.lang.Integer) getValue(3);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Record1<java.lang.Integer> key() {
|
||||
return (org.jooq.Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record4 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row4<java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer> fieldsRow() {
|
||||
return (org.jooq.Row4) super.fieldsRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row4<java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer> valuesRow() {
|
||||
return (org.jooq.Row4) super.valuesRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field1() {
|
||||
return mineplex.database.tables.AccountInventory.accountInventory.id;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field2() {
|
||||
return mineplex.database.tables.AccountInventory.accountInventory.accountId;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field3() {
|
||||
return mineplex.database.tables.AccountInventory.accountInventory.itemId;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field4() {
|
||||
return mineplex.database.tables.AccountInventory.accountInventory.count;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value2() {
|
||||
return getAccountId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value3() {
|
||||
return getItemId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value4() {
|
||||
return getCount();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountInventory value1(java.lang.Integer value) {
|
||||
setId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountInventory value2(java.lang.Integer value) {
|
||||
setAccountId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountInventory value3(java.lang.Integer value) {
|
||||
setItemId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountInventory value4(java.lang.Integer value) {
|
||||
setCount(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountInventory values(java.lang.Integer value1, java.lang.Integer value2, java.lang.Integer value3, java.lang.Integer value4) {
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached AccountInventory
|
||||
*/
|
||||
public AccountInventory() {
|
||||
super(mineplex.database.tables.AccountInventory.accountInventory);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised AccountInventory
|
||||
*/
|
||||
public AccountInventory(java.lang.Integer id, java.lang.Integer accountId, java.lang.Integer itemId, java.lang.Integer count) {
|
||||
super(mineplex.database.tables.AccountInventory.accountInventory);
|
||||
|
||||
setValue(0, id);
|
||||
setValue(1, accountId);
|
||||
setValue(2, itemId);
|
||||
setValue(3, count);
|
||||
}
|
||||
}
|
@ -0,0 +1,234 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.tables.records;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class AccountPolls extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.AccountPolls> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record4<java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Byte> {
|
||||
|
||||
private static final long serialVersionUID = -769198627;
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountPolls.id</code>.
|
||||
*/
|
||||
public void setId(java.lang.Integer value) {
|
||||
setValue(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountPolls.id</code>.
|
||||
*/
|
||||
public java.lang.Integer getId() {
|
||||
return (java.lang.Integer) getValue(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountPolls.accountId</code>.
|
||||
*/
|
||||
public void setAccountId(java.lang.Integer value) {
|
||||
setValue(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountPolls.accountId</code>.
|
||||
*/
|
||||
public java.lang.Integer getAccountId() {
|
||||
return (java.lang.Integer) getValue(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountPolls.pollId</code>.
|
||||
*/
|
||||
public void setPollId(java.lang.Integer value) {
|
||||
setValue(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountPolls.pollId</code>.
|
||||
*/
|
||||
public java.lang.Integer getPollId() {
|
||||
return (java.lang.Integer) getValue(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountPolls.value</code>.
|
||||
*/
|
||||
public void setValue(java.lang.Byte value) {
|
||||
setValue(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountPolls.value</code>.
|
||||
*/
|
||||
public java.lang.Byte getValue() {
|
||||
return (java.lang.Byte) getValue(3);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Record1<java.lang.Integer> key() {
|
||||
return (org.jooq.Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record4 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row4<java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Byte> fieldsRow() {
|
||||
return (org.jooq.Row4) super.fieldsRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row4<java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Byte> valuesRow() {
|
||||
return (org.jooq.Row4) super.valuesRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field1() {
|
||||
return mineplex.database.tables.AccountPolls.accountPolls.id;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field2() {
|
||||
return mineplex.database.tables.AccountPolls.accountPolls.accountId;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field3() {
|
||||
return mineplex.database.tables.AccountPolls.accountPolls.pollId;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Byte> field4() {
|
||||
return mineplex.database.tables.AccountPolls.accountPolls.value;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value2() {
|
||||
return getAccountId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value3() {
|
||||
return getPollId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Byte value4() {
|
||||
return getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountPolls value1(java.lang.Integer value) {
|
||||
setId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountPolls value2(java.lang.Integer value) {
|
||||
setAccountId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountPolls value3(java.lang.Integer value) {
|
||||
setPollId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountPolls value4(java.lang.Byte value) {
|
||||
setValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountPolls values(java.lang.Integer value1, java.lang.Integer value2, java.lang.Integer value3, java.lang.Byte value4) {
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached AccountPolls
|
||||
*/
|
||||
public AccountPolls() {
|
||||
super(mineplex.database.tables.AccountPolls.accountPolls);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised AccountPolls
|
||||
*/
|
||||
public AccountPolls(java.lang.Integer id, java.lang.Integer accountId, java.lang.Integer pollId, java.lang.Byte value) {
|
||||
super(mineplex.database.tables.AccountPolls.accountPolls);
|
||||
|
||||
setValue(0, id);
|
||||
setValue(1, accountId);
|
||||
setValue(2, pollId);
|
||||
setValue(3, value);
|
||||
}
|
||||
}
|
@ -0,0 +1,514 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.tables.records;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class AccountPreferences extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.AccountPreferences> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record11<java.lang.Integer, java.lang.String, java.lang.Byte, java.lang.Byte, java.lang.Byte, java.lang.Byte, java.lang.Byte, java.lang.Byte, java.lang.Byte, java.lang.Byte, java.lang.Byte> {
|
||||
|
||||
private static final long serialVersionUID = -1178063501;
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountPreferences.id</code>.
|
||||
*/
|
||||
public void setId(java.lang.Integer value) {
|
||||
setValue(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountPreferences.id</code>.
|
||||
*/
|
||||
public java.lang.Integer getId() {
|
||||
return (java.lang.Integer) getValue(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountPreferences.uuid</code>.
|
||||
*/
|
||||
public void setUuid(java.lang.String value) {
|
||||
setValue(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountPreferences.uuid</code>.
|
||||
*/
|
||||
public java.lang.String getUuid() {
|
||||
return (java.lang.String) getValue(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountPreferences.filterChat</code>.
|
||||
*/
|
||||
public void setFilterChat(java.lang.Byte value) {
|
||||
setValue(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountPreferences.filterChat</code>.
|
||||
*/
|
||||
public java.lang.Byte getFilterChat() {
|
||||
return (java.lang.Byte) getValue(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountPreferences.invisibility</code>.
|
||||
*/
|
||||
public void setInvisibility(java.lang.Byte value) {
|
||||
setValue(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountPreferences.invisibility</code>.
|
||||
*/
|
||||
public java.lang.Byte getInvisibility() {
|
||||
return (java.lang.Byte) getValue(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountPreferences.games</code>.
|
||||
*/
|
||||
public void setGames(java.lang.Byte value) {
|
||||
setValue(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountPreferences.games</code>.
|
||||
*/
|
||||
public java.lang.Byte getGames() {
|
||||
return (java.lang.Byte) getValue(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountPreferences.visibility</code>.
|
||||
*/
|
||||
public void setVisibility(java.lang.Byte value) {
|
||||
setValue(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountPreferences.visibility</code>.
|
||||
*/
|
||||
public java.lang.Byte getVisibility() {
|
||||
return (java.lang.Byte) getValue(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountPreferences.friendChat</code>.
|
||||
*/
|
||||
public void setFriendChat(java.lang.Byte value) {
|
||||
setValue(6, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountPreferences.friendChat</code>.
|
||||
*/
|
||||
public java.lang.Byte getFriendChat() {
|
||||
return (java.lang.Byte) getValue(6);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountPreferences.privateMessaging</code>.
|
||||
*/
|
||||
public void setPrivateMessaging(java.lang.Byte value) {
|
||||
setValue(7, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountPreferences.privateMessaging</code>.
|
||||
*/
|
||||
public java.lang.Byte getPrivateMessaging() {
|
||||
return (java.lang.Byte) getValue(7);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountPreferences.showChat</code>.
|
||||
*/
|
||||
public void setShowChat(java.lang.Byte value) {
|
||||
setValue(8, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountPreferences.showChat</code>.
|
||||
*/
|
||||
public java.lang.Byte getShowChat() {
|
||||
return (java.lang.Byte) getValue(8);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountPreferences.partyRequests</code>.
|
||||
*/
|
||||
public void setPartyRequests(java.lang.Byte value) {
|
||||
setValue(9, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountPreferences.partyRequests</code>.
|
||||
*/
|
||||
public java.lang.Byte getPartyRequests() {
|
||||
return (java.lang.Byte) getValue(9);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountPreferences.forcefield</code>.
|
||||
*/
|
||||
public void setForcefield(java.lang.Byte value) {
|
||||
setValue(10, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountPreferences.forcefield</code>.
|
||||
*/
|
||||
public java.lang.Byte getForcefield() {
|
||||
return (java.lang.Byte) getValue(10);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Record1<java.lang.Integer> key() {
|
||||
return (org.jooq.Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record11 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row11<java.lang.Integer, java.lang.String, java.lang.Byte, java.lang.Byte, java.lang.Byte, java.lang.Byte, java.lang.Byte, java.lang.Byte, java.lang.Byte, java.lang.Byte, java.lang.Byte> fieldsRow() {
|
||||
return (org.jooq.Row11) super.fieldsRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row11<java.lang.Integer, java.lang.String, java.lang.Byte, java.lang.Byte, java.lang.Byte, java.lang.Byte, java.lang.Byte, java.lang.Byte, java.lang.Byte, java.lang.Byte, java.lang.Byte> valuesRow() {
|
||||
return (org.jooq.Row11) super.valuesRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field1() {
|
||||
return mineplex.database.tables.AccountPreferences.accountPreferences.id;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field2() {
|
||||
return mineplex.database.tables.AccountPreferences.accountPreferences.uuid;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Byte> field3() {
|
||||
return mineplex.database.tables.AccountPreferences.accountPreferences.filterChat;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Byte> field4() {
|
||||
return mineplex.database.tables.AccountPreferences.accountPreferences.invisibility;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Byte> field5() {
|
||||
return mineplex.database.tables.AccountPreferences.accountPreferences.games;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Byte> field6() {
|
||||
return mineplex.database.tables.AccountPreferences.accountPreferences.visibility;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Byte> field7() {
|
||||
return mineplex.database.tables.AccountPreferences.accountPreferences.friendChat;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Byte> field8() {
|
||||
return mineplex.database.tables.AccountPreferences.accountPreferences.privateMessaging;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Byte> field9() {
|
||||
return mineplex.database.tables.AccountPreferences.accountPreferences.showChat;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Byte> field10() {
|
||||
return mineplex.database.tables.AccountPreferences.accountPreferences.partyRequests;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Byte> field11() {
|
||||
return mineplex.database.tables.AccountPreferences.accountPreferences.forcefield;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value2() {
|
||||
return getUuid();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Byte value3() {
|
||||
return getFilterChat();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Byte value4() {
|
||||
return getInvisibility();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Byte value5() {
|
||||
return getGames();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Byte value6() {
|
||||
return getVisibility();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Byte value7() {
|
||||
return getFriendChat();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Byte value8() {
|
||||
return getPrivateMessaging();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Byte value9() {
|
||||
return getShowChat();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Byte value10() {
|
||||
return getPartyRequests();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Byte value11() {
|
||||
return getForcefield();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountPreferences value1(java.lang.Integer value) {
|
||||
setId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountPreferences value2(java.lang.String value) {
|
||||
setUuid(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountPreferences value3(java.lang.Byte value) {
|
||||
setFilterChat(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountPreferences value4(java.lang.Byte value) {
|
||||
setInvisibility(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountPreferences value5(java.lang.Byte value) {
|
||||
setGames(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountPreferences value6(java.lang.Byte value) {
|
||||
setVisibility(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountPreferences value7(java.lang.Byte value) {
|
||||
setFriendChat(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountPreferences value8(java.lang.Byte value) {
|
||||
setPrivateMessaging(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountPreferences value9(java.lang.Byte value) {
|
||||
setShowChat(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountPreferences value10(java.lang.Byte value) {
|
||||
setPartyRequests(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountPreferences value11(java.lang.Byte value) {
|
||||
setForcefield(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountPreferences values(java.lang.Integer value1, java.lang.String value2, java.lang.Byte value3, java.lang.Byte value4, java.lang.Byte value5, java.lang.Byte value6, java.lang.Byte value7, java.lang.Byte value8, java.lang.Byte value9, java.lang.Byte value10, java.lang.Byte value11) {
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached AccountPreferences
|
||||
*/
|
||||
public AccountPreferences() {
|
||||
super(mineplex.database.tables.AccountPreferences.accountPreferences);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised AccountPreferences
|
||||
*/
|
||||
public AccountPreferences(java.lang.Integer id, java.lang.String uuid, java.lang.Byte filterChat, java.lang.Byte invisibility, java.lang.Byte games, java.lang.Byte visibility, java.lang.Byte friendChat, java.lang.Byte privateMessaging, java.lang.Byte showChat, java.lang.Byte partyRequests, java.lang.Byte forcefield) {
|
||||
super(mineplex.database.tables.AccountPreferences.accountPreferences);
|
||||
|
||||
setValue(0, id);
|
||||
setValue(1, uuid);
|
||||
setValue(2, filterChat);
|
||||
setValue(3, invisibility);
|
||||
setValue(4, games);
|
||||
setValue(5, visibility);
|
||||
setValue(6, friendChat);
|
||||
setValue(7, privateMessaging);
|
||||
setValue(8, showChat);
|
||||
setValue(9, partyRequests);
|
||||
setValue(10, forcefield);
|
||||
}
|
||||
}
|
@ -0,0 +1,234 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.tables.records;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class AccountStats extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.AccountStats> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record4<java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer> {
|
||||
|
||||
private static final long serialVersionUID = -802873941;
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountStats.id</code>.
|
||||
*/
|
||||
public void setId(java.lang.Integer value) {
|
||||
setValue(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountStats.id</code>.
|
||||
*/
|
||||
public java.lang.Integer getId() {
|
||||
return (java.lang.Integer) getValue(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountStats.accountId</code>.
|
||||
*/
|
||||
public void setAccountId(java.lang.Integer value) {
|
||||
setValue(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountStats.accountId</code>.
|
||||
*/
|
||||
public java.lang.Integer getAccountId() {
|
||||
return (java.lang.Integer) getValue(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountStats.statId</code>.
|
||||
*/
|
||||
public void setStatId(java.lang.Integer value) {
|
||||
setValue(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountStats.statId</code>.
|
||||
*/
|
||||
public java.lang.Integer getStatId() {
|
||||
return (java.lang.Integer) getValue(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountStats.value</code>.
|
||||
*/
|
||||
public void setValue(java.lang.Integer value) {
|
||||
setValue(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountStats.value</code>.
|
||||
*/
|
||||
public java.lang.Integer getValue() {
|
||||
return (java.lang.Integer) getValue(3);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Record1<java.lang.Integer> key() {
|
||||
return (org.jooq.Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record4 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row4<java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer> fieldsRow() {
|
||||
return (org.jooq.Row4) super.fieldsRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row4<java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer> valuesRow() {
|
||||
return (org.jooq.Row4) super.valuesRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field1() {
|
||||
return mineplex.database.tables.AccountStats.accountStats.id;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field2() {
|
||||
return mineplex.database.tables.AccountStats.accountStats.accountId;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field3() {
|
||||
return mineplex.database.tables.AccountStats.accountStats.statId;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field4() {
|
||||
return mineplex.database.tables.AccountStats.accountStats.value;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value2() {
|
||||
return getAccountId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value3() {
|
||||
return getStatId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value4() {
|
||||
return getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountStats value1(java.lang.Integer value) {
|
||||
setId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountStats value2(java.lang.Integer value) {
|
||||
setAccountId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountStats value3(java.lang.Integer value) {
|
||||
setStatId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountStats value4(java.lang.Integer value) {
|
||||
setValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountStats values(java.lang.Integer value1, java.lang.Integer value2, java.lang.Integer value3, java.lang.Integer value4) {
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached AccountStats
|
||||
*/
|
||||
public AccountStats() {
|
||||
super(mineplex.database.tables.AccountStats.accountStats);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised AccountStats
|
||||
*/
|
||||
public AccountStats(java.lang.Integer id, java.lang.Integer accountId, java.lang.Integer statId, java.lang.Integer value) {
|
||||
super(mineplex.database.tables.AccountStats.accountStats);
|
||||
|
||||
setValue(0, id);
|
||||
setValue(1, accountId);
|
||||
setValue(2, statId);
|
||||
setValue(3, value);
|
||||
}
|
||||
}
|
@ -0,0 +1,434 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.tables.records;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class Accounts extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.Accounts> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record9<java.lang.Integer, java.lang.String, java.lang.String, java.lang.Integer, java.lang.String, java.lang.Byte, java.lang.String, java.lang.String, java.lang.String> {
|
||||
|
||||
private static final long serialVersionUID = -1222920421;
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accounts.id</code>.
|
||||
*/
|
||||
public void setId(java.lang.Integer value) {
|
||||
setValue(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accounts.id</code>.
|
||||
*/
|
||||
public java.lang.Integer getId() {
|
||||
return (java.lang.Integer) getValue(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accounts.uuid</code>.
|
||||
*/
|
||||
public void setUuid(java.lang.String value) {
|
||||
setValue(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accounts.uuid</code>.
|
||||
*/
|
||||
public java.lang.String getUuid() {
|
||||
return (java.lang.String) getValue(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accounts.name</code>.
|
||||
*/
|
||||
public void setName(java.lang.String value) {
|
||||
setValue(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accounts.name</code>.
|
||||
*/
|
||||
public java.lang.String getName() {
|
||||
return (java.lang.String) getValue(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accounts.gems</code>.
|
||||
*/
|
||||
public void setGems(java.lang.Integer value) {
|
||||
setValue(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accounts.gems</code>.
|
||||
*/
|
||||
public java.lang.Integer getGems() {
|
||||
return (java.lang.Integer) getValue(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accounts.rank</code>.
|
||||
*/
|
||||
public void setRank(java.lang.String value) {
|
||||
setValue(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accounts.rank</code>.
|
||||
*/
|
||||
public java.lang.String getRank() {
|
||||
return (java.lang.String) getValue(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accounts.rankPerm</code>.
|
||||
*/
|
||||
public void setRankPerm(java.lang.Byte value) {
|
||||
setValue(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accounts.rankPerm</code>.
|
||||
*/
|
||||
public java.lang.Byte getRankPerm() {
|
||||
return (java.lang.Byte) getValue(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accounts.rankExpire</code>.
|
||||
*/
|
||||
public void setRankExpire(java.lang.String value) {
|
||||
setValue(6, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accounts.rankExpire</code>.
|
||||
*/
|
||||
public java.lang.String getRankExpire() {
|
||||
return (java.lang.String) getValue(6);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accounts.lastLogin</code>.
|
||||
*/
|
||||
public void setLastLogin(java.lang.String value) {
|
||||
setValue(7, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accounts.lastLogin</code>.
|
||||
*/
|
||||
public java.lang.String getLastLogin() {
|
||||
return (java.lang.String) getValue(7);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accounts.totalPlayTime</code>.
|
||||
*/
|
||||
public void setTotalPlayTime(java.lang.String value) {
|
||||
setValue(8, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accounts.totalPlayTime</code>.
|
||||
*/
|
||||
public java.lang.String getTotalPlayTime() {
|
||||
return (java.lang.String) getValue(8);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Record1<java.lang.Integer> key() {
|
||||
return (org.jooq.Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record9 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row9<java.lang.Integer, java.lang.String, java.lang.String, java.lang.Integer, java.lang.String, java.lang.Byte, java.lang.String, java.lang.String, java.lang.String> fieldsRow() {
|
||||
return (org.jooq.Row9) super.fieldsRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row9<java.lang.Integer, java.lang.String, java.lang.String, java.lang.Integer, java.lang.String, java.lang.Byte, java.lang.String, java.lang.String, java.lang.String> valuesRow() {
|
||||
return (org.jooq.Row9) super.valuesRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field1() {
|
||||
return mineplex.database.tables.Accounts.accounts.id;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field2() {
|
||||
return mineplex.database.tables.Accounts.accounts.uuid;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field3() {
|
||||
return mineplex.database.tables.Accounts.accounts.name;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field4() {
|
||||
return mineplex.database.tables.Accounts.accounts.gems;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field5() {
|
||||
return mineplex.database.tables.Accounts.accounts.rank;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Byte> field6() {
|
||||
return mineplex.database.tables.Accounts.accounts.rankPerm;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field7() {
|
||||
return mineplex.database.tables.Accounts.accounts.rankExpire;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field8() {
|
||||
return mineplex.database.tables.Accounts.accounts.lastLogin;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field9() {
|
||||
return mineplex.database.tables.Accounts.accounts.totalPlayTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value2() {
|
||||
return getUuid();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value3() {
|
||||
return getName();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value4() {
|
||||
return getGems();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value5() {
|
||||
return getRank();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Byte value6() {
|
||||
return getRankPerm();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value7() {
|
||||
return getRankExpire();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value8() {
|
||||
return getLastLogin();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value9() {
|
||||
return getTotalPlayTime();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Accounts value1(java.lang.Integer value) {
|
||||
setId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Accounts value2(java.lang.String value) {
|
||||
setUuid(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Accounts value3(java.lang.String value) {
|
||||
setName(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Accounts value4(java.lang.Integer value) {
|
||||
setGems(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Accounts value5(java.lang.String value) {
|
||||
setRank(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Accounts value6(java.lang.Byte value) {
|
||||
setRankPerm(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Accounts value7(java.lang.String value) {
|
||||
setRankExpire(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Accounts value8(java.lang.String value) {
|
||||
setLastLogin(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Accounts value9(java.lang.String value) {
|
||||
setTotalPlayTime(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Accounts values(java.lang.Integer value1, java.lang.String value2, java.lang.String value3, java.lang.Integer value4, java.lang.String value5, java.lang.Byte value6, java.lang.String value7, java.lang.String value8, java.lang.String value9) {
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached Accounts
|
||||
*/
|
||||
public Accounts() {
|
||||
super(mineplex.database.tables.Accounts.accounts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised Accounts
|
||||
*/
|
||||
public Accounts(java.lang.Integer id, java.lang.String uuid, java.lang.String name, java.lang.Integer gems, java.lang.String rank, java.lang.Byte rankPerm, java.lang.String rankExpire, java.lang.String lastLogin, java.lang.String totalPlayTime) {
|
||||
super(mineplex.database.tables.Accounts.accounts);
|
||||
|
||||
setValue(0, id);
|
||||
setValue(1, uuid);
|
||||
setValue(2, name);
|
||||
setValue(3, gems);
|
||||
setValue(4, rank);
|
||||
setValue(5, rankPerm);
|
||||
setValue(6, rankExpire);
|
||||
setValue(7, lastLogin);
|
||||
setValue(8, totalPlayTime);
|
||||
}
|
||||
}
|
@ -0,0 +1,154 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.tables.records;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class ItemCategories extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.ItemCategories> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record2<java.lang.Integer, java.lang.String> {
|
||||
|
||||
private static final long serialVersionUID = -374955621;
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.itemCategories.id</code>.
|
||||
*/
|
||||
public void setId(java.lang.Integer value) {
|
||||
setValue(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.itemCategories.id</code>.
|
||||
*/
|
||||
public java.lang.Integer getId() {
|
||||
return (java.lang.Integer) getValue(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.itemCategories.name</code>.
|
||||
*/
|
||||
public void setName(java.lang.String value) {
|
||||
setValue(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.itemCategories.name</code>.
|
||||
*/
|
||||
public java.lang.String getName() {
|
||||
return (java.lang.String) getValue(1);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Record1<java.lang.Integer> key() {
|
||||
return (org.jooq.Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record2 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row2<java.lang.Integer, java.lang.String> fieldsRow() {
|
||||
return (org.jooq.Row2) super.fieldsRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row2<java.lang.Integer, java.lang.String> valuesRow() {
|
||||
return (org.jooq.Row2) super.valuesRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field1() {
|
||||
return mineplex.database.tables.ItemCategories.itemCategories.id;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field2() {
|
||||
return mineplex.database.tables.ItemCategories.itemCategories.name;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value2() {
|
||||
return getName();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public ItemCategories value1(java.lang.Integer value) {
|
||||
setId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public ItemCategories value2(java.lang.String value) {
|
||||
setName(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public ItemCategories values(java.lang.Integer value1, java.lang.String value2) {
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached ItemCategories
|
||||
*/
|
||||
public ItemCategories() {
|
||||
super(mineplex.database.tables.ItemCategories.itemCategories);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised ItemCategories
|
||||
*/
|
||||
public ItemCategories(java.lang.Integer id, java.lang.String name) {
|
||||
super(mineplex.database.tables.ItemCategories.itemCategories);
|
||||
|
||||
setValue(0, id);
|
||||
setValue(1, name);
|
||||
}
|
||||
}
|
@ -0,0 +1,234 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.tables.records;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class Items extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.Items> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record4<java.lang.Integer, java.lang.String, java.lang.Integer, java.lang.Integer> {
|
||||
|
||||
private static final long serialVersionUID = -1795250209;
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.items.id</code>.
|
||||
*/
|
||||
public void setId(java.lang.Integer value) {
|
||||
setValue(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.items.id</code>.
|
||||
*/
|
||||
public java.lang.Integer getId() {
|
||||
return (java.lang.Integer) getValue(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.items.name</code>.
|
||||
*/
|
||||
public void setName(java.lang.String value) {
|
||||
setValue(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.items.name</code>.
|
||||
*/
|
||||
public java.lang.String getName() {
|
||||
return (java.lang.String) getValue(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.items.categoryId</code>.
|
||||
*/
|
||||
public void setCategoryId(java.lang.Integer value) {
|
||||
setValue(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.items.categoryId</code>.
|
||||
*/
|
||||
public java.lang.Integer getCategoryId() {
|
||||
return (java.lang.Integer) getValue(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.items.rarity</code>.
|
||||
*/
|
||||
public void setRarity(java.lang.Integer value) {
|
||||
setValue(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.items.rarity</code>.
|
||||
*/
|
||||
public java.lang.Integer getRarity() {
|
||||
return (java.lang.Integer) getValue(3);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Record1<java.lang.Integer> key() {
|
||||
return (org.jooq.Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record4 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row4<java.lang.Integer, java.lang.String, java.lang.Integer, java.lang.Integer> fieldsRow() {
|
||||
return (org.jooq.Row4) super.fieldsRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row4<java.lang.Integer, java.lang.String, java.lang.Integer, java.lang.Integer> valuesRow() {
|
||||
return (org.jooq.Row4) super.valuesRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field1() {
|
||||
return mineplex.database.tables.Items.items.id;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field2() {
|
||||
return mineplex.database.tables.Items.items.name;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field3() {
|
||||
return mineplex.database.tables.Items.items.categoryId;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field4() {
|
||||
return mineplex.database.tables.Items.items.rarity;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value2() {
|
||||
return getName();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value3() {
|
||||
return getCategoryId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value4() {
|
||||
return getRarity();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Items value1(java.lang.Integer value) {
|
||||
setId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Items value2(java.lang.String value) {
|
||||
setName(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Items value3(java.lang.Integer value) {
|
||||
setCategoryId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Items value4(java.lang.Integer value) {
|
||||
setRarity(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Items values(java.lang.Integer value1, java.lang.String value2, java.lang.Integer value3, java.lang.Integer value4) {
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached Items
|
||||
*/
|
||||
public Items() {
|
||||
super(mineplex.database.tables.Items.items);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised Items
|
||||
*/
|
||||
public Items(java.lang.Integer id, java.lang.String name, java.lang.Integer categoryId, java.lang.Integer rarity) {
|
||||
super(mineplex.database.tables.Items.items);
|
||||
|
||||
setValue(0, id);
|
||||
setValue(1, name);
|
||||
setValue(2, categoryId);
|
||||
setValue(3, rarity);
|
||||
}
|
||||
}
|
@ -0,0 +1,234 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.tables.records;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class PlayerMap extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.PlayerMap> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record4<java.lang.Integer, java.lang.String, java.lang.String, java.lang.Byte> {
|
||||
|
||||
private static final long serialVersionUID = -1149558408;
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.playerMap.id</code>.
|
||||
*/
|
||||
public void setId(java.lang.Integer value) {
|
||||
setValue(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.playerMap.id</code>.
|
||||
*/
|
||||
public java.lang.Integer getId() {
|
||||
return (java.lang.Integer) getValue(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.playerMap.playerName</code>.
|
||||
*/
|
||||
public void setPlayerName(java.lang.String value) {
|
||||
setValue(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.playerMap.playerName</code>.
|
||||
*/
|
||||
public java.lang.String getPlayerName() {
|
||||
return (java.lang.String) getValue(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.playerMap.serverName</code>.
|
||||
*/
|
||||
public void setServerName(java.lang.String value) {
|
||||
setValue(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.playerMap.serverName</code>.
|
||||
*/
|
||||
public java.lang.String getServerName() {
|
||||
return (java.lang.String) getValue(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.playerMap.us</code>.
|
||||
*/
|
||||
public void setUs(java.lang.Byte value) {
|
||||
setValue(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.playerMap.us</code>.
|
||||
*/
|
||||
public java.lang.Byte getUs() {
|
||||
return (java.lang.Byte) getValue(3);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Record1<java.lang.Integer> key() {
|
||||
return (org.jooq.Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record4 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row4<java.lang.Integer, java.lang.String, java.lang.String, java.lang.Byte> fieldsRow() {
|
||||
return (org.jooq.Row4) super.fieldsRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row4<java.lang.Integer, java.lang.String, java.lang.String, java.lang.Byte> valuesRow() {
|
||||
return (org.jooq.Row4) super.valuesRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field1() {
|
||||
return mineplex.database.tables.PlayerMap.playerMap.id;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field2() {
|
||||
return mineplex.database.tables.PlayerMap.playerMap.playerName;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field3() {
|
||||
return mineplex.database.tables.PlayerMap.playerMap.serverName;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Byte> field4() {
|
||||
return mineplex.database.tables.PlayerMap.playerMap.us;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value2() {
|
||||
return getPlayerName();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value3() {
|
||||
return getServerName();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Byte value4() {
|
||||
return getUs();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public PlayerMap value1(java.lang.Integer value) {
|
||||
setId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public PlayerMap value2(java.lang.String value) {
|
||||
setPlayerName(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public PlayerMap value3(java.lang.String value) {
|
||||
setServerName(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public PlayerMap value4(java.lang.Byte value) {
|
||||
setUs(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public PlayerMap values(java.lang.Integer value1, java.lang.String value2, java.lang.String value3, java.lang.Byte value4) {
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached PlayerMap
|
||||
*/
|
||||
public PlayerMap() {
|
||||
super(mineplex.database.tables.PlayerMap.playerMap);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised PlayerMap
|
||||
*/
|
||||
public PlayerMap(java.lang.Integer id, java.lang.String playerName, java.lang.String serverName, java.lang.Byte us) {
|
||||
super(mineplex.database.tables.PlayerMap.playerMap);
|
||||
|
||||
setValue(0, id);
|
||||
setValue(1, playerName);
|
||||
setValue(2, serverName);
|
||||
setValue(3, us);
|
||||
}
|
||||
}
|
@ -0,0 +1,394 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.tables.records;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class Polls extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.Polls> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record8<java.lang.Integer, java.lang.Boolean, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Integer> {
|
||||
|
||||
private static final long serialVersionUID = 1807349031;
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.polls.id</code>.
|
||||
*/
|
||||
public void setId(java.lang.Integer value) {
|
||||
setValue(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.polls.id</code>.
|
||||
*/
|
||||
public java.lang.Integer getId() {
|
||||
return (java.lang.Integer) getValue(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.polls.enabled</code>.
|
||||
*/
|
||||
public void setEnabled(java.lang.Boolean value) {
|
||||
setValue(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.polls.enabled</code>.
|
||||
*/
|
||||
public java.lang.Boolean getEnabled() {
|
||||
return (java.lang.Boolean) getValue(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.polls.question</code>.
|
||||
*/
|
||||
public void setQuestion(java.lang.String value) {
|
||||
setValue(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.polls.question</code>.
|
||||
*/
|
||||
public java.lang.String getQuestion() {
|
||||
return (java.lang.String) getValue(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.polls.answerA</code>.
|
||||
*/
|
||||
public void setAnswerA(java.lang.String value) {
|
||||
setValue(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.polls.answerA</code>.
|
||||
*/
|
||||
public java.lang.String getAnswerA() {
|
||||
return (java.lang.String) getValue(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.polls.answerB</code>.
|
||||
*/
|
||||
public void setAnswerB(java.lang.String value) {
|
||||
setValue(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.polls.answerB</code>.
|
||||
*/
|
||||
public java.lang.String getAnswerB() {
|
||||
return (java.lang.String) getValue(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.polls.answerC</code>.
|
||||
*/
|
||||
public void setAnswerC(java.lang.String value) {
|
||||
setValue(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.polls.answerC</code>.
|
||||
*/
|
||||
public java.lang.String getAnswerC() {
|
||||
return (java.lang.String) getValue(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.polls.answerD</code>.
|
||||
*/
|
||||
public void setAnswerD(java.lang.String value) {
|
||||
setValue(6, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.polls.answerD</code>.
|
||||
*/
|
||||
public java.lang.String getAnswerD() {
|
||||
return (java.lang.String) getValue(6);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.polls.coinReward</code>.
|
||||
*/
|
||||
public void setCoinReward(java.lang.Integer value) {
|
||||
setValue(7, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.polls.coinReward</code>.
|
||||
*/
|
||||
public java.lang.Integer getCoinReward() {
|
||||
return (java.lang.Integer) getValue(7);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Record1<java.lang.Integer> key() {
|
||||
return (org.jooq.Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record8 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row8<java.lang.Integer, java.lang.Boolean, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Integer> fieldsRow() {
|
||||
return (org.jooq.Row8) super.fieldsRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row8<java.lang.Integer, java.lang.Boolean, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Integer> valuesRow() {
|
||||
return (org.jooq.Row8) super.valuesRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field1() {
|
||||
return mineplex.database.tables.Polls.polls.id;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Boolean> field2() {
|
||||
return mineplex.database.tables.Polls.polls.enabled;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field3() {
|
||||
return mineplex.database.tables.Polls.polls.question;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field4() {
|
||||
return mineplex.database.tables.Polls.polls.answerA;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field5() {
|
||||
return mineplex.database.tables.Polls.polls.answerB;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field6() {
|
||||
return mineplex.database.tables.Polls.polls.answerC;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field7() {
|
||||
return mineplex.database.tables.Polls.polls.answerD;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field8() {
|
||||
return mineplex.database.tables.Polls.polls.coinReward;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Boolean value2() {
|
||||
return getEnabled();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value3() {
|
||||
return getQuestion();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value4() {
|
||||
return getAnswerA();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value5() {
|
||||
return getAnswerB();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value6() {
|
||||
return getAnswerC();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value7() {
|
||||
return getAnswerD();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value8() {
|
||||
return getCoinReward();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Polls value1(java.lang.Integer value) {
|
||||
setId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Polls value2(java.lang.Boolean value) {
|
||||
setEnabled(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Polls value3(java.lang.String value) {
|
||||
setQuestion(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Polls value4(java.lang.String value) {
|
||||
setAnswerA(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Polls value5(java.lang.String value) {
|
||||
setAnswerB(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Polls value6(java.lang.String value) {
|
||||
setAnswerC(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Polls value7(java.lang.String value) {
|
||||
setAnswerD(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Polls value8(java.lang.Integer value) {
|
||||
setCoinReward(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Polls values(java.lang.Integer value1, java.lang.Boolean value2, java.lang.String value3, java.lang.String value4, java.lang.String value5, java.lang.String value6, java.lang.String value7, java.lang.Integer value8) {
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached Polls
|
||||
*/
|
||||
public Polls() {
|
||||
super(mineplex.database.tables.Polls.polls);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised Polls
|
||||
*/
|
||||
public Polls(java.lang.Integer id, java.lang.Boolean enabled, java.lang.String question, java.lang.String answerA, java.lang.String answerB, java.lang.String answerC, java.lang.String answerD, java.lang.Integer coinReward) {
|
||||
super(mineplex.database.tables.Polls.polls);
|
||||
|
||||
setValue(0, id);
|
||||
setValue(1, enabled);
|
||||
setValue(2, question);
|
||||
setValue(3, answerA);
|
||||
setValue(4, answerB);
|
||||
setValue(5, answerC);
|
||||
setValue(6, answerD);
|
||||
setValue(7, coinReward);
|
||||
}
|
||||
}
|
@ -0,0 +1,154 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.tables.records;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class Stats extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.Stats> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record2<java.lang.Integer, java.lang.String> {
|
||||
|
||||
private static final long serialVersionUID = 1558297009;
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.stats.id</code>.
|
||||
*/
|
||||
public void setId(java.lang.Integer value) {
|
||||
setValue(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.stats.id</code>.
|
||||
*/
|
||||
public java.lang.Integer getId() {
|
||||
return (java.lang.Integer) getValue(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.stats.name</code>.
|
||||
*/
|
||||
public void setName(java.lang.String value) {
|
||||
setValue(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.stats.name</code>.
|
||||
*/
|
||||
public java.lang.String getName() {
|
||||
return (java.lang.String) getValue(1);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Record1<java.lang.Integer> key() {
|
||||
return (org.jooq.Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record2 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row2<java.lang.Integer, java.lang.String> fieldsRow() {
|
||||
return (org.jooq.Row2) super.fieldsRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row2<java.lang.Integer, java.lang.String> valuesRow() {
|
||||
return (org.jooq.Row2) super.valuesRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field1() {
|
||||
return mineplex.database.tables.Stats.stats.id;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field2() {
|
||||
return mineplex.database.tables.Stats.stats.name;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value2() {
|
||||
return getName();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Stats value1(java.lang.Integer value) {
|
||||
setId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Stats value2(java.lang.String value) {
|
||||
setName(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Stats values(java.lang.Integer value1, java.lang.String value2) {
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached Stats
|
||||
*/
|
||||
public Stats() {
|
||||
super(mineplex.database.tables.Stats.stats);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised Stats
|
||||
*/
|
||||
public Stats(java.lang.Integer id, java.lang.String name) {
|
||||
super(mineplex.database.tables.Stats.stats);
|
||||
|
||||
setValue(0, id);
|
||||
setValue(1, name);
|
||||
}
|
||||
}
|
@ -0,0 +1,354 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.tables.records;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class TournamentLeaderboard extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.TournamentLeaderboard> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record7<java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Double> {
|
||||
|
||||
private static final long serialVersionUID = -1193236965;
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.tournamentLeaderboard.id</code>.
|
||||
*/
|
||||
public void setId(java.lang.Integer value) {
|
||||
setValue(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.tournamentLeaderboard.id</code>.
|
||||
*/
|
||||
public java.lang.Integer getId() {
|
||||
return (java.lang.Integer) getValue(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.tournamentLeaderboard.tournamentId</code>.
|
||||
*/
|
||||
public void setTournamentId(java.lang.Integer value) {
|
||||
setValue(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.tournamentLeaderboard.tournamentId</code>.
|
||||
*/
|
||||
public java.lang.Integer getTournamentId() {
|
||||
return (java.lang.Integer) getValue(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.tournamentLeaderboard.accountId</code>.
|
||||
*/
|
||||
public void setAccountId(java.lang.Integer value) {
|
||||
setValue(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.tournamentLeaderboard.accountId</code>.
|
||||
*/
|
||||
public java.lang.Integer getAccountId() {
|
||||
return (java.lang.Integer) getValue(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.tournamentLeaderboard.gameId</code>.
|
||||
*/
|
||||
public void setGameId(java.lang.Integer value) {
|
||||
setValue(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.tournamentLeaderboard.gameId</code>.
|
||||
*/
|
||||
public java.lang.Integer getGameId() {
|
||||
return (java.lang.Integer) getValue(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.tournamentLeaderboard.wins</code>.
|
||||
*/
|
||||
public void setWins(java.lang.Integer value) {
|
||||
setValue(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.tournamentLeaderboard.wins</code>.
|
||||
*/
|
||||
public java.lang.Integer getWins() {
|
||||
return (java.lang.Integer) getValue(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.tournamentLeaderboard.total</code>.
|
||||
*/
|
||||
public void setTotal(java.lang.Integer value) {
|
||||
setValue(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.tournamentLeaderboard.total</code>.
|
||||
*/
|
||||
public java.lang.Integer getTotal() {
|
||||
return (java.lang.Integer) getValue(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.tournamentLeaderboard.ratio</code>.
|
||||
*/
|
||||
public void setRatio(java.lang.Double value) {
|
||||
setValue(6, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.tournamentLeaderboard.ratio</code>.
|
||||
*/
|
||||
public java.lang.Double getRatio() {
|
||||
return (java.lang.Double) getValue(6);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Record1<java.lang.Integer> key() {
|
||||
return (org.jooq.Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record7 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row7<java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Double> fieldsRow() {
|
||||
return (org.jooq.Row7) super.fieldsRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row7<java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Double> valuesRow() {
|
||||
return (org.jooq.Row7) super.valuesRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field1() {
|
||||
return mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard.id;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field2() {
|
||||
return mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard.tournamentId;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field3() {
|
||||
return mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard.accountId;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field4() {
|
||||
return mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard.gameId;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field5() {
|
||||
return mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard.wins;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field6() {
|
||||
return mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard.total;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Double> field7() {
|
||||
return mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard.ratio;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value2() {
|
||||
return getTournamentId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value3() {
|
||||
return getAccountId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value4() {
|
||||
return getGameId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value5() {
|
||||
return getWins();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value6() {
|
||||
return getTotal();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Double value7() {
|
||||
return getRatio();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public TournamentLeaderboard value1(java.lang.Integer value) {
|
||||
setId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public TournamentLeaderboard value2(java.lang.Integer value) {
|
||||
setTournamentId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public TournamentLeaderboard value3(java.lang.Integer value) {
|
||||
setAccountId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public TournamentLeaderboard value4(java.lang.Integer value) {
|
||||
setGameId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public TournamentLeaderboard value5(java.lang.Integer value) {
|
||||
setWins(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public TournamentLeaderboard value6(java.lang.Integer value) {
|
||||
setTotal(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public TournamentLeaderboard value7(java.lang.Double value) {
|
||||
setRatio(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public TournamentLeaderboard values(java.lang.Integer value1, java.lang.Integer value2, java.lang.Integer value3, java.lang.Integer value4, java.lang.Integer value5, java.lang.Integer value6, java.lang.Double value7) {
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached TournamentLeaderboard
|
||||
*/
|
||||
public TournamentLeaderboard() {
|
||||
super(mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised TournamentLeaderboard
|
||||
*/
|
||||
public TournamentLeaderboard(java.lang.Integer id, java.lang.Integer tournamentId, java.lang.Integer accountId, java.lang.Integer gameId, java.lang.Integer wins, java.lang.Integer total, java.lang.Double ratio) {
|
||||
super(mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard);
|
||||
|
||||
setValue(0, id);
|
||||
setValue(1, tournamentId);
|
||||
setValue(2, accountId);
|
||||
setValue(3, gameId);
|
||||
setValue(4, wins);
|
||||
setValue(5, total);
|
||||
setValue(6, ratio);
|
||||
}
|
||||
}
|
@ -0,0 +1,126 @@
|
||||
package mineplex.jooq;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import org.jooq.util.DefaultGeneratorStrategy;
|
||||
import org.jooq.util.Definition;
|
||||
|
||||
/**
|
||||
* It is recommended that you extend the DefaultGeneratorStrategy. Most of the
|
||||
* GeneratorStrategy API is already declared final. You only need to override any
|
||||
* of the following methods, for whatever generation behaviour you'd like to achieve
|
||||
* <p/>
|
||||
* Beware that most methods also receive a "Mode" object, to tell you whether a
|
||||
* TableDefinition is being rendered as a Table, Record, POJO, etc. Depending on
|
||||
* that information, you can add a suffix only for TableRecords, not for Tables
|
||||
*/
|
||||
public class AsInDatabaseStrategy extends DefaultGeneratorStrategy
|
||||
{
|
||||
/**
|
||||
* Override this to specify what identifiers in Java should look like.
|
||||
* This will just take the identifier as defined in the database.
|
||||
*/
|
||||
@Override
|
||||
public String getJavaIdentifier(Definition definition)
|
||||
{
|
||||
return definition.getOutputName();
|
||||
}
|
||||
|
||||
/**
|
||||
* Override these to specify what a setter in Java should look like. Setters
|
||||
* are used in TableRecords, UDTRecords, and POJOs. This example will name
|
||||
* setters "set[NAME_IN_DATABASE]"
|
||||
*/
|
||||
@Override
|
||||
public String getJavaSetterName(Definition definition, Mode mode)
|
||||
{
|
||||
return "set" + definition.getOutputName().substring(0, 1).toUpperCase() + definition.getOutputName().substring(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Just like setters...
|
||||
*/
|
||||
@Override
|
||||
public String getJavaGetterName(Definition definition, Mode mode)
|
||||
{
|
||||
return "get" + definition.getOutputName().substring(0, 1).toUpperCase() + definition.getOutputName().substring(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Override this method to define what a Java method generated from a database
|
||||
* Definition should look like. This is used mostly for convenience methods
|
||||
* when calling stored procedures and functions. This example shows how to
|
||||
* set a prefix to a CamelCase version of your procedure
|
||||
*/
|
||||
@Override
|
||||
public String getJavaMethodName(Definition definition, Mode mode)
|
||||
{
|
||||
return "call" + org.jooq.tools.StringUtils.toCamelCase(definition.getOutputName());
|
||||
}
|
||||
|
||||
/**
|
||||
* Override this method to define how your Java classes and Java files should
|
||||
* be named. This example applies no custom setting and uses CamelCase versions
|
||||
* instead
|
||||
*/
|
||||
@Override
|
||||
public String getJavaClassName(Definition definition, Mode mode)
|
||||
{
|
||||
return definition.getOutputName().substring(0, 1).toUpperCase() + definition.getOutputName().substring(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Override this method to re-define the package names of your generated
|
||||
* artefacts.
|
||||
*/
|
||||
@Override
|
||||
public String getJavaPackageName(Definition definition, Mode mode)
|
||||
{
|
||||
return super.getJavaPackageName(definition, mode);
|
||||
}
|
||||
|
||||
/**
|
||||
* Override this method to define how Java members should be named. This is
|
||||
* used for POJOs and method arguments
|
||||
*/
|
||||
@Override
|
||||
public String getJavaMemberName(Definition definition, Mode mode)
|
||||
{
|
||||
return definition.getOutputName();
|
||||
}
|
||||
|
||||
/**
|
||||
* Override this method to define the base class for those artifacts that
|
||||
* allow for custom base classes
|
||||
*/
|
||||
@Override
|
||||
public String getJavaClassExtends(Definition definition, Mode mode)
|
||||
{
|
||||
return Object.class.getName();
|
||||
}
|
||||
|
||||
/**
|
||||
* Override this method to define the interfaces to be implemented by those
|
||||
* artefacts that allow for custom interface implementation
|
||||
*/
|
||||
@Override
|
||||
public List<String> getJavaClassImplements(Definition definition, Mode mode)
|
||||
{
|
||||
return Arrays.asList(Serializable.class.getName(), Cloneable.class.getName());
|
||||
}
|
||||
|
||||
/**
|
||||
* Override this method to define the suffix to apply to routines when
|
||||
* they are overloaded.
|
||||
* <p/>
|
||||
* Use this to resolve compile-time conflicts in generated source code, in
|
||||
* case you make heavy use of procedure overloading
|
||||
*/
|
||||
@Override
|
||||
public String getOverloadSuffix(Definition definition, Mode mode, String overloadIndex)
|
||||
{
|
||||
return "_OverloadIndex_" + overloadIndex;
|
||||
}
|
||||
}
|
@ -1,10 +1,9 @@
|
||||
package mineplex.hub;
|
||||
|
||||
import net.minecraft.server.v1_7_R4.MinecraftServer;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
import mineplex.core.CustomTagFix;
|
||||
import mineplex.core.account.CoreClientManager;
|
||||
import mineplex.core.antihack.AntiHack;
|
||||
import mineplex.core.antistack.AntiStack;
|
||||
@ -92,12 +91,12 @@ public class Hub extends JavaPlugin implements IRelation
|
||||
|
||||
//Main Modules
|
||||
ServerStatusManager serverStatusManager = new ServerStatusManager(this, new LagMeter(this, clientManager));
|
||||
PacketHandler packetHandler = new PacketHandler(this);
|
||||
//new FriendManager(this, packetHandler);
|
||||
PartyManager partyManager = new PartyManager(this, clientManager, preferenceManager);
|
||||
Portal portal = new Portal(this, serverStatusManager.getCurrentServerName());
|
||||
AntiHack.Initialize(this, punish, portal);
|
||||
HubManager hubManager = new HubManager(this, new BlockRestore(this), clientManager, donationManager, new ConditionManager(this), new DisguiseManager(this, packetHandler), new TaskManager(this, webServerAddress), portal, partyManager, preferenceManager, petManager, pollManager);
|
||||
DisguiseManager disguiseManager = new DisguiseManager(this);
|
||||
HubManager hubManager = new HubManager(this, new BlockRestore(this), clientManager, donationManager, new ConditionManager(this), disguiseManager, new TaskManager(this, webServerAddress), portal, partyManager, preferenceManager, petManager, pollManager);
|
||||
new PlayerTracker(this, serverStatusManager.getCurrentServerName(), serverStatusManager.getUs());
|
||||
|
||||
QueueManager queueManager = new QueueManager(this, clientManager, donationManager, new EloManager(this), partyManager);
|
||||
@ -106,13 +105,15 @@ public class Hub extends JavaPlugin implements IRelation
|
||||
new Chat(this, clientManager, preferenceManager, serverStatusManager.getCurrentServerName());
|
||||
new MemoryFix(this);
|
||||
new FileUpdater(this, portal);
|
||||
new CustomTagFix(this);
|
||||
new PacketHandler(this);
|
||||
|
||||
CombatManager combatManager = new CombatManager(this);
|
||||
BlockRestore blockRestore = new BlockRestore(this);
|
||||
ProjectileManager throwManager = new ProjectileManager(this);
|
||||
SkillConditionManager conditionManager = new SkillConditionManager(this);
|
||||
|
||||
DamageManager damage = new DamageManager(this, combatManager, npcManager, new DisguiseManager(this, packetHandler));
|
||||
DamageManager damage = new DamageManager(this, combatManager, npcManager, disguiseManager);
|
||||
Fire fire = new Fire(this, conditionManager, damage);
|
||||
Teleport teleport = new Teleport(this, clientManager, new Spawn(this));
|
||||
Energy energy = new Energy(this);
|
||||
|
@ -54,7 +54,6 @@ import mineplex.core.common.util.UtilPlayer;
|
||||
import mineplex.core.common.util.UtilServer;
|
||||
import mineplex.core.common.util.UtilTime;
|
||||
import mineplex.core.common.util.UtilWorld;
|
||||
import mineplex.core.treasure.TreasureManager;
|
||||
import mineplex.minecraft.game.core.condition.ConditionManager;
|
||||
import mineplex.core.cosmetic.CosmeticManager;
|
||||
import mineplex.core.disguise.DisguiseManager;
|
||||
@ -115,7 +114,6 @@ public class HubManager extends MiniClientPlugin<HubClient>
|
||||
private InventoryManager _inventoryManager;
|
||||
private NewsManager _news;
|
||||
private AchievementManager _achievementManager;
|
||||
private PollManager _pollManager;
|
||||
|
||||
private Location _spawn;
|
||||
private int _scoreboardTick = 0;
|
||||
@ -164,7 +162,6 @@ public class HubManager extends MiniClientPlugin<HubClient>
|
||||
|
||||
_partyManager = partyManager;
|
||||
_preferences = preferences;
|
||||
_pollManager = pollManager;
|
||||
_tutorialManager = new TutorialManager(this, donationManager, taskManager, _textCreator);
|
||||
_visibilityManager = new VisibilityManager(this);
|
||||
|
||||
|
@ -42,6 +42,7 @@ public class ServerGameMenu extends ShopPageBase<ServerManager, QuickShop>
|
||||
BuildPage();
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Override
|
||||
protected void BuildPage()
|
||||
{
|
||||
@ -118,6 +119,7 @@ public class ServerGameMenu extends ShopPageBase<ServerManager, QuickShop>
|
||||
ButtonMap.put(26, new SelectMINButton(this));
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
private void createMinigameCycle()
|
||||
{
|
||||
_minigameCycle.add(ItemStackFactory.Instance.CreateStack(98, (byte)0, 1, ChatColor.RESET + C.Bold + ChatColor.YELLOW + "Arcade " + C.cGray + "Mixed Games", new String []
|
||||
|
@ -25,7 +25,6 @@ import mineplex.hub.server.ui.button.JoinServerButton;
|
||||
public class ServerNpcPage extends ShopPageBase<ServerManager, ServerNpcShop> implements IServerPage
|
||||
{
|
||||
// Shop Item Messages
|
||||
private static final String MESSAGE_SHOP_URL = ChatColor.RESET + "www.mineplex.com/shop";
|
||||
private static final String MESSAGE_BETA_GET_ULTRA = ChatColor.RESET + C.Line + "Get Ultra to join Beta servers!";
|
||||
private static final String MESSAGE_JOIN = ChatColor.RESET + C.Line + "Click to Join";
|
||||
private static final String MESSAGE_IN_PROGRESS = ChatColor.RESET + C.Line + "Game in Progress.";
|
||||
|
@ -8,6 +8,7 @@ import java.io.FileInputStream;
|
||||
import java.io.FileWriter;
|
||||
import java.io.InputStreamReader;
|
||||
|
||||
import mineplex.core.CustomTagFix;
|
||||
import mineplex.core.account.CoreClientManager;
|
||||
import mineplex.core.antihack.AntiHack;
|
||||
import mineplex.core.antistack.AntiStack;
|
||||
@ -44,7 +45,6 @@ import mineplex.core.updater.Updater;
|
||||
import mineplex.minecraft.game.core.combat.CombatManager;
|
||||
import mineplex.minecraft.game.core.damage.DamageManager;
|
||||
import nautilus.game.arcade.game.GameServerConfig;
|
||||
import net.minecraft.server.*;
|
||||
import net.minecraft.server.v1_7_R4.MinecraftServer;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
@ -97,8 +97,7 @@ public class Arcade extends JavaPlugin
|
||||
Portal portal = new Portal(this, serverStatusManager.getCurrentServerName());
|
||||
new FileUpdater(this, portal);
|
||||
|
||||
PacketHandler packetHandler = new PacketHandler(this);
|
||||
DisguiseManager disguiseManager = new DisguiseManager(this, packetHandler);
|
||||
DisguiseManager disguiseManager = new DisguiseManager(this);
|
||||
|
||||
_damageManager = new DamageManager(this, new CombatManager(this), new NpcManager(this, creature), disguiseManager);
|
||||
|
||||
@ -116,9 +115,11 @@ public class Arcade extends JavaPlugin
|
||||
GadgetManager gadgetManager = new GadgetManager(this, _clientManager, _donationManager, inventoryManager, mountManager, petManager, preferenceManager, disguiseManager, blockRestore, projectileManager);
|
||||
CosmeticManager cosmeticManager = new CosmeticManager(this, _clientManager, _donationManager, inventoryManager, gadgetManager, mountManager, petManager, true);
|
||||
cosmeticManager.setInterfaceSlot(7);
|
||||
new CustomTagFix(this);
|
||||
new PacketHandler(this);
|
||||
|
||||
//Arcade Manager
|
||||
_gameManager = new ArcadeManager(this, serverStatusManager, ReadServerConfig(), _clientManager, _donationManager, _damageManager, disguiseManager, creature, teleport, new Blood(this), antistack, portal, packetHandler, preferenceManager, inventoryManager, cosmeticManager, projectileManager, webServerAddress);
|
||||
_gameManager = new ArcadeManager(this, serverStatusManager, ReadServerConfig(), _clientManager, _donationManager, _damageManager, disguiseManager, creature, teleport, new Blood(this), antistack, portal, preferenceManager, inventoryManager, cosmeticManager, projectileManager, webServerAddress);
|
||||
new PlayerTracker(this, serverStatusManager.getCurrentServerName(), serverStatusManager.getUs());
|
||||
|
||||
new MemoryFix(this);
|
||||
|
@ -5,6 +5,7 @@ import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
|
||||
import mineplex.core.leaderboard.LeaderboardRepository;
|
||||
import nautilus.game.arcade.addons.*;
|
||||
import nautilus.game.arcade.command.*;
|
||||
import nautilus.game.arcade.events.GameStateChangeEvent;
|
||||
@ -63,13 +64,11 @@ import mineplex.core.chat.Chat;
|
||||
import mineplex.core.common.Rank;
|
||||
import mineplex.core.common.util.*;
|
||||
import mineplex.minecraft.game.core.condition.ConditionManager;
|
||||
import mineplex.minecraft.game.core.condition.Condition.ConditionType;
|
||||
import mineplex.core.cosmetic.CosmeticManager;
|
||||
import mineplex.core.creature.Creature;
|
||||
import mineplex.core.disguise.DisguiseManager;
|
||||
import mineplex.core.donation.DonationManager;
|
||||
import mineplex.core.movement.Movement;
|
||||
import mineplex.core.packethandler.PacketHandler;
|
||||
import mineplex.core.elo.EloManager;
|
||||
import mineplex.core.energy.Energy;
|
||||
import mineplex.core.explosion.Explosion;
|
||||
@ -122,6 +121,7 @@ public class ArcadeManager extends MiniPlugin implements IRelation
|
||||
private ClassShopManager _classShopManager;
|
||||
private ClassCombatShop _classShop;
|
||||
private TaskManager _taskManager;
|
||||
private LeaderboardRepository _leaderboardRepository;
|
||||
|
||||
private EloManager _eloManager;
|
||||
|
||||
@ -139,7 +139,7 @@ public class ArcadeManager extends MiniPlugin implements IRelation
|
||||
public ArcadeManager(Arcade plugin, ServerStatusManager serverStatusManager, GameServerConfig serverConfig,
|
||||
CoreClientManager clientManager, DonationManager donationManager, DamageManager damageManager,
|
||||
DisguiseManager disguiseManager, Creature creature, Teleport teleport, Blood blood, AntiStack antistack,
|
||||
Portal portal, PacketHandler packetHandler, PreferencesManager preferences, InventoryManager inventoryManager,
|
||||
Portal portal, PreferencesManager preferences, InventoryManager inventoryManager,
|
||||
CosmeticManager cosmeticManager, ProjectileManager projectileManager, String webAddress)
|
||||
{
|
||||
super("Game Manager", plugin);
|
||||
@ -227,7 +227,7 @@ public class ArcadeManager extends MiniPlugin implements IRelation
|
||||
_gameCreationManager = new GameCreationManager(this);
|
||||
_gameGemManager = new GameGemManager(this);
|
||||
_gameManager = new GameManager(this);
|
||||
_gameLobbyManager = new GameLobbyManager(this, packetHandler);
|
||||
_gameLobbyManager = new GameLobbyManager(this);
|
||||
new GameFlagManager(this);
|
||||
_gamePlayerManager = new GamePlayerManager(this);
|
||||
new GameAchievementManager(this);
|
||||
@ -235,6 +235,8 @@ public class ArcadeManager extends MiniPlugin implements IRelation
|
||||
new MiscManager(this);
|
||||
new IdleManager(this);
|
||||
|
||||
_leaderboardRepository = new LeaderboardRepository(plugin);
|
||||
|
||||
// Game Addons
|
||||
new CompassAddon(plugin, this);
|
||||
new SoupAddon(plugin, this);
|
||||
@ -952,4 +954,9 @@ public class ArcadeManager extends MiniPlugin implements IRelation
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public LeaderboardRepository getLeaderboardRepository()
|
||||
{
|
||||
return _leaderboardRepository;
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,42 @@
|
||||
package nautilus.game.arcade;
|
||||
|
||||
import java.util.EnumSet;
|
||||
import java.util.Set;
|
||||
|
||||
public enum TournamentType
|
||||
{
|
||||
SUPER_SMASH_MOBS(GameType.Smash),
|
||||
SURVIVAL_GAMES(GameType.SurvivalGames),
|
||||
MIXED_ARCADE(
|
||||
GameType.Dragons,
|
||||
GameType.DragonEscape,
|
||||
GameType.DeathTag,
|
||||
GameType.Runner,
|
||||
GameType.Snake,
|
||||
GameType.Spleef,
|
||||
GameType.SneakyAssassins,
|
||||
GameType.Quiver);
|
||||
|
||||
private final Set<GameType> _gameTypes;
|
||||
|
||||
TournamentType(GameType firstGameType, GameType... rest)
|
||||
{
|
||||
_gameTypes = EnumSet.of(firstGameType, rest);
|
||||
}
|
||||
|
||||
public Set<GameType> getGameTypes()
|
||||
{
|
||||
return _gameTypes;
|
||||
}
|
||||
|
||||
public static TournamentType getTournamentType(GameType gameType)
|
||||
{
|
||||
for (TournamentType type : values())
|
||||
{
|
||||
if (type.getGameTypes().contains(gameType))
|
||||
return type;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
@ -109,7 +109,7 @@ public class CompassAddon extends MiniPlugin
|
||||
" " + C.cWhite + C.Bold + "Distance: " + targetTeam.GetColor() + UtilMath.trim(1, bestDist) +
|
||||
" " + C.cWhite + C.Bold + "Height: " + targetTeam.GetColor() + UtilMath.trim(1, heightDiff));
|
||||
stack.setItemMeta(itemMeta);
|
||||
|
||||
|
||||
player.getInventory().setItem(i, stack);
|
||||
}
|
||||
}
|
||||
|
@ -10,6 +10,7 @@ import mineplex.minecraft.game.core.damage.CustomDamageEvent;
|
||||
import nautilus.game.arcade.ArcadeFormat;
|
||||
import nautilus.game.arcade.ArcadeManager;
|
||||
import nautilus.game.arcade.GameType;
|
||||
import nautilus.game.arcade.TournamentType;
|
||||
import nautilus.game.arcade.events.GameStateChangeEvent;
|
||||
import nautilus.game.arcade.events.PlayerGameRespawnEvent;
|
||||
import nautilus.game.arcade.events.PlayerStateChangeEvent;
|
||||
@ -1145,6 +1146,31 @@ public abstract class Game implements Listener
|
||||
{
|
||||
for (StatTracker tracker : getStatTrackers())
|
||||
HandlerList.unregisterAll(tracker);
|
||||
|
||||
if (Manager.IsTournamentServer() && CanAddStats)
|
||||
{
|
||||
final TournamentType type = TournamentType.getTournamentType(GetType());
|
||||
|
||||
if (type != null)
|
||||
{
|
||||
final Map<UUID, Boolean> data = new HashMap<>();
|
||||
|
||||
for (Player loser : getLosers())
|
||||
data.put(loser.getUniqueId(), false);
|
||||
|
||||
for (Player winner : getWinners())
|
||||
data.put(winner.getUniqueId(), true);
|
||||
|
||||
Bukkit.getScheduler().runTaskAsynchronously(Manager.GetPlugin(), new Runnable()
|
||||
{
|
||||
@Override
|
||||
public void run()
|
||||
{
|
||||
Manager.getLeaderboardRepository().saveStats(0, type.ordinal(), data);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -24,9 +24,9 @@ import org.bukkit.entity.Player;
|
||||
public class GameTeam
|
||||
{
|
||||
private Game Host;
|
||||
|
||||
|
||||
private double _respawnTime = 0;
|
||||
|
||||
|
||||
public enum PlayerState
|
||||
{
|
||||
IN("In", ChatColor.GREEN),
|
||||
@ -66,14 +66,14 @@ public class GameTeam
|
||||
private int _spawnDistance = 0;
|
||||
|
||||
private boolean _visible = true;
|
||||
|
||||
|
||||
//Records order players go out in
|
||||
protected ArrayList<Player> _places = new ArrayList<Player>();
|
||||
|
||||
public GameTeam(Game host, String name, ChatColor color, ArrayList<Location> spawns)
|
||||
{
|
||||
Host = host;
|
||||
|
||||
|
||||
_name = name;
|
||||
_color = color;
|
||||
_spawns = spawns;
|
||||
@ -96,7 +96,7 @@ public class GameTeam
|
||||
|
||||
public Location GetSpawn()
|
||||
{
|
||||
// ArrayList<Location> valid = new ArrayList<Location>();
|
||||
// ArrayList<Location> valid = new ArrayList<Location>();
|
||||
|
||||
Location best = null;
|
||||
double bestDist = 0;
|
||||
@ -119,14 +119,14 @@ public class GameTeam
|
||||
bestDist = closestPlayer;
|
||||
}
|
||||
|
||||
// if (closestPlayer > _spawnDistance * _spawnDistance)
|
||||
// {
|
||||
// valid.add(loc);
|
||||
// }
|
||||
// if (closestPlayer > _spawnDistance * _spawnDistance)
|
||||
// {
|
||||
// valid.add(loc);
|
||||
// }
|
||||
}
|
||||
|
||||
// if (valid.size() > 0)
|
||||
// valid.get(UtilMath.r(valid.size()));
|
||||
// if (valid.size() > 0)
|
||||
// valid.get(UtilMath.r(valid.size()));
|
||||
|
||||
if (best != null)
|
||||
return best;
|
||||
@ -228,7 +228,7 @@ public class GameTeam
|
||||
{
|
||||
SpawnTeleport(true);
|
||||
}
|
||||
|
||||
|
||||
public void SpawnTeleport(boolean aliveOnly)
|
||||
{
|
||||
for (Player player : GetPlayers(aliveOnly))
|
||||
@ -342,7 +342,7 @@ public class GameTeam
|
||||
{
|
||||
_respawnTime = i;
|
||||
}
|
||||
|
||||
|
||||
public double GetRespawnTime()
|
||||
{
|
||||
return _respawnTime;
|
||||
@ -351,32 +351,33 @@ public class GameTeam
|
||||
public void SetPlacement(Player player, PlayerState state)
|
||||
{
|
||||
if (state == PlayerState.OUT)
|
||||
{
|
||||
if (!_places.contains(player))
|
||||
_places.add(0, player);
|
||||
|
||||
else
|
||||
_places.remove(player);
|
||||
_places.add(0, player);
|
||||
}
|
||||
else
|
||||
_places.remove(player);
|
||||
}
|
||||
|
||||
|
||||
public ArrayList<Player> GetPlacements(boolean includeAlivePlayers)
|
||||
{
|
||||
if (includeAlivePlayers)
|
||||
{
|
||||
ArrayList<Player> placesClone = new ArrayList<Player>();
|
||||
|
||||
|
||||
for (Player player : _places)
|
||||
{
|
||||
placesClone.add(player);
|
||||
}
|
||||
|
||||
|
||||
for (Player player : GetPlayers(true))
|
||||
{
|
||||
placesClone.add(0, player);
|
||||
}
|
||||
|
||||
|
||||
return placesClone;
|
||||
}
|
||||
|
||||
|
||||
return _places;
|
||||
}
|
||||
}
|
||||
|
@ -310,7 +310,7 @@ public class Draw extends SoloGame
|
||||
if (!IsLive())
|
||||
return;
|
||||
|
||||
if (event.getType() != UpdateType.TICK)
|
||||
if (event.getType() != UpdateType.FAST)
|
||||
return;
|
||||
|
||||
if (_round == null)
|
||||
|
@ -73,6 +73,7 @@ import nautilus.game.arcade.events.GameStateChangeEvent;
|
||||
import nautilus.game.arcade.events.PlayerPrepareTeleportEvent;
|
||||
import nautilus.game.arcade.game.GameTeam;
|
||||
import nautilus.game.arcade.game.TeamGame;
|
||||
import nautilus.game.arcade.game.GameTeam.PlayerState;
|
||||
import nautilus.game.arcade.game.games.hideseek.forms.BlockForm;
|
||||
import nautilus.game.arcade.game.games.hideseek.forms.CreatureForm;
|
||||
import nautilus.game.arcade.game.games.hideseek.forms.Form;
|
||||
@ -958,6 +959,10 @@ public class HideSeek extends TeamGame
|
||||
|
||||
public void SetSeeker(Player player, boolean forced)
|
||||
{
|
||||
GameTeam pastTeam = GetTeam(player);
|
||||
if (pastTeam != null && pastTeam.equals(_hiders))
|
||||
pastTeam.SetPlacement(player, PlayerState.OUT);
|
||||
|
||||
SetPlayerTeam(player, _seekers, true);
|
||||
|
||||
Manager.GetDisguise().undisguise(player);
|
||||
@ -1011,12 +1016,25 @@ public class HideSeek extends TeamGame
|
||||
|
||||
if (_hiders.GetPlayers(true).isEmpty())
|
||||
{
|
||||
SetState(GameState.End);
|
||||
AnnounceEnd(_seekers);
|
||||
ArrayList<Player> places = _hiders.GetPlacements(true);
|
||||
|
||||
AnnounceEnd(_hiders.GetPlacements(true));
|
||||
|
||||
//Gems
|
||||
if (places.size() >= 1)
|
||||
AddGems(places.get(0), 20, "1st Place", false);
|
||||
|
||||
if (places.size() >= 2)
|
||||
AddGems(places.get(1), 15, "2nd Place", false);
|
||||
|
||||
if (places.size() >= 3)
|
||||
AddGems(places.get(2), 10, "3rd Place", false);
|
||||
|
||||
for (Player player : GetPlayers(false))
|
||||
if (player.isOnline())
|
||||
AddGems(player, 10, "Participation", false);
|
||||
|
||||
SetState(GameState.End);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1084,8 +1102,7 @@ public class HideSeek extends TeamGame
|
||||
if (timeLeft <= 0)
|
||||
{
|
||||
WriteScoreboard();
|
||||
|
||||
SetState(GameState.End);
|
||||
|
||||
AnnounceEnd(_hiders);
|
||||
|
||||
for (Player player : _hiders.GetPlayers(true))
|
||||
@ -1094,6 +1111,8 @@ public class HideSeek extends TeamGame
|
||||
for (Player player : GetPlayers(false))
|
||||
if (player.isOnline())
|
||||
AddGems(player, 10, "Participation", false);
|
||||
|
||||
SetState(GameState.End);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,11 @@
|
||||
package nautilus.game.arcade.game.games.hideseek.kits;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.craftbukkit.v1_7_R4.entity.CraftPlayer;
|
||||
import org.bukkit.entity.EntityType;
|
||||
import org.bukkit.entity.LivingEntity;
|
||||
import org.bukkit.entity.Player;
|
||||
@ -53,40 +58,6 @@ public class KitHiderQuick extends KitHider
|
||||
slime.SetName(GetAvailability().GetColor() + GetName());
|
||||
slime.SetCustomNameVisible(true);
|
||||
|
||||
DisguiseBlock block = new DisguiseBlock(ent, 46, 0);
|
||||
|
||||
ToBlock(block, slime);
|
||||
}
|
||||
|
||||
public void ToBlock(final DisguiseBlock block, final DisguiseSlime slime)
|
||||
{
|
||||
if (Manager.GetGame() == null || Manager.GetGame().InProgress())
|
||||
return;
|
||||
|
||||
Manager.GetDisguise().disguise(block);
|
||||
|
||||
UtilServer.getServer().getScheduler().scheduleSyncDelayedTask(Manager.GetPlugin(), new Runnable()
|
||||
{
|
||||
public void run()
|
||||
{
|
||||
ToSlime(block, slime);
|
||||
}
|
||||
}, 60);
|
||||
}
|
||||
|
||||
public void ToSlime(final DisguiseBlock block, final DisguiseSlime slime)
|
||||
{
|
||||
if (Manager.GetGame() == null || Manager.GetGame().InProgress())
|
||||
return;
|
||||
|
||||
Manager.GetDisguise().disguise(slime);
|
||||
|
||||
UtilServer.getServer().getScheduler().scheduleSyncDelayedTask(Manager.GetPlugin(), new Runnable()
|
||||
{
|
||||
public void run()
|
||||
{
|
||||
ToBlock(block, slime);
|
||||
}
|
||||
}, 60);
|
||||
Manager.GetDisguise().disguise(new DisguiseBlock(ent, 46, 0));
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,11 @@
|
||||
package nautilus.game.arcade.game.games.hideseek.kits;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.craftbukkit.v1_7_R4.entity.CraftPlayer;
|
||||
import org.bukkit.entity.EntityType;
|
||||
import org.bukkit.entity.LivingEntity;
|
||||
import org.bukkit.entity.Player;
|
||||
@ -52,41 +57,7 @@ public class KitHiderShocker extends KitHider
|
||||
slime.SetSize(2);
|
||||
slime.SetName(GetAvailability().GetColor() + GetName());
|
||||
slime.SetCustomNameVisible(true);
|
||||
|
||||
DisguiseBlock block = new DisguiseBlock(ent, 61, 0);
|
||||
|
||||
ToBlock(block, slime);
|
||||
}
|
||||
|
||||
public void ToBlock(final DisguiseBlock block, final DisguiseSlime slime)
|
||||
{
|
||||
if (Manager.GetGame() == null || Manager.GetGame().InProgress())
|
||||
return;
|
||||
|
||||
Manager.GetDisguise().disguise(block);
|
||||
|
||||
UtilServer.getServer().getScheduler().scheduleSyncDelayedTask(Manager.GetPlugin(), new Runnable()
|
||||
{
|
||||
public void run()
|
||||
{
|
||||
ToSlime(block, slime);
|
||||
}
|
||||
}, 60);
|
||||
}
|
||||
|
||||
public void ToSlime(final DisguiseBlock block, final DisguiseSlime slime)
|
||||
{
|
||||
if (Manager.GetGame() == null || Manager.GetGame().InProgress())
|
||||
return;
|
||||
|
||||
Manager.GetDisguise().disguise(slime);
|
||||
|
||||
UtilServer.getServer().getScheduler().scheduleSyncDelayedTask(Manager.GetPlugin(), new Runnable()
|
||||
{
|
||||
public void run()
|
||||
{
|
||||
ToBlock(block, slime);
|
||||
}
|
||||
}, 60);
|
||||
Manager.GetDisguise().disguise(new DisguiseBlock(ent, 61, 0));
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,11 @@
|
||||
package nautilus.game.arcade.game.games.hideseek.kits;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.craftbukkit.v1_7_R4.entity.CraftPlayer;
|
||||
import org.bukkit.entity.EntityType;
|
||||
import org.bukkit.entity.LivingEntity;
|
||||
import org.bukkit.entity.Player;
|
||||
@ -52,43 +57,11 @@ public class KitHiderSwapper extends KitHider
|
||||
slime.SetName(GetAvailability().GetColor() + GetName());
|
||||
slime.SetCustomNameVisible(true);
|
||||
|
||||
ToBlock(ent, slime);
|
||||
}
|
||||
|
||||
public void ToBlock(final LivingEntity ent, final DisguiseSlime slime)
|
||||
{
|
||||
if (Manager.GetGame() == null || Manager.GetGame().InProgress())
|
||||
return;
|
||||
|
||||
double r = Math.random();
|
||||
|
||||
if (r > 0.75) Manager.GetDisguise().disguise(new DisguiseBlock(ent, 54, 0));
|
||||
else if (r > 0.5) Manager.GetDisguise().disguise(new DisguiseBlock(ent, 145, 0));
|
||||
else if (r > 0.25) Manager.GetDisguise().disguise(new DisguiseBlock(ent, 140, 11));
|
||||
else Manager.GetDisguise().disguise(new DisguiseBlock(ent, 47, 0));
|
||||
|
||||
UtilServer.getServer().getScheduler().scheduleSyncDelayedTask(Manager.GetPlugin(), new Runnable()
|
||||
{
|
||||
public void run()
|
||||
{
|
||||
ToSlime(ent, slime);
|
||||
}
|
||||
}, 60);
|
||||
}
|
||||
|
||||
public void ToSlime(final LivingEntity ent, final DisguiseSlime slime)
|
||||
{
|
||||
if (Manager.GetGame() == null || Manager.GetGame().InProgress())
|
||||
return;
|
||||
|
||||
Manager.GetDisguise().disguise(slime);
|
||||
|
||||
UtilServer.getServer().getScheduler().scheduleSyncDelayedTask(Manager.GetPlugin(), new Runnable()
|
||||
{
|
||||
public void run()
|
||||
{
|
||||
ToBlock(ent, slime);
|
||||
}
|
||||
}, 60);
|
||||
}
|
||||
}
|
||||
|
@ -22,6 +22,8 @@ import org.bukkit.entity.Item;
|
||||
import org.bukkit.entity.LivingEntity;
|
||||
import org.bukkit.entity.Painting;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.entity.Projectile;
|
||||
import org.bukkit.entity.Snowball;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.EventPriority;
|
||||
import org.bukkit.event.entity.EntityRegainHealthEvent;
|
||||
@ -51,6 +53,7 @@ import mineplex.core.common.util.C;
|
||||
import mineplex.core.common.util.F;
|
||||
import mineplex.core.common.util.UtilAction;
|
||||
import mineplex.core.common.util.UtilAlg;
|
||||
import mineplex.core.common.util.UtilBlock;
|
||||
import mineplex.core.common.util.UtilEnt;
|
||||
import mineplex.core.common.util.UtilEvent;
|
||||
import mineplex.core.common.util.UtilGear;
|
||||
@ -87,6 +90,7 @@ import nautilus.game.arcade.game.games.minestrike.items.StrikeItemType;
|
||||
import nautilus.game.arcade.game.games.minestrike.items.equipment.armor.Armor;
|
||||
import nautilus.game.arcade.game.games.minestrike.items.grenades.Grenade;
|
||||
import nautilus.game.arcade.game.games.minestrike.items.guns.Gun;
|
||||
import nautilus.game.arcade.game.games.minestrike.items.guns.GunType;
|
||||
import nautilus.game.arcade.game.games.minestrike.items.guns.pistol.Glock18;
|
||||
import nautilus.game.arcade.game.games.minestrike.items.guns.pistol.P2000;
|
||||
import nautilus.game.arcade.game.games.minestrike.items.guns.rifle.AWP;
|
||||
@ -104,8 +108,11 @@ public class MineStrike extends TeamGame
|
||||
private int _roundsToWin = 10;
|
||||
private long _roundTime = 120000;
|
||||
|
||||
private boolean _bulletInstant = true;
|
||||
|
||||
private boolean _debug = false;
|
||||
private int _bulletInstant = 2; //0 = Slow, 1 = Instant, 2 = Mix
|
||||
private boolean _customHitbox = true;
|
||||
private boolean _bulletAlternate = false;
|
||||
|
||||
//Map Data
|
||||
private ArrayList<Location> _bombSites;
|
||||
|
||||
@ -123,7 +130,7 @@ public class MineStrike extends TeamGame
|
||||
|
||||
private HashMap<Entity, Bullet> _bullets = new HashMap<Entity, Bullet>();
|
||||
private HashMap<Entity, Grenade> _grenadesThrown = new HashMap<Entity, Grenade>();
|
||||
|
||||
|
||||
private HashMap<Location, Long> _incendiary = new HashMap<Location, Long>();
|
||||
|
||||
private Bomb _bomb = null;
|
||||
@ -177,16 +184,20 @@ public class MineStrike extends TeamGame
|
||||
|
||||
this._help = new String[]
|
||||
{
|
||||
"Tap Crouch when close to an ally to Boost",
|
||||
//"Tap Crouch when close to an ally to Boost",
|
||||
"Open Inventory at spawn to buy guns",
|
||||
"Hold Right-Click to Plant Bomb",
|
||||
"Hold Right-Click with knife to Defuse Bomb",
|
||||
"Moving decreases accuracy",
|
||||
"Sprinting heavily decreases accuracy",
|
||||
"Jumping massively decreases accuracy",
|
||||
"Crouching increases accuracy",
|
||||
"Hold Right-Click to Plant Bomb",
|
||||
"Hold Right-Click with knife to Defuse Bomb",
|
||||
"Left-Click to roll Grenades",
|
||||
"Right-Click to throw Grenades",
|
||||
"Burst Fire for greater accuracy",
|
||||
"Sniper Rifles are only accurate while scoped",
|
||||
"Rifles have 30% recoil reduction while scoped",
|
||||
"Pick up better weapons from dead players"
|
||||
};
|
||||
}
|
||||
|
||||
@ -228,7 +239,7 @@ public class MineStrike extends TeamGame
|
||||
|
||||
//Sneak
|
||||
disguiseSneak(event.GetPlayer(), team);
|
||||
|
||||
|
||||
//Armor
|
||||
giveTeamArmor(event.GetPlayer(), Color.fromRGB(255, 0, 0));
|
||||
}
|
||||
@ -244,7 +255,7 @@ public class MineStrike extends TeamGame
|
||||
|
||||
//Sneak
|
||||
disguiseSneak(event.GetPlayer(), team);
|
||||
|
||||
|
||||
//Armor
|
||||
giveTeamArmor(event.GetPlayer(), Color.fromRGB(0, 0, 255));
|
||||
}
|
||||
@ -441,7 +452,7 @@ public class MineStrike extends TeamGame
|
||||
{
|
||||
_grenadesThrown.put(ent, grenade);
|
||||
}
|
||||
|
||||
|
||||
public void registerIncendiary(Location loc, long endTime)
|
||||
{
|
||||
_incendiary.put(loc, endTime);
|
||||
@ -652,7 +663,7 @@ public class MineStrike extends TeamGame
|
||||
primaryDropped = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//Drop Remaining
|
||||
boolean grenadeDropped = false;
|
||||
for (StrikeItem item : toDrop)
|
||||
@ -660,14 +671,14 @@ public class MineStrike extends TeamGame
|
||||
//Record Primary Dropped
|
||||
if (item.getType() == StrikeItemType.PRIMARY_WEAPON)
|
||||
continue;
|
||||
|
||||
|
||||
//Pistol
|
||||
if (item.getType() == StrikeItemType.SECONDARY_WEAPON)
|
||||
{
|
||||
item.drop(this, player, true, primaryDropped);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
//Grenade
|
||||
if (item.getType() == StrikeItemType.GRENADE)
|
||||
{
|
||||
@ -675,7 +686,7 @@ public class MineStrike extends TeamGame
|
||||
grenadeDropped = true;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
//Other
|
||||
item.drop(this, player, true, false);
|
||||
}
|
||||
@ -761,31 +772,106 @@ public class MineStrike extends TeamGame
|
||||
gun.reduceCone();
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void slowBulletHit(final ProjectileHitEvent event)
|
||||
{
|
||||
if (!(event.getEntity() instanceof Snowball))
|
||||
return;
|
||||
|
||||
Bullet bullet = _bullets.get(event.getEntity());
|
||||
|
||||
//Particle
|
||||
if (bullet != null && bullet.Shooter != null)
|
||||
UtilParticle.PlayParticle(bullet.Shooter, ParticleType.FIREWORKS_SPARK, event.getEntity().getLocation(), 0, 0, 0, 0, 1);
|
||||
|
||||
//Hit Block Sound
|
||||
event.getEntity().getWorld().playSound(event.getEntity().getLocation(), Sound.ENDERMAN_HIT, 1f, 1f);
|
||||
|
||||
//Block Particle
|
||||
Location loc = event.getEntity().getLocation().add(event.getEntity().getVelocity().multiply(0.8));
|
||||
Block block = loc.getBlock();
|
||||
|
||||
if (block.getType() == Material.AIR)
|
||||
{
|
||||
Block closest = null;
|
||||
double closestDist = 0;
|
||||
|
||||
for (Block other : UtilBlock.getSurrounding(block, true))
|
||||
{
|
||||
if (other.getType() == Material.AIR)
|
||||
continue;
|
||||
|
||||
double dist = UtilMath.offset(loc, other.getLocation().add(0.5, 0.5, 0.5));
|
||||
|
||||
if (closest == null || dist < closestDist)
|
||||
{
|
||||
closest = other;
|
||||
closestDist = dist;
|
||||
}
|
||||
}
|
||||
|
||||
if (closest != null)
|
||||
block = closest;
|
||||
}
|
||||
|
||||
block.getWorld().playEffect(block.getLocation(), Effect.STEP_SOUND, block.getType());
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void slowBulletWhizz(UpdateEvent event)
|
||||
{
|
||||
if (event.getType() != UpdateType.TICK)
|
||||
return;
|
||||
|
||||
for (Entity ent : _bullets.keySet())
|
||||
{
|
||||
if (ent instanceof Snowball)
|
||||
continue;
|
||||
|
||||
if (ent.getTicksLived() < 10)
|
||||
continue;
|
||||
|
||||
Bullet bullet = _bullets.get(ent);
|
||||
|
||||
for (Player player : UtilServer.getPlayers())
|
||||
{
|
||||
if (UtilMath.offset(ent, player) < 4)
|
||||
{
|
||||
if (!bullet.WhizzSound.contains(player))
|
||||
{
|
||||
player.playSound(ent.getLocation(), Sound.BAT_IDLE, (float)(0.5 + Math.random() * 0.5), 1f);
|
||||
bullet.WhizzSound.add(player);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.MONITOR)
|
||||
public void projectileHitParticle(final ProjectileHitEvent event)
|
||||
public void instantBulletHit(final ProjectileHitEvent event)
|
||||
{
|
||||
if (!(event.getEntity() instanceof Arrow))
|
||||
return;
|
||||
|
||||
|
||||
UtilServer.getServer().getScheduler().scheduleSyncDelayedTask(Manager.GetPlugin(), new Runnable()
|
||||
{
|
||||
public void run()
|
||||
{
|
||||
Arrow arrow = (Arrow)event.getEntity();
|
||||
|
||||
|
||||
Bullet bullet = _bullets.get(arrow);
|
||||
|
||||
|
||||
//Particle
|
||||
if (bullet != null && bullet.Shooter != null)
|
||||
UtilParticle.PlayParticle(bullet.Shooter, ParticleType.FIREWORKS_SPARK, arrow.getLocation(), 0, 0, 0, 0, 1);
|
||||
|
||||
|
||||
//Hit Block Sound
|
||||
arrow.getWorld().playSound(arrow.getLocation(), Sound.ENDERMAN_HIT, 1f, 1f);
|
||||
|
||||
//Bullet Whiz Sound
|
||||
bulletWhizzSound(arrow.getLocation(), bullet);
|
||||
|
||||
instantBulletWhizz(arrow.getLocation(), bullet);
|
||||
|
||||
//Block Particle
|
||||
try
|
||||
{
|
||||
@ -810,61 +896,72 @@ public class MineStrike extends TeamGame
|
||||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
|
||||
_bullets.remove(arrow);
|
||||
arrow.remove();
|
||||
}
|
||||
}, 0);
|
||||
}
|
||||
|
||||
private void bulletWhizzSound(Location bulletEndLocation, Bullet bullet)
|
||||
|
||||
private void instantBulletWhizz(Location bulletEndLocation, Bullet bullet)
|
||||
{
|
||||
if (bullet == null)
|
||||
return;
|
||||
|
||||
|
||||
Location loc = bullet.Origin.clone();
|
||||
|
||||
HashSet<Player> hasPlayedFor = new HashSet<Player>();
|
||||
|
||||
|
||||
if (bullet.Shooter != null)
|
||||
hasPlayedFor.add(bullet.Shooter);
|
||||
|
||||
bullet.WhizzSound.add(bullet.Shooter);
|
||||
|
||||
//Move between points, check players
|
||||
while (UtilMath.offset(loc, bulletEndLocation) > 1)
|
||||
{
|
||||
//This is used to calculate whether players are between current/end.
|
||||
//Add 5 so you still hear the whizz if it hits just infront of you.
|
||||
double offsetStartToEnd = UtilMath.offset(loc, bulletEndLocation) + 4;
|
||||
|
||||
|
||||
for (Player player : UtilServer.getPlayers())
|
||||
{
|
||||
if (hasPlayedFor.contains(player))
|
||||
if (bullet.WhizzSound.contains(player))
|
||||
continue;
|
||||
|
||||
|
||||
//Remove players who are not between current/end points
|
||||
if (offsetStartToEnd < UtilMath.offset(player.getEyeLocation(), loc) &&
|
||||
offsetStartToEnd < UtilMath.offset(player.getEyeLocation(), bulletEndLocation))
|
||||
offsetStartToEnd < UtilMath.offset(player.getEyeLocation(), bulletEndLocation))
|
||||
{
|
||||
hasPlayedFor.add(player);
|
||||
bullet.WhizzSound.add(player);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
//Check
|
||||
if (UtilMath.offset(player.getEyeLocation(), loc) < 4)
|
||||
{
|
||||
player.playSound(loc, Sound.BAT_IDLE, (float)(0.5 + Math.random() * 0.5), 1f);
|
||||
hasPlayedFor.add(player);
|
||||
bullet.WhizzSound.add(player);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//Move Closer
|
||||
loc.add(UtilAlg.getTrajectory(loc, bulletEndLocation));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@EventHandler(priority=EventPriority.MONITOR)
|
||||
public void removeArrowsFromPlayer(CustomDamageEvent event)
|
||||
{
|
||||
if (event.GetDamageePlayer() != null)
|
||||
((CraftPlayer) event.GetDamageePlayer()).getHandle().p(0);
|
||||
}
|
||||
|
||||
@EventHandler(priority=EventPriority.HIGH)
|
||||
public void damage(CustomDamageEvent event)
|
||||
{
|
||||
if (event.GetDamageePlayer() == null)
|
||||
return;
|
||||
|
||||
if (event.GetCause() == DamageCause.FALL)
|
||||
{
|
||||
event.AddMod(GetName(), "Fall Reduction", -2, false);
|
||||
@ -927,16 +1024,33 @@ public class MineStrike extends TeamGame
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//Gun
|
||||
Bullet bullet = _bullets.remove(event.GetProjectile());
|
||||
if (bullet == null)
|
||||
return;
|
||||
|
||||
//Get Hit Area
|
||||
int hitArea = 0;
|
||||
|
||||
if (_customHitbox)
|
||||
{
|
||||
if (event.GetProjectile() instanceof Arrow)
|
||||
hitArea = getArrowHitArea(event.GetDamageePlayer(), bullet.Origin.clone(), bullet.Direction.clone());
|
||||
else
|
||||
hitArea = getSnowballHitArea(event.GetDamageePlayer(), event.GetProjectile());
|
||||
}
|
||||
|
||||
|
||||
if (hitArea == -1)
|
||||
{
|
||||
event.SetCancelled("Miss");
|
||||
return;
|
||||
}
|
||||
|
||||
//Bullet Whiz Sound
|
||||
bulletWhizzSound(event.GetDamageePlayer().getEyeLocation(), bullet);
|
||||
if (event.GetProjectile() instanceof Arrow)
|
||||
instantBulletWhizz(event.GetDamageePlayer().getEyeLocation(), bullet);
|
||||
|
||||
//Wipe previous data!
|
||||
event.GetCancellers().clear();
|
||||
@ -945,28 +1059,107 @@ public class MineStrike extends TeamGame
|
||||
if (!Manager.CanHurt(event.GetDamageePlayer(), event.GetDamagerPlayer(true)))
|
||||
event.SetCancelled("Team Damage");
|
||||
|
||||
event.AddMod(GetName(), "Negate Arrow", -event.GetDamageInitial(), false);
|
||||
|
||||
event.AddMod(GetName(), bullet.Gun.getName(), bullet.getDamage(event.GetDamageeEntity().getLocation()), true);
|
||||
event.AddMod(GetName(), "Negate Default", -event.GetDamageInitial(), false);
|
||||
|
||||
if (event.GetDamageePlayer() != null)
|
||||
//Damage + Dropoff
|
||||
double damage = bullet.getDamage();
|
||||
double damageDropoff = bullet.getDamageDropoff(event.GetDamageeEntity().getLocation());
|
||||
|
||||
//Add Damages
|
||||
event.AddMod(bullet.Shooter.getName(), bullet.Gun.getName(), damage, true);
|
||||
event.AddMod(bullet.Shooter.getName(), "Distance Dropoff", damageDropoff, false);
|
||||
|
||||
//Headshot
|
||||
if (hitArea == 1)
|
||||
{
|
||||
//Damage Reduction
|
||||
if (Armor.isArmor(event.GetDamageePlayer().getInventory().getChestplate()))
|
||||
event.AddMod(bullet.Shooter.getName(), "Headshot", damage*2, true);
|
||||
|
||||
if (Armor.isArmor(event.GetDamageePlayer().getInventory().getHelmet()))
|
||||
{
|
||||
event.AddMod(GetName(), "Kevlar", -0.25 * bullet.getDamage(event.GetDamageeEntity().getLocation()), false);
|
||||
event.AddMod(event.GetDamageePlayer().getName(), "Helmet", -damage*1, false);
|
||||
event.GetDamageePlayer().getWorld().playSound(event.GetDamageePlayer().getEyeLocation(), Sound.SPIDER_DEATH, 1f, 1f);
|
||||
}
|
||||
//Mini-Stun
|
||||
else
|
||||
{
|
||||
event.GetDamageePlayer().setVelocity(new Vector(0,0,0));
|
||||
|
||||
event.GetDamageePlayer().getWorld().playSound(event.GetDamageePlayer().getEyeLocation(), Sound.SLIME_ATTACK, 1f, 1f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//Kevlar - Body Hit
|
||||
if (hitArea == 0 && Armor.isArmor(event.GetDamageePlayer().getInventory().getChestplate()))
|
||||
{
|
||||
double damageArmor = -(1 - bullet.Gun.getArmorPenetration()) * (damage + damageDropoff);
|
||||
|
||||
event.AddMod(event.GetDamageePlayer().getName(), "Kevlar", damageArmor, false);
|
||||
}
|
||||
//Mini-Stun
|
||||
else
|
||||
{
|
||||
event.GetDamageePlayer().setVelocity(new Vector(0,0,0));
|
||||
}
|
||||
|
||||
event.SetKnockback(false);
|
||||
event.SetIgnoreRate(true);
|
||||
event.SetIgnoreArmor(true);
|
||||
}
|
||||
|
||||
public int getArrowHitArea(Player damagee, Location origin, Vector trajectory)
|
||||
{
|
||||
//Move to near-player
|
||||
Location start = origin.clone().add(trajectory.multiply(UtilMath.offset(origin, damagee.getEyeLocation()) - 2));
|
||||
|
||||
Location loc = start.clone();
|
||||
|
||||
while (!hitHead(damagee, loc) && !hitBody(damagee, loc) && UtilMath.offset(damagee.getLocation(), loc) < 6)
|
||||
{
|
||||
loc.add(trajectory.clone().multiply(0.1));
|
||||
}
|
||||
|
||||
if (hitHead(damagee, loc))
|
||||
return 1;
|
||||
|
||||
if (hitBody(damagee, loc))
|
||||
return 0;
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
public int getSnowballHitArea(Player damagee, Projectile snowball)
|
||||
{
|
||||
//Move to near-player
|
||||
Location start = snowball.getLocation();
|
||||
|
||||
Location loc = start.clone();
|
||||
|
||||
while (!hitHead(damagee, loc) && !hitBody(damagee, loc) && UtilMath.offset(damagee.getLocation(), loc) < 6)
|
||||
{
|
||||
loc.add(snowball.getVelocity().clone().multiply(0.1));
|
||||
}
|
||||
|
||||
if (hitHead(damagee, loc))
|
||||
return 1;
|
||||
|
||||
if (hitBody(damagee, loc))
|
||||
return 0;
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
public boolean hitBody(Player player, Location loc)
|
||||
{
|
||||
return UtilMath.offset2d(loc, player.getLocation()) < 0.6 && //0.6 is ideal
|
||||
loc.getY() > player.getLocation().getY() &&
|
||||
loc.getY() < player.getEyeLocation().getY() - 0.2;
|
||||
}
|
||||
|
||||
public boolean hitHead(Player player, Location loc)
|
||||
{
|
||||
return UtilMath.offset2d(loc, player.getLocation()) < 0.3 && //0.3 is ideal
|
||||
loc.getY() >= player.getEyeLocation().getY() - 0.2 &&
|
||||
loc.getY() < player.getEyeLocation().getY() + 0.2;
|
||||
}
|
||||
|
||||
|
||||
@EventHandler
|
||||
public void killReward(CombatDeathEvent event)
|
||||
@ -1223,6 +1416,8 @@ public class MineStrike extends TeamGame
|
||||
_bombDefuser.setExp(0f);
|
||||
|
||||
UtilPlayer.message(player, F.main("Game", "You are defusing the Bomb."));
|
||||
|
||||
_bombDefuser.getWorld().playSound(_bombDefuser.getLocation(), Sound.PISTON_RETRACT, 2f, 1f);
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
@ -1251,9 +1446,6 @@ public class MineStrike extends TeamGame
|
||||
|
||||
_bombDefuser.setExp(Math.min(_bombDefuser.getExp() + defuseRate, 0.99999f));
|
||||
|
||||
if (Math.random() > 0.95)
|
||||
_bombDefuser.getWorld().playSound(_bombDefuser.getLocation(), Sound.PISTON_RETRACT, 1f, (float)(Math.random() + 1f));
|
||||
|
||||
if (_bombDefuser.getExp() >= 0.98f)
|
||||
{
|
||||
_bomb.defuse();
|
||||
@ -1528,6 +1720,28 @@ public class MineStrike extends TeamGame
|
||||
for (GameTeam team : GetTeamList())
|
||||
for (Player teamMember : team.GetPlayers(true))
|
||||
GetScoreboard().SetPlayerTeam(teamMember, team.GetName().toUpperCase());
|
||||
|
||||
//Alternate Bullets
|
||||
if (_bulletAlternate)
|
||||
_bulletInstant = (_bulletInstant + 1)%3;
|
||||
|
||||
//Debug Details
|
||||
if (_debug)
|
||||
{
|
||||
Announce(C.cDPurple + C.Bold + "ROUND SETTINGS:");
|
||||
|
||||
if (_customHitbox)
|
||||
Announce(C.cPurple + C.Bold + "Hitbox: " + ChatColor.RESET + "Accurate with Headshots");
|
||||
else
|
||||
Announce(C.cPurple + C.Bold + "Hitbox: " + ChatColor.RESET + "Default with No Headshot");
|
||||
|
||||
if (_bulletInstant == 0)
|
||||
Announce(C.cPurple + C.Bold + "Bullets: " + ChatColor.RESET + "Slow and Visible");
|
||||
else if (_bulletInstant == 1)
|
||||
Announce(C.cPurple + C.Bold + "Bullets: " + ChatColor.RESET + "Instant and Invisible");
|
||||
else
|
||||
Announce(C.cPurple + C.Bold + "Bullets: " + ChatColor.RESET + "Slow and Visible with Instant Sniper");
|
||||
}
|
||||
}
|
||||
|
||||
public void giveMoney()
|
||||
@ -1612,7 +1826,7 @@ public class MineStrike extends TeamGame
|
||||
for (Entity ent : _bullets.keySet())
|
||||
ent.remove();
|
||||
_bullets.clear();
|
||||
|
||||
|
||||
//Incendiary
|
||||
_incendiary.clear();
|
||||
|
||||
@ -1620,6 +1834,10 @@ public class MineStrike extends TeamGame
|
||||
for (Gun gun : _gunsEquipped.keySet())
|
||||
gun.restockAmmo(_gunsEquipped.get(gun));
|
||||
|
||||
//Health
|
||||
for (Player player : UtilServer.getPlayers())
|
||||
player.setHealth(20);
|
||||
|
||||
//Reset Shop
|
||||
for (Player player : UtilServer.getPlayers())
|
||||
_shopManager.leaveShop(player, false, false);
|
||||
@ -1628,7 +1846,7 @@ public class MineStrike extends TeamGame
|
||||
@EventHandler(priority = EventPriority.HIGHEST)
|
||||
public void specToTeam(PlayerJoinEvent event)
|
||||
{
|
||||
if (GetState() == GameState.Recruit)
|
||||
if (GetState() == GameState.Recruit || GetState() == GameState.Loading)
|
||||
return;
|
||||
|
||||
//Target Team
|
||||
@ -1691,7 +1909,7 @@ public class MineStrike extends TeamGame
|
||||
event.setTo(event.getFrom());
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
//@EventHandler
|
||||
public void boostClimb(PlayerToggleSneakEvent event)
|
||||
{
|
||||
if (!IsLive())
|
||||
@ -1742,7 +1960,7 @@ public class MineStrike extends TeamGame
|
||||
if (gun == null)
|
||||
return;
|
||||
|
||||
if (!(gun instanceof AWP))
|
||||
if (!gun.hasScope())
|
||||
return;
|
||||
|
||||
//Enable
|
||||
@ -1752,9 +1970,11 @@ public class MineStrike extends TeamGame
|
||||
Manager.GetCondition().Factory().Slow("Scope", event.getPlayer(), null, 9999, 2, false, false, false, false);
|
||||
event.getPlayer().getInventory().setHelmet(new ItemStack(Material.PUMPKIN));
|
||||
|
||||
event.getPlayer().getWorld().playSound(event.getPlayer().getEyeLocation(), Sound.GHAST_DEATH, 0.8f, 1f);
|
||||
|
||||
Manager.GetCondition().Factory().Blind("Scope Blind", event.getPlayer(), null, 1, 1, false, false, false);
|
||||
if (gun.getGunType() == GunType.SNIPER)
|
||||
{
|
||||
event.getPlayer().getWorld().playSound(event.getPlayer().getEyeLocation(), Sound.GHAST_DEATH, 0.8f, 1f);
|
||||
Manager.GetCondition().Factory().Blind("Scope Blind", event.getPlayer(), null, 1, 1, false, false, false);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -1777,13 +1997,13 @@ public class MineStrike extends TeamGame
|
||||
continue;
|
||||
|
||||
Gun gun = getGunInHand(player, null);
|
||||
if (gun == null || !(gun instanceof AWP) || !player.isSneaking())
|
||||
if (!gun.hasScope() || !player.isSneaking())
|
||||
{
|
||||
removeScope(player);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void removeScope(Player player)
|
||||
{
|
||||
ItemStack stack = _scoped.remove(player);
|
||||
@ -1792,8 +2012,8 @@ public class MineStrike extends TeamGame
|
||||
|
||||
player.getWorld().playSound(player.getEyeLocation(), Sound.GHAST_DEATH, 0.8f, 1f);
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
|
||||
//@EventHandler
|
||||
public void speedUpdate(UpdateEvent event)
|
||||
{
|
||||
if (!IsLive())
|
||||
@ -1810,32 +2030,49 @@ public class MineStrike extends TeamGame
|
||||
Manager.GetCondition().EndCondition(player, ConditionType.SPEED, null);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@EventHandler
|
||||
public void incendiaryUpdate(UpdateEvent event)
|
||||
{
|
||||
if (event.getType() == UpdateType.TICK)
|
||||
for (Player player : UtilServer.getPlayers())
|
||||
player.setFireTicks(0);
|
||||
|
||||
|
||||
if (event.getType() != UpdateType.SLOW)
|
||||
return;
|
||||
|
||||
|
||||
Iterator<Location> fireIterator = _incendiary.keySet().iterator();
|
||||
|
||||
|
||||
while (fireIterator.hasNext())
|
||||
{
|
||||
Location loc = fireIterator.next();
|
||||
|
||||
|
||||
if (_incendiary.get(loc) < System.currentTimeMillis())
|
||||
fireIterator.remove();
|
||||
|
||||
|
||||
else
|
||||
loc.getWorld().playSound(loc, Sound.PIG_DEATH, 1f, 1f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@EventHandler
|
||||
public void bombBurnUpdate(UpdateEvent event)
|
||||
{
|
||||
if (event.getType() != UpdateType.TICK)
|
||||
return;
|
||||
|
||||
if (_bombItem == null)
|
||||
return;
|
||||
|
||||
if (!_bombItem.isValid())
|
||||
{
|
||||
Location loc = _bombItem.getLocation();
|
||||
|
||||
_bombItem.remove();
|
||||
|
||||
_bombItem = loc.getWorld().dropItemNaturally(loc, new ItemStack(Material.GOLD_SWORD));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@EventHandler
|
||||
@ -2028,6 +2265,9 @@ public class MineStrike extends TeamGame
|
||||
{
|
||||
if (!IsLive())
|
||||
return;
|
||||
|
||||
if (event.getType() != UpdateType.TICK)
|
||||
return;
|
||||
|
||||
Location target = null;
|
||||
if (_bombItem != null)
|
||||
@ -2113,34 +2353,71 @@ public class MineStrike extends TeamGame
|
||||
event.setCancelled(true);
|
||||
}
|
||||
|
||||
public boolean isInstantBullets()
|
||||
public int getBulletType()
|
||||
{
|
||||
return _bulletInstant;
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void debugBullets(PlayerCommandPreprocessEvent event)
|
||||
{
|
||||
if (!event.getPlayer().isOp())
|
||||
return;
|
||||
|
||||
if (event.getMessage().contains("debugbullets"))
|
||||
{
|
||||
_bulletInstant = !_bulletInstant;
|
||||
|
||||
Announce(C.cPurple + C.Bold + "Instant Bullets: " + ChatColor.RESET + _bulletInstant);
|
||||
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
|
||||
//Cleans entities that may not have been removed due to unloaded chunks
|
||||
@EventHandler
|
||||
public void debug(PlayerCommandPreprocessEvent event)
|
||||
{
|
||||
if (!event.getPlayer().isOp())
|
||||
return;
|
||||
|
||||
if (event.getMessage().contains("money"))
|
||||
{
|
||||
_shopManager.addMoney(event.getPlayer(), 16000, "Debug");
|
||||
event.setCancelled(true);
|
||||
}
|
||||
|
||||
if (event.getMessage().contains("instant"))
|
||||
{
|
||||
_bulletInstant = (_bulletInstant + 1)%3;
|
||||
|
||||
if (_bulletInstant == 0)
|
||||
Announce(C.cPurple + C.Bold + "Bullets: " + ChatColor.RESET + "Slow and Visible");
|
||||
else if (_bulletInstant == 1)
|
||||
Announce(C.cPurple + C.Bold + "Bullets: " + ChatColor.RESET + "Instant and Invisible");
|
||||
else
|
||||
Announce(C.cPurple + C.Bold + "Bullets: " + ChatColor.RESET + "Slow and Visible with Instant Sniper");
|
||||
|
||||
|
||||
event.setCancelled(true);
|
||||
}
|
||||
|
||||
if (event.getMessage().contains("hitbox"))
|
||||
{
|
||||
_customHitbox = !_customHitbox;
|
||||
|
||||
if (_customHitbox)
|
||||
Announce(C.cPurple + C.Bold + "Hitbox: " + ChatColor.RESET + "Accurate with Headshots");
|
||||
else
|
||||
Announce(C.cPurple + C.Bold + "Hitbox: " + ChatColor.RESET + "Default with No Headshot");
|
||||
|
||||
event.setCancelled(true);
|
||||
}
|
||||
|
||||
if (event.getMessage().contains("alternate"))
|
||||
{
|
||||
_bulletAlternate = !_bulletAlternate;
|
||||
|
||||
Announce(C.cPurple + C.Bold + "Alternate Bullet Type: " + ChatColor.RESET + _bulletAlternate);
|
||||
|
||||
event.setCancelled(true);
|
||||
}
|
||||
|
||||
if (event.getMessage().contains("god"))
|
||||
{
|
||||
if (HealthSet == 20)
|
||||
HealthSet = -1;
|
||||
else
|
||||
HealthSet = 20;
|
||||
|
||||
Announce(C.cPurple + C.Bold + "God Mode: " + ChatColor.RESET + (HealthSet == 20));
|
||||
|
||||
event.setCancelled(true);
|
||||
}
|
||||
|
||||
if (event.getMessage().contains("debugplayer"))
|
||||
{
|
||||
Announce(C.Bold + "PLAYER DEBUG:");
|
||||
@ -2176,6 +2453,4 @@ public class MineStrike extends TeamGame
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -61,19 +61,25 @@ public class ShopManager
|
||||
//Pistols
|
||||
slot = 9;
|
||||
addItem(team.GetColor() == ChatColor.RED ? new Glock18() : new P2000(), player, slot++);
|
||||
addItem(new P250(), player, slot++);
|
||||
addItem(new CZ75(), player, slot++);
|
||||
addItem(new Deagle(), player, slot++);
|
||||
|
||||
//Shotgun
|
||||
slot = 18;
|
||||
addItem(new Nova(), player, slot++);
|
||||
|
||||
addItem(new XM1014(), player, slot++);
|
||||
|
||||
//SMG
|
||||
addItem(new PPBizon(), player, slot++);
|
||||
addItem(new P90(), player, slot++);
|
||||
|
||||
//Rifles
|
||||
slot = 27;
|
||||
addItem(team.GetColor() == ChatColor.RED ? new AK47() : new M4A1(), player, slot++);
|
||||
addItem(team.GetColor() == ChatColor.RED ? new Galil() : new Famas(), player, slot++);
|
||||
addItem(team.GetColor() == ChatColor.RED ? new AK47() : new M4A4(), player, slot++);
|
||||
addItem(team.GetColor() == ChatColor.RED ? new SG553() : new AUG(), player, slot++);
|
||||
addItem(new SSG08(), player, slot++);
|
||||
addItem(new AWP(), player, slot++);
|
||||
|
||||
//Grenades
|
||||
|
@ -1,11 +1,14 @@
|
||||
package nautilus.game.arcade.game.games.minestrike.data;
|
||||
|
||||
import java.util.HashSet;
|
||||
|
||||
import nautilus.game.arcade.game.games.minestrike.MineStrike;
|
||||
import nautilus.game.arcade.game.games.minestrike.items.guns.Gun;
|
||||
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.util.Vector;
|
||||
|
||||
import mineplex.core.common.util.UtilMath;
|
||||
import mineplex.core.common.util.UtilTime;
|
||||
@ -16,15 +19,18 @@ public class Bullet
|
||||
public Entity Bullet;
|
||||
public Gun Gun;
|
||||
public Location Origin;
|
||||
public Vector Direction;
|
||||
|
||||
public long LastSound = System.currentTimeMillis() - 100;
|
||||
|
||||
public HashSet<Player> WhizzSound = new HashSet<Player>();
|
||||
|
||||
public Bullet(Entity bullet, Gun gun, Player shooter, MineStrike game)
|
||||
{
|
||||
Bullet = bullet;
|
||||
Gun = gun;
|
||||
Origin = shooter.getEyeLocation();
|
||||
Direction = shooter.getLocation().getDirection();
|
||||
Shooter = shooter;
|
||||
}
|
||||
|
||||
@ -33,9 +39,14 @@ public class Bullet
|
||||
return Bullet.isValid();
|
||||
}
|
||||
|
||||
public double getDamage(Location destination)
|
||||
public double getDamage()
|
||||
{
|
||||
return Gun.getDamage() * (1 - (Gun.getDropOff() * UtilMath.offset(Origin, destination)));
|
||||
return Gun.getDamage();
|
||||
}
|
||||
|
||||
public double getDamageDropoff(Location destination)
|
||||
{
|
||||
return -Gun.getDamage() * (Gun.getDropOff() * UtilMath.offset(Origin, destination));
|
||||
}
|
||||
|
||||
public boolean bulletSound()
|
||||
|
@ -9,7 +9,7 @@ public class Helmet extends Armor
|
||||
{
|
||||
super("Helmet", new String[]
|
||||
{
|
||||
"Reduces damage from headshots"
|
||||
"Reduces damage from head shots"
|
||||
},
|
||||
350, 0, Material.LEATHER_HELMET);
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ public class Kevlar extends Armor
|
||||
{
|
||||
super("Kevlar", new String[]
|
||||
{
|
||||
"Reduces bullet damage by 25%"
|
||||
"Reduces damage from body shots"
|
||||
},
|
||||
650, 0, Material.LEATHER_CHESTPLATE);
|
||||
}
|
||||
|
@ -140,8 +140,8 @@ public abstract class Grenade extends StrikeItem
|
||||
*/
|
||||
|
||||
//X Rebound
|
||||
if ((_vel.getX() > 0 && ent.getLocation().getX() - _lastLoc.getX() <= 0) ||
|
||||
(_vel.getX() < 0 && ent.getLocation().getX() - _lastLoc.getX() >= 0))
|
||||
if ((_vel.getX() > 0.05 && ent.getLocation().getX() - _lastLoc.getX() <= 0) ||
|
||||
(_vel.getX() < 0.05 && ent.getLocation().getX() - _lastLoc.getX() >= 0))
|
||||
{
|
||||
_vel = _velHistory.get(0);
|
||||
_vel.setX(-_vel.getX());
|
||||
@ -153,8 +153,8 @@ public abstract class Grenade extends StrikeItem
|
||||
}
|
||||
|
||||
//Z Rebound
|
||||
else if ((_vel.getZ() > 0 && ent.getLocation().getZ() - _lastLoc.getZ() <= 0) ||
|
||||
(_vel.getZ() < 0 && ent.getLocation().getZ() - _lastLoc.getZ() >= 0))
|
||||
else if ((_vel.getZ() > 0.05 && ent.getLocation().getZ() - _lastLoc.getZ() <= 0) ||
|
||||
(_vel.getZ() < 0.05 && ent.getLocation().getZ() - _lastLoc.getZ() >= 0))
|
||||
{
|
||||
_vel = _velHistory.get(0);
|
||||
_vel.setZ(-_vel.getZ());
|
||||
|
@ -17,7 +17,7 @@ public class HighExplosive extends Grenade
|
||||
{
|
||||
public HighExplosive()
|
||||
{
|
||||
super("HE Grenade", new String[]
|
||||
super("High Explosive", new String[]
|
||||
{
|
||||
|
||||
},
|
||||
@ -34,8 +34,7 @@ public class HighExplosive extends Grenade
|
||||
ent.getWorld().playSound(ent.getLocation(),
|
||||
Sound.EXPLODE, 3f, 0.8f);
|
||||
|
||||
HashMap<Player, Double> players = UtilPlayer.getInRadius(
|
||||
ent.getLocation(), 8);
|
||||
HashMap<Player, Double> players = UtilPlayer.getInRadius(ent.getLocation(), 10);
|
||||
for (Player player : players.keySet())
|
||||
{
|
||||
if (!game.IsAlive(player))
|
||||
|
@ -6,6 +6,6 @@ public class Incendiary extends FireGrenadeBase
|
||||
{
|
||||
public Incendiary()
|
||||
{
|
||||
super("Incendiary", 600, 0, Material.PORK, 10000);
|
||||
super("Incendiary", 600, 0, Material.PORK, 6000);
|
||||
}
|
||||
}
|
||||
|
@ -6,6 +6,6 @@ public class Molotov extends FireGrenadeBase
|
||||
{
|
||||
public Molotov()
|
||||
{
|
||||
super("Molotov", 400, 0, Material.GRILLED_PORK, 8000);
|
||||
super("Molotov", 400, 0, Material.GRILLED_PORK, 6000);
|
||||
}
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ public class Smoke extends Grenade
|
||||
{
|
||||
public Smoke()
|
||||
{
|
||||
super("Smoke Grenade", new String[]
|
||||
super("Smoke", new String[]
|
||||
{
|
||||
|
||||
},
|
||||
|
@ -4,6 +4,7 @@ import mineplex.core.common.util.C;
|
||||
import mineplex.core.common.util.F;
|
||||
import mineplex.core.common.util.UtilAlg;
|
||||
import mineplex.core.common.util.UtilEnt;
|
||||
import mineplex.core.common.util.UtilGear;
|
||||
import mineplex.core.common.util.UtilMath;
|
||||
import mineplex.core.common.util.UtilParticle;
|
||||
import mineplex.core.common.util.UtilPlayer;
|
||||
@ -24,6 +25,7 @@ import org.bukkit.Sound;
|
||||
import org.bukkit.entity.Arrow;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.entity.Snowball;
|
||||
import org.bukkit.event.player.PlayerMoveEvent;
|
||||
import org.bukkit.inventory.meta.ItemMeta;
|
||||
import org.bukkit.util.Vector;
|
||||
@ -40,13 +42,15 @@ public abstract class Gun extends StrikeItem
|
||||
protected long _reloadTime;
|
||||
protected double _damage;
|
||||
protected double _dropOffPerBlock;
|
||||
protected double _bulletSpeed;
|
||||
protected double _armorPen;
|
||||
protected Sound _fireSound;
|
||||
|
||||
protected double _coneMin;
|
||||
protected double _coneMax;
|
||||
protected double _coneReduceRate;
|
||||
protected double _coneIncreaseRate;
|
||||
|
||||
protected boolean _scope = false;
|
||||
|
||||
|
||||
//Active Data
|
||||
@ -60,7 +64,7 @@ public abstract class Gun extends StrikeItem
|
||||
int cost, int gemCost,
|
||||
int clipSize, int clipReserve,
|
||||
long fireRate, long reloadTime,
|
||||
double damage, double dropOffPerBlock, double bulletSpeed,
|
||||
double damage, double dropOffPerBlock, double armorPen,
|
||||
double coneMin, double coneMax,
|
||||
double coneIncrease, double coneReduce,
|
||||
Material skin, Sound sound)
|
||||
@ -80,7 +84,7 @@ public abstract class Gun extends StrikeItem
|
||||
_reloadTime = reloadTime;
|
||||
_damage = damage;
|
||||
_dropOffPerBlock = dropOffPerBlock;
|
||||
_bulletSpeed = bulletSpeed;
|
||||
_armorPen = armorPen;
|
||||
|
||||
_fireSound = sound;
|
||||
|
||||
@ -158,8 +162,15 @@ public abstract class Gun extends StrikeItem
|
||||
|
||||
public Bullet fireBullet(Player player, MineStrike game)
|
||||
{
|
||||
//Instant?
|
||||
boolean instant = game.getBulletType() == 1 || (game.getBulletType() == 2 && _gunType == GunType.SNIPER);
|
||||
|
||||
//Shoot
|
||||
Entity bullet = player.launchProjectile(Arrow.class);
|
||||
Entity bullet;
|
||||
if (instant)
|
||||
bullet = player.launchProjectile(Arrow.class);
|
||||
else
|
||||
bullet = player.launchProjectile(Snowball.class);
|
||||
|
||||
//COF
|
||||
double cone = getCone(player);
|
||||
@ -172,13 +183,19 @@ public abstract class Gun extends StrikeItem
|
||||
cof.add(player.getLocation().getDirection());
|
||||
cof.normalize();
|
||||
|
||||
bullet.setVelocity(cof.multiply(game.isInstantBullets() ? 200 : _bulletSpeed));
|
||||
//Velocity
|
||||
bullet.setVelocity(cof.multiply(instant ? 200 : 4));
|
||||
|
||||
//Increase COF
|
||||
_cone = Math.min(_coneMax, _cone + _coneIncreaseRate);
|
||||
|
||||
return new Bullet(bullet, this, player, game);
|
||||
}
|
||||
|
||||
public double getArmorPenetration()
|
||||
{
|
||||
return _armorPen;
|
||||
}
|
||||
|
||||
public double getCone(Player player)
|
||||
{
|
||||
@ -202,11 +219,20 @@ public abstract class Gun extends StrikeItem
|
||||
|
||||
|
||||
//Sniper Zoomed
|
||||
if (_gunType == GunType.SNIPER)
|
||||
if (_scope && UtilGear.isMat(player.getInventory().getHelmet(), Material.PUMPKIN))
|
||||
{
|
||||
if (player.isSneaking())
|
||||
//Snipers Perfectly Accurate if not jumping
|
||||
if (_gunType == GunType.SNIPER)
|
||||
{
|
||||
cone -= _cone;
|
||||
cone = 0;
|
||||
|
||||
if (!UtilEnt.isGrounded(player))
|
||||
cone += _gunType.getJumpPenalty();
|
||||
}
|
||||
//30% Recoil Decrease
|
||||
else
|
||||
{
|
||||
cone = cone * 0.7;
|
||||
}
|
||||
}
|
||||
|
||||
@ -224,6 +250,11 @@ public abstract class Gun extends StrikeItem
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public long getReloadTime()
|
||||
{
|
||||
return _reloadTime;
|
||||
}
|
||||
|
||||
public void reload(Player player)
|
||||
{
|
||||
@ -242,8 +273,8 @@ public abstract class Gun extends StrikeItem
|
||||
_reserveAmmo = Math.max(0, ammo - _clipSize);
|
||||
|
||||
//Recharge
|
||||
Recharge.Instance.useForce(player, getName() + " Shoot", _reloadTime);
|
||||
Recharge.Instance.use(player, getName() + " Reload", _reloadTime, false, true);
|
||||
Recharge.Instance.useForce(player, getName() + " Shoot", getReloadTime());
|
||||
Recharge.Instance.use(player, getName() + " Reload", getReloadTime(), false, true);
|
||||
|
||||
//Sound
|
||||
soundReload(player.getLocation());
|
||||
@ -268,11 +299,6 @@ public abstract class Gun extends StrikeItem
|
||||
player.getInventory().setItem(_slot, getStack());
|
||||
}
|
||||
|
||||
public double getDamage()
|
||||
{
|
||||
return _damage;
|
||||
}
|
||||
|
||||
public double getDropOff()
|
||||
{
|
||||
return _dropOffPerBlock;
|
||||
@ -363,8 +389,11 @@ public abstract class Gun extends StrikeItem
|
||||
_reserveAmmo = _clipReserve * _clipSize;
|
||||
|
||||
updateWeaponName(player);
|
||||
|
||||
player.setHealth(20);
|
||||
}
|
||||
|
||||
public double getDamage()
|
||||
{
|
||||
return _damage/5d;
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -372,4 +401,28 @@ public abstract class Gun extends StrikeItem
|
||||
{
|
||||
return C.cDGreen + C.Bold + _gunType.getName() + ChatColor.RESET;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getShopItemCustom()
|
||||
{
|
||||
return new String[]
|
||||
{
|
||||
C.cYellow + C.Bold + "Clip / Spare Ammo: " + ChatColor.RESET + _clipSize + "/" + _clipReserve*_clipSize,
|
||||
C.cYellow + C.Bold + "Damage per Bullet: " + ChatColor.RESET + UtilMath.trim(1, getDamage()),
|
||||
C.cYellow + C.Bold + "Armor Penetration: " + ChatColor.RESET + (int)(_armorPen*100) + "%",
|
||||
C.cYellow + C.Bold + "Damage Dropoff: " + ChatColor.RESET + (int)(_dropOffPerBlock*1000d) + "% per 10 Blocks",
|
||||
C.cYellow + C.Bold + "Recoil per Shot: " + ChatColor.RESET + _coneIncreaseRate,
|
||||
C.cYellow + C.Bold + "Recoil Recovery: " + ChatColor.RESET + _coneReduceRate + " per Second",
|
||||
};
|
||||
}
|
||||
|
||||
public boolean hasScope()
|
||||
{
|
||||
return _scope;
|
||||
}
|
||||
|
||||
public GunType getGunType()
|
||||
{
|
||||
return _gunType;
|
||||
}
|
||||
}
|
||||
|
@ -56,8 +56,11 @@ public abstract class Shotgun extends Gun
|
||||
@Override
|
||||
public void soundRefire(Location loc)
|
||||
{
|
||||
loc.getWorld().playSound(loc, Sound.PISTON_RETRACT, 0.8f, 1.2f);
|
||||
loc.getWorld().playSound(loc, Sound.PISTON_RETRACT, 0.8f, 1.2f);
|
||||
if (_fireRate >= 500)
|
||||
{
|
||||
loc.getWorld().playSound(loc, Sound.PISTON_RETRACT, 0.8f, 1.2f);
|
||||
loc.getWorld().playSound(loc, Sound.PISTON_RETRACT, 0.8f, 1.2f);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -71,4 +74,10 @@ public abstract class Shotgun extends Gun
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getReloadTime()
|
||||
{
|
||||
return _reloadTime * Math.min(_reserveAmmo, _clipSize - _loadedAmmo);
|
||||
}
|
||||
}
|
||||
|
@ -16,12 +16,12 @@ public class CZ75 extends Gun
|
||||
{
|
||||
|
||||
},
|
||||
300, 0, //Cost, Gem Cost
|
||||
500, 0, //Cost, Gem Cost
|
||||
12, 1, //Clip Size, Spare Ammo
|
||||
80, 2700, //ROF, Reload Time
|
||||
6, 0.01, 3.5, //Damage, Dropoff, Bullet Speed
|
||||
0, 0.15, //COF Min, COF Max
|
||||
0.06, 0.4, //COF Inc per Bullet, COF Dec per Second
|
||||
35, 0.006, 0.77, //Damage, Dropoff, Armor Penetration
|
||||
0, 0.25, //COF Min, COF Max
|
||||
0.06, 0.3, //COF Inc per Bullet, COF Dec per Second
|
||||
Material.IRON_HOE, Sound.ENDERMAN_DEATH);
|
||||
}
|
||||
}
|
||||
|
@ -18,10 +18,10 @@ public class Deagle extends Gun
|
||||
},
|
||||
800, 0, //Cost, Gem Cost
|
||||
7, 5, //Clip Size, Spare Ammo
|
||||
300, 2000, //ROF, Reload Time
|
||||
9, 0.01, 3.5, //Damage, Dropoff, Bullet Speed
|
||||
0, 0.2, //COF Min, COF Max
|
||||
0.12, 0.2, //COF Inc per Bullet, COF Dec per Second
|
||||
300, 2200, //ROF, Reload Time
|
||||
68, 0.007, 0.85, //Damage, Dropoff, Armor Penetration
|
||||
0, 0.25, //COF Min, COF Max
|
||||
0.18, 0.2, //COF Inc per Bullet, COF Dec per Second
|
||||
Material.GOLD_HOE, Sound.BAT_DEATH);
|
||||
}
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user