diff --git a/Plugins/Mineplex.Database/src/mineplex/database/Account.java b/Plugins/Mineplex.Database/src/mineplex/database/Account.java index 3522d8470..afe20f80e 100644 --- a/Plugins/Mineplex.Database/src/mineplex/database/Account.java +++ b/Plugins/Mineplex.Database/src/mineplex/database/Account.java @@ -11,7 +11,7 @@ package mineplex.database; @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 = 1728381793; + private static final long serialVersionUID = -871366556; /** * The singleton instance of Account @@ -44,6 +44,7 @@ public class Account extends org.jooq.impl.SchemaImpl implements java.io.Seriali mineplex.database.tables.Games.games, mineplex.database.tables.ItemCategories.itemCategories, mineplex.database.tables.Items.items, + mineplex.database.tables.Npcs.npcs, mineplex.database.tables.PlayerMap.playerMap, mineplex.database.tables.Polls.polls, mineplex.database.tables.Stats.stats, diff --git a/Plugins/Mineplex.Database/src/mineplex/database/Keys.java b/Plugins/Mineplex.Database/src/mineplex/database/Keys.java index 1b8fd423f..937fc08f3 100644 --- a/Plugins/Mineplex.Database/src/mineplex/database/Keys.java +++ b/Plugins/Mineplex.Database/src/mineplex/database/Keys.java @@ -28,6 +28,7 @@ public class Keys { public static final org.jooq.Identity IDENTITY_games = Identities0.IDENTITY_games; public static final org.jooq.Identity IDENTITY_itemCategories = Identities0.IDENTITY_itemCategories; public static final org.jooq.Identity IDENTITY_items = Identities0.IDENTITY_items; + public static final org.jooq.Identity IDENTITY_npcs = Identities0.IDENTITY_npcs; public static final org.jooq.Identity IDENTITY_playerMap = Identities0.IDENTITY_playerMap; public static final org.jooq.Identity IDENTITY_polls = Identities0.IDENTITY_polls; public static final org.jooq.Identity IDENTITY_stats = Identities0.IDENTITY_stats; @@ -54,6 +55,7 @@ public class Keys { public static final org.jooq.UniqueKey KEY_itemCategories_nameIndex = UniqueKeys0.KEY_itemCategories_nameIndex; public static final org.jooq.UniqueKey KEY_items_PRIMARY = UniqueKeys0.KEY_items_PRIMARY; public static final org.jooq.UniqueKey KEY_items_uniqueNameCategoryIndex = UniqueKeys0.KEY_items_uniqueNameCategoryIndex; + public static final org.jooq.UniqueKey KEY_npcs_PRIMARY = UniqueKeys0.KEY_npcs_PRIMARY; public static final org.jooq.UniqueKey KEY_playerMap_PRIMARY = UniqueKeys0.KEY_playerMap_PRIMARY; public static final org.jooq.UniqueKey KEY_playerMap_playerIndex = UniqueKeys0.KEY_playerMap_playerIndex; public static final org.jooq.UniqueKey KEY_polls_PRIMARY = UniqueKeys0.KEY_polls_PRIMARY; @@ -92,6 +94,7 @@ public class Keys { public static org.jooq.Identity IDENTITY_games = createIdentity(mineplex.database.tables.Games.games, mineplex.database.tables.Games.games.id); public static org.jooq.Identity IDENTITY_itemCategories = createIdentity(mineplex.database.tables.ItemCategories.itemCategories, mineplex.database.tables.ItemCategories.itemCategories.id); public static org.jooq.Identity IDENTITY_items = createIdentity(mineplex.database.tables.Items.items, mineplex.database.tables.Items.items.id); + public static org.jooq.Identity IDENTITY_npcs = createIdentity(mineplex.database.tables.Npcs.npcs, mineplex.database.tables.Npcs.npcs.id); public static org.jooq.Identity IDENTITY_playerMap = createIdentity(mineplex.database.tables.PlayerMap.playerMap, mineplex.database.tables.PlayerMap.playerMap.id); public static org.jooq.Identity IDENTITY_polls = createIdentity(mineplex.database.tables.Polls.polls, mineplex.database.tables.Polls.polls.id); public static org.jooq.Identity IDENTITY_stats = createIdentity(mineplex.database.tables.Stats.stats, mineplex.database.tables.Stats.stats.id); @@ -116,6 +119,7 @@ public class Keys { public static final org.jooq.UniqueKey KEY_itemCategories_nameIndex = createUniqueKey(mineplex.database.tables.ItemCategories.itemCategories, mineplex.database.tables.ItemCategories.itemCategories.name); public static final org.jooq.UniqueKey KEY_items_PRIMARY = createUniqueKey(mineplex.database.tables.Items.items, mineplex.database.tables.Items.items.id); public static final org.jooq.UniqueKey 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 KEY_npcs_PRIMARY = createUniqueKey(mineplex.database.tables.Npcs.npcs, mineplex.database.tables.Npcs.npcs.id); public static final org.jooq.UniqueKey KEY_playerMap_PRIMARY = createUniqueKey(mineplex.database.tables.PlayerMap.playerMap, mineplex.database.tables.PlayerMap.playerMap.id); public static final org.jooq.UniqueKey KEY_playerMap_playerIndex = createUniqueKey(mineplex.database.tables.PlayerMap.playerMap, mineplex.database.tables.PlayerMap.playerMap.playerName); public static final org.jooq.UniqueKey KEY_polls_PRIMARY = createUniqueKey(mineplex.database.tables.Polls.polls, mineplex.database.tables.Polls.polls.id); diff --git a/Plugins/Mineplex.Database/src/mineplex/database/Tables.java b/Plugins/Mineplex.Database/src/mineplex/database/Tables.java index ac363b115..c62a20aaf 100644 --- a/Plugins/Mineplex.Database/src/mineplex/database/Tables.java +++ b/Plugins/Mineplex.Database/src/mineplex/database/Tables.java @@ -63,6 +63,11 @@ public class Tables { */ public static final mineplex.database.tables.Items items = mineplex.database.tables.Items.items; + /** + * The table Account.npcs + */ + public static final mineplex.database.tables.Npcs npcs = mineplex.database.tables.Npcs.npcs; + /** * The table Account.playerMap */ diff --git a/Plugins/Mineplex.Database/src/mineplex/database/tables/Games.java b/Plugins/Mineplex.Database/src/mineplex/database/tables/Games.java index 1ed7b6b5d..f8376ea93 100644 --- a/Plugins/Mineplex.Database/src/mineplex/database/tables/Games.java +++ b/Plugins/Mineplex.Database/src/mineplex/database/tables/Games.java @@ -11,7 +11,7 @@ package mineplex.database.tables; @java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class Games extends org.jooq.impl.TableImpl implements java.io.Serializable, java.lang.Cloneable { - private static final long serialVersionUID = -239513034; + private static final long serialVersionUID = 1977514584; /** * The singleton instance of Account.games @@ -36,6 +36,11 @@ public class Games extends org.jooq.impl.TableImpl tournament = createField("tournament", org.jooq.impl.SQLDataType.BIT.nullable(false).defaulted(true), this, ""); + /** + * The column Account.games.server. + */ + public final org.jooq.TableField server = createField("server", org.jooq.impl.SQLDataType.VARCHAR.length(50).nullable(false), this, ""); + /** * The column Account.games.type. */ diff --git a/Plugins/Mineplex.Database/src/mineplex/database/tables/Npcs.java b/Plugins/Mineplex.Database/src/mineplex/database/tables/Npcs.java new file mode 100644 index 000000000..d28029f40 --- /dev/null +++ b/Plugins/Mineplex.Database/src/mineplex/database/tables/Npcs.java @@ -0,0 +1,169 @@ +/** + * 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 Npcs extends org.jooq.impl.TableImpl implements java.io.Serializable, java.lang.Cloneable { + + private static final long serialVersionUID = -1072109459; + + /** + * The singleton instance of Account.npcs + */ + public static final mineplex.database.tables.Npcs npcs = new mineplex.database.tables.Npcs(); + + /** + * The class holding records for this type + */ + @Override + public java.lang.Class getRecordType() { + return mineplex.database.tables.records.NpcsRecord.class; + } + + /** + * The column Account.npcs.id. + */ + public final org.jooq.TableField id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + + /** + * The column Account.npcs.server. + */ + public final org.jooq.TableField server = createField("server", org.jooq.impl.SQLDataType.VARCHAR.length(50).nullable(false), this, ""); + + /** + * The column Account.npcs.uuid. + */ + public final org.jooq.TableField uuid = createField("uuid", org.jooq.impl.SQLDataType.CHAR.length(36).nullable(false), this, ""); + + /** + * The column Account.npcs.name. + */ + public final org.jooq.TableField name = createField("name", org.jooq.impl.SQLDataType.VARCHAR.length(50).nullable(false), this, ""); + + /** + * The column Account.npcs.world. + */ + public final org.jooq.TableField world = createField("world", org.jooq.impl.SQLDataType.VARCHAR.length(50).nullable(false), this, ""); + + /** + * The column Account.npcs.x. + */ + public final org.jooq.TableField x = createField("x", org.jooq.impl.SQLDataType.FLOAT.nullable(false), this, ""); + + /** + * The column Account.npcs.y. + */ + public final org.jooq.TableField y = createField("y", org.jooq.impl.SQLDataType.FLOAT.nullable(false), this, ""); + + /** + * The column Account.npcs.z. + */ + public final org.jooq.TableField z = createField("z", org.jooq.impl.SQLDataType.FLOAT.nullable(false), this, ""); + + /** + * The column Account.npcs.radius. + */ + public final org.jooq.TableField radius = createField("radius", org.jooq.impl.SQLDataType.FLOAT.nullable(false), this, ""); + + /** + * The column Account.npcs.entityType. + */ + public final org.jooq.TableField entityType = createField("entityType", org.jooq.impl.SQLDataType.VARCHAR.length(50).nullable(false), this, ""); + + /** + * The column Account.npcs.adult. + */ + public final org.jooq.TableField adult = createField("adult", org.jooq.impl.SQLDataType.BIT.nullable(false).defaulted(true), this, ""); + + /** + * The column Account.npcs.helmet. + */ + public final org.jooq.TableField helmet = createField("helmet", org.jooq.impl.SQLDataType.VARCHAR.length(50), this, ""); + + /** + * The column Account.npcs.chestplate. + */ + public final org.jooq.TableField chestplate = createField("chestplate", org.jooq.impl.SQLDataType.VARCHAR.length(50), this, ""); + + /** + * The column Account.npcs.leggings. + */ + public final org.jooq.TableField leggings = createField("leggings", org.jooq.impl.SQLDataType.VARCHAR.length(50), this, ""); + + /** + * The column Account.npcs.boots. + */ + public final org.jooq.TableField boots = createField("boots", org.jooq.impl.SQLDataType.VARCHAR.length(50), this, ""); + + /** + * The column Account.npcs.inHand. + */ + public final org.jooq.TableField inHand = createField("inHand", org.jooq.impl.SQLDataType.VARCHAR.length(50), this, ""); + + /** + * Create a Account.npcs table reference + */ + public Npcs() { + this("npcs", null); + } + + /** + * Create an aliased Account.npcs table reference + */ + public Npcs(java.lang.String alias) { + this(alias, mineplex.database.tables.Npcs.npcs); + } + + private Npcs(java.lang.String alias, org.jooq.Table aliased) { + this(alias, aliased, null); + } + + private Npcs(java.lang.String alias, org.jooq.Table aliased, org.jooq.Field[] parameters) { + super(alias, mineplex.database.Account.Account, aliased, parameters, ""); + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Identity getIdentity() { + return mineplex.database.Keys.IDENTITY_npcs; + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.UniqueKey getPrimaryKey() { + return mineplex.database.Keys.KEY_npcs_PRIMARY; + } + + /** + * {@inheritDoc} + */ + @Override + public java.util.List> getKeys() { + return java.util.Arrays.>asList(mineplex.database.Keys.KEY_npcs_PRIMARY); + } + + /** + * {@inheritDoc} + */ + @Override + public mineplex.database.tables.Npcs as(java.lang.String alias) { + return new mineplex.database.tables.Npcs(alias, this); + } + + /** + * Rename this table + */ + public mineplex.database.tables.Npcs rename(java.lang.String name) { + return new mineplex.database.tables.Npcs(name, null); + } +} diff --git a/Plugins/Mineplex.Database/src/mineplex/database/tables/records/GamesRecord.java b/Plugins/Mineplex.Database/src/mineplex/database/tables/records/GamesRecord.java index 1bce13bec..0011b0c60 100644 --- a/Plugins/Mineplex.Database/src/mineplex/database/tables/records/GamesRecord.java +++ b/Plugins/Mineplex.Database/src/mineplex/database/tables/records/GamesRecord.java @@ -9,9 +9,9 @@ package mineplex.database.tables.records; @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 GamesRecord extends org.jooq.impl.UpdatableRecordImpl implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record5 { +public class GamesRecord extends org.jooq.impl.UpdatableRecordImpl implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record6 { - private static final long serialVersionUID = -1290368708; + private static final long serialVersionUID = -527436190; /** * Setter for Account.games.id. @@ -41,46 +41,60 @@ public class GamesRecord extends org.jooq.impl.UpdatableRecordImplAccount.games.server. + */ + public void setServer(java.lang.String value) { + setValue(2, value); + } + + /** + * Getter for Account.games.server. + */ + public java.lang.String getServer() { + return (java.lang.String) getValue(2); + } + /** * Setter for Account.games.type. */ public void setType(java.lang.String value) { - setValue(2, value); + setValue(3, value); } /** * Getter for Account.games.type. */ public java.lang.String getType() { - return (java.lang.String) getValue(2); + return (java.lang.String) getValue(3); } /** * Setter for Account.games.date. */ public void setDate(java.sql.Timestamp value) { - setValue(3, value); + setValue(4, value); } /** * Getter for Account.games.date. */ public java.sql.Timestamp getDate() { - return (java.sql.Timestamp) getValue(3); + return (java.sql.Timestamp) getValue(4); } /** * Setter for Account.games.duration. */ public void setDuration(java.lang.Integer value) { - setValue(4, value); + setValue(5, value); } /** * Getter for Account.games.duration. */ public java.lang.Integer getDuration() { - return (java.lang.Integer) getValue(4); + return (java.lang.Integer) getValue(5); } // ------------------------------------------------------------------------- @@ -96,23 +110,23 @@ public class GamesRecord extends org.jooq.impl.UpdatableRecordImpl fieldsRow() { - return (org.jooq.Row5) super.fieldsRow(); + public org.jooq.Row6 fieldsRow() { + return (org.jooq.Row6) super.fieldsRow(); } /** * {@inheritDoc} */ @Override - public org.jooq.Row5 valuesRow() { - return (org.jooq.Row5) super.valuesRow(); + public org.jooq.Row6 valuesRow() { + return (org.jooq.Row6) super.valuesRow(); } /** @@ -136,6 +150,14 @@ public class GamesRecord extends org.jooq.impl.UpdatableRecordImpl field3() { + return mineplex.database.tables.Games.games.server; + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Field field4() { return mineplex.database.tables.Games.games.type; } @@ -143,7 +165,7 @@ public class GamesRecord extends org.jooq.impl.UpdatableRecordImpl field4() { + public org.jooq.Field field5() { return mineplex.database.tables.Games.games.date; } @@ -151,7 +173,7 @@ public class GamesRecord extends org.jooq.impl.UpdatableRecordImpl field5() { + public org.jooq.Field field6() { return mineplex.database.tables.Games.games.duration; } @@ -176,6 +198,14 @@ public class GamesRecord extends org.jooq.impl.UpdatableRecordImpl implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record16 { + + private static final long serialVersionUID = 870408054; + + /** + * Setter for Account.npcs.id. + */ + public void setId(java.lang.Integer value) { + setValue(0, value); + } + + /** + * Getter for Account.npcs.id. + */ + public java.lang.Integer getId() { + return (java.lang.Integer) getValue(0); + } + + /** + * Setter for Account.npcs.server. + */ + public void setServer(java.lang.String value) { + setValue(1, value); + } + + /** + * Getter for Account.npcs.server. + */ + public java.lang.String getServer() { + return (java.lang.String) getValue(1); + } + + /** + * Setter for Account.npcs.uuid. + */ + public void setUuid(java.lang.String value) { + setValue(2, value); + } + + /** + * Getter for Account.npcs.uuid. + */ + public java.lang.String getUuid() { + return (java.lang.String) getValue(2); + } + + /** + * Setter for Account.npcs.name. + */ + public void setName(java.lang.String value) { + setValue(3, value); + } + + /** + * Getter for Account.npcs.name. + */ + public java.lang.String getName() { + return (java.lang.String) getValue(3); + } + + /** + * Setter for Account.npcs.world. + */ + public void setWorld(java.lang.String value) { + setValue(4, value); + } + + /** + * Getter for Account.npcs.world. + */ + public java.lang.String getWorld() { + return (java.lang.String) getValue(4); + } + + /** + * Setter for Account.npcs.x. + */ + public void setX(java.lang.Double value) { + setValue(5, value); + } + + /** + * Getter for Account.npcs.x. + */ + public java.lang.Double getX() { + return (java.lang.Double) getValue(5); + } + + /** + * Setter for Account.npcs.y. + */ + public void setY(java.lang.Double value) { + setValue(6, value); + } + + /** + * Getter for Account.npcs.y. + */ + public java.lang.Double getY() { + return (java.lang.Double) getValue(6); + } + + /** + * Setter for Account.npcs.z. + */ + public void setZ(java.lang.Double value) { + setValue(7, value); + } + + /** + * Getter for Account.npcs.z. + */ + public java.lang.Double getZ() { + return (java.lang.Double) getValue(7); + } + + /** + * Setter for Account.npcs.radius. + */ + public void setRadius(java.lang.Double value) { + setValue(8, value); + } + + /** + * Getter for Account.npcs.radius. + */ + public java.lang.Double getRadius() { + return (java.lang.Double) getValue(8); + } + + /** + * Setter for Account.npcs.entityType. + */ + public void setEntityType(java.lang.String value) { + setValue(9, value); + } + + /** + * Getter for Account.npcs.entityType. + */ + public java.lang.String getEntityType() { + return (java.lang.String) getValue(9); + } + + /** + * Setter for Account.npcs.adult. + */ + public void setAdult(java.lang.Boolean value) { + setValue(10, value); + } + + /** + * Getter for Account.npcs.adult. + */ + public java.lang.Boolean getAdult() { + return (java.lang.Boolean) getValue(10); + } + + /** + * Setter for Account.npcs.helmet. + */ + public void setHelmet(java.lang.String value) { + setValue(11, value); + } + + /** + * Getter for Account.npcs.helmet. + */ + public java.lang.String getHelmet() { + return (java.lang.String) getValue(11); + } + + /** + * Setter for Account.npcs.chestplate. + */ + public void setChestplate(java.lang.String value) { + setValue(12, value); + } + + /** + * Getter for Account.npcs.chestplate. + */ + public java.lang.String getChestplate() { + return (java.lang.String) getValue(12); + } + + /** + * Setter for Account.npcs.leggings. + */ + public void setLeggings(java.lang.String value) { + setValue(13, value); + } + + /** + * Getter for Account.npcs.leggings. + */ + public java.lang.String getLeggings() { + return (java.lang.String) getValue(13); + } + + /** + * Setter for Account.npcs.boots. + */ + public void setBoots(java.lang.String value) { + setValue(14, value); + } + + /** + * Getter for Account.npcs.boots. + */ + public java.lang.String getBoots() { + return (java.lang.String) getValue(14); + } + + /** + * Setter for Account.npcs.inHand. + */ + public void setInHand(java.lang.String value) { + setValue(15, value); + } + + /** + * Getter for Account.npcs.inHand. + */ + public java.lang.String getInHand() { + return (java.lang.String) getValue(15); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Record1 key() { + return (org.jooq.Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Record16 type implementation + // ------------------------------------------------------------------------- + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Row16 fieldsRow() { + return (org.jooq.Row16) super.fieldsRow(); + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Row16 valuesRow() { + return (org.jooq.Row16) super.valuesRow(); + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Field field1() { + return mineplex.database.tables.Npcs.npcs.id; + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Field field2() { + return mineplex.database.tables.Npcs.npcs.server; + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Field field3() { + return mineplex.database.tables.Npcs.npcs.uuid; + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Field field4() { + return mineplex.database.tables.Npcs.npcs.name; + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Field field5() { + return mineplex.database.tables.Npcs.npcs.world; + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Field field6() { + return mineplex.database.tables.Npcs.npcs.x; + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Field field7() { + return mineplex.database.tables.Npcs.npcs.y; + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Field field8() { + return mineplex.database.tables.Npcs.npcs.z; + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Field field9() { + return mineplex.database.tables.Npcs.npcs.radius; + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Field field10() { + return mineplex.database.tables.Npcs.npcs.entityType; + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Field field11() { + return mineplex.database.tables.Npcs.npcs.adult; + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Field field12() { + return mineplex.database.tables.Npcs.npcs.helmet; + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Field field13() { + return mineplex.database.tables.Npcs.npcs.chestplate; + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Field field14() { + return mineplex.database.tables.Npcs.npcs.leggings; + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Field field15() { + return mineplex.database.tables.Npcs.npcs.boots; + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Field field16() { + return mineplex.database.tables.Npcs.npcs.inHand; + } + + /** + * {@inheritDoc} + */ + @Override + public java.lang.Integer value1() { + return getId(); + } + + /** + * {@inheritDoc} + */ + @Override + public java.lang.String value2() { + return getServer(); + } + + /** + * {@inheritDoc} + */ + @Override + public java.lang.String value3() { + return getUuid(); + } + + /** + * {@inheritDoc} + */ + @Override + public java.lang.String value4() { + return getName(); + } + + /** + * {@inheritDoc} + */ + @Override + public java.lang.String value5() { + return getWorld(); + } + + /** + * {@inheritDoc} + */ + @Override + public java.lang.Double value6() { + return getX(); + } + + /** + * {@inheritDoc} + */ + @Override + public java.lang.Double value7() { + return getY(); + } + + /** + * {@inheritDoc} + */ + @Override + public java.lang.Double value8() { + return getZ(); + } + + /** + * {@inheritDoc} + */ + @Override + public java.lang.Double value9() { + return getRadius(); + } + + /** + * {@inheritDoc} + */ + @Override + public java.lang.String value10() { + return getEntityType(); + } + + /** + * {@inheritDoc} + */ + @Override + public java.lang.Boolean value11() { + return getAdult(); + } + + /** + * {@inheritDoc} + */ + @Override + public java.lang.String value12() { + return getHelmet(); + } + + /** + * {@inheritDoc} + */ + @Override + public java.lang.String value13() { + return getChestplate(); + } + + /** + * {@inheritDoc} + */ + @Override + public java.lang.String value14() { + return getLeggings(); + } + + /** + * {@inheritDoc} + */ + @Override + public java.lang.String value15() { + return getBoots(); + } + + /** + * {@inheritDoc} + */ + @Override + public java.lang.String value16() { + return getInHand(); + } + + /** + * {@inheritDoc} + */ + @Override + public NpcsRecord value1(java.lang.Integer value) { + setId(value); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public NpcsRecord value2(java.lang.String value) { + setServer(value); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public NpcsRecord value3(java.lang.String value) { + setUuid(value); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public NpcsRecord value4(java.lang.String value) { + setName(value); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public NpcsRecord value5(java.lang.String value) { + setWorld(value); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public NpcsRecord value6(java.lang.Double value) { + setX(value); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public NpcsRecord value7(java.lang.Double value) { + setY(value); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public NpcsRecord value8(java.lang.Double value) { + setZ(value); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public NpcsRecord value9(java.lang.Double value) { + setRadius(value); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public NpcsRecord value10(java.lang.String value) { + setEntityType(value); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public NpcsRecord value11(java.lang.Boolean value) { + setAdult(value); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public NpcsRecord value12(java.lang.String value) { + setHelmet(value); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public NpcsRecord value13(java.lang.String value) { + setChestplate(value); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public NpcsRecord value14(java.lang.String value) { + setLeggings(value); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public NpcsRecord value15(java.lang.String value) { + setBoots(value); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public NpcsRecord value16(java.lang.String value) { + setInHand(value); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public NpcsRecord values(java.lang.Integer value1, java.lang.String value2, java.lang.String value3, java.lang.String value4, java.lang.String value5, java.lang.Double value6, java.lang.Double value7, java.lang.Double value8, java.lang.Double value9, java.lang.String value10, java.lang.Boolean value11, java.lang.String value12, java.lang.String value13, java.lang.String value14, java.lang.String value15, java.lang.String value16) { + return this; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached NpcsRecord + */ + public NpcsRecord() { + super(mineplex.database.tables.Npcs.npcs); + } + + /** + * Create a detached, initialised NpcsRecord + */ + public NpcsRecord(java.lang.Integer id, java.lang.String server, java.lang.String uuid, java.lang.String name, java.lang.String world, java.lang.Double x, java.lang.Double y, java.lang.Double z, java.lang.Double radius, java.lang.String entityType, java.lang.Boolean adult, java.lang.String helmet, java.lang.String chestplate, java.lang.String leggings, java.lang.String boots, java.lang.String inHand) { + super(mineplex.database.tables.Npcs.npcs); + + setValue(0, id); + setValue(1, server); + setValue(2, uuid); + setValue(3, name); + setValue(4, world); + setValue(5, x); + setValue(6, y); + setValue(7, z); + setValue(8, radius); + setValue(9, entityType); + setValue(10, adult); + setValue(11, helmet); + setValue(12, chestplate); + setValue(13, leggings); + setValue(14, boots); + setValue(15, inHand); + } +} diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/ArcadeRepository.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/ArcadeRepository.java index 9a6df0928..940f5b80f 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/ArcadeRepository.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/ArcadeRepository.java @@ -16,9 +16,13 @@ import org.jooq.impl.DSL; public class ArcadeRepository extends RepositoryBase { + private final String serverName; + public ArcadeRepository(JavaPlugin plugin) { super(plugin, "jdbc:mysql://db.mineplex.com:3306/Account?autoReconnect=true&failOverReadOnly=false&maxReconnects=10", "root", "tAbechAk3wR7tuTh"); + + serverName = plugin.getConfig().getString("serverstatus.name"); } @Override @@ -46,6 +50,7 @@ public class ArcadeRepository extends RepositoryBase record.setDuration(duration); record.setTournament(tournament); record.setType(type.name()); + record.setServer(serverName); record.store(); List queryList = new ArrayList<>(players.size());