Merge branch 'master' of ssh://184.154.0.242:7999/min/Mineplex

Conflicts:
	Plugins/Mineplex.Hub/src/mineplex/hub/HubManager.java
This commit is contained in:
Jonathan Williams 2014-09-05 04:38:23 -07:00
commit d01529a344
100 changed files with 6368 additions and 233 deletions

View File

@ -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>

View File

@ -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>

View File

@ -1,13 +1,13 @@
<component name="libraryTable">
<library name="craftbukkit">
<CLASSES>
<root url="jar://$PROJECT_DIR$/Libraries/craftbukkit_official.jar!/" />
<root url="jar://$PROJECT_DIR$/Libraries/craftbukkit.jar!/" />
</CLASSES>
<JAVADOC>
<root url="http://jd.bukkit.org/dev/apidocs/" />
</JAVADOC>
<SOURCES>
<root url="jar://$PROJECT_DIR$/Libraries/craftbukkit_official.jar!/" />
<root url="jar://$PROJECT_DIR$/Libraries/craftbukkit.jar!/" />
</SOURCES>
</library>
</component>

View 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>

View 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>

View 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>

View File

@ -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>

View File

@ -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="" />

View 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>

View File

@ -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="" />

View File

@ -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="" />

View 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>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -7,7 +7,6 @@
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="Nautilus.Core.CraftBukkit" />
<orderEntry type="library" name="craftbukkit" level="project" />
</component>
</module>

View File

@ -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) + "."));

View File

@ -13,9 +13,10 @@
<orderEntry type="library" name="jedis" level="project" />
<orderEntry type="library" name="commons-pool2" level="project" />
<orderEntry type="module" module-name="Mineplex.Core.Common" />
<orderEntry type="module" module-name="Nautilus.Core.CraftBukkit" />
<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>

View File

@ -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();
}
}

View 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>

View 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>

View 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);
}
}

View 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);
}
}

View 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;
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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;
}
}

View File

@ -13,7 +13,6 @@
<orderEntry type="module" module-name="Mineplex.Core.Common" />
<orderEntry type="module" module-name="Mineplex.Minecraft.Game.ClassCombat" />
<orderEntry type="module" module-name="Mineplex.Minecraft.Game.Core" />
<orderEntry type="module" module-name="Nautilus.Core.CraftBukkit" />
<orderEntry type="library" name="craftbukkit" level="project" />
<orderEntry type="module" module-name="Mineplex.ServerData" />
</component>

View File

@ -10,7 +10,6 @@
<orderEntry type="module" module-name="Mineplex.Core" />
<orderEntry type="module" module-name="Mineplex.Core.Common" />
<orderEntry type="module" module-name="Mineplex.Minecraft.Game.Core" />
<orderEntry type="module" module-name="Nautilus.Core.CraftBukkit" />
<orderEntry type="library" name="craftbukkit" level="project" />
</component>
</module>

View File

@ -9,7 +9,6 @@
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="Mineplex.Core" />
<orderEntry type="module" module-name="Mineplex.Core.Common" />
<orderEntry type="module" module-name="Nautilus.Core.CraftBukkit" />
<orderEntry type="library" name="craftbukkit" level="project" />
</component>
</module>

View File

@ -11,7 +11,6 @@
<orderEntry type="module" module-name="Mineplex.Core.Common" />
<orderEntry type="module" module-name="Mineplex.Minecraft.Game.Core" />
<orderEntry type="module" module-name="Mineplex.Minecraft.Game.ClassCombat" />
<orderEntry type="module" module-name="Nautilus.Core.CraftBukkit" />
<orderEntry type="library" name="craftbukkit" level="project" />
</component>
</module>

View File

@ -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;
@ -120,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;
@ -233,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);
@ -950,4 +954,9 @@ public class ArcadeManager extends MiniPlugin implements IRelation
}
}
}
public LeaderboardRepository getLeaderboardRepository()
{
return _leaderboardRepository;
}
}

View File

@ -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;
}
}

View File

@ -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);
}
}

View File

@ -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);
}
});
}
}
}
}

View File

@ -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;
}
}

View File

@ -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);
}
}
}

View File

@ -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);
}
}
}

View File

@ -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

View File

@ -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()

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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());

View File

@ -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))

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -12,7 +12,7 @@ public class Smoke extends Grenade
{
public Smoke()
{
super("Smoke Grenade", new String[]
super("Smoke", new String[]
{
},

View File

@ -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;
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -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);
}
}

View File

@ -18,10 +18,10 @@ public class Glock18 extends Gun
},
200, 0, //Cost, Gem Cost
20, 6, //Clip Size, Spare Ammo
120, 2000, //ROF, Reload Time
5, 0.01, 3.5, //Damage, Dropoff, Bullet Speed
0, 0.15, //COF Min, COF Max
0.08, 0.3, //COF Inc per Bullet, COF Dec per Second
120, 2200, //ROF, Reload Time
28, 0.008, 0.47, //Damage, Dropoff, Armor Penetration
0, 0.18, //COF Min, COF Max
0.07, 0.3, //COF Inc per Bullet, COF Dec per Second
Material.STONE_HOE, Sound.BAT_LOOP);
}
}

View File

@ -19,9 +19,9 @@ public class P2000 extends Gun
200, 0, //Cost, Gem Cost
13, 4, //Clip Size, Spare Ammo
130, 2200, //ROF, Reload Time
6, 0.01, 3.5, //Damage, Dropoff, Bullet Speed
0, 0.15, //COF Min, COF Max
0.08, 0.3, //COF Inc per Bullet, COF Dec per Second
35, 0.008, 0.50, //Damage, Dropoff, Armor Penetration
0, 0.18, //COF Min, COF Max
0.07, 0.3, //COF Inc per Bullet, COF Dec per Second
Material.WOOD_HOE, Sound.GHAST_SCREAM2);
}
}

View File

@ -0,0 +1,27 @@
package nautilus.game.arcade.game.games.minestrike.items.guns.pistol;
import org.bukkit.Material;
import org.bukkit.Sound;
import nautilus.game.arcade.game.games.minestrike.items.StrikeItemType;
import nautilus.game.arcade.game.games.minestrike.items.guns.Gun;
import nautilus.game.arcade.game.games.minestrike.items.guns.GunType;
public class P250 extends Gun
{
public P250()
{
super(StrikeItemType.SECONDARY_WEAPON, GunType.PISTOL, "P250", new String[]
{
},
300, 0, //Cost, Gem Cost
13, 4, //Clip Size, Spare Ammo
130, 2200, //ROF, Reload Time
35, 0.005, 0.77, //Damage, Dropoff, Armor Penetration
0, 0.15, //COF Min, COF Max
0.06, 0.3, //COF Inc per Bullet, COF Dec per Second
Material.DIAMOND_HOE, Sound.SILVERFISH_KILL);
}
}

View File

@ -18,10 +18,10 @@ public class AK47 extends Gun
},
2700, 5000, //Cost, Gem Cost
30, 3, //Clip Size, Spare Ammo
80, 3600, //ROF, Reload Time
7.5, 0.005, 4, //Damage, Dropoff, Bullet Speed
0, 0.25, //COF Min, COF Max
0.050, 0.4, //COF Inc per Bullet, COF Dec per Second
80, 2500, //ROF, Reload Time
36, 0.004, 0.78, //Damage, Dropoff, Armor Penetration
0, 0.3, //COF Min, COF Max
0.051, 0.35, //COF Inc per Bullet, COF Dec per Second
Material.WOOD_SPADE, Sound.BURP);
}
}

View File

@ -0,0 +1,29 @@
package nautilus.game.arcade.game.games.minestrike.items.guns.rifle;
import org.bukkit.Material;
import org.bukkit.Sound;
import nautilus.game.arcade.game.games.minestrike.items.StrikeItemType;
import nautilus.game.arcade.game.games.minestrike.items.guns.Gun;
import nautilus.game.arcade.game.games.minestrike.items.guns.GunType;
public class AUG extends Gun
{
public AUG()
{
super(StrikeItemType.PRIMARY_WEAPON, GunType.RIFLE, "Steyr AUG", new String[]
{
},
3300, 5000, //Cost, Gem Cost
30, 3, //Clip Size, Spare Ammo
80, 3800, //ROF, Reload Time
28, 0.004, 0.9, //Damage, Dropoff, Armor Penetration
0, 0.25, //COF Min, COF Max
0.05, 0.4, //COF Inc per Bullet, COF Dec per Second
Material.GOLD_PICKAXE, Sound.VILLAGER_DEATH);
_scope = true;
}
}

View File

@ -19,10 +19,12 @@ public class AWP extends Gun
4750, 5000, //Cost, Gem Cost
10, 3, //Clip Size, Spare Ammo
1500, 3600, //ROF, Reload Time
30, 0.002, 4.3, //Damage, Dropoff, Bullet Speed
0.05, 0.05, //COF Min, COF Max
115, 0, 0.97, //Damage, Dropoff, Armor Penetration
0.1, 0.1, //COF Min, COF Max
0, 0, //COF Inc per Bullet, COF Dec per Second
Material.GOLD_SPADE, Sound.DRINK);
_scope = true;
}

View File

@ -0,0 +1,27 @@
package nautilus.game.arcade.game.games.minestrike.items.guns.rifle;
import org.bukkit.Material;
import org.bukkit.Sound;
import nautilus.game.arcade.game.games.minestrike.items.StrikeItemType;
import nautilus.game.arcade.game.games.minestrike.items.guns.Gun;
import nautilus.game.arcade.game.games.minestrike.items.guns.GunType;
public class Famas extends Gun
{
public Famas()
{
super(StrikeItemType.PRIMARY_WEAPON, GunType.RIFLE, "FAMAS", new String[]
{
},
2250, 5000, //Cost, Gem Cost
25, 4, //Clip Size, Spare Ammo
80, 3300, //ROF, Reload Time
30, 0.004, 0.7, //Damage, Dropoff, Armor Penetration
0, 0.28, //COF Min, COF Max
0.040, 0.30, //COF Inc per Bullet, COF Dec per Second
Material.WOOD_PICKAXE, Sound.WITHER_DEATH);
}
}

View File

@ -0,0 +1,27 @@
package nautilus.game.arcade.game.games.minestrike.items.guns.rifle;
import org.bukkit.Material;
import org.bukkit.Sound;
import nautilus.game.arcade.game.games.minestrike.items.StrikeItemType;
import nautilus.game.arcade.game.games.minestrike.items.guns.Gun;
import nautilus.game.arcade.game.games.minestrike.items.guns.GunType;
public class Galil extends Gun
{
public Galil()
{
super(StrikeItemType.PRIMARY_WEAPON, GunType.RIFLE, "Galil AR", new String[]
{
},
2000, 5000, //Cost, Gem Cost
35, 3, //Clip Size, Spare Ammo
80, 2600, //ROF, Reload Time
30, 0.004, 0.75, //Damage, Dropoff, Armor Penetration
0, 0.30, //COF Min, COF Max
0.042, 0.30, //COF Inc per Bullet, COF Dec per Second
Material.STONE_PICKAXE, Sound.WITHER_SHOOT);
}
}

View File

@ -8,9 +8,9 @@ import nautilus.game.arcade.game.games.minestrike.items.StrikeItemType;
import nautilus.game.arcade.game.games.minestrike.items.guns.Gun;
import nautilus.game.arcade.game.games.minestrike.items.guns.GunType;
public class M4A1 extends Gun
public class M4A4 extends Gun
{
public M4A1()
public M4A4()
{
super(StrikeItemType.PRIMARY_WEAPON, GunType.RIFLE, "M4A4", new String[]
{
@ -18,10 +18,10 @@ public class M4A1 extends Gun
},
2900, 5000, //Cost, Gem Cost
30, 3, //Clip Size, Spare Ammo
80, 3600, //ROF, Reload Time
7, 0.005, 4, //Damage, Dropoff, Bullet Speed
0, 0.2, //COF Min, COF Max
0.048, 0.4, //COF Inc per Bullet, COF Dec per Second
80, 3000, //ROF, Reload Time
33, 0.004, 0.7, //Damage, Dropoff, Armor Penetration
0, 0.26, //COF Min, COF Max
0.048, 0.35, //COF Inc per Bullet, COF Dec per Second
Material.STONE_SPADE, Sound.BAT_TAKEOFF);
}
}

View File

@ -0,0 +1,29 @@
package nautilus.game.arcade.game.games.minestrike.items.guns.rifle;
import org.bukkit.Material;
import org.bukkit.Sound;
import nautilus.game.arcade.game.games.minestrike.items.StrikeItemType;
import nautilus.game.arcade.game.games.minestrike.items.guns.Gun;
import nautilus.game.arcade.game.games.minestrike.items.guns.GunType;
public class SG553 extends Gun
{
public SG553()
{
super(StrikeItemType.PRIMARY_WEAPON, GunType.RIFLE, "SG553", new String[]
{
},
3000, 5000, //Cost, Gem Cost
30, 3, //Clip Size, Spare Ammo
80, 3800, //ROF, Reload Time
30, 0.004, 1.00, //Damage, Dropoff, Armor Penetration
0, 0.25, //COF Min, COF Max
0.052, 0.4, //COF Inc per Bullet, COF Dec per Second
Material.IRON_PICKAXE, Sound.WITHER_SPAWN);
_scope = true;
}
}

View File

@ -0,0 +1,31 @@
package nautilus.game.arcade.game.games.minestrike.items.guns.rifle;
import org.bukkit.Material;
import org.bukkit.Sound;
import nautilus.game.arcade.game.games.minestrike.items.StrikeItemType;
import nautilus.game.arcade.game.games.minestrike.items.guns.Gun;
import nautilus.game.arcade.game.games.minestrike.items.guns.GunType;
public class SSG08 extends Gun
{
public SSG08()
{
super(StrikeItemType.PRIMARY_WEAPON, GunType.SNIPER, "SSG 08", new String[]
{
},
1700, 5000, //Cost, Gem Cost
10, 6, //Clip Size, Spare Ammo
1250, 3700, //ROF, Reload Time
88, 0.001, 0.85, //Damage, Dropoff, Armor Penetration
0.08, 0.08, //COF Min, COF Max
0, 0, //COF Inc per Bullet, COF Dec per Second
Material.DIAMOND_PICKAXE, Sound.WOLF_DEATH);
_scope = true;
}
}

View File

@ -17,8 +17,8 @@ public class Nova extends Shotgun
},
1200, 5000, //Cost, Gem Cost
8, 4, //Clip Size, Spare Ammo
1000, 4000, //ROF, Reload Time
5, 0.02, 3.5, //Damage, Dropoff, Bullet Speed
1000, 800, //ROF, Reload Time
26, 0.01, 0.5, //Damage, Dropoff, Armor Penetration
0.15, 0.15, //COF Min, COF Max
0, 0, //COF Inc per Bullet, COF Dec per Second
Material.GOLD_AXE, Sound.BLAZE_DEATH, 9);

View File

@ -0,0 +1,26 @@
package nautilus.game.arcade.game.games.minestrike.items.guns.shotgun;
import org.bukkit.Material;
import org.bukkit.Sound;
import nautilus.game.arcade.game.games.minestrike.items.StrikeItemType;
import nautilus.game.arcade.game.games.minestrike.items.guns.Shotgun;
public class XM1014 extends Shotgun
{
public XM1014()
{
super(StrikeItemType.PRIMARY_WEAPON, "XM1014", new String[]
{
},
2000, 5000, //Cost, Gem Cost
7, 4, //Clip Size, Spare Ammo
260, 800, //ROF, Reload Time
20, 0.01, 0.8, //Damage, Dropoff, Armor Penetration
0.15, 0.15, //COF Min, COF Max
0, 0, //COF Inc per Bullet, COF Dec per Second
Material.DIAMOND_AXE, Sound.SKELETON_DEATH, 6);
}
}

View File

@ -18,10 +18,10 @@ public class P90 extends Gun
},
2350, 5000, //Cost, Gem Cost
50, 2, //Clip Size, Spare Ammo
35, 2800, //ROF, Reload Time
4, 0.02, 3.5, //Damage, Dropoff, Bullet Speed
0, 0.2, //COF Min, COF Max
0.03, 0.4, //COF Inc per Bullet, COF Dec per Second
35, 3300, //ROF, Reload Time
22, 0.006, 0.65, //Damage, Dropoff, Armor Penetration
0, 0.25, //COF Min, COF Max
0.022, 0.3, //COF Inc per Bullet, COF Dec per Second
Material.STONE_AXE, Sound.CREEPER_DEATH);
}
}

View File

@ -0,0 +1,27 @@
package nautilus.game.arcade.game.games.minestrike.items.guns.smg;
import org.bukkit.Material;
import org.bukkit.Sound;
import nautilus.game.arcade.game.games.minestrike.items.StrikeItemType;
import nautilus.game.arcade.game.games.minestrike.items.guns.Gun;
import nautilus.game.arcade.game.games.minestrike.items.guns.GunType;
public class PPBizon extends Gun
{
public PPBizon()
{
super(StrikeItemType.PRIMARY_WEAPON, GunType.SMG, "PP-Bizon", new String[]
{
},
1400, 5000, //Cost, Gem Cost
64, 2, //Clip Size, Spare Ammo
60, 2400, //ROF, Reload Time
27, 0.007, 0.47, //Damage, Dropoff, Armor Penetration
0, 0.3, //COF Min, COF Max
0.045, 0.3, //COF Inc per Bullet, COF Dec per Second
Material.WOOD_AXE, Sound.SHEEP_SHEAR);
}
}

View File

@ -50,7 +50,7 @@ public abstract class OrderCraft extends Order
if (event.getSlotType() != SlotType.RESULT)
return;
if (!UtilInv.IsItem(event.getCurrentItem(), _id, _data))
if (!UtilInv.IsItem(event.getCurrentItem(), null, _id, _data))
return;
if (!(event.getWhoClicked() instanceof Player))

View File

@ -45,7 +45,7 @@ public abstract class OrderGather extends Order
@EventHandler
public void Pickup(PlayerPickupItemEvent event)
{
if (!UtilInv.IsItem(event.getItem().getItemStack(), _id, _data))
if (!UtilInv.IsItem(event.getItem().getItemStack(), null, _id, _data))
return;
if (Has(event.getPlayer()))

View File

@ -66,7 +66,7 @@ public class PerkCreeperSulphurBomb extends Perk implements IThrown
UtilInv.Update(player);
org.bukkit.entity.Item ent = player.getWorld().dropItem(player.getEyeLocation(), ItemStackFactory.Instance.CreateStack(Material.FIREWORK_CHARGE, (byte)6));
org.bukkit.entity.Item ent = player.getWorld().dropItem(player.getEyeLocation(), ItemStackFactory.Instance.CreateStack(Material.COAL, (byte)0));
UtilAction.velocity(ent, player.getLocation().getDirection(), 1, false, 0, 0.2, 10, false);

View File

@ -14,9 +14,12 @@ import org.bukkit.event.entity.PlayerDeathEvent;
import org.bukkit.event.entity.ProjectileHitEvent;
import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.event.player.PlayerDropItemEvent;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import mineplex.core.common.util.C;
import mineplex.core.common.util.F;
import mineplex.core.common.util.UtilGear;
import mineplex.core.common.util.UtilInv;
import mineplex.core.common.util.UtilPlayer;
import mineplex.core.common.util.UtilServer;
@ -45,6 +48,22 @@ public class PerkFletcher extends Perk
_max = max;
_remove = remove;
}
public boolean isFletchedArrow(ItemStack stack)
{
if (!UtilGear.isMat(stack, Material.ARROW))
return false;
ItemMeta meta = stack.getItemMeta();
if (meta.getDisplayName() == null)
return false;
if (!meta.getDisplayName().contains("Fletched Arrow"))
return false;
return true;
}
@EventHandler
public void FletchShootBow(EntityShootBowEvent event)
@ -58,12 +77,11 @@ public class PerkFletcher extends Perk
return;
for (int i=0 ; i<=8 ; i++)
if (player.getInventory().getItem(i) != null)
if (UtilInv.IsItem(player.getInventory().getItem(i), Material.ARROW, (byte)1))
{
_fletchArrows.add(event.getProjectile());
return;
}
if (isFletchedArrow(player.getInventory().getItem(i)))
{
_fletchArrows.add(event.getProjectile());
return;
}
}
@EventHandler
@ -94,11 +112,11 @@ public class PerkFletcher extends Perk
if (!Recharge.Instance.use(cur, GetName(), _time * 1000, false, false))
continue;
if (UtilInv.contains(cur, Material.ARROW, (byte)1, _max))
if (UtilInv.contains(cur, "Fletched Arrow", Material.ARROW, (byte)0, _max))
continue;
//Add
cur.getInventory().addItem(ItemStackFactory.Instance.CreateStack(262, (byte)1, 1, F.item("Fletched Arrow")));
cur.getInventory().addItem(ItemStackFactory.Instance.CreateStack(262, (byte)0, 1, F.item("Fletched Arrow")));
cur.playSound(cur.getLocation(), Sound.ITEM_PICKUP, 2f, 1f);
}
@ -110,7 +128,7 @@ public class PerkFletcher extends Perk
if (event.isCancelled())
return;
if (!UtilInv.IsItem(event.getItemDrop().getItemStack(), Material.ARROW, (byte)1))
if (!isFletchedArrow(event.getItemDrop().getItemStack()))
return;
//Cancel
@ -126,7 +144,7 @@ public class PerkFletcher extends Perk
HashSet<org.bukkit.inventory.ItemStack> remove = new HashSet<org.bukkit.inventory.ItemStack>();
for (org.bukkit.inventory.ItemStack item : event.getDrops())
if (UtilInv.IsItem(item, Material.ARROW, (byte)1))
if (isFletchedArrow(item))
remove.add(item);
for (org.bukkit.inventory.ItemStack item : remove)
@ -136,7 +154,7 @@ public class PerkFletcher extends Perk
@EventHandler
public void FletchInvClick(InventoryClickEvent event)
{
UtilInv.DisallowMovementOf(event, "Fletched Arrow", Material.ARROW, (byte)1, true);
UtilInv.DisallowMovementOf(event, "Fletched Arrow", Material.ARROW, (byte)0, true);
}
@EventHandler

View File

@ -950,6 +950,9 @@ public class GameFlagManager implements Listener
if (event.getType() != UpdateType.SLOWER)
return;
if (Manager.GetGame().GetType() == GameType.MineStrike)
return;
for (Player player : UtilServer.getPlayers())
{
@ -961,6 +964,4 @@ public class GameFlagManager implements Listener
UtilPlayer.message(player, C.cWhite + C.Bold + "The next game will be starting soon...");
}
}
}

View File

@ -48,7 +48,7 @@ public class GameGemManager implements Listener
Game game = Manager.GetGame();
if (game == null) return;
if (!(event.GetEvent().getEntity() instanceof Player))
return;
@ -109,7 +109,7 @@ public class GameGemManager implements Listener
if (event.GetState() != PlayerState.OUT)
return;
if (event.GetGame().GetType() == GameType.Paintball)
if (event.GetGame().GetType() == GameType.Paintball || event.GetGame().GetType() == GameType.MineStrike)
return;
RewardGems(event.GetGame(), event.GetPlayer(), false);

View File

@ -38,10 +38,13 @@ public class ParalympicsStatTracker extends StatTracker<Game>
{
List<Player> winners = getGame().getWinners();
for (Player winner : winners)
if (winners != null)
{
if (!_hasLeaped.contains(winner.getUniqueId()))
addStat(winner, "Paralympics", 1, true, false);
for (Player winner : winners)
{
if (!_hasLeaped.contains(winner.getUniqueId()))
addStat(winner, "Paralympics", 1, true, false);
}
}
}
}

View File

@ -32,7 +32,7 @@ public class SharpShooterStatTracker extends StatTracker<Game>
if (event.getEntity().getShooter() instanceof Player && event.getEntity() instanceof Arrow)
{
Player player = (Player) event.getEntity();
Player player = (Player) event.getEntity().getShooter();
Integer count = _arrowsShot.get(player.getUniqueId());
count = (count == null ? 0 : count) + 1;

View File

@ -46,8 +46,11 @@ public class TheComebackStatTracker extends StatTracker<TurfForts>
{
if (_hasWentFiveOrBelow.contains(getGame().WinnerTeam))
{
for (Player player : getGame().getWinners())
addStat(player, "TheComeback", 1, true, false);
if (getGame().getWinners() != null)
{
for (Player player : getGame().getWinners())
addStat(player, "TheComeback", 1, true, false);
}
}
}
}