Merge branch 'develop' of github.com:Mineplex-LLC/Minecraft-PC into update/clans
This commit is contained in:
commit
4e0971ab0a
@ -28,10 +28,6 @@
|
||||
<groupId>commons-codec</groupId>
|
||||
<artifactId>commons-codec</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>net.kencochrane.raven</groupId>
|
||||
<artifactId>raven</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>net.md-5</groupId>
|
||||
<artifactId>bungeecord-proxy</artifactId>
|
||||
|
@ -1,35 +1,16 @@
|
||||
package mineplex.bungee;
|
||||
|
||||
import java.util.logging.Handler;
|
||||
import java.util.logging.Level;
|
||||
import mineplex.bungee.lobbyBalancer.LobbyBalancer;
|
||||
import mineplex.bungee.motd.MotdManager;
|
||||
import mineplex.bungee.playerCount.PlayerCount;
|
||||
import mineplex.bungee.playerStats.PlayerStats;
|
||||
import mineplex.bungee.playerTracker.PlayerTracker;
|
||||
import net.kencochrane.raven.DefaultRavenFactory;
|
||||
import net.kencochrane.raven.dsn.Dsn;
|
||||
import net.kencochrane.raven.jul.SentryHandler;
|
||||
import net.md_5.bungee.api.plugin.Plugin;
|
||||
|
||||
public class Mineplexer extends Plugin
|
||||
{
|
||||
@Override
|
||||
public void onEnable() {
|
||||
getProxy().getScheduler().runAsync(this, new Runnable()
|
||||
{
|
||||
@Override
|
||||
public void run()
|
||||
{
|
||||
// Sentry setup
|
||||
Handler sentry = new SentryHandler(new DefaultRavenFactory().createRavenInstance(
|
||||
new Dsn("https://470f12378af3453ba089e0c0a0c9aae6:292516b722594784807aebb06db8ec38@app.getsentry.com/66323"
|
||||
)));
|
||||
sentry.setLevel(Level.SEVERE);
|
||||
getProxy().getLogger().addHandler(sentry);
|
||||
}
|
||||
});
|
||||
|
||||
new MotdManager(this);
|
||||
new LobbyBalancer(this);
|
||||
new PlayerCount(this);
|
||||
|
@ -1,16 +1,22 @@
|
||||
package mineplex.core.antihack;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
import java.util.Map.Entry;
|
||||
|
||||
import mineplex.core.MiniPlugin;
|
||||
import mineplex.core.account.CoreClientManager;
|
||||
import mineplex.core.antihack.types.Fly;
|
||||
import mineplex.core.antihack.types.Idle;
|
||||
import mineplex.core.antihack.types.Reach;
|
||||
import mineplex.core.antihack.types.Speed;
|
||||
import mineplex.core.common.Rank;
|
||||
import mineplex.core.common.util.*;
|
||||
import mineplex.core.portal.Portal;
|
||||
import mineplex.core.preferences.PreferencesManager;
|
||||
import mineplex.core.punish.Punish;
|
||||
import mineplex.core.updater.UpdateType;
|
||||
import mineplex.core.updater.event.UpdateEvent;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.GameMode;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.Sound;
|
||||
import org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
@ -21,26 +27,11 @@ import org.bukkit.event.player.PlayerVelocityEvent;
|
||||
import org.bukkit.event.server.ServerListPingEvent;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
import mineplex.core.MiniPlugin;
|
||||
import mineplex.core.account.CoreClientManager;
|
||||
import mineplex.core.antihack.types.Fly;
|
||||
import mineplex.core.antihack.types.Idle;
|
||||
import mineplex.core.antihack.types.Reach;
|
||||
import mineplex.core.antihack.types.Speed;
|
||||
import mineplex.core.common.Rank;
|
||||
import mineplex.core.common.util.C;
|
||||
import mineplex.core.common.util.F;
|
||||
import mineplex.core.common.util.UtilEnt;
|
||||
import mineplex.core.common.util.UtilInv;
|
||||
import mineplex.core.common.util.UtilMath;
|
||||
import mineplex.core.common.util.UtilPlayer;
|
||||
import mineplex.core.common.util.UtilServer;
|
||||
import mineplex.core.common.util.UtilTime;
|
||||
import mineplex.core.portal.Portal;
|
||||
import mineplex.core.preferences.PreferencesManager;
|
||||
import mineplex.core.punish.Punish;
|
||||
import mineplex.core.updater.UpdateType;
|
||||
import mineplex.core.updater.event.UpdateEvent;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
import java.util.Map.Entry;
|
||||
|
||||
public class AntiHack extends MiniPlugin
|
||||
{
|
||||
@ -351,42 +342,6 @@ public class AntiHack extends MiniPlugin
|
||||
}
|
||||
}
|
||||
|
||||
//Auto-Kick
|
||||
if (!handled &&
|
||||
_clientManager.Get(player).GetRank() != Rank.YOUTUBE &&
|
||||
_clientManager.Get(player).GetRank() != Rank.YOUTUBE_SMALL &&
|
||||
_clientManager.Get(player).GetRank() != Rank.TWITCH)
|
||||
{
|
||||
player.playSound(player.getLocation(), Sound.ENDERDRAGON_GROWL, 2f, 0.5f);
|
||||
|
||||
if (_kick || _hubAttempted.remove(player))
|
||||
{
|
||||
player.kickPlayer(
|
||||
C.cGold + "Mineplex Anti-Cheat" + "\n" +
|
||||
C.cWhite + "You were kicked for suspicious movement." + "\n" +
|
||||
C.cWhite + "Cheating may result in a " + C.cRed + "Permanent Ban" + C.cWhite + "." + "\n" +
|
||||
C.cWhite + "If you were not cheating, you will not be banned."
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
_hubAttempted.add(player);
|
||||
|
||||
UtilPlayer.message(player, C.cGold + C.Strike + "---------------------------------------------");
|
||||
UtilPlayer.message(player, "");
|
||||
UtilPlayer.message(player, C.cGold + "Mineplex Anti-Cheat");
|
||||
UtilPlayer.message(player, "");
|
||||
UtilPlayer.message(player, "You were kicked from the game for suspicious movement.");
|
||||
UtilPlayer.message(player, "Cheating may result in a " + C.cRed + "Permanent Ban" + C.cWhite + ".");
|
||||
UtilPlayer.message(player, "If you were not cheating, you will not be banned.");
|
||||
UtilPlayer.message(player, "");
|
||||
UtilPlayer.message(player, C.cGold + C.Strike + "---------------------------------------------");
|
||||
Portal.sendPlayerToServer(player, "Lobby");
|
||||
}
|
||||
|
||||
UtilServer.broadcast(F.main("MAC", player.getName() + " was kicked for suspicious movement."));
|
||||
}
|
||||
|
||||
//Record
|
||||
ServerListPingEvent event = new ServerListPingEvent(null, Bukkit.getServer().getMotd(), Bukkit.getServer().getOnlinePlayers().size(), Bukkit.getServer().getMaxPlayers());
|
||||
getPluginManager().callEvent(event);
|
||||
|
@ -14,7 +14,6 @@ import mineplex.core.bonuses.gui.BonusGui;
|
||||
import mineplex.core.bonuses.gui.SpinGui;
|
||||
import mineplex.core.bonuses.redis.VoteHandler;
|
||||
import mineplex.core.bonuses.redis.VotifierCommand;
|
||||
import mineplex.core.boosters.BoosterManager;
|
||||
import mineplex.core.common.Rank;
|
||||
import mineplex.core.common.util.*;
|
||||
import mineplex.core.common.util.UtilParticle.ParticleType;
|
||||
@ -35,6 +34,7 @@ import mineplex.core.recharge.Recharge;
|
||||
import mineplex.core.reward.RewardManager;
|
||||
import mineplex.core.stats.StatsManager;
|
||||
import mineplex.core.status.ServerStatusManager;
|
||||
import mineplex.core.thank.ThankManager;
|
||||
import mineplex.core.treasure.TreasureType;
|
||||
import mineplex.core.updater.UpdateType;
|
||||
import mineplex.core.updater.event.UpdateEvent;
|
||||
@ -123,7 +123,7 @@ public class BonusManager extends MiniClientPlugin<BonusClientData> implements I
|
||||
private StatsManager _statsManager;
|
||||
private FacebookManager _facebookManager;
|
||||
private YoutubeManager _youtubeManager;
|
||||
private BoosterManager _boosterManager;
|
||||
private ThankManager _thankManager;
|
||||
public boolean _enabled;
|
||||
private Npc _carlNpc;
|
||||
private AnimationCarl _animation;
|
||||
@ -162,7 +162,7 @@ public class BonusManager extends MiniClientPlugin<BonusClientData> implements I
|
||||
updateOffSet();
|
||||
}
|
||||
|
||||
public BonusManager(JavaPlugin plugin, CoreClientManager clientManager, ServerStatusManager statusManager, DonationManager donationManager, PollManager pollManager, NpcManager npcManager, HologramManager hologramManager, StatsManager statsManager, InventoryManager inventoryManager, PetManager petManager, FacebookManager facebookManager, YoutubeManager youtubeManager, GadgetManager gadgetManager, BoosterManager boosterManager)
|
||||
public BonusManager(JavaPlugin plugin, CoreClientManager clientManager, ServerStatusManager statusManager, DonationManager donationManager, PollManager pollManager, NpcManager npcManager, HologramManager hologramManager, StatsManager statsManager, InventoryManager inventoryManager, PetManager petManager, FacebookManager facebookManager, YoutubeManager youtubeManager, GadgetManager gadgetManager, ThankManager thankManager)
|
||||
{
|
||||
super("Bonus", plugin);
|
||||
_repository = new BonusRepository(plugin, this, donationManager);
|
||||
@ -171,7 +171,7 @@ public class BonusManager extends MiniClientPlugin<BonusClientData> implements I
|
||||
_npcManager = npcManager;
|
||||
_hologramManager = hologramManager;
|
||||
_inventoryManager = inventoryManager;
|
||||
_boosterManager = boosterManager;
|
||||
_thankManager = thankManager;
|
||||
|
||||
_rewardManager = new RewardManager(_clientManager, _donationManager, _inventoryManager, petManager, statsManager, gadgetManager);
|
||||
|
||||
@ -825,7 +825,7 @@ public class BonusManager extends MiniClientPlugin<BonusClientData> implements I
|
||||
if (entity.equals(_carlNpc.getEntity()))
|
||||
{
|
||||
updateDailyStreak(event.getPlayer());
|
||||
new BonusGui(_plugin, event.getPlayer(), this, _rewardManager, _facebookManager, _youtubeManager, _boosterManager).openInventory();
|
||||
new BonusGui(_plugin, event.getPlayer(), this, _rewardManager, _facebookManager, _youtubeManager, _thankManager).openInventory();
|
||||
}
|
||||
}
|
||||
|
||||
@ -841,7 +841,7 @@ public class BonusManager extends MiniClientPlugin<BonusClientData> implements I
|
||||
if (event.getEntity().equals(_carlNpc.getEntity()))
|
||||
{
|
||||
updateDailyStreak(player);
|
||||
new BonusGui(_plugin, player, this, _rewardManager, _facebookManager, _youtubeManager, _boosterManager).openInventory();
|
||||
new BonusGui(_plugin, player, this, _rewardManager, _facebookManager, _youtubeManager, _thankManager).openInventory();
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -908,7 +908,7 @@ public class BonusManager extends MiniClientPlugin<BonusClientData> implements I
|
||||
if (canDaily(player)) availableRewards++;
|
||||
if (getPollManager().getNextPoll(_pollManager.Get(player), _clientManager.Get(player).GetRank()) != null) availableRewards++;
|
||||
if (!_facebookManager.hasRedeemed(player)) availableRewards++;
|
||||
if (_boosterManager.getTipManager().Get(player).getTips() > 0) availableRewards++;
|
||||
if (_thankManager.Get(player).getThankToClaim() > 0) availableRewards++;
|
||||
|
||||
Hologram hologram;
|
||||
|
||||
@ -1194,8 +1194,9 @@ public class BonusManager extends MiniClientPlugin<BonusClientData> implements I
|
||||
return "SELECT * FROM bonus WHERE accountId = '" + accountId + "';";
|
||||
}
|
||||
|
||||
public BoosterManager getBoosterManager()
|
||||
public ThankManager getThankManager()
|
||||
{
|
||||
return _boosterManager;
|
||||
return _thankManager;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,6 +1,5 @@
|
||||
package mineplex.core.bonuses.commands;
|
||||
|
||||
import mineplex.core.boosters.BoosterManager;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import mineplex.core.command.CommandBase;
|
||||
@ -18,7 +17,7 @@ public class GuiCommand extends CommandBase<BonusManager>
|
||||
@Override
|
||||
public void Execute(Player caller, String[] args)
|
||||
{
|
||||
new BonusGui(Plugin.getPlugin(), caller, Plugin, Plugin.getRewardManager(), Plugin.getFacebookManager(), Plugin.getYoutubeManager(), Plugin.getBoosterManager()).openInventory();
|
||||
new BonusGui(Plugin.getPlugin(), caller, Plugin, Plugin.getRewardManager(), Plugin.getFacebookManager(), Plugin.getYoutubeManager(), Plugin.getThankManager()).openInventory();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -2,10 +2,10 @@ package mineplex.core.bonuses.gui;
|
||||
|
||||
import mineplex.core.bonuses.BonusManager;
|
||||
import mineplex.core.bonuses.gui.buttons.*;
|
||||
import mineplex.core.boosters.BoosterManager;
|
||||
import mineplex.core.facebook.FacebookManager;
|
||||
import mineplex.core.gui.SimpleGui;
|
||||
import mineplex.core.reward.RewardManager;
|
||||
import mineplex.core.thank.ThankManager;
|
||||
import mineplex.core.youtube.YoutubeManager;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.plugin.Plugin;
|
||||
@ -15,7 +15,7 @@ public class BonusGui extends SimpleGui
|
||||
|
||||
private BonusManager manager;
|
||||
|
||||
public BonusGui(Plugin plugin, Player player, BonusManager manager, RewardManager rewardManager, FacebookManager facebookManager, YoutubeManager youtubeManager, BoosterManager boosterManager)
|
||||
public BonusGui(Plugin plugin, Player player, BonusManager manager, RewardManager rewardManager, FacebookManager facebookManager, YoutubeManager youtubeManager, ThankManager thankManager)
|
||||
{
|
||||
super(plugin, player, player.getName() + "'s Bonuses", 5 * 9);
|
||||
|
||||
@ -35,7 +35,7 @@ public class BonusGui extends SimpleGui
|
||||
|
||||
setItem(23, new TwitterButton(player));
|
||||
|
||||
setItem(25, new ClaimTipsButton(getPlugin(), player, this, manager, boosterManager));
|
||||
setItem(25, new ClaimTipsButton(getPlugin(), player, this, manager, thankManager));
|
||||
|
||||
setItem(31, new CarlSpinButton(getPlugin(), player, manager, rewardManager));
|
||||
}
|
||||
|
@ -1,7 +1,6 @@
|
||||
package mineplex.core.bonuses.gui.buttons;
|
||||
|
||||
import mineplex.core.bonuses.BonusManager;
|
||||
import mineplex.core.boosters.BoosterManager;
|
||||
import mineplex.core.common.currency.GlobalCurrency;
|
||||
import mineplex.core.common.util.C;
|
||||
import mineplex.core.common.util.F;
|
||||
@ -12,6 +11,7 @@ import mineplex.core.gui.pages.LoadingWindow;
|
||||
import mineplex.core.gui.pages.TimedMessageWindow;
|
||||
import mineplex.core.itemstack.ItemStackFactory;
|
||||
import mineplex.core.shop.item.ShopItem;
|
||||
import mineplex.core.thank.ThankManager;
|
||||
import org.bukkit.*;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.HandlerList;
|
||||
@ -31,12 +31,12 @@ public class ClaimTipsButton implements GuiItem, Listener
|
||||
private ItemRefresher _gui;
|
||||
|
||||
private BonusManager _bonusManager;
|
||||
private BoosterManager _boosterManager;
|
||||
private ThankManager _thankManager;
|
||||
|
||||
public ClaimTipsButton(Plugin plugin, Player player, ItemRefresher gui, BonusManager bonusManager, BoosterManager boosterManager)
|
||||
public ClaimTipsButton(Plugin plugin, Player player, ItemRefresher gui, BonusManager bonusManager, ThankManager thankManager)
|
||||
{
|
||||
_bonusManager = bonusManager;
|
||||
_boosterManager = boosterManager;
|
||||
_thankManager = thankManager;
|
||||
_player = player;
|
||||
_plugin = plugin;
|
||||
_gui = gui;
|
||||
@ -62,8 +62,8 @@ public class ClaimTipsButton implements GuiItem, Listener
|
||||
_item = ItemStackFactory.Instance.CreateStack(Material.LAPIS_BLOCK, (byte)0, 1, ChatColor.BLUE + "Processing...");
|
||||
refreshItem();
|
||||
new LoadingWindow(getPlugin(), getPlayer(), 6*9);
|
||||
_boosterManager.getTipManager().claimTips(getPlayer(), claimed -> {
|
||||
if (claimed > 0)
|
||||
_thankManager.claimThanks(getPlayer(), claimThankResult -> {
|
||||
if (claimThankResult != null && claimThankResult.getClaimed() > 0)
|
||||
{
|
||||
// Woo, success!
|
||||
setItem();
|
||||
@ -73,17 +73,17 @@ public class ClaimTipsButton implements GuiItem, Listener
|
||||
new TimedMessageWindow(getPlugin(), getPlayer(), ItemStackFactory.Instance.CreateStack(Material.STAINED_GLASS_PANE, DyeColor.LIME.getData(), 1, ChatColor.GREEN + "Amplifier Thanks Collected"), "Thanks Collected", 6*9, 20*3, getGui()).openInventory();
|
||||
}
|
||||
|
||||
UtilPlayer.message(getPlayer(), F.main("Carl", "You collected " + F.currency(GlobalCurrency.TREASURE_SHARD, claimed) + " from Amplifiers!"));
|
||||
UtilPlayer.message(getPlayer(), F.main("Carl", "You collected " + F.currency(GlobalCurrency.TREASURE_SHARD, claimThankResult.getClaimed()) + " from " + F.elem(claimThankResult.getUniqueThanks()) + " players!"));
|
||||
// Pending explosions are strange.. Not sure why we are using strings. Either way, lets display a rank reward effect
|
||||
_bonusManager.addPendingExplosion(getPlayer(), "RANK");
|
||||
getPlayer().playSound(getPlayer().getLocation(), Sound.NOTE_PLING, 1, 1.6f);
|
||||
}
|
||||
else if (claimed == 0)
|
||||
else if (claimThankResult != null && claimThankResult.getClaimed() == 0)
|
||||
{
|
||||
// No tips to claim
|
||||
if (getPlayer().getOpenInventory() != null)
|
||||
{
|
||||
new TimedMessageWindow(getPlugin(), getPlayer(), ItemStackFactory.Instance.CreateStack(Material.STAINED_GLASS_PANE, DyeColor.RED.getData(), 1, ChatColor.RED + "No Thanks to Claim!"), "You have no thanks to claim!", 6*9, 20*3, getGui()).openInventory();
|
||||
new TimedMessageWindow(getPlugin(), getPlayer(), ItemStackFactory.Instance.CreateStack(Material.STAINED_GLASS_PANE, DyeColor.RED.getData(), 1, ChatColor.RED + "No Thanks to Claim!"), "You have no thank to claim!", 6*9, 20*3, getGui()).openInventory();
|
||||
}
|
||||
|
||||
UtilPlayer.message(getPlayer(), F.main("Carl", "You have no rewards to claim!"));
|
||||
@ -119,7 +119,7 @@ public class ClaimTipsButton implements GuiItem, Listener
|
||||
if (isAvailable())
|
||||
{
|
||||
material = Material.EMERALD;
|
||||
itemName = C.cGreen + C.Bold + "Game Amplifiers";
|
||||
itemName = C.cGreen + C.Bold + "Thank Rewards";
|
||||
lore.add(" ");
|
||||
lore.add(C.cYellow + "Your Rewards");
|
||||
lore.add(" " + C.cWhite + getTips() + " Treasure Shards");
|
||||
@ -129,10 +129,11 @@ public class ClaimTipsButton implements GuiItem, Listener
|
||||
else
|
||||
{
|
||||
material = Material.REDSTONE_BLOCK;
|
||||
itemName = C.cRed + C.Bold + "Game Amplifiers";
|
||||
itemName = C.cRed + C.Bold + "Thank Rewards";
|
||||
|
||||
lore.add(" ");
|
||||
lore.add(C.cGray + "Use Amplifiers to earn rewards");
|
||||
lore.add(C.cGray + "Earn Thank Rewards from players using /thank");
|
||||
lore.add(C.cGray + "on you, or by enabling Game Amplifiers.");
|
||||
lore.add(" ");
|
||||
lore.add(C.cWhite + "Get Amplifiers at " + C.cGreen + "mineplex.com/shop");
|
||||
}
|
||||
@ -153,7 +154,7 @@ public class ClaimTipsButton implements GuiItem, Listener
|
||||
|
||||
private int getTips()
|
||||
{
|
||||
return _boosterManager.getTipManager().Get(getPlayer()).getTips();
|
||||
return _thankManager.Get(_player).getThankToClaim();
|
||||
}
|
||||
|
||||
private boolean isAvailable()
|
||||
|
@ -1,6 +1,5 @@
|
||||
package mineplex.core.boosters;
|
||||
|
||||
import com.mojang.authlib.properties.PropertyMap;
|
||||
import mineplex.core.MiniPlugin;
|
||||
import mineplex.core.account.CoreClientManager;
|
||||
import mineplex.core.boosters.command.BoosterCommand;
|
||||
@ -10,7 +9,7 @@ import mineplex.core.boosters.event.BoosterItemGiveEvent;
|
||||
import mineplex.core.boosters.event.BoosterUpdateEvent;
|
||||
import mineplex.core.boosters.gui.BoosterShop;
|
||||
import mineplex.core.boosters.redis.BoosterUpdateRepository;
|
||||
import mineplex.core.boosters.tips.BoosterTipManager;
|
||||
import mineplex.core.boosters.tips.BoosterThankManager;
|
||||
import mineplex.core.common.util.C;
|
||||
import mineplex.core.common.util.Callback;
|
||||
import mineplex.core.common.util.UtilGear;
|
||||
@ -19,12 +18,12 @@ import mineplex.core.common.util.UtilServer;
|
||||
import mineplex.core.donation.DonationManager;
|
||||
import mineplex.core.inventory.InventoryManager;
|
||||
import mineplex.core.itemstack.ItemStackFactory;
|
||||
import mineplex.core.thank.ThankManager;
|
||||
import mineplex.core.updater.UpdateType;
|
||||
import mineplex.core.updater.event.UpdateEvent;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.Event;
|
||||
import org.bukkit.event.EventHandler;
|
||||
@ -64,8 +63,8 @@ public class BoosterManager extends MiniPlugin
|
||||
private CoreClientManager _clientManager;
|
||||
private DonationManager _donationManager;
|
||||
private InventoryManager _inventoryManager;
|
||||
private BoosterThankManager _boosterThankManager;
|
||||
|
||||
private BoosterTipManager _tipManager;
|
||||
private BoosterShop _shop;
|
||||
private String _boosterGroup;
|
||||
|
||||
@ -74,7 +73,7 @@ public class BoosterManager extends MiniPlugin
|
||||
private long _cacheLastUpdated;
|
||||
private Map<String, List<Booster>> _boosterCache = new HashMap<>();
|
||||
|
||||
public BoosterManager(JavaPlugin plugin, String boosterGroup, CoreClientManager clientManager, DonationManager donationManager, InventoryManager inventoryManager)
|
||||
public BoosterManager(JavaPlugin plugin, String boosterGroup, CoreClientManager clientManager, DonationManager donationManager, InventoryManager inventoryManager, ThankManager thankManager)
|
||||
{
|
||||
super("Booster Manager", plugin);
|
||||
|
||||
@ -84,7 +83,7 @@ public class BoosterManager extends MiniPlugin
|
||||
_donationManager = donationManager;
|
||||
_inventoryManager = inventoryManager;
|
||||
|
||||
_tipManager = new BoosterTipManager(plugin, clientManager, donationManager);
|
||||
_boosterThankManager = new BoosterThankManager(plugin, clientManager, thankManager);
|
||||
_shop = new BoosterShop(this, clientManager, donationManager);
|
||||
|
||||
try
|
||||
@ -335,9 +334,9 @@ public class BoosterManager extends MiniPlugin
|
||||
handleBoosterUpdate(event.getBoosterMap());
|
||||
}
|
||||
|
||||
public BoosterTipManager getTipManager()
|
||||
public BoosterThankManager getBoosterThankManager()
|
||||
{
|
||||
return _tipManager;
|
||||
return _boosterThankManager;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2,7 +2,7 @@ package mineplex.core.boosters.command;
|
||||
|
||||
import mineplex.core.boosters.Booster;
|
||||
import mineplex.core.boosters.BoosterManager;
|
||||
import mineplex.core.boosters.tips.BoosterTipManager;
|
||||
import mineplex.core.boosters.tips.BoosterThankManager;
|
||||
import mineplex.core.boosters.tips.TipAddResult;
|
||||
import mineplex.core.command.CommandBase;
|
||||
import mineplex.core.common.Rank;
|
||||
@ -56,12 +56,12 @@ public class ThankCommand extends CommandBase<BoosterManager>
|
||||
}
|
||||
else
|
||||
{
|
||||
Plugin.getTipManager().addTip(caller, booster, result ->
|
||||
Plugin.getBoosterThankManager().addTip(caller, booster, result ->
|
||||
{
|
||||
if (result == TipAddResult.SUCCESS)
|
||||
{
|
||||
UtilPlayer.message(caller, F.main("Tip", "You thanked " + F.name(booster.getPlayerName()) + ". They earned " + F.currency(GlobalCurrency.TREASURE_SHARD, BoosterTipManager.TIP_FOR_SPONSOR) + " and you got "
|
||||
+ F.currency(GlobalCurrency.TREASURE_SHARD, BoosterTipManager.TIP_FOR_TIPPER)) + " in return!");
|
||||
UtilPlayer.message(caller, F.main("Tip", "You thanked " + F.name(booster.getPlayerName()) + ". They earned " + F.currency(GlobalCurrency.TREASURE_SHARD, BoosterThankManager.TIP_FOR_SPONSOR) + " and you got "
|
||||
+ F.currency(GlobalCurrency.TREASURE_SHARD, BoosterThankManager.TIP_FOR_TIPPER)) + " in return!");
|
||||
caller.playSound(caller.getLocation(), Sound.LEVEL_UP, 1f, 1f);
|
||||
}
|
||||
else if (result.getFriendlyMessage() != null)
|
||||
|
@ -0,0 +1,93 @@
|
||||
package mineplex.core.boosters.tips;
|
||||
|
||||
import mineplex.core.MiniPlugin;
|
||||
import mineplex.core.account.CoreClientManager;
|
||||
import mineplex.core.boosters.Booster;
|
||||
import mineplex.core.common.util.Callback;
|
||||
import mineplex.core.common.util.F;
|
||||
import mineplex.core.common.util.UtilPlayer;
|
||||
import mineplex.core.recharge.Recharge;
|
||||
import mineplex.core.thank.ThankManager;
|
||||
import mineplex.core.thank.ThankResult;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
/**
|
||||
* This class handles "thanking" Amplifiers. This is a way of rewarding players for activating Amplifiers.
|
||||
*
|
||||
* @author Shaun Bennett
|
||||
*/
|
||||
public class BoosterThankManager extends MiniPlugin
|
||||
{
|
||||
public static final int TIP_FOR_SPONSOR = 5;
|
||||
public static final int TIP_FOR_TIPPER = 5;
|
||||
|
||||
private BoosterThankRepository _repository;
|
||||
private CoreClientManager _clientManager;
|
||||
private ThankManager _thankManager;
|
||||
|
||||
public BoosterThankManager(JavaPlugin plugin, CoreClientManager clientManager, ThankManager thankManager)
|
||||
{
|
||||
super("Amplifier Thanks", plugin);
|
||||
|
||||
_clientManager = clientManager;
|
||||
_repository = new BoosterThankRepository(plugin);
|
||||
_thankManager = thankManager;
|
||||
}
|
||||
|
||||
/**
|
||||
* Attempt to "Thank" an Amplifier. This checks with {@link BoosterThankRepository} if a player hasn't already
|
||||
* thanked that Amplifier. If they havent, we proceed to use {@link ThankManager} to send a thank you to the player
|
||||
* who activated that Amplifier.
|
||||
*
|
||||
* @param player The player sending the thanks
|
||||
* @param booster The Amplifier to be thanked
|
||||
* @param callback Callback with the result of sending the thanks
|
||||
*/
|
||||
public void addTip(Player player, Booster booster, Callback<TipAddResult> callback)
|
||||
{
|
||||
if (!Recharge.Instance.use(player, "Amplifier Thanks", 1000 * 5, false, false))
|
||||
{
|
||||
UtilPlayer.message(player, F.main("Amplifier", "Please wait before trying that again"));
|
||||
callback.run(TipAddResult.ON_COOLDOWN);
|
||||
return;
|
||||
}
|
||||
|
||||
int accountId = _clientManager.getAccountId(player);
|
||||
|
||||
// Break out if client manager has a bad account id
|
||||
if (accountId == -1)
|
||||
{
|
||||
callback.run(TipAddResult.INVALID_ACCOUNT_ID);
|
||||
return;
|
||||
}
|
||||
|
||||
// You can't tip yourself, silly!
|
||||
if (accountId == booster.getAccountId())
|
||||
{
|
||||
callback.run(TipAddResult.CANNOT_TIP_SELF);
|
||||
return;
|
||||
}
|
||||
|
||||
runAsync(() ->
|
||||
{
|
||||
if (_repository.checkAmplifierThank(accountId, booster.getId()))
|
||||
{
|
||||
// We can thank that amplifier!
|
||||
_thankManager.thankPlayer(booster.getPlayerName(), booster.getAccountId(), player.getName(), accountId,
|
||||
TIP_FOR_SPONSOR, TIP_FOR_TIPPER, "Amplifier", true, thankResult ->
|
||||
runSync(() -> callback.run(fromThankResult(thankResult))));
|
||||
}
|
||||
else
|
||||
{
|
||||
runSync(() -> callback.run(TipAddResult.ALREADY_TIPPED_BOOSTER));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
private TipAddResult fromThankResult(ThankResult result)
|
||||
{
|
||||
return result == ThankResult.SUCCESS ? TipAddResult.SUCCESS : TipAddResult.UNKNOWN_ERROR;
|
||||
}
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
package mineplex.core.boosters.tips;
|
||||
|
||||
import mineplex.core.database.MinecraftRepository;
|
||||
import mineplex.database.routines.AddTip;
|
||||
import mineplex.database.routines.CheckAmplifierThank;
|
||||
import mineplex.database.routines.ClaimTips;
|
||||
import mineplex.serverdata.database.DBPool;
|
||||
import mineplex.serverdata.database.RepositoryBase;
|
||||
import mineplex.serverdata.database.column.ColumnInt;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
/**
|
||||
* @author Shaun Bennett
|
||||
*/
|
||||
public class BoosterThankRepository extends MinecraftRepository
|
||||
{
|
||||
public BoosterThankRepository(JavaPlugin plugin)
|
||||
{
|
||||
super(plugin, DBPool.getAccount());
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks the database if an accountId is allowed to thank a specific Amplifier.
|
||||
* This will return true and update the database if the thank is okay, or false
|
||||
* if that account ID has already thanked that Amplifier ID.
|
||||
*
|
||||
* @param accountId Account ID of the player trying to thank the Amplifier
|
||||
* @param amplifierId The ID of the Amplifier the player is trying to thank
|
||||
* @return True if the account id can thank the amplifier id, false otherwise
|
||||
*/
|
||||
public boolean checkAmplifierThank(int accountId, int amplifierId)
|
||||
{
|
||||
CheckAmplifierThank checkAmplifierThank = new CheckAmplifierThank();
|
||||
checkAmplifierThank.setInAccountId(accountId);
|
||||
checkAmplifierThank.setInAmplifierId(amplifierId);
|
||||
checkAmplifierThank.execute(jooq().configuration());
|
||||
return checkAmplifierThank.getCanThank() == 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void initialize()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
@ -1,133 +0,0 @@
|
||||
package mineplex.core.boosters.tips;
|
||||
|
||||
import mineplex.core.MiniDbClientPlugin;
|
||||
import mineplex.core.account.CoreClientManager;
|
||||
import mineplex.core.boosters.Booster;
|
||||
import mineplex.core.common.util.Callback;
|
||||
import mineplex.core.common.util.F;
|
||||
import mineplex.core.common.util.UtilPlayer;
|
||||
import mineplex.core.donation.DonationManager;
|
||||
import mineplex.core.recharge.Recharge;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
|
||||
/**
|
||||
* @author Shaun Bennett
|
||||
*/
|
||||
public class BoosterTipManager extends MiniDbClientPlugin<PlayerTipData>
|
||||
{
|
||||
public static final int TIP_FOR_SPONSOR = 5;
|
||||
public static final int TIP_FOR_TIPPER = 5;
|
||||
|
||||
private BoosterTipRepository _repository;
|
||||
private DonationManager _donationManager;
|
||||
|
||||
public BoosterTipManager(JavaPlugin plugin, CoreClientManager clientManager, DonationManager donationManager)
|
||||
{
|
||||
super("Amplifier Thanks", plugin, clientManager);
|
||||
|
||||
_donationManager = donationManager;
|
||||
_repository = new BoosterTipRepository(plugin);
|
||||
}
|
||||
|
||||
public void addTip(Player player, Booster booster, Callback<TipAddResult> callback)
|
||||
{
|
||||
if (!Recharge.Instance.use(player, "Amplifier Thanks", 1000 * 5, false, false))
|
||||
{
|
||||
UtilPlayer.message(player, F.main("Amplifier", "Please wait before trying that again"));
|
||||
callback.run(TipAddResult.ON_COOLDOWN);
|
||||
return;
|
||||
}
|
||||
|
||||
int accountId = ClientManager.getAccountId(player);
|
||||
|
||||
// Break out if client manager has a bad account id
|
||||
if (accountId == -1)
|
||||
{
|
||||
callback.run(TipAddResult.INVALID_ACCOUNT_ID);
|
||||
return;
|
||||
}
|
||||
|
||||
// You can't tip yourself, silly!
|
||||
if (accountId == booster.getAccountId())
|
||||
{
|
||||
callback.run(TipAddResult.CANNOT_TIP_SELF);
|
||||
return;
|
||||
}
|
||||
|
||||
runAsync(() -> {
|
||||
TipAddResult result;
|
||||
if (_repository.addTip(accountId, booster.getAccountId(), booster.getId(), TIP_FOR_SPONSOR))
|
||||
{
|
||||
_donationManager.rewardCoinsUntilSuccess(null, "Tips", player.getName(), accountId, TIP_FOR_TIPPER);
|
||||
result = TipAddResult.SUCCESS;
|
||||
}
|
||||
else
|
||||
result = TipAddResult.ALREADY_TIPPED_BOOSTER;
|
||||
|
||||
runSync(() -> callback.run(result));
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Claim all tips for a player and add those tips to their account (Treasure Shards)
|
||||
* This will call a database routine that handles the tip process.
|
||||
*
|
||||
* The callback will return -1 on a failed attempt or 0 if there was no tips to claim
|
||||
* @param player The player with tips to claim
|
||||
* @param callback Callback returning the amount of tips claimed
|
||||
*/
|
||||
public void claimTips(Player player, Callback<Integer> callback)
|
||||
{
|
||||
String playerName = player.getName();
|
||||
int accountId = ClientManager.getAccountId(player);
|
||||
|
||||
if (accountId == -1)
|
||||
{
|
||||
// uh oh, invalid account id!
|
||||
if (callback != null) callback.run(-1);
|
||||
}
|
||||
|
||||
runAsync(() -> {
|
||||
int tips = _repository.claimTips(accountId);
|
||||
runSync(() -> {
|
||||
if (tips > 0)
|
||||
{
|
||||
_donationManager.rewardCoinsUntilSuccess(null, "Tips", playerName, accountId, tips);
|
||||
}
|
||||
|
||||
// Reset tips back to 0
|
||||
if (Get(player) != null) Get(player).setTips(0);
|
||||
if (callback != null) callback.run(tips);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getQuery(int accountId, String uuid, String name)
|
||||
{
|
||||
return "SELECT tips FROM Account.accountTip WHERE accountTip.accountId = " + accountId + ";";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected PlayerTipData addPlayer(String player)
|
||||
{
|
||||
return new PlayerTipData();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void processLoginResultSet(String playerName, int accountId, ResultSet resultSet) throws SQLException
|
||||
{
|
||||
PlayerTipData data = new PlayerTipData();
|
||||
|
||||
while (resultSet.next())
|
||||
{
|
||||
data.setTips(resultSet.getInt(1));
|
||||
}
|
||||
|
||||
Set(playerName, data);
|
||||
}
|
||||
}
|
@ -1,55 +0,0 @@
|
||||
package mineplex.core.boosters.tips;
|
||||
|
||||
import mineplex.core.database.MinecraftRepository;
|
||||
import mineplex.database.routines.AddTip;
|
||||
import mineplex.database.routines.ClaimTips;
|
||||
import mineplex.serverdata.database.DBPool;
|
||||
import mineplex.serverdata.database.RepositoryBase;
|
||||
import mineplex.serverdata.database.column.ColumnInt;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
/**
|
||||
* @author Shaun Bennett
|
||||
*/
|
||||
public class BoosterTipRepository extends MinecraftRepository
|
||||
{
|
||||
public static String LOG_TIP = "INSERT INTO Account.accountTipLogs (accountId, boosterId) VALUES (?, ?)";
|
||||
public static String ADD_TIP = "INSERT INTO Account.accountTip (accountId, tips) VALUES (?, ?) ON DUPLICATE KEY UPDATE tips = tips + ?";
|
||||
|
||||
public BoosterTipRepository(JavaPlugin plugin)
|
||||
{
|
||||
super(plugin, DBPool.getAccount());
|
||||
}
|
||||
|
||||
public boolean addTip(int tipperId, int receiverId, int boosterId, int tipAmount)
|
||||
{
|
||||
AddTip addTip = new AddTip();
|
||||
addTip.setTipperAccountId(tipperId);
|
||||
addTip.setBoosterAccountId(receiverId);
|
||||
addTip.setBoosterId(boosterId);
|
||||
addTip.setTipAmount(tipAmount);
|
||||
addTip.execute(jooq().configuration());
|
||||
return addTip.getSuccess() == 1;
|
||||
}
|
||||
|
||||
public int claimTips(int accountId)
|
||||
{
|
||||
ClaimTips claimTips = new ClaimTips();
|
||||
claimTips.setAccountId_in(accountId);
|
||||
claimTips.execute(jooq().configuration());
|
||||
return claimTips.getTipsClaimed();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void initialize()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
@ -7,6 +7,7 @@ public enum TipAddResult
|
||||
{
|
||||
ALREADY_TIPPED_BOOSTER("You have already thanked this Amplifier!"),
|
||||
INVALID_ACCOUNT_ID("Uh oh, something went wrong. Try relogging"),
|
||||
UNKNOWN_ERROR("An error occurred. Try again later"),
|
||||
CANNOT_TIP_SELF("You can't thank yourself, silly!"),
|
||||
ON_COOLDOWN(null),
|
||||
SUCCESS(null);
|
||||
|
@ -1,40 +1,5 @@
|
||||
package mineplex.core.chat;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.DataOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStreamReader;
|
||||
import java.net.URL;
|
||||
import java.nio.charset.Charset;
|
||||
import java.security.cert.X509Certificate;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
import java.util.function.Function;
|
||||
|
||||
import javax.net.ssl.HostnameVerifier;
|
||||
import javax.net.ssl.HttpsURLConnection;
|
||||
import javax.net.ssl.SSLContext;
|
||||
import javax.net.ssl.SSLSession;
|
||||
import javax.net.ssl.TrustManager;
|
||||
import javax.net.ssl.X509TrustManager;
|
||||
|
||||
import org.apache.commons.lang3.Validate;
|
||||
import org.bukkit.block.Sign;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.EventPriority;
|
||||
import org.bukkit.event.block.SignChangeEvent;
|
||||
import org.bukkit.event.player.AsyncPlayerChatEvent;
|
||||
import org.bukkit.event.player.PlayerCommandPreprocessEvent;
|
||||
import org.bukkit.event.player.PlayerQuitEvent;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
import org.json.simple.JSONArray;
|
||||
import org.json.simple.JSONObject;
|
||||
import org.json.simple.JSONValue;
|
||||
|
||||
import mineplex.core.MiniPlugin;
|
||||
import mineplex.core.account.CoreClientManager;
|
||||
import mineplex.core.achievement.AchievementManager;
|
||||
@ -53,6 +18,39 @@ import mineplex.core.preferences.PreferencesManager;
|
||||
import mineplex.core.recharge.Recharge;
|
||||
import mineplex.core.updater.UpdateType;
|
||||
import mineplex.core.updater.event.UpdateEvent;
|
||||
import org.apache.commons.lang3.Validate;
|
||||
import org.bukkit.block.Sign;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.EventPriority;
|
||||
import org.bukkit.event.block.SignChangeEvent;
|
||||
import org.bukkit.event.player.AsyncPlayerChatEvent;
|
||||
import org.bukkit.event.player.PlayerCommandPreprocessEvent;
|
||||
import org.bukkit.event.player.PlayerQuitEvent;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
import org.json.simple.JSONArray;
|
||||
import org.json.simple.JSONObject;
|
||||
import org.json.simple.JSONValue;
|
||||
|
||||
import javax.net.ssl.HostnameVerifier;
|
||||
import javax.net.ssl.HttpsURLConnection;
|
||||
import javax.net.ssl.SSLContext;
|
||||
import javax.net.ssl.SSLSession;
|
||||
import javax.net.ssl.TrustManager;
|
||||
import javax.net.ssl.X509TrustManager;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.DataOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStreamReader;
|
||||
import java.net.URL;
|
||||
import java.nio.charset.Charset;
|
||||
import java.security.cert.X509Certificate;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
import java.util.function.Function;
|
||||
|
||||
public class Chat extends MiniPlugin
|
||||
{
|
||||
@ -69,7 +67,6 @@ public class Chat extends MiniPlugin
|
||||
|
||||
private int _chatSlow = 0;
|
||||
private long _silenced = 0;
|
||||
private boolean _threeSecondDelay = true;
|
||||
|
||||
private List<Function<AsyncPlayerChatEvent, Boolean>> _highPriorityFilters = new ArrayList<>();
|
||||
private List<Function<AsyncPlayerChatEvent, Boolean>> _lowPriorityFilters = new ArrayList<>();
|
||||
@ -349,15 +346,6 @@ public class Chat extends MiniPlugin
|
||||
event.setCancelled(true);
|
||||
return;
|
||||
}
|
||||
else if (_threeSecondDelay &&
|
||||
_clientManager.Get(sender).GetRank() == Rank.ALL &&
|
||||
_achievements.getMineplexLevelNumber(sender, Rank.ALL) < 25 &&
|
||||
!Recharge.Instance.use(sender, "All Chat Message", 3000, false, false))
|
||||
{
|
||||
UtilPlayer.message(sender, C.cYellow + "You can only chat once every 3 seconds to prevent spam.");
|
||||
UtilPlayer.message(sender, C.cYellow + "Buy a Rank at " + C.cGreen + "www.mineplex.com/shop" + C.cYellow + " to remove this limit!");
|
||||
event.setCancelled(true);
|
||||
}
|
||||
else if (!_clientManager.Get(sender).GetRank().has(Rank.MODERATOR) &&
|
||||
!Recharge.Instance.use(sender, "Chat Message", 400, false, false))
|
||||
{
|
||||
@ -645,11 +633,6 @@ public class Chat extends MiniPlugin
|
||||
_playerLastMessage.remove(event.getPlayer().getUniqueId());
|
||||
}
|
||||
|
||||
public void setThreeSecondDelay(boolean b)
|
||||
{
|
||||
_threeSecondDelay = b;
|
||||
}
|
||||
|
||||
/**
|
||||
* If the function returns Boolean.TRUE then the message will be CANCELLED.
|
||||
*/
|
||||
|
@ -17,6 +17,7 @@ import net.md_5.bungee.api.chat.ClickEvent.Action;
|
||||
import net.md_5.bungee.api.chat.HoverEvent;
|
||||
import net.md_5.bungee.api.chat.TextComponent;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Sound;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.scheduler.BukkitRunnable;
|
||||
import org.bukkit.scheduler.BukkitTask;
|
||||
@ -124,6 +125,7 @@ public class PartyInviteManager
|
||||
inviteTo(player.getUniqueId(), sender, sender, serverFrom);
|
||||
Lang.INVITE_RECEIVED.send(player, sender);
|
||||
sendAcceptOrDeny(player, sender);
|
||||
player.playSound(player.getLocation(), Sound.NOTE_PLING, 1.0F, 1.0F);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -139,12 +139,7 @@ public class PartyRedisManager
|
||||
|
||||
case PLAYER_FIND_RESPONSE:
|
||||
UUID uuid = UUID.fromString(third);
|
||||
BukkitTask task = TASKS.remove(second);
|
||||
|
||||
if (task != null)
|
||||
{
|
||||
task.cancel();
|
||||
}
|
||||
cancelTask(second);
|
||||
|
||||
Player inviter = Bukkit.getPlayerExact(contents[3]);
|
||||
if (_plugin.getInviteManager().isInvitedTo(uuid, inviter.getName()))
|
||||
@ -177,12 +172,7 @@ public class PartyRedisManager
|
||||
|
||||
private void handleNotAccepting(String second, String[] contents)
|
||||
{
|
||||
BukkitTask task = TASKS.remove(second);
|
||||
|
||||
if (task != null)
|
||||
{
|
||||
task.cancel();
|
||||
}
|
||||
cancelTask(second);
|
||||
|
||||
Player inviter = Bukkit.getPlayerExact(contents[3]);
|
||||
inviter.sendMessage(F.main("Party", F.name(second) + " is not accepting invites at this time."));
|
||||
@ -190,13 +180,7 @@ public class PartyRedisManager
|
||||
|
||||
private void handleAlreadyIn(String second, String[] contents)
|
||||
{
|
||||
BukkitTask task = TASKS.remove(second);
|
||||
|
||||
if (task != null)
|
||||
{
|
||||
task.cancel();
|
||||
}
|
||||
|
||||
cancelTask(second);
|
||||
Player inviter = Bukkit.getPlayerExact(contents[3]);
|
||||
Lang.ALREADY_IN.send(inviter, second);
|
||||
}
|
||||
@ -215,6 +199,11 @@ public class PartyRedisManager
|
||||
@Override
|
||||
public void run()
|
||||
{
|
||||
if(!TASKS.containsKey(player))
|
||||
{
|
||||
cancel();
|
||||
return;
|
||||
}
|
||||
TASKS.remove(player);
|
||||
Player senderPlayer = Bukkit.getPlayerExact(sender);
|
||||
if (senderPlayer == null)
|
||||
@ -293,4 +282,14 @@ public class PartyRedisManager
|
||||
{
|
||||
return FIND_PLAYERS_CHANNEL;
|
||||
}
|
||||
|
||||
public void cancelTask(String player)
|
||||
{
|
||||
BukkitTask task = TASKS.remove(player);
|
||||
|
||||
if (task != null)
|
||||
{
|
||||
task.cancel();
|
||||
}
|
||||
}
|
||||
}
|
@ -9,6 +9,7 @@ import mineplex.core.common.util.Callback;
|
||||
import mineplex.core.common.util.F;
|
||||
import mineplex.core.common.util.UtilPlayer;
|
||||
import mineplex.core.common.util.UtilTabTitle;
|
||||
import mineplex.core.party.Lang;
|
||||
import mineplex.core.party.Party;
|
||||
import mineplex.core.party.event.PartySendToServerEvent;
|
||||
import mineplex.core.portal.Commands.SendCommand;
|
||||
@ -101,6 +102,11 @@ public class Portal extends MiniPlugin
|
||||
if (event.getParty() != null && override)
|
||||
{
|
||||
Party party = event.getParty();
|
||||
if(!party.getOwner().equalsIgnoreCase(player.getName()))
|
||||
{
|
||||
Lang.NOT_OWNER_SERVER.send(player);
|
||||
return;
|
||||
}
|
||||
sendParty(party);
|
||||
return;
|
||||
}
|
||||
|
@ -0,0 +1,26 @@
|
||||
package mineplex.core.thank;
|
||||
|
||||
/**
|
||||
* @author Shaun Bennett
|
||||
*/
|
||||
public class ClaimThankResult
|
||||
{
|
||||
private final int _claimed;
|
||||
private final int _uniqueThanks;
|
||||
|
||||
public ClaimThankResult(int claimed, int uniqueThanks)
|
||||
{
|
||||
_claimed = claimed;
|
||||
_uniqueThanks = uniqueThanks;
|
||||
}
|
||||
|
||||
public int getClaimed()
|
||||
{
|
||||
return _claimed;
|
||||
}
|
||||
|
||||
public int getUniqueThanks()
|
||||
{
|
||||
return _uniqueThanks;
|
||||
}
|
||||
}
|
24
Plugins/Mineplex.Core/src/mineplex/core/thank/ThankData.java
Normal file
24
Plugins/Mineplex.Core/src/mineplex/core/thank/ThankData.java
Normal file
@ -0,0 +1,24 @@
|
||||
package mineplex.core.thank;
|
||||
|
||||
/**
|
||||
* @author Shaun Bennett
|
||||
*/
|
||||
public class ThankData
|
||||
{
|
||||
private int _thankToClaim;
|
||||
|
||||
public ThankData(int thankToClaim)
|
||||
{
|
||||
_thankToClaim = thankToClaim;
|
||||
}
|
||||
|
||||
public int getThankToClaim()
|
||||
{
|
||||
return _thankToClaim;
|
||||
}
|
||||
|
||||
public void setThankToClaim(int thankToClaim)
|
||||
{
|
||||
_thankToClaim = thankToClaim;
|
||||
}
|
||||
}
|
194
Plugins/Mineplex.Core/src/mineplex/core/thank/ThankManager.java
Normal file
194
Plugins/Mineplex.Core/src/mineplex/core/thank/ThankManager.java
Normal file
@ -0,0 +1,194 @@
|
||||
package mineplex.core.thank;
|
||||
|
||||
import mineplex.core.MiniDbClientPlugin;
|
||||
import mineplex.core.account.CoreClientManager;
|
||||
import mineplex.core.common.util.Callback;
|
||||
import mineplex.core.common.util.F;
|
||||
import mineplex.core.common.util.UtilPlayer;
|
||||
import mineplex.core.donation.DonationManager;
|
||||
import mineplex.core.recharge.Recharge;
|
||||
import mineplex.core.thank.command.ThankCommand;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
|
||||
/**
|
||||
* This class handles /thank and amplifier thanks, along with allowing players to claim the rewards they earn
|
||||
*/
|
||||
public class ThankManager extends MiniDbClientPlugin<ThankData>
|
||||
{
|
||||
public static final int DEFAULT_RECEIVER_REWARD = 5;
|
||||
public static final int DEFAULT_SENDER_REWARD = 5;
|
||||
|
||||
private DonationManager _donationManager;
|
||||
|
||||
private ThankRepository _thankRepository;
|
||||
|
||||
public ThankManager(JavaPlugin plugin, CoreClientManager clientManager, DonationManager donationManager)
|
||||
{
|
||||
super("Thanks", plugin, clientManager);
|
||||
|
||||
_donationManager = donationManager;
|
||||
|
||||
_thankRepository = new ThankRepository(plugin);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addCommands()
|
||||
{
|
||||
addCommand(new ThankCommand(this));
|
||||
}
|
||||
|
||||
/**
|
||||
* Attempt to thank a player. This can be used to distribute rewards to players, give players rewards for using
|
||||
* amplifiers, and allow players to thank anyone inside a game.
|
||||
*
|
||||
* @param receiver The player who is being thanked
|
||||
* @param sender The player thanking receiver
|
||||
* @param receiverReward The Treasure Shard reward for the receiver
|
||||
* @param senderReward The Treasure Shard reward for the sender
|
||||
* @param reason The reason that player is being thanked
|
||||
* @param ignoreCooldown Should we ignore all thank cooldowns
|
||||
* @param callback Callback for processing the result
|
||||
*/
|
||||
public void thankPlayer(Player receiver, Player sender, int receiverReward, int senderReward, String reason, boolean ignoreCooldown, Callback<ThankResult> callback)
|
||||
{
|
||||
if (!Recharge.Instance.use(sender, "Thank Player", 1000 * 5, false, false))
|
||||
{
|
||||
UtilPlayer.message(sender, F.main("Thank", "Please wait before trying that again"));
|
||||
callback.run(ThankResult.COOLDOWN_RECHARGE);
|
||||
return;
|
||||
}
|
||||
|
||||
int senderAccountId = ClientManager.getAccountId(sender);
|
||||
int receiverAccountId = ClientManager.getAccountId(receiver);
|
||||
thankPlayer(receiver.getName(), receiverAccountId, sender.getName(), senderAccountId, receiverReward, senderReward, reason, ignoreCooldown, result ->
|
||||
{
|
||||
if (result == ThankResult.SUCCESS)
|
||||
{
|
||||
// Reload their thank data if the player is online!
|
||||
runAsync(() -> {
|
||||
try
|
||||
{
|
||||
Set(receiver, _thankRepository.getThankData(receiverAccountId));
|
||||
} catch (SQLException e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
callback.run(result);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when a player wants to "claim" all pending rewards that they haven't claimed yet
|
||||
*
|
||||
* @param player The player claiming their thank rewards
|
||||
* @param callback Callback with the result of the claim
|
||||
*/
|
||||
public void claimThanks(Player player, Callback<ClaimThankResult> callback)
|
||||
{
|
||||
int accountId = ClientManager.getAccountId(player);
|
||||
|
||||
if (accountId == -1)
|
||||
{
|
||||
callback.run(null);
|
||||
return;
|
||||
}
|
||||
|
||||
runAsync(() -> {
|
||||
try
|
||||
{
|
||||
ClaimThankResult result = _thankRepository.claimThank(accountId);
|
||||
runSync(() -> {
|
||||
if (result != null && result.getClaimed() > 0) Set(player, new ThankData(0));
|
||||
callback.run(result);
|
||||
});
|
||||
}
|
||||
catch (RuntimeException ex)
|
||||
{
|
||||
ex.printStackTrace();
|
||||
runSync(() -> callback.run(null));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Attempt to thank a player. This can be used to distribute rewards to players, give players rewards for using
|
||||
* amplifiers, and allow players to thank anyone inside a game.
|
||||
*
|
||||
* @param receiverName Name of the player being thanked
|
||||
* @param receiverAccountId Account id of the player being thanked
|
||||
* @param senderName Name of the player sending the thanks
|
||||
* @param senderAccountId Account id of the player sending the thanks
|
||||
* @param receiverReward The Treasure Shard reward for the receiver
|
||||
* @param senderReward The Treasure Shard reward for the sender
|
||||
* @param reason The reason that player is being thanked
|
||||
* @param ignoreCooldown Should we ignore all thank cooldowns
|
||||
* @param callback Callback for processing the result
|
||||
*/
|
||||
public void thankPlayer(String receiverName, int receiverAccountId, String senderName, int senderAccountId, int receiverReward, int senderReward, String reason, boolean ignoreCooldown, Callback<ThankResult> callback)
|
||||
{
|
||||
// Break out on bad account id
|
||||
if (senderAccountId == -1 || receiverAccountId == -1)
|
||||
{
|
||||
callback.run(ThankResult.INVALID_ACCOUNT_ID);
|
||||
return;
|
||||
}
|
||||
|
||||
// You can't thank yourself, silly!
|
||||
if (receiverAccountId == senderAccountId)
|
||||
{
|
||||
callback.run(ThankResult.CANNOT_THANK_SELF);
|
||||
return;
|
||||
}
|
||||
|
||||
runAsync(() -> {
|
||||
try
|
||||
{
|
||||
boolean success = _thankRepository.thank(receiverAccountId, senderAccountId, receiverReward, reason, ignoreCooldown);
|
||||
|
||||
runSync(() -> {
|
||||
if (success)
|
||||
{
|
||||
_donationManager.rewardCoinsUntilSuccess(null, "Thank", receiverName, receiverAccountId, receiverReward);
|
||||
_donationManager.rewardCoinsUntilSuccess(null, "Thank", senderName, senderAccountId, senderReward);
|
||||
}
|
||||
|
||||
callback.run(success ? ThankResult.SUCCESS : ThankResult.COOLDOWN_DATABASE);
|
||||
});
|
||||
}
|
||||
catch (RuntimeException ex)
|
||||
{
|
||||
ex.printStackTrace();
|
||||
runSync(() -> callback.run(ThankResult.DATABASE_ERROR));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getQuery(int accountId, String uuid, String name)
|
||||
{
|
||||
return "SELECT SUM(thankAmount) FROM accountThankTransactions WHERE receiverId = " + accountId + " AND claimed = FALSE;";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void processLoginResultSet(String playerName, int accountId, ResultSet resultSet) throws SQLException
|
||||
{
|
||||
if (resultSet.next())
|
||||
{
|
||||
int thankToClaim = resultSet.getInt(1);
|
||||
Set(playerName, new ThankData(thankToClaim));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected ThankData addPlayer(String player)
|
||||
{
|
||||
return new ThankData(0);
|
||||
}
|
||||
}
|
@ -0,0 +1,75 @@
|
||||
package mineplex.core.thank;
|
||||
|
||||
import mineplex.core.database.MinecraftRepository;
|
||||
import mineplex.database.routines.AddThank;
|
||||
import mineplex.database.routines.ClaimThank;
|
||||
import mineplex.serverdata.database.DBPool;
|
||||
import mineplex.serverdata.database.ResultSetCallable;
|
||||
import mineplex.serverdata.database.column.ColumnInt;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
import org.jooq.Configuration;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
|
||||
public class ThankRepository extends MinecraftRepository
|
||||
{
|
||||
private static final String GET_THANK_DATA = "SELECT SUM(thankAmount) FROM accountThankTransactions WHERE receiverId = ? AND claimed = FALSE";
|
||||
|
||||
public ThankRepository(JavaPlugin plugin)
|
||||
{
|
||||
super(plugin, DBPool.getAccount());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void initialize()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void update()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public boolean thank(int receiverAccountId, int senderAccountId, int thankAmount, String reason, boolean ignoreCooldown)
|
||||
{
|
||||
AddThank addThank = new AddThank();
|
||||
addThank.setInReceiverAccountId(receiverAccountId);
|
||||
addThank.setInSenderAccountId(senderAccountId);
|
||||
addThank.setInThankAmount(thankAmount);
|
||||
addThank.setInReason(reason);
|
||||
addThank.setInIgnoreCooldown(ignoreCooldown ? (byte) 1 : 0);
|
||||
|
||||
addThank.execute(jooq().configuration());
|
||||
return addThank.getSuccess() == 1;
|
||||
}
|
||||
|
||||
public ClaimThankResult claimThank(int accountId)
|
||||
{
|
||||
ClaimThank claimThank = new ClaimThank();
|
||||
claimThank.setInAccountId(accountId);
|
||||
claimThank.execute(jooq().configuration());
|
||||
return new ClaimThankResult(claimThank.getAmountClaimed(), claimThank.getUniqueThank());
|
||||
}
|
||||
|
||||
/**
|
||||
* Get ThankData for an accountId. This is used to reload ThankData when a player is thanked on live servers
|
||||
* @param accountId The account id of the player
|
||||
* @return {@link ThankData} for that player
|
||||
*/
|
||||
public ThankData getThankData(int accountId) throws SQLException
|
||||
{
|
||||
ThankData thankData = new ThankData(0);
|
||||
|
||||
executeQuery(GET_THANK_DATA, resultSet ->
|
||||
{
|
||||
if (resultSet != null && resultSet.next())
|
||||
{
|
||||
thankData.setThankToClaim(resultSet.getInt(1));
|
||||
}
|
||||
}, new ColumnInt("receiverId", accountId));
|
||||
|
||||
return thankData;
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package mineplex.core.thank;
|
||||
|
||||
/**
|
||||
* @author Shaun Bennett
|
||||
*/
|
||||
public enum ThankResult
|
||||
{
|
||||
COOLDOWN_RECHARGE,
|
||||
COOLDOWN_DATABASE,
|
||||
SUCCESS,
|
||||
INVALID_ACCOUNT_ID,
|
||||
DATABASE_ERROR,
|
||||
CANNOT_THANK_SELF
|
||||
}
|
@ -0,0 +1,74 @@
|
||||
package mineplex.core.thank.command;
|
||||
|
||||
import mineplex.core.command.CommandBase;
|
||||
import mineplex.core.common.Rank;
|
||||
import mineplex.core.common.currency.GlobalCurrency;
|
||||
import mineplex.core.common.util.Callback;
|
||||
import mineplex.core.common.util.F;
|
||||
import mineplex.core.common.util.UtilPlayer;
|
||||
import mineplex.core.thank.ThankManager;
|
||||
import mineplex.core.thank.ThankResult;
|
||||
import org.bukkit.Sound;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
/**
|
||||
* @author Shaun Bennett
|
||||
*/
|
||||
public class ThankCommand extends CommandBase<ThankManager>
|
||||
{
|
||||
public ThankCommand(ThankManager plugin)
|
||||
{
|
||||
super(plugin, Rank.ALL, "thank");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void Execute(Player caller, String[] args)
|
||||
{
|
||||
if (args.length != 1)
|
||||
{
|
||||
UtilPlayer.message(caller, F.main("Thank", "Usage: " + F.elem("/thank <player>")));
|
||||
return;
|
||||
}
|
||||
|
||||
String playerName = args[0];
|
||||
Player player = UtilPlayer.searchOnline(caller, playerName, true);
|
||||
if (player != null)
|
||||
{
|
||||
Plugin.thankPlayer(player, caller, ThankManager.DEFAULT_RECEIVER_REWARD, ThankManager.DEFAULT_SENDER_REWARD,
|
||||
"ThankCommand", false, result ->
|
||||
{
|
||||
String message;
|
||||
|
||||
switch (result)
|
||||
{
|
||||
case SUCCESS:
|
||||
message = "You thanked " + F.name(player.getName()) + " and earned " + F.currency(GlobalCurrency.TREASURE_SHARD, ThankManager.DEFAULT_SENDER_REWARD) + "!";
|
||||
break;
|
||||
case CANNOT_THANK_SELF:
|
||||
message = "You cannot thank yourself!";
|
||||
break;
|
||||
case COOLDOWN_DATABASE:
|
||||
message = "You can only /thank once per day!";
|
||||
break;
|
||||
case COOLDOWN_RECHARGE:
|
||||
message = null;
|
||||
break;
|
||||
default:
|
||||
message = "An error occurred. Try again later";
|
||||
}
|
||||
|
||||
if (message != null)
|
||||
{
|
||||
UtilPlayer.message(caller, F.main("Thank", message));
|
||||
}
|
||||
|
||||
if (result == ThankResult.SUCCESS && player.isOnline())
|
||||
{
|
||||
UtilPlayer.message(player, F.main("Thank", F.name(caller.getName()) + " used " + F.elem("/thank") + " on you! +" + F.currency(GlobalCurrency.TREASURE_SHARD, ThankManager.DEFAULT_RECEIVER_REWARD) + "!"));
|
||||
UtilPlayer.message(player, F.main("Thank", "You can claim your reward at " + F.name("Carl the Creeper")));
|
||||
player.playSound(player.getEyeLocation(), Sound.LEVEL_UP, 1f, 1.2f);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
@ -16,7 +16,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 = -1965384171;
|
||||
private static final long serialVersionUID = 1890093529;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>Account</code>
|
||||
@ -39,6 +39,7 @@ public class Account extends org.jooq.impl.SchemaImpl implements java.io.Seriali
|
||||
|
||||
private final java.util.List<org.jooq.Table<?>> getTables0() {
|
||||
return java.util.Arrays.<org.jooq.Table<?>>asList(
|
||||
mineplex.database.tables.AccountAmplifierThank.accountAmplifierThank,
|
||||
mineplex.database.tables.AccountAuth.accountAuth,
|
||||
mineplex.database.tables.AccountClan.accountClan,
|
||||
mineplex.database.tables.AccountCoinTransactions.accountCoinTransactions,
|
||||
@ -56,11 +57,14 @@ public class Account extends org.jooq.impl.SchemaImpl implements java.io.Seriali
|
||||
mineplex.database.tables.Accounts.accounts,
|
||||
mineplex.database.tables.AccountStat.accountStat,
|
||||
mineplex.database.tables.AccountTasks.accountTasks,
|
||||
mineplex.database.tables.AccountThank.accountThank,
|
||||
mineplex.database.tables.AccountThankTransactions.accountThankTransactions,
|
||||
mineplex.database.tables.AccountTip.accountTip,
|
||||
mineplex.database.tables.AccountTipClaimLogs.accountTipClaimLogs,
|
||||
mineplex.database.tables.AccountTipLogs.accountTipLogs,
|
||||
mineplex.database.tables.AccountTransactions.accountTransactions,
|
||||
mineplex.database.tables.AccountValentinesGift.accountValentinesGift,
|
||||
mineplex.database.tables.AccountWebsiteLinkCode.accountWebsiteLinkCode,
|
||||
mineplex.database.tables.ActiveTournaments.activeTournaments,
|
||||
mineplex.database.tables.BattlePets.battlePets,
|
||||
mineplex.database.tables.Bonus.bonus,
|
||||
@ -68,13 +72,16 @@ public class Account extends org.jooq.impl.SchemaImpl implements java.io.Seriali
|
||||
mineplex.database.tables.BotSpam.botSpam,
|
||||
mineplex.database.tables.Chatsnap.chatsnap,
|
||||
mineplex.database.tables.ClanAlliances.clanAlliances,
|
||||
mineplex.database.tables.ClanBanners.clanBanners,
|
||||
mineplex.database.tables.ClanBans.clanBans,
|
||||
mineplex.database.tables.ClanEnemies.clanEnemies,
|
||||
mineplex.database.tables.ClanMember.clanMember,
|
||||
mineplex.database.tables.ClanNameBlacklist.clanNameBlacklist,
|
||||
mineplex.database.tables.Clans.clans,
|
||||
mineplex.database.tables.ClanServer.clanServer,
|
||||
mineplex.database.tables.ClansGold.clansGold,
|
||||
mineplex.database.tables.ClanShopItem.clanShopItem,
|
||||
mineplex.database.tables.ClansNetherPortals.clansNetherPortals,
|
||||
mineplex.database.tables.ClansOutposts.clansOutposts,
|
||||
mineplex.database.tables.ClansPvpTimer.clansPvpTimer,
|
||||
mineplex.database.tables.ClansSiegeWeapons.clansSiegeWeapons,
|
||||
@ -95,13 +102,14 @@ public class Account extends org.jooq.impl.SchemaImpl implements java.io.Seriali
|
||||
mineplex.database.tables.Items.items,
|
||||
mineplex.database.tables.Kitpreferences.kitpreferences,
|
||||
mineplex.database.tables.KitProgression.kitProgression,
|
||||
mineplex.database.tables.Kit_progression.kit_progression,
|
||||
mineplex.database.tables.Mail.mail,
|
||||
mineplex.database.tables.Mailbox.mailbox,
|
||||
mineplex.database.tables.NonPremiumJoinMessage.nonPremiumJoinMessage,
|
||||
mineplex.database.tables.Npcs.npcs,
|
||||
mineplex.database.tables.Packages.packages,
|
||||
mineplex.database.tables.PlayerMap.playerMap,
|
||||
mineplex.database.tables.Polls.polls,
|
||||
mineplex.database.tables.PowerPlayClub.powerPlayClub,
|
||||
mineplex.database.tables.RankBenefits.rankBenefits,
|
||||
mineplex.database.tables.RankedBans.rankedBans,
|
||||
mineplex.database.tables.ReportTickets.reportTickets,
|
||||
@ -121,6 +129,8 @@ public class Account extends org.jooq.impl.SchemaImpl implements java.io.Seriali
|
||||
mineplex.database.tables.TournamentLB.TournamentLB,
|
||||
mineplex.database.tables.Tournaments.tournaments,
|
||||
mineplex.database.tables.TournamentTeams.tournamentTeams,
|
||||
mineplex.database.tables.Transactions.transactions);
|
||||
mineplex.database.tables.Transactions.transactions,
|
||||
mineplex.database.tables.Unicodereplacer.unicodereplacer,
|
||||
mineplex.database.tables.Youtube.youtube);
|
||||
}
|
||||
}
|
||||
|
@ -35,6 +35,7 @@ public class Keys {
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.AccountPurchasesRecord, java.lang.Long> IDENTITY_accountPurchases = Identities0.IDENTITY_accountPurchases;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.AccountsRecord, java.lang.Integer> IDENTITY_accounts = Identities0.IDENTITY_accounts;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.AccountTasksRecord, java.lang.Integer> IDENTITY_accountTasks = Identities0.IDENTITY_accountTasks;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.AccountThankTransactionsRecord, java.lang.Integer> IDENTITY_accountThankTransactions = Identities0.IDENTITY_accountThankTransactions;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.AccountTipClaimLogsRecord, java.lang.Integer> IDENTITY_accountTipClaimLogs = Identities0.IDENTITY_accountTipClaimLogs;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.AccountTransactionsRecord, java.lang.Integer> IDENTITY_accountTransactions = Identities0.IDENTITY_accountTransactions;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.BattlePetsRecord, java.lang.Integer> IDENTITY_battlePets = Identities0.IDENTITY_battlePets;
|
||||
@ -48,6 +49,7 @@ public class Keys {
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.ClansRecord, java.lang.Integer> IDENTITY_clans = Identities0.IDENTITY_clans;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.ClanServerRecord, java.lang.Integer> IDENTITY_clanServer = Identities0.IDENTITY_clanServer;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.ClanShopItemRecord, java.lang.Integer> IDENTITY_clanShopItem = Identities0.IDENTITY_clanShopItem;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.ClansNetherPortalsRecord, java.lang.Integer> IDENTITY_clansNetherPortals = Identities0.IDENTITY_clansNetherPortals;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.ClanTerritoryRecord, java.lang.Integer> IDENTITY_clanTerritory = Identities0.IDENTITY_clanTerritory;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.ClanWarRecord, java.lang.Integer> IDENTITY_clanWar = Identities0.IDENTITY_clanWar;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.CustomDataRecord, java.lang.Integer> IDENTITY_customData = Identities0.IDENTITY_customData;
|
||||
@ -76,11 +78,14 @@ public class Keys {
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.TournamentsRecord, java.lang.Integer> IDENTITY_tournaments = Identities0.IDENTITY_tournaments;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.TournamentTeamsRecord, java.lang.Integer> IDENTITY_tournamentTeams = Identities0.IDENTITY_tournamentTeams;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.TransactionsRecord, java.lang.Integer> IDENTITY_transactions = Identities0.IDENTITY_transactions;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.UnicodereplacerRecord, java.lang.Integer> IDENTITY_unicodereplacer = Identities0.IDENTITY_unicodereplacer;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.YoutubeRecord, java.lang.Integer> IDENTITY_youtube = Identities0.IDENTITY_youtube;
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// UNIQUE and PRIMARY KEY definitions
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountAmplifierThankRecord> KEY_accountAmplifierThank_PRIMARY = UniqueKeys0.KEY_accountAmplifierThank_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountAuthRecord> KEY_accountAuth_PRIMARY = UniqueKeys0.KEY_accountAuth_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountClanRecord> KEY_accountClan_PRIMARY = UniqueKeys0.KEY_accountClan_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountCoinTransactionsRecord> KEY_accountCoinTransactions_PRIMARY = UniqueKeys0.KEY_accountCoinTransactions_PRIMARY;
|
||||
@ -104,11 +109,14 @@ public class Keys {
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountsRecord> KEY_accounts_uuidIndex = UniqueKeys0.KEY_accounts_uuidIndex;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountStatRecord> KEY_accountStat_PRIMARY = UniqueKeys0.KEY_accountStat_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountTasksRecord> KEY_accountTasks_PRIMARY = UniqueKeys0.KEY_accountTasks_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountThankRecord> KEY_accountThank_PRIMARY = UniqueKeys0.KEY_accountThank_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountThankTransactionsRecord> KEY_accountThankTransactions_PRIMARY = UniqueKeys0.KEY_accountThankTransactions_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountTipRecord> KEY_accountTip_PRIMARY = UniqueKeys0.KEY_accountTip_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountTipClaimLogsRecord> KEY_accountTipClaimLogs_PRIMARY = UniqueKeys0.KEY_accountTipClaimLogs_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountTipLogsRecord> KEY_accountTipLogs_PRIMARY = UniqueKeys0.KEY_accountTipLogs_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountTransactionsRecord> KEY_accountTransactions_PRIMARY = UniqueKeys0.KEY_accountTransactions_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountValentinesGiftRecord> KEY_accountValentinesGift_PRIMARY = UniqueKeys0.KEY_accountValentinesGift_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountWebsiteLinkCodeRecord> KEY_accountWebsiteLinkCode_PRIMARY = UniqueKeys0.KEY_accountWebsiteLinkCode_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ActiveTournamentsRecord> KEY_activeTournaments_PRIMARY = UniqueKeys0.KEY_activeTournaments_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.BattlePetsRecord> KEY_battlePets_PRIMARY = UniqueKeys0.KEY_battlePets_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.BonusRecord> KEY_bonus_PRIMARY = UniqueKeys0.KEY_bonus_PRIMARY;
|
||||
@ -117,6 +125,7 @@ public class Keys {
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.BotSpamRecord> KEY_botSpam_unique_text = UniqueKeys0.KEY_botSpam_unique_text;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ChatsnapRecord> KEY_chatsnap_PRIMARY = UniqueKeys0.KEY_chatsnap_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ClanAlliancesRecord> KEY_clanAlliances_PRIMARY = UniqueKeys0.KEY_clanAlliances_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ClanBannersRecord> KEY_clanBanners_PRIMARY = UniqueKeys0.KEY_clanBanners_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ClanBansRecord> KEY_clanBans_PRIMARY = UniqueKeys0.KEY_clanBans_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ClanEnemiesRecord> KEY_clanEnemies_PRIMARY = UniqueKeys0.KEY_clanEnemies_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ClanEnemiesRecord> KEY_clanEnemies_unique_clanId = UniqueKeys0.KEY_clanEnemies_unique_clanId;
|
||||
@ -126,8 +135,10 @@ public class Keys {
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ClansRecord> KEY_clans_clanName = UniqueKeys0.KEY_clans_clanName;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ClanServerRecord> KEY_clanServer_PRIMARY = UniqueKeys0.KEY_clanServer_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ClanServerRecord> KEY_clanServer_unique_serverName = UniqueKeys0.KEY_clanServer_unique_serverName;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ClansGoldRecord> KEY_clansGold_PRIMARY = UniqueKeys0.KEY_clansGold_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ClanShopItemRecord> KEY_clanShopItem_PRIMARY = UniqueKeys0.KEY_clanShopItem_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ClanShopItemRecord> KEY_clanShopItem_shop_page_slot_UNIQUE = UniqueKeys0.KEY_clanShopItem_shop_page_slot_UNIQUE;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ClansNetherPortalsRecord> KEY_clansNetherPortals_PRIMARY = UniqueKeys0.KEY_clansNetherPortals_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ClansOutpostsRecord> KEY_clansOutposts_PRIMARY = UniqueKeys0.KEY_clansOutposts_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ClansPvpTimerRecord> KEY_clansPvpTimer_PRIMARY = UniqueKeys0.KEY_clansPvpTimer_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ClansSiegeWeaponsRecord> KEY_clansSiegeWeapons_PRIMARY = UniqueKeys0.KEY_clansSiegeWeapons_PRIMARY;
|
||||
@ -154,7 +165,6 @@ public class Keys {
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ItemsRecord> KEY_items_name_UNIQUE = UniqueKeys0.KEY_items_name_UNIQUE;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ItemsRecord> KEY_items_uniqueNameCategoryIndex = UniqueKeys0.KEY_items_uniqueNameCategoryIndex;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.KitProgressionRecord> KEY_kitProgression_PRIMARY = UniqueKeys0.KEY_kitProgression_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.Kit_progressionRecord> KEY_kit_progression_PRIMARY = UniqueKeys0.KEY_kit_progression_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.MailRecord> KEY_mail_PRIMARY = UniqueKeys0.KEY_mail_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.MailboxRecord> KEY_mailbox_PRIMARY = UniqueKeys0.KEY_mailbox_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.NpcsRecord> KEY_npcs_PRIMARY = UniqueKeys0.KEY_npcs_PRIMARY;
|
||||
@ -162,6 +172,7 @@ public class Keys {
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.PlayerMapRecord> KEY_playerMap_PRIMARY = UniqueKeys0.KEY_playerMap_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.PlayerMapRecord> KEY_playerMap_playerIndex = UniqueKeys0.KEY_playerMap_playerIndex;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.PollsRecord> KEY_polls_PRIMARY = UniqueKeys0.KEY_polls_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.PowerPlayClubRecord> KEY_powerPlayClub_PRIMARY = UniqueKeys0.KEY_powerPlayClub_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.RankBenefitsRecord> KEY_rankBenefits_PRIMARY = UniqueKeys0.KEY_rankBenefits_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.RankedBansRecord> KEY_rankedBans_PRIMARY = UniqueKeys0.KEY_rankedBans_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ReportTicketsRecord> KEY_reportTickets_PRIMARY = UniqueKeys0.KEY_reportTickets_PRIMARY;
|
||||
@ -183,11 +194,15 @@ public class Keys {
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.TournamentsRecord> KEY_tournaments_PRIMARY = UniqueKeys0.KEY_tournaments_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.TournamentTeamsRecord> KEY_tournamentTeams_PRIMARY = UniqueKeys0.KEY_tournamentTeams_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.TransactionsRecord> KEY_transactions_PRIMARY = UniqueKeys0.KEY_transactions_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.UnicodereplacerRecord> KEY_unicodereplacer_PRIMARY = UniqueKeys0.KEY_unicodereplacer_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.UnicodereplacerRecord> KEY_unicodereplacer_unicode = UniqueKeys0.KEY_unicodereplacer_unicode;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.YoutubeRecord> KEY_youtube_PRIMARY = UniqueKeys0.KEY_youtube_PRIMARY;
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// FOREIGN KEY definitions
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountAmplifierThankRecord, mineplex.database.tables.records.AccountsRecord> accountAmplifierThank_accounts_id_fk = ForeignKeys0.accountAmplifierThank_accounts_id_fk;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountAuthRecord, mineplex.database.tables.records.AccountsRecord> accountAuth_accounts_id_fk = ForeignKeys0.accountAuth_accounts_id_fk;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountCoinTransactionsRecord, mineplex.database.tables.records.AccountsRecord> FK_ACT_ACCOUNTS_ID = ForeignKeys0.FK_ACT_ACCOUNTS_ID;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountCustomDataRecord, mineplex.database.tables.records.AccountsRecord> CUSTOMDATA_ACCOUNT = ForeignKeys0.CUSTOMDATA_ACCOUNT;
|
||||
@ -208,6 +223,9 @@ public class Keys {
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountStatRecord, mineplex.database.tables.records.StatsRecord> accountStat_stat = ForeignKeys0.accountStat_stat;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountTasksRecord, mineplex.database.tables.records.AccountsRecord> ACCOUNTTASKS_ACCOUNTID = ForeignKeys0.ACCOUNTTASKS_ACCOUNTID;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountTasksRecord, mineplex.database.tables.records.TasksRecord> ACCOUNTTASKS_TASKID = ForeignKeys0.ACCOUNTTASKS_TASKID;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountThankRecord, mineplex.database.tables.records.AccountsRecord> accountThank_accounts_id_fk = ForeignKeys0.accountThank_accounts_id_fk;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountThankTransactionsRecord, mineplex.database.tables.records.AccountsRecord> accountThankTransactions_accounts_id_fk2 = ForeignKeys0.accountThankTransactions_accounts_id_fk2;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountThankTransactionsRecord, mineplex.database.tables.records.AccountsRecord> accountThankTransactions_accounts_id_fk = ForeignKeys0.accountThankTransactions_accounts_id_fk;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountTipRecord, mineplex.database.tables.records.AccountsRecord> accountTips_accounts_id_fk = ForeignKeys0.accountTips_accounts_id_fk;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountTipClaimLogsRecord, mineplex.database.tables.records.AccountsRecord> accountTipClaimLogs_accounts_id_fk = ForeignKeys0.accountTipClaimLogs_accounts_id_fk;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountTipLogsRecord, mineplex.database.tables.records.AccountsRecord> accountTipLogs_accounts_id_fk = ForeignKeys0.accountTipLogs_accounts_id_fk;
|
||||
@ -215,18 +233,23 @@ public class Keys {
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountTransactionsRecord, mineplex.database.tables.records.TransactionsRecord> ACCOUNTTRANSACTIONS_TRANSACTIONID = ForeignKeys0.ACCOUNTTRANSACTIONS_TRANSACTIONID;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountValentinesGiftRecord, mineplex.database.tables.records.AccountsRecord> accountValentines_sender_fk = ForeignKeys0.accountValentines_sender_fk;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountValentinesGiftRecord, mineplex.database.tables.records.AccountsRecord> accountValentines_target_fk = ForeignKeys0.accountValentines_target_fk;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountWebsiteLinkCodeRecord, mineplex.database.tables.records.AccountsRecord> accountWebsiteLinkCode_ibfk_1 = ForeignKeys0.accountWebsiteLinkCode_ibfk_1;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.BonusRecord, mineplex.database.tables.records.AccountsRecord> bonus_ibfk_1 = ForeignKeys0.bonus_ibfk_1;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.BonusLogRecord, mineplex.database.tables.records.AccountsRecord> bonusLogAccountId = ForeignKeys0.bonusLogAccountId;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.BonusLogRecord, mineplex.database.tables.records.ItemsRecord> bonusLogItemId = ForeignKeys0.bonusLogItemId;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.ClansGoldRecord, mineplex.database.tables.records.ClanServerRecord> clansGold_ibfk_1 = ForeignKeys0.clansGold_ibfk_1;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.ClansGoldRecord, mineplex.database.tables.records.AccountsRecord> clansGold_ibfk_2 = ForeignKeys0.clansGold_ibfk_2;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.EloRatingRecord, mineplex.database.tables.records.AccountsRecord> ELORATING_ACCOUNTID = ForeignKeys0.ELORATING_ACCOUNTID;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.FacebookRecord, mineplex.database.tables.records.AccountsRecord> facebook_accounts_id_fk = ForeignKeys0.facebook_accounts_id_fk;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.GadgetsRecord, mineplex.database.tables.records.AccountsRecord> gadgets_ibfk_1 = ForeignKeys0.gadgets_ibfk_1;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.MailRecord, mineplex.database.tables.records.AccountsRecord> mail_ibfk_1 = ForeignKeys0.mail_ibfk_1;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.MailboxRecord, mineplex.database.tables.records.AccountsRecord> mailbox_ibfk_1 = ForeignKeys0.mailbox_ibfk_1;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.PowerPlayClubRecord, mineplex.database.tables.records.AccountsRecord> powerPlayClub_ibfk_1 = ForeignKeys0.powerPlayClub_ibfk_1;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.RankBenefitsRecord, mineplex.database.tables.records.AccountsRecord> rankBenefits_ibfk_1 = ForeignKeys0.rankBenefits_ibfk_1;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.TitanGiveawayRecord, mineplex.database.tables.records.AccountsRecord> titanGiveaway_ibfk_1 = ForeignKeys0.titanGiveaway_ibfk_1;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.TournamentTeamsRecord, mineplex.database.tables.records.TournamentsRecord> TEAM_TOURNAMENT_KEY = ForeignKeys0.TEAM_TOURNAMENT_KEY;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.TournamentTeamsRecord, mineplex.database.tables.records.AccountsRecord> TEAM_TOURNAMENT_ACCOUNT_ID = ForeignKeys0.TEAM_TOURNAMENT_ACCOUNT_ID;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.YoutubeRecord, mineplex.database.tables.records.AccountsRecord> youtube_ibfk_1 = ForeignKeys0.youtube_ibfk_1;
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// [#1459] distribute members to avoid static initialisers > 64kb
|
||||
@ -247,6 +270,7 @@ public class Keys {
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.AccountPurchasesRecord, java.lang.Long> IDENTITY_accountPurchases = createIdentity(mineplex.database.tables.AccountPurchases.accountPurchases, mineplex.database.tables.AccountPurchases.accountPurchases.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.AccountsRecord, 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.AccountTasksRecord, java.lang.Integer> IDENTITY_accountTasks = createIdentity(mineplex.database.tables.AccountTasks.accountTasks, mineplex.database.tables.AccountTasks.accountTasks.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.AccountThankTransactionsRecord, java.lang.Integer> IDENTITY_accountThankTransactions = createIdentity(mineplex.database.tables.AccountThankTransactions.accountThankTransactions, mineplex.database.tables.AccountThankTransactions.accountThankTransactions.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.AccountTipClaimLogsRecord, java.lang.Integer> IDENTITY_accountTipClaimLogs = createIdentity(mineplex.database.tables.AccountTipClaimLogs.accountTipClaimLogs, mineplex.database.tables.AccountTipClaimLogs.accountTipClaimLogs.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.AccountTransactionsRecord, java.lang.Integer> IDENTITY_accountTransactions = createIdentity(mineplex.database.tables.AccountTransactions.accountTransactions, mineplex.database.tables.AccountTransactions.accountTransactions.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.BattlePetsRecord, java.lang.Integer> IDENTITY_battlePets = createIdentity(mineplex.database.tables.BattlePets.battlePets, mineplex.database.tables.BattlePets.battlePets.petId);
|
||||
@ -260,6 +284,7 @@ public class Keys {
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.ClansRecord, java.lang.Integer> IDENTITY_clans = createIdentity(mineplex.database.tables.Clans.clans, mineplex.database.tables.Clans.clans.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.ClanServerRecord, java.lang.Integer> IDENTITY_clanServer = createIdentity(mineplex.database.tables.ClanServer.clanServer, mineplex.database.tables.ClanServer.clanServer.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.ClanShopItemRecord, java.lang.Integer> IDENTITY_clanShopItem = createIdentity(mineplex.database.tables.ClanShopItem.clanShopItem, mineplex.database.tables.ClanShopItem.clanShopItem.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.ClansNetherPortalsRecord, java.lang.Integer> IDENTITY_clansNetherPortals = createIdentity(mineplex.database.tables.ClansNetherPortals.clansNetherPortals, mineplex.database.tables.ClansNetherPortals.clansNetherPortals.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.ClanTerritoryRecord, java.lang.Integer> IDENTITY_clanTerritory = createIdentity(mineplex.database.tables.ClanTerritory.clanTerritory, mineplex.database.tables.ClanTerritory.clanTerritory.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.ClanWarRecord, java.lang.Integer> IDENTITY_clanWar = createIdentity(mineplex.database.tables.ClanWar.clanWar, mineplex.database.tables.ClanWar.clanWar.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.CustomDataRecord, java.lang.Integer> IDENTITY_customData = createIdentity(mineplex.database.tables.CustomData.customData, mineplex.database.tables.CustomData.customData.id);
|
||||
@ -288,9 +313,12 @@ public class Keys {
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.TournamentsRecord, java.lang.Integer> IDENTITY_tournaments = createIdentity(mineplex.database.tables.Tournaments.tournaments, mineplex.database.tables.Tournaments.tournaments.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.TournamentTeamsRecord, java.lang.Integer> IDENTITY_tournamentTeams = createIdentity(mineplex.database.tables.TournamentTeams.tournamentTeams, mineplex.database.tables.TournamentTeams.tournamentTeams.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.TransactionsRecord, java.lang.Integer> IDENTITY_transactions = createIdentity(mineplex.database.tables.Transactions.transactions, mineplex.database.tables.Transactions.transactions.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.UnicodereplacerRecord, java.lang.Integer> IDENTITY_unicodereplacer = createIdentity(mineplex.database.tables.Unicodereplacer.unicodereplacer, mineplex.database.tables.Unicodereplacer.unicodereplacer.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.YoutubeRecord, java.lang.Integer> IDENTITY_youtube = createIdentity(mineplex.database.tables.Youtube.youtube, mineplex.database.tables.Youtube.youtube.accountId);
|
||||
}
|
||||
|
||||
private static class UniqueKeys0 extends org.jooq.impl.AbstractKeys {
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountAmplifierThankRecord> KEY_accountAmplifierThank_PRIMARY = createUniqueKey(mineplex.database.tables.AccountAmplifierThank.accountAmplifierThank, mineplex.database.tables.AccountAmplifierThank.accountAmplifierThank.accountId, mineplex.database.tables.AccountAmplifierThank.accountAmplifierThank.amplifierId);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountAuthRecord> KEY_accountAuth_PRIMARY = createUniqueKey(mineplex.database.tables.AccountAuth.accountAuth, mineplex.database.tables.AccountAuth.accountAuth.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountClanRecord> KEY_accountClan_PRIMARY = createUniqueKey(mineplex.database.tables.AccountClan.accountClan, mineplex.database.tables.AccountClan.accountClan.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountCoinTransactionsRecord> KEY_accountCoinTransactions_PRIMARY = createUniqueKey(mineplex.database.tables.AccountCoinTransactions.accountCoinTransactions, mineplex.database.tables.AccountCoinTransactions.accountCoinTransactions.id);
|
||||
@ -314,11 +342,14 @@ public class Keys {
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountsRecord> 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.AccountStatRecord> KEY_accountStat_PRIMARY = createUniqueKey(mineplex.database.tables.AccountStat.accountStat, mineplex.database.tables.AccountStat.accountStat.accountId, mineplex.database.tables.AccountStat.accountStat.statId);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountTasksRecord> KEY_accountTasks_PRIMARY = createUniqueKey(mineplex.database.tables.AccountTasks.accountTasks, mineplex.database.tables.AccountTasks.accountTasks.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountThankRecord> KEY_accountThank_PRIMARY = createUniqueKey(mineplex.database.tables.AccountThank.accountThank, mineplex.database.tables.AccountThank.accountThank.accountId);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountThankTransactionsRecord> KEY_accountThankTransactions_PRIMARY = createUniqueKey(mineplex.database.tables.AccountThankTransactions.accountThankTransactions, mineplex.database.tables.AccountThankTransactions.accountThankTransactions.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountTipRecord> KEY_accountTip_PRIMARY = createUniqueKey(mineplex.database.tables.AccountTip.accountTip, mineplex.database.tables.AccountTip.accountTip.accountId);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountTipClaimLogsRecord> KEY_accountTipClaimLogs_PRIMARY = createUniqueKey(mineplex.database.tables.AccountTipClaimLogs.accountTipClaimLogs, mineplex.database.tables.AccountTipClaimLogs.accountTipClaimLogs.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountTipLogsRecord> KEY_accountTipLogs_PRIMARY = createUniqueKey(mineplex.database.tables.AccountTipLogs.accountTipLogs, mineplex.database.tables.AccountTipLogs.accountTipLogs.accountId, mineplex.database.tables.AccountTipLogs.accountTipLogs.boosterId);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountTransactionsRecord> KEY_accountTransactions_PRIMARY = createUniqueKey(mineplex.database.tables.AccountTransactions.accountTransactions, mineplex.database.tables.AccountTransactions.accountTransactions.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountValentinesGiftRecord> KEY_accountValentinesGift_PRIMARY = createUniqueKey(mineplex.database.tables.AccountValentinesGift.accountValentinesGift, mineplex.database.tables.AccountValentinesGift.accountValentinesGift.senderId, mineplex.database.tables.AccountValentinesGift.accountValentinesGift.targetId);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountWebsiteLinkCodeRecord> KEY_accountWebsiteLinkCode_PRIMARY = createUniqueKey(mineplex.database.tables.AccountWebsiteLinkCode.accountWebsiteLinkCode, mineplex.database.tables.AccountWebsiteLinkCode.accountWebsiteLinkCode.accountId);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ActiveTournamentsRecord> KEY_activeTournaments_PRIMARY = createUniqueKey(mineplex.database.tables.ActiveTournaments.activeTournaments, mineplex.database.tables.ActiveTournaments.activeTournaments.name);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.BattlePetsRecord> KEY_battlePets_PRIMARY = createUniqueKey(mineplex.database.tables.BattlePets.battlePets, mineplex.database.tables.BattlePets.battlePets.petId);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.BonusRecord> KEY_bonus_PRIMARY = createUniqueKey(mineplex.database.tables.Bonus.bonus, mineplex.database.tables.Bonus.bonus.accountId);
|
||||
@ -327,6 +358,7 @@ public class Keys {
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.BotSpamRecord> KEY_botSpam_unique_text = createUniqueKey(mineplex.database.tables.BotSpam.botSpam, mineplex.database.tables.BotSpam.botSpam.text);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ChatsnapRecord> KEY_chatsnap_PRIMARY = createUniqueKey(mineplex.database.tables.Chatsnap.chatsnap, mineplex.database.tables.Chatsnap.chatsnap.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ClanAlliancesRecord> KEY_clanAlliances_PRIMARY = createUniqueKey(mineplex.database.tables.ClanAlliances.clanAlliances, mineplex.database.tables.ClanAlliances.clanAlliances.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ClanBannersRecord> KEY_clanBanners_PRIMARY = createUniqueKey(mineplex.database.tables.ClanBanners.clanBanners, mineplex.database.tables.ClanBanners.clanBanners.clanId);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ClanBansRecord> KEY_clanBans_PRIMARY = createUniqueKey(mineplex.database.tables.ClanBans.clanBans, mineplex.database.tables.ClanBans.clanBans.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ClanEnemiesRecord> KEY_clanEnemies_PRIMARY = createUniqueKey(mineplex.database.tables.ClanEnemies.clanEnemies, mineplex.database.tables.ClanEnemies.clanEnemies.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ClanEnemiesRecord> KEY_clanEnemies_unique_clanId = createUniqueKey(mineplex.database.tables.ClanEnemies.clanEnemies, mineplex.database.tables.ClanEnemies.clanEnemies.clanId);
|
||||
@ -336,8 +368,10 @@ public class Keys {
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ClansRecord> KEY_clans_clanName = createUniqueKey(mineplex.database.tables.Clans.clans, mineplex.database.tables.Clans.clans.serverId, mineplex.database.tables.Clans.clans.name);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ClanServerRecord> KEY_clanServer_PRIMARY = createUniqueKey(mineplex.database.tables.ClanServer.clanServer, mineplex.database.tables.ClanServer.clanServer.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ClanServerRecord> KEY_clanServer_unique_serverName = createUniqueKey(mineplex.database.tables.ClanServer.clanServer, mineplex.database.tables.ClanServer.clanServer.serverName);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ClansGoldRecord> KEY_clansGold_PRIMARY = createUniqueKey(mineplex.database.tables.ClansGold.clansGold, mineplex.database.tables.ClansGold.clansGold.serverId, mineplex.database.tables.ClansGold.clansGold.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ClanShopItemRecord> KEY_clanShopItem_PRIMARY = createUniqueKey(mineplex.database.tables.ClanShopItem.clanShopItem, mineplex.database.tables.ClanShopItem.clanShopItem.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ClanShopItemRecord> KEY_clanShopItem_shop_page_slot_UNIQUE = createUniqueKey(mineplex.database.tables.ClanShopItem.clanShopItem, mineplex.database.tables.ClanShopItem.clanShopItem.shopName, mineplex.database.tables.ClanShopItem.clanShopItem.shopPage, mineplex.database.tables.ClanShopItem.clanShopItem.slot);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ClansNetherPortalsRecord> KEY_clansNetherPortals_PRIMARY = createUniqueKey(mineplex.database.tables.ClansNetherPortals.clansNetherPortals, mineplex.database.tables.ClansNetherPortals.clansNetherPortals.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ClansOutpostsRecord> KEY_clansOutposts_PRIMARY = createUniqueKey(mineplex.database.tables.ClansOutposts.clansOutposts, mineplex.database.tables.ClansOutposts.clansOutposts.uniqueId);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ClansPvpTimerRecord> KEY_clansPvpTimer_PRIMARY = createUniqueKey(mineplex.database.tables.ClansPvpTimer.clansPvpTimer, mineplex.database.tables.ClansPvpTimer.clansPvpTimer.accountId);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ClansSiegeWeaponsRecord> KEY_clansSiegeWeapons_PRIMARY = createUniqueKey(mineplex.database.tables.ClansSiegeWeapons.clansSiegeWeapons, mineplex.database.tables.ClansSiegeWeapons.clansSiegeWeapons.uniqueId);
|
||||
@ -364,7 +398,6 @@ public class Keys {
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ItemsRecord> KEY_items_name_UNIQUE = createUniqueKey(mineplex.database.tables.Items.items, mineplex.database.tables.Items.items.name);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ItemsRecord> 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.KitProgressionRecord> KEY_kitProgression_PRIMARY = createUniqueKey(mineplex.database.tables.KitProgression.kitProgression, mineplex.database.tables.KitProgression.kitProgression.uuid, mineplex.database.tables.KitProgression.kitProgression.kitId);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.Kit_progressionRecord> KEY_kit_progression_PRIMARY = createUniqueKey(mineplex.database.tables.Kit_progression.kit_progression, mineplex.database.tables.Kit_progression.kit_progression.account_id, mineplex.database.tables.Kit_progression.kit_progression.kit_id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.MailRecord> KEY_mail_PRIMARY = createUniqueKey(mineplex.database.tables.Mail.mail, mineplex.database.tables.Mail.mail.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.MailboxRecord> KEY_mailbox_PRIMARY = createUniqueKey(mineplex.database.tables.Mailbox.mailbox, mineplex.database.tables.Mailbox.mailbox.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.NpcsRecord> KEY_npcs_PRIMARY = createUniqueKey(mineplex.database.tables.Npcs.npcs, mineplex.database.tables.Npcs.npcs.id);
|
||||
@ -372,6 +405,7 @@ public class Keys {
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.PlayerMapRecord> 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.PlayerMapRecord> 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.PollsRecord> 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.PowerPlayClubRecord> KEY_powerPlayClub_PRIMARY = createUniqueKey(mineplex.database.tables.PowerPlayClub.powerPlayClub, mineplex.database.tables.PowerPlayClub.powerPlayClub.accountId, mineplex.database.tables.PowerPlayClub.powerPlayClub.kvKey);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.RankBenefitsRecord> KEY_rankBenefits_PRIMARY = createUniqueKey(mineplex.database.tables.RankBenefits.rankBenefits, mineplex.database.tables.RankBenefits.rankBenefits.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.RankedBansRecord> KEY_rankedBans_PRIMARY = createUniqueKey(mineplex.database.tables.RankedBans.rankedBans, mineplex.database.tables.RankedBans.rankedBans.accountId);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ReportTicketsRecord> KEY_reportTickets_PRIMARY = createUniqueKey(mineplex.database.tables.ReportTickets.reportTickets, mineplex.database.tables.ReportTickets.reportTickets.reportId);
|
||||
@ -393,9 +427,13 @@ public class Keys {
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.TournamentsRecord> KEY_tournaments_PRIMARY = createUniqueKey(mineplex.database.tables.Tournaments.tournaments, mineplex.database.tables.Tournaments.tournaments.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.TournamentTeamsRecord> KEY_tournamentTeams_PRIMARY = createUniqueKey(mineplex.database.tables.TournamentTeams.tournamentTeams, mineplex.database.tables.TournamentTeams.tournamentTeams.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.TransactionsRecord> KEY_transactions_PRIMARY = createUniqueKey(mineplex.database.tables.Transactions.transactions, mineplex.database.tables.Transactions.transactions.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.UnicodereplacerRecord> KEY_unicodereplacer_PRIMARY = createUniqueKey(mineplex.database.tables.Unicodereplacer.unicodereplacer, mineplex.database.tables.Unicodereplacer.unicodereplacer.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.UnicodereplacerRecord> KEY_unicodereplacer_unicode = createUniqueKey(mineplex.database.tables.Unicodereplacer.unicodereplacer, mineplex.database.tables.Unicodereplacer.unicodereplacer.unicode);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.YoutubeRecord> KEY_youtube_PRIMARY = createUniqueKey(mineplex.database.tables.Youtube.youtube, mineplex.database.tables.Youtube.youtube.accountId);
|
||||
}
|
||||
|
||||
private static class ForeignKeys0 extends org.jooq.impl.AbstractKeys {
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountAmplifierThankRecord, mineplex.database.tables.records.AccountsRecord> accountAmplifierThank_accounts_id_fk = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.AccountAmplifierThank.accountAmplifierThank, mineplex.database.tables.AccountAmplifierThank.accountAmplifierThank.accountId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountAuthRecord, mineplex.database.tables.records.AccountsRecord> accountAuth_accounts_id_fk = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.AccountAuth.accountAuth, mineplex.database.tables.AccountAuth.accountAuth.accountId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountCoinTransactionsRecord, mineplex.database.tables.records.AccountsRecord> FK_ACT_ACCOUNTS_ID = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.AccountCoinTransactions.accountCoinTransactions, mineplex.database.tables.AccountCoinTransactions.accountCoinTransactions.accountId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountCustomDataRecord, mineplex.database.tables.records.AccountsRecord> CUSTOMDATA_ACCOUNT = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.AccountCustomData.accountCustomData, mineplex.database.tables.AccountCustomData.accountCustomData.accountId);
|
||||
@ -416,6 +454,9 @@ public class Keys {
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountStatRecord, mineplex.database.tables.records.StatsRecord> accountStat_stat = createForeignKey(mineplex.database.Keys.KEY_stats_PRIMARY, mineplex.database.tables.AccountStat.accountStat, mineplex.database.tables.AccountStat.accountStat.statId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountTasksRecord, mineplex.database.tables.records.AccountsRecord> ACCOUNTTASKS_ACCOUNTID = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.AccountTasks.accountTasks, mineplex.database.tables.AccountTasks.accountTasks.accountId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountTasksRecord, mineplex.database.tables.records.TasksRecord> ACCOUNTTASKS_TASKID = createForeignKey(mineplex.database.Keys.KEY_tasks_PRIMARY, mineplex.database.tables.AccountTasks.accountTasks, mineplex.database.tables.AccountTasks.accountTasks.taskId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountThankRecord, mineplex.database.tables.records.AccountsRecord> accountThank_accounts_id_fk = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.AccountThank.accountThank, mineplex.database.tables.AccountThank.accountThank.accountId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountThankTransactionsRecord, mineplex.database.tables.records.AccountsRecord> accountThankTransactions_accounts_id_fk2 = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.AccountThankTransactions.accountThankTransactions, mineplex.database.tables.AccountThankTransactions.accountThankTransactions.receiverId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountThankTransactionsRecord, mineplex.database.tables.records.AccountsRecord> accountThankTransactions_accounts_id_fk = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.AccountThankTransactions.accountThankTransactions, mineplex.database.tables.AccountThankTransactions.accountThankTransactions.senderId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountTipRecord, mineplex.database.tables.records.AccountsRecord> accountTips_accounts_id_fk = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.AccountTip.accountTip, mineplex.database.tables.AccountTip.accountTip.accountId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountTipClaimLogsRecord, mineplex.database.tables.records.AccountsRecord> accountTipClaimLogs_accounts_id_fk = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.AccountTipClaimLogs.accountTipClaimLogs, mineplex.database.tables.AccountTipClaimLogs.accountTipClaimLogs.accountId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountTipLogsRecord, mineplex.database.tables.records.AccountsRecord> accountTipLogs_accounts_id_fk = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.AccountTipLogs.accountTipLogs, mineplex.database.tables.AccountTipLogs.accountTipLogs.accountId);
|
||||
@ -423,17 +464,22 @@ public class Keys {
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountTransactionsRecord, mineplex.database.tables.records.TransactionsRecord> ACCOUNTTRANSACTIONS_TRANSACTIONID = createForeignKey(mineplex.database.Keys.KEY_transactions_PRIMARY, mineplex.database.tables.AccountTransactions.accountTransactions, mineplex.database.tables.AccountTransactions.accountTransactions.transactionId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountValentinesGiftRecord, mineplex.database.tables.records.AccountsRecord> accountValentines_sender_fk = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.AccountValentinesGift.accountValentinesGift, mineplex.database.tables.AccountValentinesGift.accountValentinesGift.senderId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountValentinesGiftRecord, mineplex.database.tables.records.AccountsRecord> accountValentines_target_fk = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.AccountValentinesGift.accountValentinesGift, mineplex.database.tables.AccountValentinesGift.accountValentinesGift.targetId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountWebsiteLinkCodeRecord, mineplex.database.tables.records.AccountsRecord> accountWebsiteLinkCode_ibfk_1 = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.AccountWebsiteLinkCode.accountWebsiteLinkCode, mineplex.database.tables.AccountWebsiteLinkCode.accountWebsiteLinkCode.accountId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.BonusRecord, mineplex.database.tables.records.AccountsRecord> bonus_ibfk_1 = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.Bonus.bonus, mineplex.database.tables.Bonus.bonus.accountId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.BonusLogRecord, mineplex.database.tables.records.AccountsRecord> bonusLogAccountId = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.BonusLog.bonusLog, mineplex.database.tables.BonusLog.bonusLog.accountId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.BonusLogRecord, mineplex.database.tables.records.ItemsRecord> bonusLogItemId = createForeignKey(mineplex.database.Keys.KEY_items_PRIMARY, mineplex.database.tables.BonusLog.bonusLog, mineplex.database.tables.BonusLog.bonusLog.itemId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.ClansGoldRecord, mineplex.database.tables.records.ClanServerRecord> clansGold_ibfk_1 = createForeignKey(mineplex.database.Keys.KEY_clanServer_PRIMARY, mineplex.database.tables.ClansGold.clansGold, mineplex.database.tables.ClansGold.clansGold.serverId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.ClansGoldRecord, mineplex.database.tables.records.AccountsRecord> clansGold_ibfk_2 = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.ClansGold.clansGold, mineplex.database.tables.ClansGold.clansGold.id);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.EloRatingRecord, mineplex.database.tables.records.AccountsRecord> ELORATING_ACCOUNTID = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.EloRating.eloRating, mineplex.database.tables.EloRating.eloRating.accountId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.FacebookRecord, mineplex.database.tables.records.AccountsRecord> facebook_accounts_id_fk = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.Facebook.facebook, mineplex.database.tables.Facebook.facebook.accountId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.GadgetsRecord, mineplex.database.tables.records.AccountsRecord> gadgets_ibfk_1 = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.Gadgets.gadgets, mineplex.database.tables.Gadgets.gadgets.accountId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.MailRecord, mineplex.database.tables.records.AccountsRecord> mail_ibfk_1 = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.Mail.mail, mineplex.database.tables.Mail.mail.accountId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.MailboxRecord, mineplex.database.tables.records.AccountsRecord> mailbox_ibfk_1 = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.Mailbox.mailbox, mineplex.database.tables.Mailbox.mailbox.accountId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.PowerPlayClubRecord, mineplex.database.tables.records.AccountsRecord> powerPlayClub_ibfk_1 = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.PowerPlayClub.powerPlayClub, mineplex.database.tables.PowerPlayClub.powerPlayClub.accountId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.RankBenefitsRecord, mineplex.database.tables.records.AccountsRecord> rankBenefits_ibfk_1 = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.RankBenefits.rankBenefits, mineplex.database.tables.RankBenefits.rankBenefits.accountId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.TitanGiveawayRecord, mineplex.database.tables.records.AccountsRecord> titanGiveaway_ibfk_1 = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.TitanGiveaway.titanGiveaway, mineplex.database.tables.TitanGiveaway.titanGiveaway.accountId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.TournamentTeamsRecord, mineplex.database.tables.records.TournamentsRecord> TEAM_TOURNAMENT_KEY = createForeignKey(mineplex.database.Keys.KEY_tournaments_PRIMARY, mineplex.database.tables.TournamentTeams.tournamentTeams, mineplex.database.tables.TournamentTeams.tournamentTeams.tournamentId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.TournamentTeamsRecord, mineplex.database.tables.records.AccountsRecord> TEAM_TOURNAMENT_ACCOUNT_ID = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.TournamentTeams.tournamentTeams, mineplex.database.tables.TournamentTeams.tournamentTeams.accountId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.YoutubeRecord, mineplex.database.tables.records.AccountsRecord> youtube_ibfk_1 = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.Youtube.youtube, mineplex.database.tables.Youtube.youtube.accountId);
|
||||
}
|
||||
}
|
||||
|
@ -28,6 +28,21 @@ public class Routines {
|
||||
return p.getSuccess();
|
||||
}
|
||||
|
||||
/**
|
||||
* Call <code>Account.addThank</code>
|
||||
*/
|
||||
public static java.lang.Byte callAddthank(org.jooq.Configuration configuration, java.lang.Integer inReceiverAccountId, java.lang.Integer inSenderAccountId, java.lang.Integer inThankAmount, java.lang.String inReason, java.lang.Byte inIgnoreCooldown) {
|
||||
mineplex.database.routines.AddThank p = new mineplex.database.routines.AddThank();
|
||||
p.setInReceiverAccountId(inReceiverAccountId);
|
||||
p.setInSenderAccountId(inSenderAccountId);
|
||||
p.setInThankAmount(inThankAmount);
|
||||
p.setInReason(inReason);
|
||||
p.setInIgnoreCooldown(inIgnoreCooldown);
|
||||
|
||||
p.execute(configuration);
|
||||
return p.getSuccess();
|
||||
}
|
||||
|
||||
/**
|
||||
* Call <code>Account.addTip</code>
|
||||
*/
|
||||
@ -42,6 +57,18 @@ public class Routines {
|
||||
return p.getSuccess();
|
||||
}
|
||||
|
||||
/**
|
||||
* Call <code>Account.checkAmplifierThank</code>
|
||||
*/
|
||||
public static java.lang.Byte callCheckamplifierthank(org.jooq.Configuration configuration, java.lang.Integer inAccountId, java.lang.Integer inAmplifierId) {
|
||||
mineplex.database.routines.CheckAmplifierThank p = new mineplex.database.routines.CheckAmplifierThank();
|
||||
p.setInAccountId(inAccountId);
|
||||
p.setInAmplifierId(inAmplifierId);
|
||||
|
||||
p.execute(configuration);
|
||||
return p.getCanThank();
|
||||
}
|
||||
|
||||
/**
|
||||
* Call <code>Account.check_daily</code>
|
||||
*/
|
||||
@ -105,6 +132,17 @@ public class Routines {
|
||||
return p;
|
||||
}
|
||||
|
||||
/**
|
||||
* Call <code>Account.claimThank</code>
|
||||
*/
|
||||
public static mineplex.database.routines.ClaimThank callClaimthank(org.jooq.Configuration configuration, java.lang.Integer inAccountId) {
|
||||
mineplex.database.routines.ClaimThank p = new mineplex.database.routines.ClaimThank();
|
||||
p.setInAccountId(inAccountId);
|
||||
|
||||
p.execute(configuration);
|
||||
return p;
|
||||
}
|
||||
|
||||
/**
|
||||
* Call <code>Account.claimTips</code>
|
||||
*/
|
||||
|
@ -16,6 +16,11 @@ package mineplex.database;
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class Tables {
|
||||
|
||||
/**
|
||||
* The table Account.accountAmplifierThank
|
||||
*/
|
||||
public static final mineplex.database.tables.AccountAmplifierThank accountAmplifierThank = mineplex.database.tables.AccountAmplifierThank.accountAmplifierThank;
|
||||
|
||||
/**
|
||||
* The table Account.accountAuth
|
||||
*/
|
||||
@ -101,6 +106,16 @@ public class Tables {
|
||||
*/
|
||||
public static final mineplex.database.tables.AccountTasks accountTasks = mineplex.database.tables.AccountTasks.accountTasks;
|
||||
|
||||
/**
|
||||
* The table Account.accountThank
|
||||
*/
|
||||
public static final mineplex.database.tables.AccountThank accountThank = mineplex.database.tables.AccountThank.accountThank;
|
||||
|
||||
/**
|
||||
* The table Account.accountThankTransactions
|
||||
*/
|
||||
public static final mineplex.database.tables.AccountThankTransactions accountThankTransactions = mineplex.database.tables.AccountThankTransactions.accountThankTransactions;
|
||||
|
||||
/**
|
||||
* The table Account.accountTip
|
||||
*/
|
||||
@ -126,6 +141,11 @@ public class Tables {
|
||||
*/
|
||||
public static final mineplex.database.tables.AccountValentinesGift accountValentinesGift = mineplex.database.tables.AccountValentinesGift.accountValentinesGift;
|
||||
|
||||
/**
|
||||
* The table Account.accountWebsiteLinkCode
|
||||
*/
|
||||
public static final mineplex.database.tables.AccountWebsiteLinkCode accountWebsiteLinkCode = mineplex.database.tables.AccountWebsiteLinkCode.accountWebsiteLinkCode;
|
||||
|
||||
/**
|
||||
* The table Account.activeTournaments
|
||||
*/
|
||||
@ -161,6 +181,11 @@ public class Tables {
|
||||
*/
|
||||
public static final mineplex.database.tables.ClanAlliances clanAlliances = mineplex.database.tables.ClanAlliances.clanAlliances;
|
||||
|
||||
/**
|
||||
* The table Account.clanBanners
|
||||
*/
|
||||
public static final mineplex.database.tables.ClanBanners clanBanners = mineplex.database.tables.ClanBanners.clanBanners;
|
||||
|
||||
/**
|
||||
* The table Account.clanBans
|
||||
*/
|
||||
@ -191,11 +216,21 @@ public class Tables {
|
||||
*/
|
||||
public static final mineplex.database.tables.ClanServer clanServer = mineplex.database.tables.ClanServer.clanServer;
|
||||
|
||||
/**
|
||||
* The table Account.clansGold
|
||||
*/
|
||||
public static final mineplex.database.tables.ClansGold clansGold = mineplex.database.tables.ClansGold.clansGold;
|
||||
|
||||
/**
|
||||
* The table Account.clanShopItem
|
||||
*/
|
||||
public static final mineplex.database.tables.ClanShopItem clanShopItem = mineplex.database.tables.ClanShopItem.clanShopItem;
|
||||
|
||||
/**
|
||||
* The table Account.clansNetherPortals
|
||||
*/
|
||||
public static final mineplex.database.tables.ClansNetherPortals clansNetherPortals = mineplex.database.tables.ClansNetherPortals.clansNetherPortals;
|
||||
|
||||
/**
|
||||
* The table Account.clansOutposts
|
||||
*/
|
||||
@ -296,11 +331,6 @@ public class Tables {
|
||||
*/
|
||||
public static final mineplex.database.tables.KitProgression kitProgression = mineplex.database.tables.KitProgression.kitProgression;
|
||||
|
||||
/**
|
||||
* The table Account.kit_progression
|
||||
*/
|
||||
public static final mineplex.database.tables.Kit_progression kit_progression = mineplex.database.tables.Kit_progression.kit_progression;
|
||||
|
||||
/**
|
||||
* The table Account.mail
|
||||
*/
|
||||
@ -311,6 +341,11 @@ public class Tables {
|
||||
*/
|
||||
public static final mineplex.database.tables.Mailbox mailbox = mineplex.database.tables.Mailbox.mailbox;
|
||||
|
||||
/**
|
||||
* The table Account.nonPremiumJoinMessage
|
||||
*/
|
||||
public static final mineplex.database.tables.NonPremiumJoinMessage nonPremiumJoinMessage = mineplex.database.tables.NonPremiumJoinMessage.nonPremiumJoinMessage;
|
||||
|
||||
/**
|
||||
* The table Account.npcs
|
||||
*/
|
||||
@ -331,6 +366,11 @@ public class Tables {
|
||||
*/
|
||||
public static final mineplex.database.tables.Polls polls = mineplex.database.tables.Polls.polls;
|
||||
|
||||
/**
|
||||
* The table Account.powerPlayClub
|
||||
*/
|
||||
public static final mineplex.database.tables.PowerPlayClub powerPlayClub = mineplex.database.tables.PowerPlayClub.powerPlayClub;
|
||||
|
||||
/**
|
||||
* The table Account.rankBenefits
|
||||
*/
|
||||
@ -430,4 +470,14 @@ public class Tables {
|
||||
* The table Account.transactions
|
||||
*/
|
||||
public static final mineplex.database.tables.Transactions transactions = mineplex.database.tables.Transactions.transactions;
|
||||
|
||||
/**
|
||||
* The table Account.unicodereplacer
|
||||
*/
|
||||
public static final mineplex.database.tables.Unicodereplacer unicodereplacer = mineplex.database.tables.Unicodereplacer.unicodereplacer;
|
||||
|
||||
/**
|
||||
* The table Account.youtube
|
||||
*/
|
||||
public static final mineplex.database.tables.Youtube youtube = mineplex.database.tables.Youtube.youtube;
|
||||
}
|
||||
|
@ -0,0 +1,106 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.routines;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.5.2"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class AddThank extends org.jooq.impl.AbstractRoutine<java.lang.Void> implements java.io.Serializable, java.lang.Cloneable {
|
||||
|
||||
private static final long serialVersionUID = -344701696;
|
||||
|
||||
/**
|
||||
* The parameter <code>Account.addThank.inReceiverAccountId</code>.
|
||||
*/
|
||||
public static final org.jooq.Parameter<java.lang.Integer> inReceiverAccountId = createParameter("inReceiverAccountId", org.jooq.impl.SQLDataType.INTEGER, false);
|
||||
|
||||
/**
|
||||
* The parameter <code>Account.addThank.inSenderAccountId</code>.
|
||||
*/
|
||||
public static final org.jooq.Parameter<java.lang.Integer> inSenderAccountId = createParameter("inSenderAccountId", org.jooq.impl.SQLDataType.INTEGER, false);
|
||||
|
||||
/**
|
||||
* The parameter <code>Account.addThank.inThankAmount</code>.
|
||||
*/
|
||||
public static final org.jooq.Parameter<java.lang.Integer> inThankAmount = createParameter("inThankAmount", org.jooq.impl.SQLDataType.INTEGER, false);
|
||||
|
||||
/**
|
||||
* The parameter <code>Account.addThank.inReason</code>.
|
||||
*/
|
||||
public static final org.jooq.Parameter<java.lang.String> inReason = createParameter("inReason", org.jooq.impl.SQLDataType.VARCHAR.length(32), false);
|
||||
|
||||
/**
|
||||
* The parameter <code>Account.addThank.inIgnoreCooldown</code>.
|
||||
*/
|
||||
public static final org.jooq.Parameter<java.lang.Byte> inIgnoreCooldown = createParameter("inIgnoreCooldown", org.jooq.impl.SQLDataType.TINYINT, false);
|
||||
|
||||
/**
|
||||
* The parameter <code>Account.addThank.success</code>.
|
||||
*/
|
||||
public static final org.jooq.Parameter<java.lang.Byte> success = createParameter("success", org.jooq.impl.SQLDataType.TINYINT, false);
|
||||
|
||||
/**
|
||||
* Create a new routine call instance
|
||||
*/
|
||||
public AddThank() {
|
||||
super("addThank", mineplex.database.Account.Account);
|
||||
|
||||
addInParameter(inReceiverAccountId);
|
||||
addInParameter(inSenderAccountId);
|
||||
addInParameter(inThankAmount);
|
||||
addInParameter(inReason);
|
||||
addInParameter(inIgnoreCooldown);
|
||||
addOutParameter(success);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the <code>inReceiverAccountId</code> parameter IN value to the routine
|
||||
*/
|
||||
public void setInReceiverAccountId(java.lang.Integer value) {
|
||||
setValue(mineplex.database.routines.AddThank.inReceiverAccountId, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the <code>inSenderAccountId</code> parameter IN value to the routine
|
||||
*/
|
||||
public void setInSenderAccountId(java.lang.Integer value) {
|
||||
setValue(mineplex.database.routines.AddThank.inSenderAccountId, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the <code>inThankAmount</code> parameter IN value to the routine
|
||||
*/
|
||||
public void setInThankAmount(java.lang.Integer value) {
|
||||
setValue(mineplex.database.routines.AddThank.inThankAmount, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the <code>inReason</code> parameter IN value to the routine
|
||||
*/
|
||||
public void setInReason(java.lang.String value) {
|
||||
setValue(mineplex.database.routines.AddThank.inReason, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the <code>inIgnoreCooldown</code> parameter IN value to the routine
|
||||
*/
|
||||
public void setInIgnoreCooldown(java.lang.Byte value) {
|
||||
setValue(mineplex.database.routines.AddThank.inIgnoreCooldown, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the <code>success</code> parameter OUT value from the routine
|
||||
*/
|
||||
public java.lang.Byte getSuccess() {
|
||||
return getValue(success);
|
||||
}
|
||||
}
|
@ -0,0 +1,67 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.routines;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.5.2"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class CheckAmplifierThank extends org.jooq.impl.AbstractRoutine<java.lang.Void> implements java.io.Serializable, java.lang.Cloneable {
|
||||
|
||||
private static final long serialVersionUID = 522346006;
|
||||
|
||||
/**
|
||||
* The parameter <code>Account.checkAmplifierThank.inAccountId</code>.
|
||||
*/
|
||||
public static final org.jooq.Parameter<java.lang.Integer> inAccountId = createParameter("inAccountId", org.jooq.impl.SQLDataType.INTEGER, false);
|
||||
|
||||
/**
|
||||
* The parameter <code>Account.checkAmplifierThank.inAmplifierId</code>.
|
||||
*/
|
||||
public static final org.jooq.Parameter<java.lang.Integer> inAmplifierId = createParameter("inAmplifierId", org.jooq.impl.SQLDataType.INTEGER, false);
|
||||
|
||||
/**
|
||||
* The parameter <code>Account.checkAmplifierThank.canThank</code>.
|
||||
*/
|
||||
public static final org.jooq.Parameter<java.lang.Byte> canThank = createParameter("canThank", org.jooq.impl.SQLDataType.TINYINT, false);
|
||||
|
||||
/**
|
||||
* Create a new routine call instance
|
||||
*/
|
||||
public CheckAmplifierThank() {
|
||||
super("checkAmplifierThank", mineplex.database.Account.Account);
|
||||
|
||||
addInParameter(inAccountId);
|
||||
addInParameter(inAmplifierId);
|
||||
addOutParameter(canThank);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the <code>inAccountId</code> parameter IN value to the routine
|
||||
*/
|
||||
public void setInAccountId(java.lang.Integer value) {
|
||||
setValue(mineplex.database.routines.CheckAmplifierThank.inAccountId, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the <code>inAmplifierId</code> parameter IN value to the routine
|
||||
*/
|
||||
public void setInAmplifierId(java.lang.Integer value) {
|
||||
setValue(mineplex.database.routines.CheckAmplifierThank.inAmplifierId, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the <code>canThank</code> parameter OUT value from the routine
|
||||
*/
|
||||
public java.lang.Byte getCanThank() {
|
||||
return getValue(canThank);
|
||||
}
|
||||
}
|
@ -0,0 +1,67 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.routines;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.5.2"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class ClaimThank extends org.jooq.impl.AbstractRoutine<java.lang.Void> implements java.io.Serializable, java.lang.Cloneable {
|
||||
|
||||
private static final long serialVersionUID = 856582355;
|
||||
|
||||
/**
|
||||
* The parameter <code>Account.claimThank.inAccountId</code>.
|
||||
*/
|
||||
public static final org.jooq.Parameter<java.lang.Integer> inAccountId = createParameter("inAccountId", org.jooq.impl.SQLDataType.INTEGER, false);
|
||||
|
||||
/**
|
||||
* The parameter <code>Account.claimThank.amountClaimed</code>.
|
||||
*/
|
||||
public static final org.jooq.Parameter<java.lang.Integer> amountClaimed = createParameter("amountClaimed", org.jooq.impl.SQLDataType.INTEGER, false);
|
||||
|
||||
/**
|
||||
* The parameter <code>Account.claimThank.uniqueThank</code>.
|
||||
*/
|
||||
public static final org.jooq.Parameter<java.lang.Integer> uniqueThank = createParameter("uniqueThank", org.jooq.impl.SQLDataType.INTEGER, false);
|
||||
|
||||
/**
|
||||
* Create a new routine call instance
|
||||
*/
|
||||
public ClaimThank() {
|
||||
super("claimThank", mineplex.database.Account.Account);
|
||||
|
||||
addInParameter(inAccountId);
|
||||
addOutParameter(amountClaimed);
|
||||
addOutParameter(uniqueThank);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the <code>inAccountId</code> parameter IN value to the routine
|
||||
*/
|
||||
public void setInAccountId(java.lang.Integer value) {
|
||||
setValue(mineplex.database.routines.ClaimThank.inAccountId, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the <code>amountClaimed</code> parameter OUT value from the routine
|
||||
*/
|
||||
public java.lang.Integer getAmountClaimed() {
|
||||
return getValue(amountClaimed);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the <code>uniqueThank</code> parameter OUT value from the routine
|
||||
*/
|
||||
public java.lang.Integer getUniqueThank() {
|
||||
return getValue(uniqueThank);
|
||||
}
|
||||
}
|
@ -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",
|
||||
"jOOQ version:3.5.2"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class AccountAmplifierThank extends org.jooq.impl.TableImpl<mineplex.database.tables.records.AccountAmplifierThankRecord> implements java.io.Serializable, java.lang.Cloneable {
|
||||
|
||||
private static final long serialVersionUID = -810649551;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>Account.accountAmplifierThank</code>
|
||||
*/
|
||||
public static final mineplex.database.tables.AccountAmplifierThank accountAmplifierThank = new mineplex.database.tables.AccountAmplifierThank();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<mineplex.database.tables.records.AccountAmplifierThankRecord> getRecordType() {
|
||||
return mineplex.database.tables.records.AccountAmplifierThankRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountAmplifierThank.accountId</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountAmplifierThankRecord, java.lang.Integer> accountId = createField("accountId", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountAmplifierThank.amplifierId</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountAmplifierThankRecord, java.lang.Integer> amplifierId = createField("amplifierId", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountAmplifierThank.time</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountAmplifierThankRecord, java.sql.Timestamp> time = createField("time", org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaulted(true), this, "");
|
||||
|
||||
/**
|
||||
* Create a <code>Account.accountAmplifierThank</code> table reference
|
||||
*/
|
||||
public AccountAmplifierThank() {
|
||||
this("accountAmplifierThank", null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>Account.accountAmplifierThank</code> table reference
|
||||
*/
|
||||
public AccountAmplifierThank(java.lang.String alias) {
|
||||
this(alias, mineplex.database.tables.AccountAmplifierThank.accountAmplifierThank);
|
||||
}
|
||||
|
||||
private AccountAmplifierThank(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.AccountAmplifierThankRecord> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private AccountAmplifierThank(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.AccountAmplifierThankRecord> aliased, org.jooq.Field<?>[] parameters) {
|
||||
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.UniqueKey<mineplex.database.tables.records.AccountAmplifierThankRecord> getPrimaryKey() {
|
||||
return mineplex.database.Keys.KEY_accountAmplifierThank_PRIMARY;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.AccountAmplifierThankRecord>> getKeys() {
|
||||
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.AccountAmplifierThankRecord>>asList(mineplex.database.Keys.KEY_accountAmplifierThank_PRIMARY);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.ForeignKey<mineplex.database.tables.records.AccountAmplifierThankRecord, ?>> getReferences() {
|
||||
return java.util.Arrays.<org.jooq.ForeignKey<mineplex.database.tables.records.AccountAmplifierThankRecord, ?>>asList(mineplex.database.Keys.accountAmplifierThank_accounts_id_fk);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public mineplex.database.tables.AccountAmplifierThank as(java.lang.String alias) {
|
||||
return new mineplex.database.tables.AccountAmplifierThank(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
public mineplex.database.tables.AccountAmplifierThank rename(java.lang.String name) {
|
||||
return new mineplex.database.tables.AccountAmplifierThank(name, null);
|
||||
}
|
||||
}
|
@ -0,0 +1,104 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.5.2"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class AccountThank extends org.jooq.impl.TableImpl<mineplex.database.tables.records.AccountThankRecord> implements java.io.Serializable, java.lang.Cloneable {
|
||||
|
||||
private static final long serialVersionUID = -1744584483;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>Account.accountThank</code>
|
||||
*/
|
||||
public static final mineplex.database.tables.AccountThank accountThank = new mineplex.database.tables.AccountThank();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<mineplex.database.tables.records.AccountThankRecord> getRecordType() {
|
||||
return mineplex.database.tables.records.AccountThankRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountThank.accountId</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountThankRecord, java.lang.Integer> accountId = createField("accountId", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountThank.thanks</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountThankRecord, java.lang.Integer> thanks = createField("thanks", org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaulted(true), this, "");
|
||||
|
||||
/**
|
||||
* Create a <code>Account.accountThank</code> table reference
|
||||
*/
|
||||
public AccountThank() {
|
||||
this("accountThank", null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>Account.accountThank</code> table reference
|
||||
*/
|
||||
public AccountThank(java.lang.String alias) {
|
||||
this(alias, mineplex.database.tables.AccountThank.accountThank);
|
||||
}
|
||||
|
||||
private AccountThank(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.AccountThankRecord> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private AccountThank(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.AccountThankRecord> aliased, org.jooq.Field<?>[] parameters) {
|
||||
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.UniqueKey<mineplex.database.tables.records.AccountThankRecord> getPrimaryKey() {
|
||||
return mineplex.database.Keys.KEY_accountThank_PRIMARY;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.AccountThankRecord>> getKeys() {
|
||||
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.AccountThankRecord>>asList(mineplex.database.Keys.KEY_accountThank_PRIMARY);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.ForeignKey<mineplex.database.tables.records.AccountThankRecord, ?>> getReferences() {
|
||||
return java.util.Arrays.<org.jooq.ForeignKey<mineplex.database.tables.records.AccountThankRecord, ?>>asList(mineplex.database.Keys.accountThank_accounts_id_fk);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public mineplex.database.tables.AccountThank as(java.lang.String alias) {
|
||||
return new mineplex.database.tables.AccountThank(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
public mineplex.database.tables.AccountThank rename(java.lang.String name) {
|
||||
return new mineplex.database.tables.AccountThank(name, null);
|
||||
}
|
||||
}
|
@ -0,0 +1,147 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.5.2"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class AccountThankTransactions extends org.jooq.impl.TableImpl<mineplex.database.tables.records.AccountThankTransactionsRecord> implements java.io.Serializable, java.lang.Cloneable {
|
||||
|
||||
private static final long serialVersionUID = 809892717;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>Account.accountThankTransactions</code>
|
||||
*/
|
||||
public static final mineplex.database.tables.AccountThankTransactions accountThankTransactions = new mineplex.database.tables.AccountThankTransactions();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<mineplex.database.tables.records.AccountThankTransactionsRecord> getRecordType() {
|
||||
return mineplex.database.tables.records.AccountThankTransactionsRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountThankTransactions.id</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountThankTransactionsRecord, java.lang.Integer> id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountThankTransactions.receiverId</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountThankTransactionsRecord, java.lang.Integer> receiverId = createField("receiverId", org.jooq.impl.SQLDataType.INTEGER, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountThankTransactions.senderId</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountThankTransactionsRecord, java.lang.Integer> senderId = createField("senderId", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountThankTransactions.thankAmount</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountThankTransactionsRecord, java.lang.Integer> thankAmount = createField("thankAmount", org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaulted(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountThankTransactions.reason</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountThankTransactionsRecord, java.lang.String> reason = createField("reason", org.jooq.impl.SQLDataType.VARCHAR.length(32), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountThankTransactions.ignoreCooldown</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountThankTransactionsRecord, java.lang.Byte> ignoreCooldown = createField("ignoreCooldown", org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaulted(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountThankTransactions.claimed</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountThankTransactionsRecord, java.lang.Byte> claimed = createField("claimed", org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaulted(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountThankTransactions.sentTime</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountThankTransactionsRecord, java.sql.Timestamp> sentTime = createField("sentTime", org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaulted(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountThankTransactions.claimTime</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountThankTransactionsRecord, java.sql.Timestamp> claimTime = createField("claimTime", org.jooq.impl.SQLDataType.TIMESTAMP, this, "");
|
||||
|
||||
/**
|
||||
* Create a <code>Account.accountThankTransactions</code> table reference
|
||||
*/
|
||||
public AccountThankTransactions() {
|
||||
this("accountThankTransactions", null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>Account.accountThankTransactions</code> table reference
|
||||
*/
|
||||
public AccountThankTransactions(java.lang.String alias) {
|
||||
this(alias, mineplex.database.tables.AccountThankTransactions.accountThankTransactions);
|
||||
}
|
||||
|
||||
private AccountThankTransactions(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.AccountThankTransactionsRecord> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private AccountThankTransactions(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.AccountThankTransactionsRecord> aliased, org.jooq.Field<?>[] parameters) {
|
||||
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Identity<mineplex.database.tables.records.AccountThankTransactionsRecord, java.lang.Integer> getIdentity() {
|
||||
return mineplex.database.Keys.IDENTITY_accountThankTransactions;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.UniqueKey<mineplex.database.tables.records.AccountThankTransactionsRecord> getPrimaryKey() {
|
||||
return mineplex.database.Keys.KEY_accountThankTransactions_PRIMARY;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.AccountThankTransactionsRecord>> getKeys() {
|
||||
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.AccountThankTransactionsRecord>>asList(mineplex.database.Keys.KEY_accountThankTransactions_PRIMARY);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.ForeignKey<mineplex.database.tables.records.AccountThankTransactionsRecord, ?>> getReferences() {
|
||||
return java.util.Arrays.<org.jooq.ForeignKey<mineplex.database.tables.records.AccountThankTransactionsRecord, ?>>asList(mineplex.database.Keys.accountThankTransactions_accounts_id_fk2, mineplex.database.Keys.accountThankTransactions_accounts_id_fk);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public mineplex.database.tables.AccountThankTransactions as(java.lang.String alias) {
|
||||
return new mineplex.database.tables.AccountThankTransactions(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
public mineplex.database.tables.AccountThankTransactions rename(java.lang.String name) {
|
||||
return new mineplex.database.tables.AccountThankTransactions(name, null);
|
||||
}
|
||||
}
|
@ -0,0 +1,109 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.5.2"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class AccountWebsiteLinkCode extends org.jooq.impl.TableImpl<mineplex.database.tables.records.AccountWebsiteLinkCodeRecord> implements java.io.Serializable, java.lang.Cloneable {
|
||||
|
||||
private static final long serialVersionUID = 2114439433;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>Account.accountWebsiteLinkCode</code>
|
||||
*/
|
||||
public static final mineplex.database.tables.AccountWebsiteLinkCode accountWebsiteLinkCode = new mineplex.database.tables.AccountWebsiteLinkCode();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<mineplex.database.tables.records.AccountWebsiteLinkCodeRecord> getRecordType() {
|
||||
return mineplex.database.tables.records.AccountWebsiteLinkCodeRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountWebsiteLinkCode.accountId</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountWebsiteLinkCodeRecord, java.lang.Integer> accountId = createField("accountId", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountWebsiteLinkCode.confirmationCode</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountWebsiteLinkCodeRecord, java.lang.String> confirmationCode = createField("confirmationCode", org.jooq.impl.SQLDataType.CHAR.length(6).nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.accountWebsiteLinkCode.date</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.AccountWebsiteLinkCodeRecord, java.sql.Timestamp> date = createField("date", org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaulted(true), this, "");
|
||||
|
||||
/**
|
||||
* Create a <code>Account.accountWebsiteLinkCode</code> table reference
|
||||
*/
|
||||
public AccountWebsiteLinkCode() {
|
||||
this("accountWebsiteLinkCode", null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>Account.accountWebsiteLinkCode</code> table reference
|
||||
*/
|
||||
public AccountWebsiteLinkCode(java.lang.String alias) {
|
||||
this(alias, mineplex.database.tables.AccountWebsiteLinkCode.accountWebsiteLinkCode);
|
||||
}
|
||||
|
||||
private AccountWebsiteLinkCode(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.AccountWebsiteLinkCodeRecord> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private AccountWebsiteLinkCode(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.AccountWebsiteLinkCodeRecord> aliased, org.jooq.Field<?>[] parameters) {
|
||||
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.UniqueKey<mineplex.database.tables.records.AccountWebsiteLinkCodeRecord> getPrimaryKey() {
|
||||
return mineplex.database.Keys.KEY_accountWebsiteLinkCode_PRIMARY;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.AccountWebsiteLinkCodeRecord>> getKeys() {
|
||||
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.AccountWebsiteLinkCodeRecord>>asList(mineplex.database.Keys.KEY_accountWebsiteLinkCode_PRIMARY);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.ForeignKey<mineplex.database.tables.records.AccountWebsiteLinkCodeRecord, ?>> getReferences() {
|
||||
return java.util.Arrays.<org.jooq.ForeignKey<mineplex.database.tables.records.AccountWebsiteLinkCodeRecord, ?>>asList(mineplex.database.Keys.accountWebsiteLinkCode_ibfk_1);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public mineplex.database.tables.AccountWebsiteLinkCode as(java.lang.String alias) {
|
||||
return new mineplex.database.tables.AccountWebsiteLinkCode(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
public mineplex.database.tables.AccountWebsiteLinkCode rename(java.lang.String name) {
|
||||
return new mineplex.database.tables.AccountWebsiteLinkCode(name, null);
|
||||
}
|
||||
}
|
@ -0,0 +1,101 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.5.2"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class ClanBanners extends org.jooq.impl.TableImpl<mineplex.database.tables.records.ClanBannersRecord> implements java.io.Serializable, java.lang.Cloneable {
|
||||
|
||||
private static final long serialVersionUID = -633858329;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>Account.clanBanners</code>
|
||||
*/
|
||||
public static final mineplex.database.tables.ClanBanners clanBanners = new mineplex.database.tables.ClanBanners();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<mineplex.database.tables.records.ClanBannersRecord> getRecordType() {
|
||||
return mineplex.database.tables.records.ClanBannersRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>Account.clanBanners.clanId</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.ClanBannersRecord, java.lang.Integer> clanId = createField("clanId", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.clanBanners.baseColor</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.ClanBannersRecord, java.lang.String> baseColor = createField("baseColor", org.jooq.impl.SQLDataType.VARCHAR.length(15), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.clanBanners.patterns</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.ClanBannersRecord, java.lang.String> patterns = createField("patterns", org.jooq.impl.SQLDataType.VARCHAR.length(300), this, "");
|
||||
|
||||
/**
|
||||
* Create a <code>Account.clanBanners</code> table reference
|
||||
*/
|
||||
public ClanBanners() {
|
||||
this("clanBanners", null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>Account.clanBanners</code> table reference
|
||||
*/
|
||||
public ClanBanners(java.lang.String alias) {
|
||||
this(alias, mineplex.database.tables.ClanBanners.clanBanners);
|
||||
}
|
||||
|
||||
private ClanBanners(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.ClanBannersRecord> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private ClanBanners(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.ClanBannersRecord> aliased, org.jooq.Field<?>[] parameters) {
|
||||
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.UniqueKey<mineplex.database.tables.records.ClanBannersRecord> getPrimaryKey() {
|
||||
return mineplex.database.Keys.KEY_clanBanners_PRIMARY;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.ClanBannersRecord>> getKeys() {
|
||||
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.ClanBannersRecord>>asList(mineplex.database.Keys.KEY_clanBanners_PRIMARY);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public mineplex.database.tables.ClanBanners as(java.lang.String alias) {
|
||||
return new mineplex.database.tables.ClanBanners(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
public mineplex.database.tables.ClanBanners rename(java.lang.String name) {
|
||||
return new mineplex.database.tables.ClanBanners(name, null);
|
||||
}
|
||||
}
|
@ -0,0 +1,109 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.5.2"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class ClansGold extends org.jooq.impl.TableImpl<mineplex.database.tables.records.ClansGoldRecord> implements java.io.Serializable, java.lang.Cloneable {
|
||||
|
||||
private static final long serialVersionUID = 950104617;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>Account.clansGold</code>
|
||||
*/
|
||||
public static final mineplex.database.tables.ClansGold clansGold = new mineplex.database.tables.ClansGold();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<mineplex.database.tables.records.ClansGoldRecord> getRecordType() {
|
||||
return mineplex.database.tables.records.ClansGoldRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>Account.clansGold.serverId</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.ClansGoldRecord, java.lang.Integer> serverId = createField("serverId", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.clansGold.id</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.ClansGoldRecord, java.lang.Integer> id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.clansGold.gold</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.ClansGoldRecord, java.lang.Integer> gold = createField("gold", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* Create a <code>Account.clansGold</code> table reference
|
||||
*/
|
||||
public ClansGold() {
|
||||
this("clansGold", null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>Account.clansGold</code> table reference
|
||||
*/
|
||||
public ClansGold(java.lang.String alias) {
|
||||
this(alias, mineplex.database.tables.ClansGold.clansGold);
|
||||
}
|
||||
|
||||
private ClansGold(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.ClansGoldRecord> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private ClansGold(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.ClansGoldRecord> aliased, org.jooq.Field<?>[] parameters) {
|
||||
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.UniqueKey<mineplex.database.tables.records.ClansGoldRecord> getPrimaryKey() {
|
||||
return mineplex.database.Keys.KEY_clansGold_PRIMARY;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.ClansGoldRecord>> getKeys() {
|
||||
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.ClansGoldRecord>>asList(mineplex.database.Keys.KEY_clansGold_PRIMARY);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.ForeignKey<mineplex.database.tables.records.ClansGoldRecord, ?>> getReferences() {
|
||||
return java.util.Arrays.<org.jooq.ForeignKey<mineplex.database.tables.records.ClansGoldRecord, ?>>asList(mineplex.database.Keys.clansGold_ibfk_1, mineplex.database.Keys.clansGold_ibfk_2);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public mineplex.database.tables.ClansGold as(java.lang.String alias) {
|
||||
return new mineplex.database.tables.ClansGold(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
public mineplex.database.tables.ClansGold rename(java.lang.String name) {
|
||||
return new mineplex.database.tables.ClansGold(name, null);
|
||||
}
|
||||
}
|
@ -0,0 +1,114 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.5.2"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class ClansNetherPortals extends org.jooq.impl.TableImpl<mineplex.database.tables.records.ClansNetherPortalsRecord> implements java.io.Serializable, java.lang.Cloneable {
|
||||
|
||||
private static final long serialVersionUID = -1556693012;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>Account.clansNetherPortals</code>
|
||||
*/
|
||||
public static final mineplex.database.tables.ClansNetherPortals clansNetherPortals = new mineplex.database.tables.ClansNetherPortals();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<mineplex.database.tables.records.ClansNetherPortalsRecord> getRecordType() {
|
||||
return mineplex.database.tables.records.ClansNetherPortalsRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>Account.clansNetherPortals.id</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.ClansNetherPortalsRecord, java.lang.Integer> id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.clansNetherPortals.cornerOne</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.ClansNetherPortalsRecord, java.lang.String> cornerOne = createField("cornerOne", org.jooq.impl.SQLDataType.VARCHAR.length(30), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.clansNetherPortals.cornerTwo</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.ClansNetherPortalsRecord, java.lang.String> cornerTwo = createField("cornerTwo", org.jooq.impl.SQLDataType.VARCHAR.length(30), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.clansNetherPortals.returnPortal</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.ClansNetherPortalsRecord, java.lang.Byte> returnPortal = createField("returnPortal", org.jooq.impl.SQLDataType.TINYINT, this, "");
|
||||
|
||||
/**
|
||||
* Create a <code>Account.clansNetherPortals</code> table reference
|
||||
*/
|
||||
public ClansNetherPortals() {
|
||||
this("clansNetherPortals", null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>Account.clansNetherPortals</code> table reference
|
||||
*/
|
||||
public ClansNetherPortals(java.lang.String alias) {
|
||||
this(alias, mineplex.database.tables.ClansNetherPortals.clansNetherPortals);
|
||||
}
|
||||
|
||||
private ClansNetherPortals(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.ClansNetherPortalsRecord> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private ClansNetherPortals(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.ClansNetherPortalsRecord> aliased, org.jooq.Field<?>[] parameters) {
|
||||
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Identity<mineplex.database.tables.records.ClansNetherPortalsRecord, java.lang.Integer> getIdentity() {
|
||||
return mineplex.database.Keys.IDENTITY_clansNetherPortals;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.UniqueKey<mineplex.database.tables.records.ClansNetherPortalsRecord> getPrimaryKey() {
|
||||
return mineplex.database.Keys.KEY_clansNetherPortals_PRIMARY;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.ClansNetherPortalsRecord>> getKeys() {
|
||||
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.ClansNetherPortalsRecord>>asList(mineplex.database.Keys.KEY_clansNetherPortals_PRIMARY);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public mineplex.database.tables.ClansNetherPortals as(java.lang.String alias) {
|
||||
return new mineplex.database.tables.ClansNetherPortals(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
public mineplex.database.tables.ClansNetherPortals rename(java.lang.String name) {
|
||||
return new mineplex.database.tables.ClansNetherPortals(name, null);
|
||||
}
|
||||
}
|
@ -1,116 +0,0 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.5.2"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class Kit_progression extends org.jooq.impl.TableImpl<mineplex.database.tables.records.Kit_progressionRecord> implements java.io.Serializable, java.lang.Cloneable {
|
||||
|
||||
private static final long serialVersionUID = 144258751;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>Account.kit_progression</code>
|
||||
*/
|
||||
public static final mineplex.database.tables.Kit_progression kit_progression = new mineplex.database.tables.Kit_progression();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<mineplex.database.tables.records.Kit_progressionRecord> getRecordType() {
|
||||
return mineplex.database.tables.records.Kit_progressionRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>Account.kit_progression.account_id</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.Kit_progressionRecord, java.lang.Integer> account_id = createField("account_id", org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaulted(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.kit_progression.kit_id</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.Kit_progressionRecord, java.lang.String> kit_id = createField("kit_id", org.jooq.impl.SQLDataType.VARCHAR.length(64).nullable(false).defaulted(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.kit_progression.level</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.Kit_progressionRecord, java.lang.Integer> level = createField("level", org.jooq.impl.SQLDataType.INTEGER, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.kit_progression.xp</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.Kit_progressionRecord, java.lang.Integer> xp = createField("xp", org.jooq.impl.SQLDataType.INTEGER, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.kit_progression.upgrade_level</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.Kit_progressionRecord, java.lang.Integer> upgrade_level = createField("upgrade_level", org.jooq.impl.SQLDataType.INTEGER, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.kit_progression.default</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.Kit_progressionRecord, java.lang.Byte> default_ = createField("default", org.jooq.impl.SQLDataType.TINYINT, this, "");
|
||||
|
||||
/**
|
||||
* Create a <code>Account.kit_progression</code> table reference
|
||||
*/
|
||||
public Kit_progression() {
|
||||
this("kit_progression", null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>Account.kit_progression</code> table reference
|
||||
*/
|
||||
public Kit_progression(java.lang.String alias) {
|
||||
this(alias, mineplex.database.tables.Kit_progression.kit_progression);
|
||||
}
|
||||
|
||||
private Kit_progression(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.Kit_progressionRecord> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private Kit_progression(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.Kit_progressionRecord> aliased, org.jooq.Field<?>[] parameters) {
|
||||
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.UniqueKey<mineplex.database.tables.records.Kit_progressionRecord> getPrimaryKey() {
|
||||
return mineplex.database.Keys.KEY_kit_progression_PRIMARY;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.Kit_progressionRecord>> getKeys() {
|
||||
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.Kit_progressionRecord>>asList(mineplex.database.Keys.KEY_kit_progression_PRIMARY);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public mineplex.database.tables.Kit_progression as(java.lang.String alias) {
|
||||
return new mineplex.database.tables.Kit_progression(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
public mineplex.database.tables.Kit_progression rename(java.lang.String name) {
|
||||
return new mineplex.database.tables.Kit_progression(name, null);
|
||||
}
|
||||
}
|
@ -0,0 +1,75 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.5.2"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class NonPremiumJoinMessage extends org.jooq.impl.TableImpl<mineplex.database.tables.records.NonPremiumJoinMessageRecord> implements java.io.Serializable, java.lang.Cloneable {
|
||||
|
||||
private static final long serialVersionUID = 1100695916;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>Account.nonPremiumJoinMessage</code>
|
||||
*/
|
||||
public static final mineplex.database.tables.NonPremiumJoinMessage nonPremiumJoinMessage = new mineplex.database.tables.NonPremiumJoinMessage();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<mineplex.database.tables.records.NonPremiumJoinMessageRecord> getRecordType() {
|
||||
return mineplex.database.tables.records.NonPremiumJoinMessageRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>Account.nonPremiumJoinMessage.message</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.NonPremiumJoinMessageRecord, java.lang.String> message = createField("message", org.jooq.impl.SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* Create a <code>Account.nonPremiumJoinMessage</code> table reference
|
||||
*/
|
||||
public NonPremiumJoinMessage() {
|
||||
this("nonPremiumJoinMessage", null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>Account.nonPremiumJoinMessage</code> table reference
|
||||
*/
|
||||
public NonPremiumJoinMessage(java.lang.String alias) {
|
||||
this(alias, mineplex.database.tables.NonPremiumJoinMessage.nonPremiumJoinMessage);
|
||||
}
|
||||
|
||||
private NonPremiumJoinMessage(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.NonPremiumJoinMessageRecord> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private NonPremiumJoinMessage(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.NonPremiumJoinMessageRecord> aliased, org.jooq.Field<?>[] parameters) {
|
||||
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public mineplex.database.tables.NonPremiumJoinMessage as(java.lang.String alias) {
|
||||
return new mineplex.database.tables.NonPremiumJoinMessage(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
public mineplex.database.tables.NonPremiumJoinMessage rename(java.lang.String name) {
|
||||
return new mineplex.database.tables.NonPremiumJoinMessage(name, null);
|
||||
}
|
||||
}
|
@ -0,0 +1,109 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.5.2"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class PowerPlayClub extends org.jooq.impl.TableImpl<mineplex.database.tables.records.PowerPlayClubRecord> implements java.io.Serializable, java.lang.Cloneable {
|
||||
|
||||
private static final long serialVersionUID = -521671017;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>Account.powerPlayClub</code>
|
||||
*/
|
||||
public static final mineplex.database.tables.PowerPlayClub powerPlayClub = new mineplex.database.tables.PowerPlayClub();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<mineplex.database.tables.records.PowerPlayClubRecord> getRecordType() {
|
||||
return mineplex.database.tables.records.PowerPlayClubRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>Account.powerPlayClub.accountId</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.PowerPlayClubRecord, java.lang.Integer> accountId = createField("accountId", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.powerPlayClub.kvKey</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.PowerPlayClubRecord, java.lang.String> kvKey = createField("kvKey", org.jooq.impl.SQLDataType.VARCHAR.length(255).nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.powerPlayClub.kvValue</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.PowerPlayClubRecord, java.lang.Integer> kvValue = createField("kvValue", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* Create a <code>Account.powerPlayClub</code> table reference
|
||||
*/
|
||||
public PowerPlayClub() {
|
||||
this("powerPlayClub", null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>Account.powerPlayClub</code> table reference
|
||||
*/
|
||||
public PowerPlayClub(java.lang.String alias) {
|
||||
this(alias, mineplex.database.tables.PowerPlayClub.powerPlayClub);
|
||||
}
|
||||
|
||||
private PowerPlayClub(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.PowerPlayClubRecord> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private PowerPlayClub(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.PowerPlayClubRecord> aliased, org.jooq.Field<?>[] parameters) {
|
||||
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.UniqueKey<mineplex.database.tables.records.PowerPlayClubRecord> getPrimaryKey() {
|
||||
return mineplex.database.Keys.KEY_powerPlayClub_PRIMARY;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.PowerPlayClubRecord>> getKeys() {
|
||||
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.PowerPlayClubRecord>>asList(mineplex.database.Keys.KEY_powerPlayClub_PRIMARY);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.ForeignKey<mineplex.database.tables.records.PowerPlayClubRecord, ?>> getReferences() {
|
||||
return java.util.Arrays.<org.jooq.ForeignKey<mineplex.database.tables.records.PowerPlayClubRecord, ?>>asList(mineplex.database.Keys.powerPlayClub_ibfk_1);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public mineplex.database.tables.PowerPlayClub as(java.lang.String alias) {
|
||||
return new mineplex.database.tables.PowerPlayClub(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
public mineplex.database.tables.PowerPlayClub rename(java.lang.String name) {
|
||||
return new mineplex.database.tables.PowerPlayClub(name, null);
|
||||
}
|
||||
}
|
@ -0,0 +1,119 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.5.2"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class Unicodereplacer extends org.jooq.impl.TableImpl<mineplex.database.tables.records.UnicodereplacerRecord> implements java.io.Serializable, java.lang.Cloneable {
|
||||
|
||||
private static final long serialVersionUID = 613849358;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>Account.unicodereplacer</code>
|
||||
*/
|
||||
public static final mineplex.database.tables.Unicodereplacer unicodereplacer = new mineplex.database.tables.Unicodereplacer();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<mineplex.database.tables.records.UnicodereplacerRecord> getRecordType() {
|
||||
return mineplex.database.tables.records.UnicodereplacerRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>Account.unicodereplacer.id</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.UnicodereplacerRecord, java.lang.Integer> id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.unicodereplacer.unicode</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.UnicodereplacerRecord, java.lang.String> unicode = createField("unicode", org.jooq.impl.SQLDataType.VARCHAR.length(4), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.unicodereplacer.replacement</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.UnicodereplacerRecord, java.lang.String> replacement = createField("replacement", org.jooq.impl.SQLDataType.VARCHAR.length(8), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.unicodereplacer.created_by</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.UnicodereplacerRecord, java.lang.String> created_by = createField("created_by", org.jooq.impl.SQLDataType.VARCHAR.length(64), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.unicodereplacer.removed_by</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.UnicodereplacerRecord, java.lang.String> removed_by = createField("removed_by", org.jooq.impl.SQLDataType.VARCHAR.length(64), this, "");
|
||||
|
||||
/**
|
||||
* Create a <code>Account.unicodereplacer</code> table reference
|
||||
*/
|
||||
public Unicodereplacer() {
|
||||
this("unicodereplacer", null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>Account.unicodereplacer</code> table reference
|
||||
*/
|
||||
public Unicodereplacer(java.lang.String alias) {
|
||||
this(alias, mineplex.database.tables.Unicodereplacer.unicodereplacer);
|
||||
}
|
||||
|
||||
private Unicodereplacer(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.UnicodereplacerRecord> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private Unicodereplacer(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.UnicodereplacerRecord> aliased, org.jooq.Field<?>[] parameters) {
|
||||
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Identity<mineplex.database.tables.records.UnicodereplacerRecord, java.lang.Integer> getIdentity() {
|
||||
return mineplex.database.Keys.IDENTITY_unicodereplacer;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.UniqueKey<mineplex.database.tables.records.UnicodereplacerRecord> getPrimaryKey() {
|
||||
return mineplex.database.Keys.KEY_unicodereplacer_PRIMARY;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.UnicodereplacerRecord>> getKeys() {
|
||||
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.UnicodereplacerRecord>>asList(mineplex.database.Keys.KEY_unicodereplacer_PRIMARY, mineplex.database.Keys.KEY_unicodereplacer_unicode);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public mineplex.database.tables.Unicodereplacer as(java.lang.String alias) {
|
||||
return new mineplex.database.tables.Unicodereplacer(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
public mineplex.database.tables.Unicodereplacer rename(java.lang.String name) {
|
||||
return new mineplex.database.tables.Unicodereplacer(name, null);
|
||||
}
|
||||
}
|
@ -0,0 +1,112 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(
|
||||
value = {
|
||||
"http://www.jooq.org",
|
||||
"jOOQ version:3.5.2"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class Youtube extends org.jooq.impl.TableImpl<mineplex.database.tables.records.YoutubeRecord> implements java.io.Serializable, java.lang.Cloneable {
|
||||
|
||||
private static final long serialVersionUID = 1588929727;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>Account.youtube</code>
|
||||
*/
|
||||
public static final mineplex.database.tables.Youtube youtube = new mineplex.database.tables.Youtube();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<mineplex.database.tables.records.YoutubeRecord> getRecordType() {
|
||||
return mineplex.database.tables.records.YoutubeRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>Account.youtube.accountId</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.YoutubeRecord, java.lang.Integer> accountId = createField("accountId", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.youtube.clicktime</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.YoutubeRecord, java.sql.Date> clicktime = createField("clicktime", org.jooq.impl.SQLDataType.DATE, this, "");
|
||||
|
||||
/**
|
||||
* Create a <code>Account.youtube</code> table reference
|
||||
*/
|
||||
public Youtube() {
|
||||
this("youtube", null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>Account.youtube</code> table reference
|
||||
*/
|
||||
public Youtube(java.lang.String alias) {
|
||||
this(alias, mineplex.database.tables.Youtube.youtube);
|
||||
}
|
||||
|
||||
private Youtube(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.YoutubeRecord> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private Youtube(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.YoutubeRecord> aliased, org.jooq.Field<?>[] parameters) {
|
||||
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Identity<mineplex.database.tables.records.YoutubeRecord, java.lang.Integer> getIdentity() {
|
||||
return mineplex.database.Keys.IDENTITY_youtube;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.UniqueKey<mineplex.database.tables.records.YoutubeRecord> getPrimaryKey() {
|
||||
return mineplex.database.Keys.KEY_youtube_PRIMARY;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.YoutubeRecord>> getKeys() {
|
||||
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.YoutubeRecord>>asList(mineplex.database.Keys.KEY_youtube_PRIMARY);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.ForeignKey<mineplex.database.tables.records.YoutubeRecord, ?>> getReferences() {
|
||||
return java.util.Arrays.<org.jooq.ForeignKey<mineplex.database.tables.records.YoutubeRecord, ?>>asList(mineplex.database.Keys.youtube_ibfk_1);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public mineplex.database.tables.Youtube as(java.lang.String alias) {
|
||||
return new mineplex.database.tables.Youtube(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
public mineplex.database.tables.Youtube rename(java.lang.String name) {
|
||||
return new mineplex.database.tables.Youtube(name, null);
|
||||
}
|
||||
}
|
@ -0,0 +1,199 @@
|
||||
/**
|
||||
* 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",
|
||||
"jOOQ version:3.5.2"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class AccountAmplifierThankRecord extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.AccountAmplifierThankRecord> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record3<java.lang.Integer, java.lang.Integer, java.sql.Timestamp> {
|
||||
|
||||
private static final long serialVersionUID = 1203692620;
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountAmplifierThank.accountId</code>.
|
||||
*/
|
||||
public void setAccountId(java.lang.Integer value) {
|
||||
setValue(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountAmplifierThank.accountId</code>.
|
||||
*/
|
||||
public java.lang.Integer getAccountId() {
|
||||
return (java.lang.Integer) getValue(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountAmplifierThank.amplifierId</code>.
|
||||
*/
|
||||
public void setAmplifierId(java.lang.Integer value) {
|
||||
setValue(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountAmplifierThank.amplifierId</code>.
|
||||
*/
|
||||
public java.lang.Integer getAmplifierId() {
|
||||
return (java.lang.Integer) getValue(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountAmplifierThank.time</code>.
|
||||
*/
|
||||
public void setTime(java.sql.Timestamp value) {
|
||||
setValue(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountAmplifierThank.time</code>.
|
||||
*/
|
||||
public java.sql.Timestamp getTime() {
|
||||
return (java.sql.Timestamp) getValue(2);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Record2<java.lang.Integer, java.lang.Integer> key() {
|
||||
return (org.jooq.Record2) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record3 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row3<java.lang.Integer, java.lang.Integer, java.sql.Timestamp> fieldsRow() {
|
||||
return (org.jooq.Row3) super.fieldsRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row3<java.lang.Integer, java.lang.Integer, java.sql.Timestamp> valuesRow() {
|
||||
return (org.jooq.Row3) super.valuesRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field1() {
|
||||
return mineplex.database.tables.AccountAmplifierThank.accountAmplifierThank.accountId;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field2() {
|
||||
return mineplex.database.tables.AccountAmplifierThank.accountAmplifierThank.amplifierId;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.sql.Timestamp> field3() {
|
||||
return mineplex.database.tables.AccountAmplifierThank.accountAmplifierThank.time;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value1() {
|
||||
return getAccountId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value2() {
|
||||
return getAmplifierId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.sql.Timestamp value3() {
|
||||
return getTime();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountAmplifierThankRecord value1(java.lang.Integer value) {
|
||||
setAccountId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountAmplifierThankRecord value2(java.lang.Integer value) {
|
||||
setAmplifierId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountAmplifierThankRecord value3(java.sql.Timestamp value) {
|
||||
setTime(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountAmplifierThankRecord values(java.lang.Integer value1, java.lang.Integer value2, java.sql.Timestamp value3) {
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached AccountAmplifierThankRecord
|
||||
*/
|
||||
public AccountAmplifierThankRecord() {
|
||||
super(mineplex.database.tables.AccountAmplifierThank.accountAmplifierThank);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised AccountAmplifierThankRecord
|
||||
*/
|
||||
public AccountAmplifierThankRecord(java.lang.Integer accountId, java.lang.Integer amplifierId, java.sql.Timestamp time) {
|
||||
super(mineplex.database.tables.AccountAmplifierThank.accountAmplifierThank);
|
||||
|
||||
setValue(0, accountId);
|
||||
setValue(1, amplifierId);
|
||||
setValue(2, time);
|
||||
}
|
||||
}
|
@ -0,0 +1,159 @@
|
||||
/**
|
||||
* 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",
|
||||
"jOOQ version:3.5.2"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class AccountThankRecord extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.AccountThankRecord> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record2<java.lang.Integer, java.lang.Integer> {
|
||||
|
||||
private static final long serialVersionUID = -183734569;
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountThank.accountId</code>.
|
||||
*/
|
||||
public void setAccountId(java.lang.Integer value) {
|
||||
setValue(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountThank.accountId</code>.
|
||||
*/
|
||||
public java.lang.Integer getAccountId() {
|
||||
return (java.lang.Integer) getValue(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountThank.thanks</code>.
|
||||
*/
|
||||
public void setThanks(java.lang.Integer value) {
|
||||
setValue(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountThank.thanks</code>.
|
||||
*/
|
||||
public java.lang.Integer getThanks() {
|
||||
return (java.lang.Integer) 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.Integer> fieldsRow() {
|
||||
return (org.jooq.Row2) super.fieldsRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row2<java.lang.Integer, java.lang.Integer> valuesRow() {
|
||||
return (org.jooq.Row2) super.valuesRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field1() {
|
||||
return mineplex.database.tables.AccountThank.accountThank.accountId;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field2() {
|
||||
return mineplex.database.tables.AccountThank.accountThank.thanks;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value1() {
|
||||
return getAccountId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value2() {
|
||||
return getThanks();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountThankRecord value1(java.lang.Integer value) {
|
||||
setAccountId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountThankRecord value2(java.lang.Integer value) {
|
||||
setThanks(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountThankRecord values(java.lang.Integer value1, java.lang.Integer value2) {
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached AccountThankRecord
|
||||
*/
|
||||
public AccountThankRecord() {
|
||||
super(mineplex.database.tables.AccountThank.accountThank);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised AccountThankRecord
|
||||
*/
|
||||
public AccountThankRecord(java.lang.Integer accountId, java.lang.Integer thanks) {
|
||||
super(mineplex.database.tables.AccountThank.accountThank);
|
||||
|
||||
setValue(0, accountId);
|
||||
setValue(1, thanks);
|
||||
}
|
||||
}
|
@ -0,0 +1,439 @@
|
||||
/**
|
||||
* 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",
|
||||
"jOOQ version:3.5.2"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class AccountThankTransactionsRecord extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.AccountThankTransactionsRecord> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record9<java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.String, java.lang.Byte, java.lang.Byte, java.sql.Timestamp, java.sql.Timestamp> {
|
||||
|
||||
private static final long serialVersionUID = -1604313652;
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountThankTransactions.id</code>.
|
||||
*/
|
||||
public void setId(java.lang.Integer value) {
|
||||
setValue(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountThankTransactions.id</code>.
|
||||
*/
|
||||
public java.lang.Integer getId() {
|
||||
return (java.lang.Integer) getValue(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountThankTransactions.receiverId</code>.
|
||||
*/
|
||||
public void setReceiverId(java.lang.Integer value) {
|
||||
setValue(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountThankTransactions.receiverId</code>.
|
||||
*/
|
||||
public java.lang.Integer getReceiverId() {
|
||||
return (java.lang.Integer) getValue(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountThankTransactions.senderId</code>.
|
||||
*/
|
||||
public void setSenderId(java.lang.Integer value) {
|
||||
setValue(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountThankTransactions.senderId</code>.
|
||||
*/
|
||||
public java.lang.Integer getSenderId() {
|
||||
return (java.lang.Integer) getValue(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountThankTransactions.thankAmount</code>.
|
||||
*/
|
||||
public void setThankAmount(java.lang.Integer value) {
|
||||
setValue(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountThankTransactions.thankAmount</code>.
|
||||
*/
|
||||
public java.lang.Integer getThankAmount() {
|
||||
return (java.lang.Integer) getValue(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountThankTransactions.reason</code>.
|
||||
*/
|
||||
public void setReason(java.lang.String value) {
|
||||
setValue(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountThankTransactions.reason</code>.
|
||||
*/
|
||||
public java.lang.String getReason() {
|
||||
return (java.lang.String) getValue(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountThankTransactions.ignoreCooldown</code>.
|
||||
*/
|
||||
public void setIgnoreCooldown(java.lang.Byte value) {
|
||||
setValue(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountThankTransactions.ignoreCooldown</code>.
|
||||
*/
|
||||
public java.lang.Byte getIgnoreCooldown() {
|
||||
return (java.lang.Byte) getValue(5);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountThankTransactions.claimed</code>.
|
||||
*/
|
||||
public void setClaimed(java.lang.Byte value) {
|
||||
setValue(6, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountThankTransactions.claimed</code>.
|
||||
*/
|
||||
public java.lang.Byte getClaimed() {
|
||||
return (java.lang.Byte) getValue(6);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountThankTransactions.sentTime</code>.
|
||||
*/
|
||||
public void setSentTime(java.sql.Timestamp value) {
|
||||
setValue(7, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountThankTransactions.sentTime</code>.
|
||||
*/
|
||||
public java.sql.Timestamp getSentTime() {
|
||||
return (java.sql.Timestamp) getValue(7);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountThankTransactions.claimTime</code>.
|
||||
*/
|
||||
public void setClaimTime(java.sql.Timestamp value) {
|
||||
setValue(8, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountThankTransactions.claimTime</code>.
|
||||
*/
|
||||
public java.sql.Timestamp getClaimTime() {
|
||||
return (java.sql.Timestamp) 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.Integer, java.lang.Integer, java.lang.Integer, java.lang.String, java.lang.Byte, java.lang.Byte, java.sql.Timestamp, java.sql.Timestamp> fieldsRow() {
|
||||
return (org.jooq.Row9) super.fieldsRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row9<java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.String, java.lang.Byte, java.lang.Byte, java.sql.Timestamp, java.sql.Timestamp> valuesRow() {
|
||||
return (org.jooq.Row9) super.valuesRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field1() {
|
||||
return mineplex.database.tables.AccountThankTransactions.accountThankTransactions.id;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field2() {
|
||||
return mineplex.database.tables.AccountThankTransactions.accountThankTransactions.receiverId;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field3() {
|
||||
return mineplex.database.tables.AccountThankTransactions.accountThankTransactions.senderId;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field4() {
|
||||
return mineplex.database.tables.AccountThankTransactions.accountThankTransactions.thankAmount;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field5() {
|
||||
return mineplex.database.tables.AccountThankTransactions.accountThankTransactions.reason;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Byte> field6() {
|
||||
return mineplex.database.tables.AccountThankTransactions.accountThankTransactions.ignoreCooldown;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Byte> field7() {
|
||||
return mineplex.database.tables.AccountThankTransactions.accountThankTransactions.claimed;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.sql.Timestamp> field8() {
|
||||
return mineplex.database.tables.AccountThankTransactions.accountThankTransactions.sentTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.sql.Timestamp> field9() {
|
||||
return mineplex.database.tables.AccountThankTransactions.accountThankTransactions.claimTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value2() {
|
||||
return getReceiverId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value3() {
|
||||
return getSenderId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value4() {
|
||||
return getThankAmount();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value5() {
|
||||
return getReason();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Byte value6() {
|
||||
return getIgnoreCooldown();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Byte value7() {
|
||||
return getClaimed();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.sql.Timestamp value8() {
|
||||
return getSentTime();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.sql.Timestamp value9() {
|
||||
return getClaimTime();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountThankTransactionsRecord value1(java.lang.Integer value) {
|
||||
setId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountThankTransactionsRecord value2(java.lang.Integer value) {
|
||||
setReceiverId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountThankTransactionsRecord value3(java.lang.Integer value) {
|
||||
setSenderId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountThankTransactionsRecord value4(java.lang.Integer value) {
|
||||
setThankAmount(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountThankTransactionsRecord value5(java.lang.String value) {
|
||||
setReason(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountThankTransactionsRecord value6(java.lang.Byte value) {
|
||||
setIgnoreCooldown(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountThankTransactionsRecord value7(java.lang.Byte value) {
|
||||
setClaimed(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountThankTransactionsRecord value8(java.sql.Timestamp value) {
|
||||
setSentTime(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountThankTransactionsRecord value9(java.sql.Timestamp value) {
|
||||
setClaimTime(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountThankTransactionsRecord values(java.lang.Integer value1, java.lang.Integer value2, java.lang.Integer value3, java.lang.Integer value4, java.lang.String value5, java.lang.Byte value6, java.lang.Byte value7, java.sql.Timestamp value8, java.sql.Timestamp value9) {
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached AccountThankTransactionsRecord
|
||||
*/
|
||||
public AccountThankTransactionsRecord() {
|
||||
super(mineplex.database.tables.AccountThankTransactions.accountThankTransactions);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised AccountThankTransactionsRecord
|
||||
*/
|
||||
public AccountThankTransactionsRecord(java.lang.Integer id, java.lang.Integer receiverId, java.lang.Integer senderId, java.lang.Integer thankAmount, java.lang.String reason, java.lang.Byte ignoreCooldown, java.lang.Byte claimed, java.sql.Timestamp sentTime, java.sql.Timestamp claimTime) {
|
||||
super(mineplex.database.tables.AccountThankTransactions.accountThankTransactions);
|
||||
|
||||
setValue(0, id);
|
||||
setValue(1, receiverId);
|
||||
setValue(2, senderId);
|
||||
setValue(3, thankAmount);
|
||||
setValue(4, reason);
|
||||
setValue(5, ignoreCooldown);
|
||||
setValue(6, claimed);
|
||||
setValue(7, sentTime);
|
||||
setValue(8, claimTime);
|
||||
}
|
||||
}
|
@ -0,0 +1,199 @@
|
||||
/**
|
||||
* 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",
|
||||
"jOOQ version:3.5.2"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class AccountWebsiteLinkCodeRecord extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.AccountWebsiteLinkCodeRecord> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record3<java.lang.Integer, java.lang.String, java.sql.Timestamp> {
|
||||
|
||||
private static final long serialVersionUID = -505757434;
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountWebsiteLinkCode.accountId</code>.
|
||||
*/
|
||||
public void setAccountId(java.lang.Integer value) {
|
||||
setValue(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountWebsiteLinkCode.accountId</code>.
|
||||
*/
|
||||
public java.lang.Integer getAccountId() {
|
||||
return (java.lang.Integer) getValue(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountWebsiteLinkCode.confirmationCode</code>.
|
||||
*/
|
||||
public void setConfirmationCode(java.lang.String value) {
|
||||
setValue(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountWebsiteLinkCode.confirmationCode</code>.
|
||||
*/
|
||||
public java.lang.String getConfirmationCode() {
|
||||
return (java.lang.String) getValue(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.accountWebsiteLinkCode.date</code>.
|
||||
*/
|
||||
public void setDate(java.sql.Timestamp value) {
|
||||
setValue(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.accountWebsiteLinkCode.date</code>.
|
||||
*/
|
||||
public java.sql.Timestamp getDate() {
|
||||
return (java.sql.Timestamp) getValue(2);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Record1<java.lang.Integer> key() {
|
||||
return (org.jooq.Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record3 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row3<java.lang.Integer, java.lang.String, java.sql.Timestamp> fieldsRow() {
|
||||
return (org.jooq.Row3) super.fieldsRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row3<java.lang.Integer, java.lang.String, java.sql.Timestamp> valuesRow() {
|
||||
return (org.jooq.Row3) super.valuesRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field1() {
|
||||
return mineplex.database.tables.AccountWebsiteLinkCode.accountWebsiteLinkCode.accountId;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field2() {
|
||||
return mineplex.database.tables.AccountWebsiteLinkCode.accountWebsiteLinkCode.confirmationCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.sql.Timestamp> field3() {
|
||||
return mineplex.database.tables.AccountWebsiteLinkCode.accountWebsiteLinkCode.date;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value1() {
|
||||
return getAccountId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value2() {
|
||||
return getConfirmationCode();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.sql.Timestamp value3() {
|
||||
return getDate();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountWebsiteLinkCodeRecord value1(java.lang.Integer value) {
|
||||
setAccountId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountWebsiteLinkCodeRecord value2(java.lang.String value) {
|
||||
setConfirmationCode(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountWebsiteLinkCodeRecord value3(java.sql.Timestamp value) {
|
||||
setDate(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public AccountWebsiteLinkCodeRecord values(java.lang.Integer value1, java.lang.String value2, java.sql.Timestamp value3) {
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached AccountWebsiteLinkCodeRecord
|
||||
*/
|
||||
public AccountWebsiteLinkCodeRecord() {
|
||||
super(mineplex.database.tables.AccountWebsiteLinkCode.accountWebsiteLinkCode);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised AccountWebsiteLinkCodeRecord
|
||||
*/
|
||||
public AccountWebsiteLinkCodeRecord(java.lang.Integer accountId, java.lang.String confirmationCode, java.sql.Timestamp date) {
|
||||
super(mineplex.database.tables.AccountWebsiteLinkCode.accountWebsiteLinkCode);
|
||||
|
||||
setValue(0, accountId);
|
||||
setValue(1, confirmationCode);
|
||||
setValue(2, date);
|
||||
}
|
||||
}
|
@ -0,0 +1,199 @@
|
||||
/**
|
||||
* 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",
|
||||
"jOOQ version:3.5.2"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class ClanBannersRecord extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.ClanBannersRecord> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record3<java.lang.Integer, java.lang.String, java.lang.String> {
|
||||
|
||||
private static final long serialVersionUID = 830973431;
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.clanBanners.clanId</code>.
|
||||
*/
|
||||
public void setClanId(java.lang.Integer value) {
|
||||
setValue(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.clanBanners.clanId</code>.
|
||||
*/
|
||||
public java.lang.Integer getClanId() {
|
||||
return (java.lang.Integer) getValue(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.clanBanners.baseColor</code>.
|
||||
*/
|
||||
public void setBaseColor(java.lang.String value) {
|
||||
setValue(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.clanBanners.baseColor</code>.
|
||||
*/
|
||||
public java.lang.String getBaseColor() {
|
||||
return (java.lang.String) getValue(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.clanBanners.patterns</code>.
|
||||
*/
|
||||
public void setPatterns(java.lang.String value) {
|
||||
setValue(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.clanBanners.patterns</code>.
|
||||
*/
|
||||
public java.lang.String getPatterns() {
|
||||
return (java.lang.String) getValue(2);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Record1<java.lang.Integer> key() {
|
||||
return (org.jooq.Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record3 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row3<java.lang.Integer, java.lang.String, java.lang.String> fieldsRow() {
|
||||
return (org.jooq.Row3) super.fieldsRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row3<java.lang.Integer, java.lang.String, java.lang.String> valuesRow() {
|
||||
return (org.jooq.Row3) super.valuesRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field1() {
|
||||
return mineplex.database.tables.ClanBanners.clanBanners.clanId;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field2() {
|
||||
return mineplex.database.tables.ClanBanners.clanBanners.baseColor;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field3() {
|
||||
return mineplex.database.tables.ClanBanners.clanBanners.patterns;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value1() {
|
||||
return getClanId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value2() {
|
||||
return getBaseColor();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value3() {
|
||||
return getPatterns();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public ClanBannersRecord value1(java.lang.Integer value) {
|
||||
setClanId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public ClanBannersRecord value2(java.lang.String value) {
|
||||
setBaseColor(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public ClanBannersRecord value3(java.lang.String value) {
|
||||
setPatterns(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public ClanBannersRecord values(java.lang.Integer value1, java.lang.String value2, java.lang.String value3) {
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached ClanBannersRecord
|
||||
*/
|
||||
public ClanBannersRecord() {
|
||||
super(mineplex.database.tables.ClanBanners.clanBanners);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised ClanBannersRecord
|
||||
*/
|
||||
public ClanBannersRecord(java.lang.Integer clanId, java.lang.String baseColor, java.lang.String patterns) {
|
||||
super(mineplex.database.tables.ClanBanners.clanBanners);
|
||||
|
||||
setValue(0, clanId);
|
||||
setValue(1, baseColor);
|
||||
setValue(2, patterns);
|
||||
}
|
||||
}
|
@ -0,0 +1,199 @@
|
||||
/**
|
||||
* 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",
|
||||
"jOOQ version:3.5.2"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class ClansGoldRecord extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.ClansGoldRecord> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record3<java.lang.Integer, java.lang.Integer, java.lang.Integer> {
|
||||
|
||||
private static final long serialVersionUID = -90641108;
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.clansGold.serverId</code>.
|
||||
*/
|
||||
public void setServerId(java.lang.Integer value) {
|
||||
setValue(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.clansGold.serverId</code>.
|
||||
*/
|
||||
public java.lang.Integer getServerId() {
|
||||
return (java.lang.Integer) getValue(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.clansGold.id</code>.
|
||||
*/
|
||||
public void setId(java.lang.Integer value) {
|
||||
setValue(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.clansGold.id</code>.
|
||||
*/
|
||||
public java.lang.Integer getId() {
|
||||
return (java.lang.Integer) getValue(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.clansGold.gold</code>.
|
||||
*/
|
||||
public void setGold(java.lang.Integer value) {
|
||||
setValue(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.clansGold.gold</code>.
|
||||
*/
|
||||
public java.lang.Integer getGold() {
|
||||
return (java.lang.Integer) getValue(2);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Record2<java.lang.Integer, java.lang.Integer> key() {
|
||||
return (org.jooq.Record2) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record3 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row3<java.lang.Integer, java.lang.Integer, java.lang.Integer> fieldsRow() {
|
||||
return (org.jooq.Row3) super.fieldsRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row3<java.lang.Integer, java.lang.Integer, java.lang.Integer> valuesRow() {
|
||||
return (org.jooq.Row3) super.valuesRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field1() {
|
||||
return mineplex.database.tables.ClansGold.clansGold.serverId;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field2() {
|
||||
return mineplex.database.tables.ClansGold.clansGold.id;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field3() {
|
||||
return mineplex.database.tables.ClansGold.clansGold.gold;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value1() {
|
||||
return getServerId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value2() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value3() {
|
||||
return getGold();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public ClansGoldRecord value1(java.lang.Integer value) {
|
||||
setServerId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public ClansGoldRecord value2(java.lang.Integer value) {
|
||||
setId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public ClansGoldRecord value3(java.lang.Integer value) {
|
||||
setGold(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public ClansGoldRecord values(java.lang.Integer value1, java.lang.Integer value2, java.lang.Integer value3) {
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached ClansGoldRecord
|
||||
*/
|
||||
public ClansGoldRecord() {
|
||||
super(mineplex.database.tables.ClansGold.clansGold);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised ClansGoldRecord
|
||||
*/
|
||||
public ClansGoldRecord(java.lang.Integer serverId, java.lang.Integer id, java.lang.Integer gold) {
|
||||
super(mineplex.database.tables.ClansGold.clansGold);
|
||||
|
||||
setValue(0, serverId);
|
||||
setValue(1, id);
|
||||
setValue(2, gold);
|
||||
}
|
||||
}
|
@ -0,0 +1,239 @@
|
||||
/**
|
||||
* 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",
|
||||
"jOOQ version:3.5.2"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class ClansNetherPortalsRecord extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.ClansNetherPortalsRecord> 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 = -1366559485;
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.clansNetherPortals.id</code>.
|
||||
*/
|
||||
public void setId(java.lang.Integer value) {
|
||||
setValue(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.clansNetherPortals.id</code>.
|
||||
*/
|
||||
public java.lang.Integer getId() {
|
||||
return (java.lang.Integer) getValue(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.clansNetherPortals.cornerOne</code>.
|
||||
*/
|
||||
public void setCornerOne(java.lang.String value) {
|
||||
setValue(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.clansNetherPortals.cornerOne</code>.
|
||||
*/
|
||||
public java.lang.String getCornerOne() {
|
||||
return (java.lang.String) getValue(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.clansNetherPortals.cornerTwo</code>.
|
||||
*/
|
||||
public void setCornerTwo(java.lang.String value) {
|
||||
setValue(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.clansNetherPortals.cornerTwo</code>.
|
||||
*/
|
||||
public java.lang.String getCornerTwo() {
|
||||
return (java.lang.String) getValue(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.clansNetherPortals.returnPortal</code>.
|
||||
*/
|
||||
public void setReturnPortal(java.lang.Byte value) {
|
||||
setValue(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.clansNetherPortals.returnPortal</code>.
|
||||
*/
|
||||
public java.lang.Byte getReturnPortal() {
|
||||
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.ClansNetherPortals.clansNetherPortals.id;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field2() {
|
||||
return mineplex.database.tables.ClansNetherPortals.clansNetherPortals.cornerOne;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field3() {
|
||||
return mineplex.database.tables.ClansNetherPortals.clansNetherPortals.cornerTwo;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Byte> field4() {
|
||||
return mineplex.database.tables.ClansNetherPortals.clansNetherPortals.returnPortal;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value2() {
|
||||
return getCornerOne();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value3() {
|
||||
return getCornerTwo();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Byte value4() {
|
||||
return getReturnPortal();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public ClansNetherPortalsRecord value1(java.lang.Integer value) {
|
||||
setId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public ClansNetherPortalsRecord value2(java.lang.String value) {
|
||||
setCornerOne(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public ClansNetherPortalsRecord value3(java.lang.String value) {
|
||||
setCornerTwo(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public ClansNetherPortalsRecord value4(java.lang.Byte value) {
|
||||
setReturnPortal(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public ClansNetherPortalsRecord values(java.lang.Integer value1, java.lang.String value2, java.lang.String value3, java.lang.Byte value4) {
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached ClansNetherPortalsRecord
|
||||
*/
|
||||
public ClansNetherPortalsRecord() {
|
||||
super(mineplex.database.tables.ClansNetherPortals.clansNetherPortals);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised ClansNetherPortalsRecord
|
||||
*/
|
||||
public ClansNetherPortalsRecord(java.lang.Integer id, java.lang.String cornerOne, java.lang.String cornerTwo, java.lang.Byte returnPortal) {
|
||||
super(mineplex.database.tables.ClansNetherPortals.clansNetherPortals);
|
||||
|
||||
setValue(0, id);
|
||||
setValue(1, cornerOne);
|
||||
setValue(2, cornerTwo);
|
||||
setValue(3, returnPortal);
|
||||
}
|
||||
}
|
@ -1,319 +0,0 @@
|
||||
/**
|
||||
* 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",
|
||||
"jOOQ version:3.5.2"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class Kit_progressionRecord extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.Kit_progressionRecord> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record6<java.lang.Integer, java.lang.String, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Byte> {
|
||||
|
||||
private static final long serialVersionUID = 1893691977;
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.kit_progression.account_id</code>.
|
||||
*/
|
||||
public void setAccount_id(java.lang.Integer value) {
|
||||
setValue(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.kit_progression.account_id</code>.
|
||||
*/
|
||||
public java.lang.Integer getAccount_id() {
|
||||
return (java.lang.Integer) getValue(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.kit_progression.kit_id</code>.
|
||||
*/
|
||||
public void setKit_id(java.lang.String value) {
|
||||
setValue(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.kit_progression.kit_id</code>.
|
||||
*/
|
||||
public java.lang.String getKit_id() {
|
||||
return (java.lang.String) getValue(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.kit_progression.level</code>.
|
||||
*/
|
||||
public void setLevel(java.lang.Integer value) {
|
||||
setValue(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.kit_progression.level</code>.
|
||||
*/
|
||||
public java.lang.Integer getLevel() {
|
||||
return (java.lang.Integer) getValue(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.kit_progression.xp</code>.
|
||||
*/
|
||||
public void setXp(java.lang.Integer value) {
|
||||
setValue(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.kit_progression.xp</code>.
|
||||
*/
|
||||
public java.lang.Integer getXp() {
|
||||
return (java.lang.Integer) getValue(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.kit_progression.upgrade_level</code>.
|
||||
*/
|
||||
public void setUpgrade_level(java.lang.Integer value) {
|
||||
setValue(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.kit_progression.upgrade_level</code>.
|
||||
*/
|
||||
public java.lang.Integer getUpgrade_level() {
|
||||
return (java.lang.Integer) getValue(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.kit_progression.default</code>.
|
||||
*/
|
||||
public void setDefault(java.lang.Byte value) {
|
||||
setValue(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.kit_progression.default</code>.
|
||||
*/
|
||||
public java.lang.Byte getDefault() {
|
||||
return (java.lang.Byte) getValue(5);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Record2<java.lang.Integer, java.lang.String> key() {
|
||||
return (org.jooq.Record2) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record6 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row6<java.lang.Integer, java.lang.String, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Byte> fieldsRow() {
|
||||
return (org.jooq.Row6) super.fieldsRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row6<java.lang.Integer, java.lang.String, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Byte> valuesRow() {
|
||||
return (org.jooq.Row6) super.valuesRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field1() {
|
||||
return mineplex.database.tables.Kit_progression.kit_progression.account_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field2() {
|
||||
return mineplex.database.tables.Kit_progression.kit_progression.kit_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field3() {
|
||||
return mineplex.database.tables.Kit_progression.kit_progression.level;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field4() {
|
||||
return mineplex.database.tables.Kit_progression.kit_progression.xp;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field5() {
|
||||
return mineplex.database.tables.Kit_progression.kit_progression.upgrade_level;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Byte> field6() {
|
||||
return mineplex.database.tables.Kit_progression.kit_progression.default_;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value1() {
|
||||
return getAccount_id();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value2() {
|
||||
return getKit_id();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value3() {
|
||||
return getLevel();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value4() {
|
||||
return getXp();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value5() {
|
||||
return getUpgrade_level();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Byte value6() {
|
||||
return getDefault();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Kit_progressionRecord value1(java.lang.Integer value) {
|
||||
setAccount_id(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Kit_progressionRecord value2(java.lang.String value) {
|
||||
setKit_id(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Kit_progressionRecord value3(java.lang.Integer value) {
|
||||
setLevel(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Kit_progressionRecord value4(java.lang.Integer value) {
|
||||
setXp(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Kit_progressionRecord value5(java.lang.Integer value) {
|
||||
setUpgrade_level(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Kit_progressionRecord value6(java.lang.Byte value) {
|
||||
setDefault(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Kit_progressionRecord values(java.lang.Integer value1, java.lang.String value2, java.lang.Integer value3, java.lang.Integer value4, java.lang.Integer value5, java.lang.Byte value6) {
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached Kit_progressionRecord
|
||||
*/
|
||||
public Kit_progressionRecord() {
|
||||
super(mineplex.database.tables.Kit_progression.kit_progression);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised Kit_progressionRecord
|
||||
*/
|
||||
public Kit_progressionRecord(java.lang.Integer account_id, java.lang.String kit_id, java.lang.Integer level, java.lang.Integer xp, java.lang.Integer upgrade_level, java.lang.Byte default_) {
|
||||
super(mineplex.database.tables.Kit_progression.kit_progression);
|
||||
|
||||
setValue(0, account_id);
|
||||
setValue(1, kit_id);
|
||||
setValue(2, level);
|
||||
setValue(3, xp);
|
||||
setValue(4, upgrade_level);
|
||||
setValue(5, default_);
|
||||
}
|
||||
}
|
@ -0,0 +1,107 @@
|
||||
/**
|
||||
* 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",
|
||||
"jOOQ version:3.5.2"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class NonPremiumJoinMessageRecord extends org.jooq.impl.TableRecordImpl<mineplex.database.tables.records.NonPremiumJoinMessageRecord> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record1<java.lang.String> {
|
||||
|
||||
private static final long serialVersionUID = 988609111;
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.nonPremiumJoinMessage.message</code>.
|
||||
*/
|
||||
public void setMessage(java.lang.String value) {
|
||||
setValue(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.nonPremiumJoinMessage.message</code>.
|
||||
*/
|
||||
public java.lang.String getMessage() {
|
||||
return (java.lang.String) getValue(0);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record1 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row1<java.lang.String> fieldsRow() {
|
||||
return (org.jooq.Row1) super.fieldsRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row1<java.lang.String> valuesRow() {
|
||||
return (org.jooq.Row1) super.valuesRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field1() {
|
||||
return mineplex.database.tables.NonPremiumJoinMessage.nonPremiumJoinMessage.message;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value1() {
|
||||
return getMessage();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public NonPremiumJoinMessageRecord value1(java.lang.String value) {
|
||||
setMessage(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public NonPremiumJoinMessageRecord values(java.lang.String value1) {
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached NonPremiumJoinMessageRecord
|
||||
*/
|
||||
public NonPremiumJoinMessageRecord() {
|
||||
super(mineplex.database.tables.NonPremiumJoinMessage.nonPremiumJoinMessage);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised NonPremiumJoinMessageRecord
|
||||
*/
|
||||
public NonPremiumJoinMessageRecord(java.lang.String message) {
|
||||
super(mineplex.database.tables.NonPremiumJoinMessage.nonPremiumJoinMessage);
|
||||
|
||||
setValue(0, message);
|
||||
}
|
||||
}
|
@ -0,0 +1,199 @@
|
||||
/**
|
||||
* 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",
|
||||
"jOOQ version:3.5.2"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class PowerPlayClubRecord extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.PowerPlayClubRecord> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record3<java.lang.Integer, java.lang.String, java.lang.Integer> {
|
||||
|
||||
private static final long serialVersionUID = 1651396391;
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.powerPlayClub.accountId</code>.
|
||||
*/
|
||||
public void setAccountId(java.lang.Integer value) {
|
||||
setValue(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.powerPlayClub.accountId</code>.
|
||||
*/
|
||||
public java.lang.Integer getAccountId() {
|
||||
return (java.lang.Integer) getValue(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.powerPlayClub.kvKey</code>.
|
||||
*/
|
||||
public void setKvKey(java.lang.String value) {
|
||||
setValue(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.powerPlayClub.kvKey</code>.
|
||||
*/
|
||||
public java.lang.String getKvKey() {
|
||||
return (java.lang.String) getValue(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.powerPlayClub.kvValue</code>.
|
||||
*/
|
||||
public void setKvValue(java.lang.Integer value) {
|
||||
setValue(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.powerPlayClub.kvValue</code>.
|
||||
*/
|
||||
public java.lang.Integer getKvValue() {
|
||||
return (java.lang.Integer) getValue(2);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Record2<java.lang.Integer, java.lang.String> key() {
|
||||
return (org.jooq.Record2) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record3 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row3<java.lang.Integer, java.lang.String, java.lang.Integer> fieldsRow() {
|
||||
return (org.jooq.Row3) super.fieldsRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row3<java.lang.Integer, java.lang.String, java.lang.Integer> valuesRow() {
|
||||
return (org.jooq.Row3) super.valuesRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field1() {
|
||||
return mineplex.database.tables.PowerPlayClub.powerPlayClub.accountId;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field2() {
|
||||
return mineplex.database.tables.PowerPlayClub.powerPlayClub.kvKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field3() {
|
||||
return mineplex.database.tables.PowerPlayClub.powerPlayClub.kvValue;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value1() {
|
||||
return getAccountId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value2() {
|
||||
return getKvKey();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value3() {
|
||||
return getKvValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public PowerPlayClubRecord value1(java.lang.Integer value) {
|
||||
setAccountId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public PowerPlayClubRecord value2(java.lang.String value) {
|
||||
setKvKey(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public PowerPlayClubRecord value3(java.lang.Integer value) {
|
||||
setKvValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public PowerPlayClubRecord values(java.lang.Integer value1, java.lang.String value2, java.lang.Integer value3) {
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached PowerPlayClubRecord
|
||||
*/
|
||||
public PowerPlayClubRecord() {
|
||||
super(mineplex.database.tables.PowerPlayClub.powerPlayClub);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised PowerPlayClubRecord
|
||||
*/
|
||||
public PowerPlayClubRecord(java.lang.Integer accountId, java.lang.String kvKey, java.lang.Integer kvValue) {
|
||||
super(mineplex.database.tables.PowerPlayClub.powerPlayClub);
|
||||
|
||||
setValue(0, accountId);
|
||||
setValue(1, kvKey);
|
||||
setValue(2, kvValue);
|
||||
}
|
||||
}
|
@ -0,0 +1,279 @@
|
||||
/**
|
||||
* 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",
|
||||
"jOOQ version:3.5.2"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class UnicodereplacerRecord extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.UnicodereplacerRecord> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record5<java.lang.Integer, java.lang.String, java.lang.String, java.lang.String, java.lang.String> {
|
||||
|
||||
private static final long serialVersionUID = -155015394;
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.unicodereplacer.id</code>.
|
||||
*/
|
||||
public void setId(java.lang.Integer value) {
|
||||
setValue(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.unicodereplacer.id</code>.
|
||||
*/
|
||||
public java.lang.Integer getId() {
|
||||
return (java.lang.Integer) getValue(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.unicodereplacer.unicode</code>.
|
||||
*/
|
||||
public void setUnicode(java.lang.String value) {
|
||||
setValue(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.unicodereplacer.unicode</code>.
|
||||
*/
|
||||
public java.lang.String getUnicode() {
|
||||
return (java.lang.String) getValue(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.unicodereplacer.replacement</code>.
|
||||
*/
|
||||
public void setReplacement(java.lang.String value) {
|
||||
setValue(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.unicodereplacer.replacement</code>.
|
||||
*/
|
||||
public java.lang.String getReplacement() {
|
||||
return (java.lang.String) getValue(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.unicodereplacer.created_by</code>.
|
||||
*/
|
||||
public void setCreated_by(java.lang.String value) {
|
||||
setValue(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.unicodereplacer.created_by</code>.
|
||||
*/
|
||||
public java.lang.String getCreated_by() {
|
||||
return (java.lang.String) getValue(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.unicodereplacer.removed_by</code>.
|
||||
*/
|
||||
public void setRemoved_by(java.lang.String value) {
|
||||
setValue(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.unicodereplacer.removed_by</code>.
|
||||
*/
|
||||
public java.lang.String getRemoved_by() {
|
||||
return (java.lang.String) getValue(4);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Record1<java.lang.Integer> key() {
|
||||
return (org.jooq.Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record5 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row5<java.lang.Integer, java.lang.String, java.lang.String, java.lang.String, java.lang.String> fieldsRow() {
|
||||
return (org.jooq.Row5) super.fieldsRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row5<java.lang.Integer, java.lang.String, java.lang.String, java.lang.String, java.lang.String> valuesRow() {
|
||||
return (org.jooq.Row5) super.valuesRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field1() {
|
||||
return mineplex.database.tables.Unicodereplacer.unicodereplacer.id;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field2() {
|
||||
return mineplex.database.tables.Unicodereplacer.unicodereplacer.unicode;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field3() {
|
||||
return mineplex.database.tables.Unicodereplacer.unicodereplacer.replacement;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field4() {
|
||||
return mineplex.database.tables.Unicodereplacer.unicodereplacer.created_by;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field5() {
|
||||
return mineplex.database.tables.Unicodereplacer.unicodereplacer.removed_by;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value2() {
|
||||
return getUnicode();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value3() {
|
||||
return getReplacement();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value4() {
|
||||
return getCreated_by();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value5() {
|
||||
return getRemoved_by();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public UnicodereplacerRecord value1(java.lang.Integer value) {
|
||||
setId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public UnicodereplacerRecord value2(java.lang.String value) {
|
||||
setUnicode(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public UnicodereplacerRecord value3(java.lang.String value) {
|
||||
setReplacement(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public UnicodereplacerRecord value4(java.lang.String value) {
|
||||
setCreated_by(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public UnicodereplacerRecord value5(java.lang.String value) {
|
||||
setRemoved_by(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public UnicodereplacerRecord values(java.lang.Integer value1, java.lang.String value2, java.lang.String value3, java.lang.String value4, java.lang.String value5) {
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached UnicodereplacerRecord
|
||||
*/
|
||||
public UnicodereplacerRecord() {
|
||||
super(mineplex.database.tables.Unicodereplacer.unicodereplacer);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised UnicodereplacerRecord
|
||||
*/
|
||||
public UnicodereplacerRecord(java.lang.Integer id, java.lang.String unicode, java.lang.String replacement, java.lang.String created_by, java.lang.String removed_by) {
|
||||
super(mineplex.database.tables.Unicodereplacer.unicodereplacer);
|
||||
|
||||
setValue(0, id);
|
||||
setValue(1, unicode);
|
||||
setValue(2, replacement);
|
||||
setValue(3, created_by);
|
||||
setValue(4, removed_by);
|
||||
}
|
||||
}
|
@ -0,0 +1,159 @@
|
||||
/**
|
||||
* 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",
|
||||
"jOOQ version:3.5.2"
|
||||
},
|
||||
comments = "This class is generated by jOOQ"
|
||||
)
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class YoutubeRecord extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.YoutubeRecord> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record2<java.lang.Integer, java.sql.Date> {
|
||||
|
||||
private static final long serialVersionUID = -581486771;
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.youtube.accountId</code>.
|
||||
*/
|
||||
public void setAccountId(java.lang.Integer value) {
|
||||
setValue(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.youtube.accountId</code>.
|
||||
*/
|
||||
public java.lang.Integer getAccountId() {
|
||||
return (java.lang.Integer) getValue(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.youtube.clicktime</code>.
|
||||
*/
|
||||
public void setClicktime(java.sql.Date value) {
|
||||
setValue(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.youtube.clicktime</code>.
|
||||
*/
|
||||
public java.sql.Date getClicktime() {
|
||||
return (java.sql.Date) 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.sql.Date> fieldsRow() {
|
||||
return (org.jooq.Row2) super.fieldsRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row2<java.lang.Integer, java.sql.Date> valuesRow() {
|
||||
return (org.jooq.Row2) super.valuesRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field1() {
|
||||
return mineplex.database.tables.Youtube.youtube.accountId;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.sql.Date> field2() {
|
||||
return mineplex.database.tables.Youtube.youtube.clicktime;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value1() {
|
||||
return getAccountId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.sql.Date value2() {
|
||||
return getClicktime();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public YoutubeRecord value1(java.lang.Integer value) {
|
||||
setAccountId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public YoutubeRecord value2(java.sql.Date value) {
|
||||
setClicktime(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public YoutubeRecord values(java.lang.Integer value1, java.sql.Date value2) {
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached YoutubeRecord
|
||||
*/
|
||||
public YoutubeRecord() {
|
||||
super(mineplex.database.tables.Youtube.youtube);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised YoutubeRecord
|
||||
*/
|
||||
public YoutubeRecord(java.lang.Integer accountId, java.sql.Date clicktime) {
|
||||
super(mineplex.database.tables.Youtube.youtube);
|
||||
|
||||
setValue(0, accountId);
|
||||
setValue(1, clicktime);
|
||||
}
|
||||
}
|
@ -35,7 +35,7 @@ public class GoldRepository {
|
||||
|
||||
if (callback != null)
|
||||
{
|
||||
callback.run(true);
|
||||
Bukkit.getScheduler().runTask(UtilServer.getPlugin(), () -> callback.run(true));
|
||||
}
|
||||
|
||||
} catch (SQLException e)
|
||||
@ -44,7 +44,7 @@ public class GoldRepository {
|
||||
|
||||
if (callback != null)
|
||||
{
|
||||
callback.run(false);
|
||||
Bukkit.getScheduler().runTask(UtilServer.getPlugin(), () -> callback.run(false));
|
||||
}
|
||||
}
|
||||
});
|
||||
@ -67,8 +67,10 @@ public class GoldRepository {
|
||||
statement.setInt(3, gold);
|
||||
statement.setInt(4, gold);
|
||||
statement.executeUpdate();
|
||||
if (callback != null) {
|
||||
callback.run(true);
|
||||
|
||||
if (callback != null)
|
||||
{
|
||||
Bukkit.getScheduler().runTask(UtilServer.getPlugin(), () -> callback.run(true));
|
||||
}
|
||||
|
||||
} catch (SQLException e)
|
||||
@ -77,7 +79,7 @@ public class GoldRepository {
|
||||
|
||||
if (callback != null)
|
||||
{
|
||||
callback.run(false);
|
||||
Bukkit.getScheduler().runTask(UtilServer.getPlugin(), () -> callback.run(false));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -44,6 +44,7 @@ import mineplex.core.stats.StatsManager;
|
||||
import mineplex.core.status.ServerStatusManager;
|
||||
import mineplex.core.task.TaskManager;
|
||||
import mineplex.core.teleport.Teleport;
|
||||
import mineplex.core.thank.ThankManager;
|
||||
import mineplex.core.titangiveaway.TitanGiveawayManager;
|
||||
import mineplex.core.updater.FileUpdater;
|
||||
import mineplex.core.updater.Updater;
|
||||
@ -130,8 +131,9 @@ public class ClansHub extends JavaPlugin
|
||||
CustomDataManager customDataManager = new CustomDataManager(this, clientManager);
|
||||
|
||||
ConditionManager condition = new ConditionManager(this);
|
||||
BoosterManager boosterManager = new BoosterManager(this, "", clientManager, donationManager, inventoryManager);
|
||||
HubManager hubManager = new HubManager(this, blockRestore, clientManager, incognito, donationManager, inventoryManager, condition, disguiseManager, new TaskManager(this, clientManager, webServerAddress), portal, partyManager, preferenceManager, petManager, pollManager, statsManager, achievementManager, new HologramManager(this, packetHandler), npcManager, packetHandler, punish, serverStatusManager, customDataManager, boosterManager);
|
||||
ThankManager thankManager = new ThankManager(this, clientManager, donationManager);
|
||||
BoosterManager boosterManager = new BoosterManager(this, "", clientManager, donationManager, inventoryManager, thankManager);
|
||||
HubManager hubManager = new HubManager(this, blockRestore, clientManager, incognito, donationManager, inventoryManager, condition, disguiseManager, new TaskManager(this, clientManager, webServerAddress), portal, partyManager, preferenceManager, petManager, pollManager, statsManager, achievementManager, new HologramManager(this, packetHandler), npcManager, packetHandler, punish, serverStatusManager, customDataManager, thankManager, boosterManager);
|
||||
HologramManager hologramManager = new HologramManager(this, packetHandler);
|
||||
|
||||
ClansTransferManager serverManager = new ClansTransferManager(this, clientManager, donationManager, partyManager, portal, hubManager);
|
||||
|
@ -63,6 +63,7 @@ import mineplex.core.punish.Punish;
|
||||
import mineplex.core.stats.StatsManager;
|
||||
import mineplex.core.status.ServerStatusManager;
|
||||
import mineplex.core.task.TaskManager;
|
||||
import mineplex.core.thank.ThankManager;
|
||||
import mineplex.core.treasure.TreasureLocation;
|
||||
import mineplex.core.treasure.TreasureManager;
|
||||
import mineplex.core.updater.UpdateType;
|
||||
@ -156,7 +157,7 @@ public class HubManager extends MiniPlugin
|
||||
|
||||
private HashMap<String, ArrayList<String>> _creativeAdmin = new HashMap<String, ArrayList<String>>();
|
||||
|
||||
public HubManager(JavaPlugin plugin, BlockRestore blockRestore, CoreClientManager clientManager, IncognitoManager incognito, DonationManager donationManager, InventoryManager inventoryManager, ConditionManager conditionManager, DisguiseManager disguiseManager, TaskManager taskManager, Portal portal, PartyManager partyManager, PreferencesManager preferences, PetManager petManager, PollManager pollManager, StatsManager statsManager, AchievementManager achievementManager, HologramManager hologramManager, NpcManager npcManager, PacketHandler packetHandler, Punish punish, ServerStatusManager serverStatusManager, CustomDataManager customDataManager, BoosterManager boosterManager)
|
||||
public HubManager(JavaPlugin plugin, BlockRestore blockRestore, CoreClientManager clientManager, IncognitoManager incognito, DonationManager donationManager, InventoryManager inventoryManager, ConditionManager conditionManager, DisguiseManager disguiseManager, TaskManager taskManager, Portal portal, PartyManager partyManager, PreferencesManager preferences, PetManager petManager, PollManager pollManager, StatsManager statsManager, AchievementManager achievementManager, HologramManager hologramManager, NpcManager npcManager, PacketHandler packetHandler, Punish punish, ServerStatusManager serverStatusManager, CustomDataManager customDataManager, ThankManager thankManager, BoosterManager boosterManager)
|
||||
{
|
||||
super("Hub Manager", plugin);
|
||||
|
||||
@ -192,7 +193,7 @@ public class HubManager extends MiniPlugin
|
||||
|
||||
FacebookManager facebookManager = new FacebookManager(plugin, clientManager, donationManager, inventoryManager);
|
||||
YoutubeManager youtubeManager = new YoutubeManager(plugin, clientManager, donationManager);
|
||||
_bonusManager = new BonusManager(plugin, clientManager, serverStatusManager, donationManager, pollManager , npcManager, hologramManager, statsManager, _inventoryManager, petManager, facebookManager, youtubeManager, _gadgetManager, boosterManager);
|
||||
_bonusManager = new BonusManager(plugin, clientManager, serverStatusManager, donationManager, pollManager , npcManager, hologramManager, statsManager, _inventoryManager, petManager, facebookManager, youtubeManager, _gadgetManager, thankManager);
|
||||
|
||||
World world = _spawn.getWorld();
|
||||
_treasureManager = new TreasureManager(_plugin, clientManager, serverStatusManager, donationManager, _inventoryManager, petManager, _gadgetManager, _blockRestore, hologramManager, statsManager, _bonusManager.getRewardManager());
|
||||
|
@ -1,6 +1,7 @@
|
||||
package mineplex.hub;
|
||||
|
||||
import mineplex.core.brawl.fountain.FountainManager;
|
||||
import mineplex.core.thank.ThankManager;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
@ -148,8 +149,9 @@ public class Hub extends JavaPlugin implements IRelation
|
||||
|
||||
PersonalServerManager personalServerManager = new PersonalServerManager(this, clientManager);
|
||||
String boosterGroup = serverConfiguration.getServerGroup().getBoosterGroup();
|
||||
BoosterManager boosterManager = new BoosterManager(this, boosterGroup, clientManager, donationManager, inventoryManager);
|
||||
HubManager hubManager = new HubManager(this, blockRestore, clientManager, incognito, donationManager, inventoryManager, conditionManager, disguiseManager, new TaskManager(this, clientManager, webServerAddress), portal, partyManager, preferenceManager, petManager, pollManager, statsManager, achievementManager, new HologramManager(this, packetHandler), npcManager, personalServerManager, packetHandler, punish, serverStatusManager, customDataManager, boosterManager);
|
||||
ThankManager thankManager = new ThankManager(this, clientManager, donationManager);
|
||||
BoosterManager boosterManager = new BoosterManager(this, boosterGroup, clientManager, donationManager, inventoryManager, thankManager);
|
||||
HubManager hubManager = new HubManager(this, blockRestore, clientManager, incognito, donationManager, inventoryManager, conditionManager, disguiseManager, new TaskManager(this, clientManager, webServerAddress), portal, partyManager, preferenceManager, petManager, pollManager, statsManager, achievementManager, new HologramManager(this, packetHandler), npcManager, personalServerManager, packetHandler, punish, serverStatusManager, customDataManager, thankManager, boosterManager);
|
||||
HologramManager hologramManager = new HologramManager(this, packetHandler);
|
||||
|
||||
QueueManager queueManager = new QueueManager(this, clientManager, donationManager, new EloManager(this, clientManager), partyManager);
|
||||
|
@ -51,6 +51,7 @@ import mineplex.core.punish.Punish;
|
||||
import mineplex.core.stats.StatsManager;
|
||||
import mineplex.core.status.ServerStatusManager;
|
||||
import mineplex.core.task.TaskManager;
|
||||
import mineplex.core.thank.ThankManager;
|
||||
import mineplex.core.treasure.TreasureManager;
|
||||
import mineplex.core.updater.UpdateType;
|
||||
import mineplex.core.updater.event.UpdateEvent;
|
||||
@ -102,6 +103,7 @@ import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.Random;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
public class HubManager extends MiniClientPlugin<HubClient>
|
||||
{
|
||||
@ -161,7 +163,7 @@ public class HubManager extends MiniClientPlugin<HubClient>
|
||||
// private final String[] _songNames = {"JingleBells.nbs", "TheFirstNoel.nbs", "Hark.nbs", "DeckTheHalls.nbs", "Joy.nbs", "MerryChristmas.nbs"};
|
||||
private final ArrayList<NoteSong> _songs;
|
||||
|
||||
public HubManager(JavaPlugin plugin, BlockRestore blockRestore, CoreClientManager clientManager, IncognitoManager incognito, DonationManager donationManager, InventoryManager inventoryManager, ConditionManager conditionManager, DisguiseManager disguiseManager, TaskManager taskManager, Portal portal, PartyManager partyManager, PreferencesManager preferences, PetManager petManager, PollManager pollManager, StatsManager statsManager, AchievementManager achievementManager, HologramManager hologramManager, NpcManager npcManager, PersonalServerManager personalServerManager, PacketHandler packetHandler, Punish punish, ServerStatusManager serverStatusManager, CustomDataManager customDataManager, BoosterManager boosterManager)
|
||||
public HubManager(JavaPlugin plugin, BlockRestore blockRestore, CoreClientManager clientManager, IncognitoManager incognito, DonationManager donationManager, InventoryManager inventoryManager, ConditionManager conditionManager, DisguiseManager disguiseManager, TaskManager taskManager, Portal portal, PartyManager partyManager, PreferencesManager preferences, PetManager petManager, PollManager pollManager, StatsManager statsManager, AchievementManager achievementManager, HologramManager hologramManager, NpcManager npcManager, PersonalServerManager personalServerManager, PacketHandler packetHandler, Punish punish, ServerStatusManager serverStatusManager, CustomDataManager customDataManager, ThankManager thankManager, BoosterManager boosterManager)
|
||||
{
|
||||
super("Hub Manager", plugin);
|
||||
|
||||
@ -198,7 +200,7 @@ public class HubManager extends MiniClientPlugin<HubClient>
|
||||
|
||||
FacebookManager facebookManager = new FacebookManager(plugin, clientManager, donationManager, inventoryManager);
|
||||
YoutubeManager youtubeManager = new YoutubeManager(plugin, clientManager, donationManager);
|
||||
_bonusManager = new BonusManager(plugin, clientManager, serverStatusManager, donationManager, pollManager , npcManager, hologramManager, statsManager, _inventoryManager, petManager, facebookManager, youtubeManager, _gadgetManager, boosterManager);
|
||||
_bonusManager = new BonusManager(plugin, clientManager, serverStatusManager, donationManager, pollManager , npcManager, hologramManager, statsManager, _inventoryManager, petManager, facebookManager, youtubeManager, _gadgetManager, thankManager);
|
||||
|
||||
_treasureManager = new TreasureManager(_plugin, clientManager, serverStatusManager, donationManager, _inventoryManager, petManager, _gadgetManager, _blockRestore, hologramManager, statsManager, _bonusManager.getRewardManager());
|
||||
new CosmeticManager(_plugin, clientManager, donationManager, _inventoryManager, _gadgetManager, _mountManager, petManager, _treasureManager, boosterManager);
|
||||
@ -601,14 +603,7 @@ public class HubManager extends MiniClientPlugin<HubClient>
|
||||
|
||||
event.setMessage(event.getMessage().substring(1, event.getMessage().length()));
|
||||
event.setFormat(levelStr + C.cDPurple + C.Bold + "Party " + C.cWhite + C.Bold + playerName + " " + C.cPurple + "%2$s");
|
||||
|
||||
for (String name : party.getMembers())
|
||||
{
|
||||
Player other = UtilPlayer.searchExact(name);
|
||||
|
||||
if (other != null)
|
||||
event.getRecipients().add(other);
|
||||
}
|
||||
event.getRecipients().addAll(party.getMembersByUUID().stream().map(Bukkit::getPlayer).collect(Collectors.toList()));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -4,6 +4,7 @@ import java.io.File;
|
||||
import java.util.HashMap;
|
||||
|
||||
import mineplex.core.boosters.BoosterManager;
|
||||
import mineplex.core.thank.ThankManager;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
@ -159,7 +160,8 @@ public class Arcade extends JavaPlugin
|
||||
PetManager petManager = new PetManager(this, _clientManager, _donationManager, inventoryManager, disguiseManager, creature, blockRestore, webServerAddress);
|
||||
MountManager mountManager = new MountManager(this, _clientManager, _donationManager, blockRestore, disguiseManager);
|
||||
GadgetManager gadgetManager = new GadgetManager(this, _clientManager, _donationManager, inventoryManager, mountManager, petManager, preferenceManager, disguiseManager, blockRestore, projectileManager, achievementManager, packetHandler, hologramManager);
|
||||
BoosterManager boosterManager = new BoosterManager(this, _serverConfiguration.getServerGroup().getBoosterGroup(), _clientManager, _donationManager, inventoryManager);
|
||||
ThankManager thankManager = new ThankManager(this, _clientManager, _donationManager);
|
||||
BoosterManager boosterManager = new BoosterManager(this, _serverConfiguration.getServerGroup().getBoosterGroup(), _clientManager, _donationManager, inventoryManager, thankManager);
|
||||
CosmeticManager cosmeticManager = new CosmeticManager(this, _clientManager, _donationManager, inventoryManager, gadgetManager, mountManager, petManager, null, boosterManager);
|
||||
cosmeticManager.setInterfaceSlot(6);
|
||||
cosmeticManager.disableTeamArmor();
|
||||
@ -168,7 +170,7 @@ public class Arcade extends JavaPlugin
|
||||
|
||||
//Arcade Manager
|
||||
PollManager pollManager = new PollManager(this, _clientManager, _donationManager);
|
||||
_gameManager = new ArcadeManager(this, serverStatusManager, ReadServerConfig(), _clientManager, _donationManager, _damageManager, statsManager, incognito, achievementManager, disguiseManager, creature, teleport, new Blood(this), chat, portal, preferenceManager, inventoryManager, packetHandler, cosmeticManager, projectileManager, petManager, hologramManager, webServerAddress, pollManager, npcmanager, customDataManager, punish, eloManager, boosterManager);
|
||||
_gameManager = new ArcadeManager(this, serverStatusManager, ReadServerConfig(), _clientManager, _donationManager, _damageManager, statsManager, incognito, achievementManager, disguiseManager, creature, teleport, new Blood(this), chat, portal, preferenceManager, inventoryManager, packetHandler, cosmeticManager, projectileManager, petManager, hologramManager, webServerAddress, pollManager, npcmanager, customDataManager, punish, eloManager, thankManager, boosterManager);
|
||||
|
||||
new GlobalPacketManager(this, _clientManager, serverStatusManager, inventoryManager, _donationManager, petManager, statsManager, _gameManager.getBonusManager().getRewardManager());
|
||||
|
||||
|
@ -47,6 +47,7 @@ import mineplex.core.stats.StatsManager;
|
||||
import mineplex.core.status.ServerStatusManager;
|
||||
import mineplex.core.task.TaskManager;
|
||||
import mineplex.core.teleport.Teleport;
|
||||
import mineplex.core.thank.ThankManager;
|
||||
import mineplex.core.timing.TimingManager;
|
||||
import mineplex.core.titangiveaway.TitanGiveawayManager;
|
||||
import mineplex.core.valentines.ValentinesGiftManager;
|
||||
@ -203,7 +204,7 @@ public class ArcadeManager extends MiniPlugin implements IRelation
|
||||
StatsManager statsManager, IncognitoManager incognitoManager, AchievementManager achievementManager, DisguiseManager disguiseManager, Creature creature, Teleport teleport, Blood blood, Chat chat,
|
||||
Portal portal, PreferencesManager preferences, InventoryManager inventoryManager, PacketHandler packetHandler,
|
||||
CosmeticManager cosmeticManager, ProjectileManager projectileManager, PetManager petManager, HologramManager hologramManager, String webAddress, PollManager pollManager,
|
||||
NpcManager npcManager, CustomDataManager customDataManager, Punish punish, EloManager eloManager, BoosterManager boosterManager)
|
||||
NpcManager npcManager, CustomDataManager customDataManager, Punish punish, EloManager eloManager, ThankManager thankManager, BoosterManager boosterManager)
|
||||
{
|
||||
super("Game Manager", plugin);
|
||||
|
||||
@ -288,7 +289,7 @@ public class ArcadeManager extends MiniPlugin implements IRelation
|
||||
new GameStatManager(this);
|
||||
FacebookManager facebookManager = new FacebookManager(plugin, clientManager, donationManager, inventoryManager);
|
||||
YoutubeManager youtubeManager = new YoutubeManager(plugin, clientManager, donationManager);
|
||||
_bonusManager = new BonusManager(plugin, clientManager, serverStatusManager, donationManager, pollManager , npcManager, hologramManager, statsManager, _inventoryManager, petManager, facebookManager, youtubeManager, _cosmeticManager.getGadgetManager(), boosterManager);
|
||||
_bonusManager = new BonusManager(plugin, clientManager, serverStatusManager, donationManager, pollManager , npcManager, hologramManager, statsManager, _inventoryManager, petManager, facebookManager, youtubeManager, _cosmeticManager.getGadgetManager(), thankManager);
|
||||
new GameLootManager(this, petManager, _bonusManager.getRewardManager());
|
||||
_spectatorManager = new GameSpectatorManager(this);
|
||||
_gameWorldManager = new GameWorldManager(this);
|
||||
|
@ -4,7 +4,7 @@ import mineplex.core.MiniPlugin;
|
||||
import mineplex.core.boosters.Booster;
|
||||
import mineplex.core.boosters.event.BoosterActivateEvent;
|
||||
import mineplex.core.boosters.event.BoosterExpireEvent;
|
||||
import mineplex.core.boosters.tips.BoosterTipManager;
|
||||
import mineplex.core.boosters.tips.BoosterThankManager;
|
||||
import mineplex.core.common.util.*;
|
||||
import mineplex.core.disguise.DisguiseManager;
|
||||
import mineplex.core.hologram.Hologram;
|
||||
@ -177,7 +177,7 @@ public class BoosterPodium extends MiniPlugin
|
||||
return new String[] {
|
||||
C.cGreen + "Amplified by " + C.cWhite + booster.getPlayerName(),
|
||||
C.cWhite + booster.getTimeRemainingString() + " Remaining",
|
||||
C.cAqua + "Click to Thank. You get " + BoosterTipManager.TIP_FOR_TIPPER + " Treasure Shards"
|
||||
C.cAqua + "Click to Thank. You get " + BoosterThankManager.TIP_FOR_TIPPER + " Treasure Shards"
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@ import mineplex.core.MiniPlugin;
|
||||
import mineplex.core.boosters.Booster;
|
||||
import mineplex.core.boosters.BoosterManager;
|
||||
import mineplex.core.boosters.event.BoosterActivateEvent;
|
||||
import mineplex.core.boosters.tips.BoosterTipManager;
|
||||
import mineplex.core.boosters.tips.BoosterThankManager;
|
||||
import mineplex.core.boosters.tips.TipAddResult;
|
||||
import mineplex.core.common.currency.GlobalCurrency;
|
||||
import mineplex.core.common.jsonchat.ClickEvent;
|
||||
@ -59,11 +59,11 @@ public class GameBoosterManager extends MiniPlugin
|
||||
return;
|
||||
}
|
||||
|
||||
_boosterManager.getTipManager().addTip(player, active, result -> {
|
||||
_boosterManager.getBoosterThankManager().addTip(player, active, result -> {
|
||||
if (result == TipAddResult.SUCCESS)
|
||||
{
|
||||
UtilPlayer.message(player, F.main("Tip", "You thanked " + F.name(active.getPlayerName()) + ". They earned " + F.currency(GlobalCurrency.TREASURE_SHARD, BoosterTipManager.TIP_FOR_SPONSOR) + " and you got "
|
||||
+ F.currency(GlobalCurrency.TREASURE_SHARD, BoosterTipManager.TIP_FOR_TIPPER)) + " in return!");
|
||||
UtilPlayer.message(player, F.main("Tip", "You thanked " + F.name(active.getPlayerName()) + ". They earned " + F.currency(GlobalCurrency.TREASURE_SHARD, BoosterThankManager.TIP_FOR_SPONSOR) + " and you got "
|
||||
+ F.currency(GlobalCurrency.TREASURE_SHARD, BoosterThankManager.TIP_FOR_TIPPER)) + " in return!");
|
||||
player.playSound(player.getLocation(), Sound.LEVEL_UP, 1f, 1f);
|
||||
} else
|
||||
{
|
||||
@ -79,17 +79,24 @@ public class GameBoosterManager extends MiniPlugin
|
||||
public void onActivate(BoosterActivateEvent event)
|
||||
{
|
||||
Booster booster = event.getBooster();
|
||||
|
||||
boolean isTesting = event.getBoosterGroup().equalsIgnoreCase("Testing");
|
||||
|
||||
if (event.getBoosterGroup().equals(_boosterGroup))
|
||||
{
|
||||
Bukkit.broadcastMessage(F.main("Amplifier", F.name(booster.getPlayerName()) + " has activated a Game Amplifier for " + booster.getMultiplier() + "x Shards!"));
|
||||
} else
|
||||
}
|
||||
else if (!isTesting)
|
||||
{
|
||||
Bukkit.broadcastMessage(F.main("Amplifier", F.name(booster.getPlayerName()) + " has activated a Game Amplifier on " + F.elem(event.getBoosterGroup().replaceAll("_", " ")) + "!"));
|
||||
}
|
||||
|
||||
JsonMessage message = new JsonMessage(F.main("Amplifier", F.elem("Click here") + " to thank them and receive " + F.currency(GlobalCurrency.TREASURE_SHARD, BoosterTipManager.TIP_FOR_TIPPER) + "!"));
|
||||
message.click(ClickEvent.RUN_COMMAND, "/amplifier thank " + _boosterGroup);
|
||||
if (event.getBoosterGroup().equals(_boosterGroup) || !isTesting)
|
||||
{
|
||||
JsonMessage message = new JsonMessage(F.main("Amplifier", F.elem("Click here") + " to thank them and get " + F.currency(GlobalCurrency.TREASURE_SHARD, BoosterThankManager.TIP_FOR_TIPPER) + "!"));
|
||||
message.click(ClickEvent.RUN_COMMAND, "/amplifier thank " + event.getBoosterGroup());
|
||||
message.hover(HoverEvent.SHOW_TEXT, C.cGreen + "Click to Thank");
|
||||
message.send(JsonMessage.MessageType.CHAT_BOX, UtilServer.getPlayers());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1009,7 +1009,7 @@ public abstract class SurvivalGames extends Game
|
||||
handlePickup(event.getItem().getItemStack());
|
||||
}
|
||||
|
||||
private void handlePickup(ItemStack stack)
|
||||
public void handlePickup(ItemStack stack)
|
||||
{
|
||||
if (stack.getType() == Material.CARROT
|
||||
|| stack.getType() == Material.POTATO
|
||||
|
@ -1,21 +1,38 @@
|
||||
package nautilus.game.arcade.game.games.survivalgames.modes;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.block.Block;
|
||||
import org.bukkit.block.Chest;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.EventPriority;
|
||||
import org.bukkit.event.block.BlockBreakEvent;
|
||||
import org.bukkit.event.block.BlockPlaceEvent;
|
||||
import org.bukkit.event.entity.EntityDeathEvent;
|
||||
import org.bukkit.event.entity.EntityRegainHealthEvent;
|
||||
import org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason;
|
||||
import org.bukkit.event.inventory.PrepareItemCraftEvent;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.scoreboard.DisplaySlot;
|
||||
import org.bukkit.scoreboard.Objective;
|
||||
|
||||
import mineplex.core.common.util.F;
|
||||
import mineplex.core.common.util.UtilMath;
|
||||
import mineplex.core.common.util.UtilTime;
|
||||
import mineplex.core.itemstack.ItemStackFactory;
|
||||
import mineplex.core.loot.RandomItem;
|
||||
import mineplex.core.updater.UpdateType;
|
||||
import mineplex.core.updater.event.UpdateEvent;
|
||||
import nautilus.game.arcade.ArcadeManager;
|
||||
import nautilus.game.arcade.GameType;
|
||||
import nautilus.game.arcade.events.GameStateChangeEvent;
|
||||
import nautilus.game.arcade.game.games.AbsorptionFix;
|
||||
import nautilus.game.arcade.game.games.survivalgames.SoloSurvivalGames;
|
||||
import nautilus.game.arcade.game.games.survivalgames.SupplyChestOpenEvent;
|
||||
import nautilus.game.arcade.game.games.survivalgames.kit.KitLooter;
|
||||
import nautilus.game.arcade.game.games.survivalgames.modes.kit.KitSurvivalist;
|
||||
import nautilus.game.arcade.kit.Kit;
|
||||
|
||||
/**
|
||||
* UHCSurvivalgames gamemode for Survivalgames
|
||||
@ -25,15 +42,74 @@ import nautilus.game.arcade.game.games.survivalgames.SoloSurvivalGames;
|
||||
public class UHCSurvivalgames extends SoloSurvivalGames
|
||||
{
|
||||
|
||||
private long _peacePhase;
|
||||
private boolean _peace;
|
||||
|
||||
public UHCSurvivalgames(ArcadeManager manager)
|
||||
{
|
||||
super(manager, GameType.Brawl);
|
||||
super(manager, new Kit[]
|
||||
{
|
||||
new KitSurvivalist(manager)
|
||||
},
|
||||
GameType.Brawl);
|
||||
|
||||
_peacePhase = 45000; // 45 Seconds
|
||||
SoupEnabled = false;
|
||||
|
||||
DamagePvP = false;
|
||||
|
||||
BlockBreak = true;
|
||||
BlockPlace = true;
|
||||
|
||||
BlockBreakDeny.add(Material.DIAMOND_BLOCK.getId());
|
||||
BlockBreakDeny.add(Material.IRON_BLOCK.getId());
|
||||
BlockBreakDeny.add(Material.GOLD_BLOCK.getId());
|
||||
BlockBreakDeny.add(Material.REDSTONE_ORE.getId());
|
||||
BlockBreakDeny.add(Material.REDSTONE_WIRE.getId());
|
||||
BlockBreakDeny.add(Material.REDSTONE.getId());
|
||||
BlockBreakDeny.add(Material.TNT.getId());
|
||||
BlockBreakDeny.add(Material.CHEST.getId());
|
||||
|
||||
BlockPlaceDeny.add(Material.REDSTONE.getId());
|
||||
BlockPlaceDeny.add(Material.REDSTONE_ORE.getId());
|
||||
BlockPlaceDeny.add(Material.REDSTONE_WIRE.getId());
|
||||
BlockPlaceDeny.add(Material.CHEST.getId());
|
||||
|
||||
new AbsorptionFix(this);
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void enableDamage(UpdateEvent event)
|
||||
{
|
||||
if (event.getType() != UpdateType.SEC)
|
||||
return;
|
||||
|
||||
if (!IsLive())
|
||||
return;
|
||||
|
||||
if (!UtilTime.elapsed(GetStateTime(), _peacePhase))
|
||||
return;
|
||||
|
||||
if (!_peace)
|
||||
return;
|
||||
|
||||
_peace = false;
|
||||
|
||||
Announce(F.main("Game", "The Peace Phase has ended! You can now fight each other!"));
|
||||
DamagePvP = true;
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void informPeace(GameStateChangeEvent event)
|
||||
{
|
||||
if (event.GetState() != GameState.Live)
|
||||
return;
|
||||
|
||||
_peace = true;
|
||||
|
||||
Announce(F.main("Game", "A Peace Phase of " + F.time((_peacePhase/1000) + "") + " seconds has started!"));
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void registerObj(GameStateChangeEvent event)
|
||||
{
|
||||
@ -58,14 +134,243 @@ public class UHCSurvivalgames extends SoloSurvivalGames
|
||||
{
|
||||
if (event.getEntity() instanceof Player)
|
||||
{
|
||||
event.getDrops().add(new ItemStack(Material.GOLDEN_APPLE));
|
||||
event.getDrops().add(new ItemStack(Material.GOLDEN_APPLE, 2));
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler(priority=EventPriority.LOWEST)
|
||||
public void spawnBreak(BlockBreakEvent event)
|
||||
{
|
||||
if (UtilMath.offset(event.getBlock().getLocation(), getSpawn()) < 40)
|
||||
event.setCancelled(true);
|
||||
}
|
||||
|
||||
@EventHandler(priority=EventPriority.LOWEST)
|
||||
public void spawnPlace(BlockPlaceEvent event)
|
||||
{
|
||||
if (UtilMath.offset(event.getBlock().getLocation(), getSpawn()) < 40)
|
||||
event.setCancelled(true);
|
||||
}
|
||||
|
||||
public void setupLoot()
|
||||
{
|
||||
// Build material
|
||||
getBaseLoot().addLoot(new RandomItem(Material.WOOD, 40, 7, 15));
|
||||
|
||||
// Food
|
||||
getBaseLoot().addLoot(new RandomItem(Material.BAKED_POTATO, 40, 1, 3));
|
||||
getBaseLoot().addLoot(new RandomItem(Material.COOKED_BEEF, 40, 1, 2));
|
||||
getBaseLoot().addLoot(new RandomItem(Material.COOKED_CHICKEN, 40, 1, 2));
|
||||
getBaseLoot().addLoot(new RandomItem(Material.MUSHROOM_SOUP, 10, 1, 1));
|
||||
getBaseLoot().addLoot(new RandomItem(Material.PORK, 35, 1, 4));
|
||||
|
||||
// Weapons
|
||||
getBaseLoot().addLoot(new RandomItem(Material.IRON_AXE, 80));
|
||||
getBaseLoot().addLoot(new RandomItem(Material.IRON_SWORD, 70));
|
||||
getBaseLoot().addLoot(new RandomItem(Material.DIAMOND_AXE, 60));
|
||||
getBaseLoot().addLoot(new RandomItem(Material.DIAMOND_SWORD, 30));
|
||||
|
||||
// Gold armor
|
||||
getBaseLoot().addLoot(new RandomItem(Material.GOLD_BOOTS, 25));
|
||||
getBaseLoot().addLoot(new RandomItem(Material.GOLD_CHESTPLATE, 25));
|
||||
getBaseLoot().addLoot(new RandomItem(Material.GOLD_HELMET, 25));
|
||||
getBaseLoot().addLoot(new RandomItem(Material.GOLD_LEGGINGS, 25));
|
||||
|
||||
// Chain armor
|
||||
getBaseLoot().addLoot(new RandomItem(Material.CHAINMAIL_BOOTS, 20));
|
||||
getBaseLoot().addLoot(new RandomItem(Material.CHAINMAIL_CHESTPLATE, 20));
|
||||
getBaseLoot().addLoot(new RandomItem(Material.CHAINMAIL_HELMET, 20));
|
||||
getBaseLoot().addLoot(new RandomItem(Material.CHAINMAIL_LEGGINGS, 20));
|
||||
|
||||
// Throwable
|
||||
getBaseLoot().addLoot(new RandomItem(Material.FISHING_ROD, 30));
|
||||
getBaseLoot().addLoot(new RandomItem(Material.BOW, 20));
|
||||
getBaseLoot().addLoot(new RandomItem(Material.ARROW, 40, 2, 4));
|
||||
|
||||
// Misc
|
||||
getBaseLoot().addLoot(new RandomItem(Material.EXP_BOTTLE, 40, 1, 2));
|
||||
getBaseLoot().addLoot(new RandomItem(Material.COMPASS, 20));
|
||||
getBaseLoot().addLoot(new RandomItem(Material.STICK, 30, 1, 2));
|
||||
getBaseLoot().addLoot(new RandomItem(Material.BOAT, 15));
|
||||
getBaseLoot().addLoot(new RandomItem(Material.GOLD_INGOT, 20));
|
||||
getBaseLoot().addLoot(new RandomItem(Material.GOLDEN_APPLE, 2));
|
||||
getBaseLoot().addLoot(new RandomItem(ItemStackFactory.Instance.CreateStack(
|
||||
Material.TNT, (byte) 0, 1, F.item("Throwing TNT")), 15));
|
||||
getSpawnLoot().addLoot(new RandomItem(Material.MUSHROOM_SOUP, 15));
|
||||
|
||||
getSpawnLoot().cloneLoot(getBaseLoot());
|
||||
|
||||
// Food
|
||||
getSpawnLoot().addLoot(new RandomItem(Material.BAKED_POTATO, 30, 1, 5));
|
||||
getSpawnLoot().addLoot(new RandomItem(Material.CAKE, 30));
|
||||
getSpawnLoot().addLoot(new RandomItem(Material.MUSHROOM_SOUP, 30, 1, 1));
|
||||
getSpawnLoot().addLoot(new RandomItem(Material.COOKED_BEEF, 30, 1, 3));
|
||||
getSpawnLoot().addLoot(new RandomItem(Material.COOKED_CHICKEN, 30, 1, 3));
|
||||
getSpawnLoot().addLoot(new RandomItem(Material.COOKED_FISH, 30, 1, 6));
|
||||
getSpawnLoot().addLoot(new RandomItem(Material.GRILLED_PORK, 30, 1, 3));
|
||||
getSpawnLoot().addLoot(new RandomItem(Material.COOKIE, 30));
|
||||
getSpawnLoot().addLoot(new RandomItem(Material.PUMPKIN_PIE, 30, 1, 3));
|
||||
getSpawnLoot().addLoot(new RandomItem(Material.APPLE, 30, 2, 6));
|
||||
|
||||
// Loot for chests in spawn
|
||||
// Weaponry and ores
|
||||
getSpawnLoot().addLoot(new RandomItem(Material.STONE_SWORD, 30));
|
||||
getSpawnLoot().addLoot(new RandomItem(Material.IRON_AXE, 30));
|
||||
getSpawnLoot().addLoot(new RandomItem(Material.IRON_INGOT, 40, 1, 2));
|
||||
getSpawnLoot().addLoot(new RandomItem(Material.DIAMOND, 30));
|
||||
|
||||
// Iron gear
|
||||
getSpawnLoot().addLoot(new RandomItem(Material.IRON_BOOTS, 30));
|
||||
getSpawnLoot().addLoot(new RandomItem(Material.IRON_CHESTPLATE, 30));
|
||||
getSpawnLoot().addLoot(new RandomItem(Material.IRON_HELMET, 30));
|
||||
getSpawnLoot().addLoot(new RandomItem(Material.IRON_LEGGINGS, 30));
|
||||
|
||||
// Supply crate loot
|
||||
// Diamond gear
|
||||
getCrateLoot().addLoot(new RandomItem(Material.DIAMOND_HELMET, 10));
|
||||
getCrateLoot().addLoot(new RandomItem(Material.DIAMOND_CHESTPLATE, 6));
|
||||
getCrateLoot().addLoot(new RandomItem(Material.DIAMOND_LEGGINGS, 8));
|
||||
getCrateLoot().addLoot(new RandomItem(Material.DIAMOND_BOOTS, 10));
|
||||
|
||||
// Iron gear
|
||||
getCrateLoot().addLoot(new RandomItem(Material.IRON_HELMET, 30));
|
||||
getCrateLoot().addLoot(new RandomItem(Material.IRON_CHESTPLATE, 24));
|
||||
getCrateLoot().addLoot(new RandomItem(Material.IRON_LEGGINGS, 27));
|
||||
getCrateLoot().addLoot(new RandomItem(Material.IRON_BOOTS, 30));
|
||||
|
||||
// Weapons
|
||||
getCrateLoot().addLoot(new RandomItem(Material.IRON_SWORD, 24));
|
||||
getCrateLoot().addLoot(new RandomItem(Material.DIAMOND_SWORD, 8));
|
||||
getCrateLoot().addLoot(new RandomItem(Material.DIAMOND_AXE, 16));
|
||||
|
||||
// Cooked furnace
|
||||
getFurnace().addLoot(new RandomItem(Material.COOKED_BEEF, 3, 1, 2));
|
||||
getFurnace().addLoot(new RandomItem(Material.COOKED_CHICKEN, 3, 1, 2));
|
||||
getFurnace().addLoot(new RandomItem(Material.COOKED_FISH, 3, 1, 2));
|
||||
getFurnace().addLoot(new RandomItem(Material.GRILLED_PORK, 3, 1, 2));
|
||||
getFurnace().addLoot(new RandomItem(Material.BAKED_POTATO, 3, 1, 1));
|
||||
getFurnace().addLoot(new RandomItem(Material.PUMPKIN_PIE, 3, 1, 1));
|
||||
getFurnace().addLoot(new RandomItem(Material.IRON_INGOT, 1, 1, 1));
|
||||
|
||||
// Raw furnace
|
||||
getRawFurnace().addLoot(new RandomItem(Material.RAW_BEEF, 1, 1, 3));
|
||||
getRawFurnace().addLoot(new RandomItem(Material.RAW_CHICKEN, 1, 1, 3));
|
||||
getRawFurnace().addLoot(new RandomItem(Material.RAW_FISH, 1, 1, 3));
|
||||
getRawFurnace().addLoot(new RandomItem(Material.PORK, 1, 1, 3));
|
||||
getRawFurnace().addLoot(new RandomItem(Material.POTATO_ITEM, 1, 1, 3));
|
||||
|
||||
// Deathmatch Loot
|
||||
getDeathMatch().addLoot(new RandomItem(Material.PUMPKIN_PIE, 4));
|
||||
getDeathMatch().addLoot(new RandomItem(Material.BAKED_POTATO, 4));
|
||||
getDeathMatch().addLoot(new RandomItem(Material.CAKE, 4));
|
||||
getDeathMatch().addLoot(new RandomItem(Material.APPLE, 4));
|
||||
getDeathMatch().addLoot(new RandomItem(Material.WOOD_SWORD, 3));
|
||||
getDeathMatch().addLoot(new RandomItem(Material.WOOD_AXE, 3));
|
||||
getDeathMatch().addLoot(new RandomItem(Material.STONE_AXE, 3));
|
||||
getDeathMatch().addLoot(new RandomItem(Material.STONE_SWORD, 1));
|
||||
}
|
||||
|
||||
public void fillChest(Player looter, Block block)
|
||||
{
|
||||
getLootedBlocks().add(block.getLocation());
|
||||
|
||||
Chest chest = (Chest) block.getState();
|
||||
|
||||
chest.getBlockInventory().clear();
|
||||
|
||||
int items = 2;
|
||||
if (Math.random() > 0.50)
|
||||
items++;
|
||||
if (Math.random() > 0.65)
|
||||
items++;
|
||||
if (Math.random() > 0.80)
|
||||
items++;
|
||||
if (Math.random() > 0.95)
|
||||
items++;
|
||||
|
||||
boolean spawnChest = getChestRefillTime() > 0
|
||||
&& UtilMath.offset(chest.getLocation(), getSpawn()) < 8;
|
||||
|
||||
if (spawnChest)
|
||||
items += 3;
|
||||
|
||||
if (GetKit(looter) instanceof KitLooter)
|
||||
{
|
||||
items += UtilMath.r(3);
|
||||
}
|
||||
|
||||
if (getSupplyBlocks().contains(block))
|
||||
{
|
||||
items = 2;
|
||||
if (Math.random() > 0.75)
|
||||
items++;
|
||||
if (Math.random() > 0.95)
|
||||
items++;
|
||||
}
|
||||
|
||||
for (int i = 0; i < items; i++)
|
||||
{
|
||||
ItemStack item;
|
||||
|
||||
if (spawnChest)
|
||||
{
|
||||
item = getSpawnLoot().getLoot();
|
||||
}
|
||||
else if (isDeathMatchTeleported())
|
||||
{
|
||||
item = getDeathMatch().getLoot();
|
||||
}
|
||||
else
|
||||
{
|
||||
boolean drop = getSupplyBlocks().contains(block);
|
||||
item = GetChestItem(drop);
|
||||
|
||||
// Golden apple spawn
|
||||
if (drop && i == items)
|
||||
item = new ItemStack(Material.GOLDEN_APPLE);
|
||||
}
|
||||
|
||||
if (item.getType() == Material.COMPASS)
|
||||
{
|
||||
item = buildCompass(5);
|
||||
}
|
||||
|
||||
handlePickup(item);
|
||||
|
||||
chest.getBlockInventory().setItem(UtilMath.r(27), item);
|
||||
}
|
||||
|
||||
if (getSupplyBlocks().contains(block))
|
||||
{
|
||||
Bukkit.getPluginManager().callEvent(
|
||||
new SupplyChestOpenEvent(looter, block));
|
||||
}
|
||||
|
||||
getSupplyBlocks().remove(block);
|
||||
}
|
||||
|
||||
@Override
|
||||
@EventHandler
|
||||
public void preventCrafting(PrepareItemCraftEvent event)
|
||||
{
|
||||
ItemStack result = event.getInventory().getResult();
|
||||
|
||||
if (result != null)
|
||||
{
|
||||
Material type = result.getType();
|
||||
|
||||
if (type == Material.BUCKET
|
||||
|| type == Material.FLINT_AND_STEEL)
|
||||
{
|
||||
event.getInventory().setResult(new ItemStack(Material.AIR));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String GetMode()
|
||||
{
|
||||
return "UHC Survivalagmes";
|
||||
return "UHC Survivalgames";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,48 @@
|
||||
package nautilus.game.arcade.game.games.survivalgames.modes.kit;
|
||||
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.entity.EntityType;
|
||||
import org.bukkit.entity.LivingEntity;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
import nautilus.game.arcade.ArcadeManager;
|
||||
import nautilus.game.arcade.kit.Kit;
|
||||
import nautilus.game.arcade.kit.KitAvailability;
|
||||
import nautilus.game.arcade.kit.Perk;
|
||||
|
||||
/**
|
||||
* KitSurvivalist
|
||||
*
|
||||
* @author xXVevzZXx
|
||||
*/
|
||||
public class KitSurvivalist extends Kit
|
||||
{
|
||||
public KitSurvivalist(ArcadeManager manager)
|
||||
{
|
||||
super(manager, "Survivalist", KitAvailability.Free,
|
||||
new String[]
|
||||
{
|
||||
"You are a survival expert!",
|
||||
},
|
||||
new Perk[]
|
||||
{
|
||||
|
||||
},
|
||||
EntityType.PLAYER,
|
||||
new ItemStack(Material.AIR));
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void GiveItems(Player player)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void SpawnCustom(LivingEntity ent)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
@ -11,6 +11,7 @@ import nautilus.game.arcade.ArcadeManager;
|
||||
import nautilus.game.arcade.game.Game;
|
||||
import nautilus.game.arcade.game.Game.GameState;
|
||||
import nautilus.game.arcade.game.GameTeam;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
@ -25,6 +26,7 @@ import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedList;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
public class GameChatManager implements Listener
|
||||
{
|
||||
@ -131,20 +133,14 @@ public class GameChatManager implements Listener
|
||||
|
||||
event.setMessage(event.getMessage().substring(1, event.getMessage().length()));
|
||||
event.setFormat(levelStr + C.cDPurple + C.Bold + "Party " + C.cWhite + C.Bold + event.getPlayer().getName() + " " + C.cPurple + "%2$s");
|
||||
|
||||
for (String member : party.getMembers())
|
||||
{
|
||||
Player other = UtilPlayer.searchExact(member);
|
||||
|
||||
if (other != null)
|
||||
event.getRecipients().add(other);
|
||||
}
|
||||
event.getRecipients().addAll(party.getMembersByUUID().stream().map(Bukkit::getPlayer).collect(Collectors.toList()));
|
||||
}
|
||||
else
|
||||
{
|
||||
UtilPlayer.message(sender, F.main("Party", "You are not in a Party."));
|
||||
UtilPlayer.message(event.getPlayer(), F.main("Party", "You are not in a Party."));
|
||||
event.setCancelled(true);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@ -156,7 +152,7 @@ public class GameChatManager implements Listener
|
||||
format = event.getFormat().split(rankStr)[0];
|
||||
|
||||
name = _manager.GetColor(sender) + sender.getName() + C.Reset;
|
||||
if (event.getMessage().charAt(0) == '@')
|
||||
if (event.getMessage().charAt(0) == '#')
|
||||
message = event.getFormat().split(sender.getName())[1].replace("%2$s", "") + _manager.GetChat().getFilteredMessage(sender, event.getMessage().substring(1, event.getMessage().length()));
|
||||
else
|
||||
message = event.getFormat().split(sender.getName())[1].replace("%2$s", "") + _manager.GetChat().getFilteredMessage(sender, event.getMessage());
|
||||
|
Loading…
Reference in New Issue
Block a user