diff --git a/Plugins/Mineplex.Bungee.Mineplexer/pom.xml b/Plugins/Mineplex.Bungee.Mineplexer/pom.xml
index b32fcf94a..4b46f2b44 100644
--- a/Plugins/Mineplex.Bungee.Mineplexer/pom.xml
+++ b/Plugins/Mineplex.Bungee.Mineplexer/pom.xml
@@ -28,10 +28,6 @@
commons-codec
commons-codec
-
- net.kencochrane.raven
- raven
-
net.md-5
bungeecord-proxy
diff --git a/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/Mineplexer.java b/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/Mineplexer.java
index e780804a7..91039533d 100644
--- a/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/Mineplexer.java
+++ b/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/Mineplexer.java
@@ -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);
diff --git a/Plugins/Mineplex.Core/src/mineplex/core/antihack/AntiHack.java b/Plugins/Mineplex.Core/src/mineplex/core/antihack/AntiHack.java
index 2bd3903b3..bf74a6d2e 100644
--- a/Plugins/Mineplex.Core/src/mineplex/core/antihack/AntiHack.java
+++ b/Plugins/Mineplex.Core/src/mineplex/core/antihack/AntiHack.java
@@ -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);
diff --git a/Plugins/Mineplex.Core/src/mineplex/core/bonuses/BonusManager.java b/Plugins/Mineplex.Core/src/mineplex/core/bonuses/BonusManager.java
index f31e9ce0a..52ee5f2f9 100644
--- a/Plugins/Mineplex.Core/src/mineplex/core/bonuses/BonusManager.java
+++ b/Plugins/Mineplex.Core/src/mineplex/core/bonuses/BonusManager.java
@@ -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 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 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 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 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 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 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 implements I
return "SELECT * FROM bonus WHERE accountId = '" + accountId + "';";
}
- public BoosterManager getBoosterManager()
+ public ThankManager getThankManager()
{
- return _boosterManager;
+ return _thankManager;
}
+
}
diff --git a/Plugins/Mineplex.Core/src/mineplex/core/bonuses/commands/GuiCommand.java b/Plugins/Mineplex.Core/src/mineplex/core/bonuses/commands/GuiCommand.java
index 649f964e3..7ed6615fd 100644
--- a/Plugins/Mineplex.Core/src/mineplex/core/bonuses/commands/GuiCommand.java
+++ b/Plugins/Mineplex.Core/src/mineplex/core/bonuses/commands/GuiCommand.java
@@ -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
@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();
}
}
diff --git a/Plugins/Mineplex.Core/src/mineplex/core/bonuses/gui/BonusGui.java b/Plugins/Mineplex.Core/src/mineplex/core/bonuses/gui/BonusGui.java
index a8fef8c82..d5beff79e 100644
--- a/Plugins/Mineplex.Core/src/mineplex/core/bonuses/gui/BonusGui.java
+++ b/Plugins/Mineplex.Core/src/mineplex/core/bonuses/gui/BonusGui.java
@@ -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));
}
diff --git a/Plugins/Mineplex.Core/src/mineplex/core/bonuses/gui/buttons/ClaimTipsButton.java b/Plugins/Mineplex.Core/src/mineplex/core/bonuses/gui/buttons/ClaimTipsButton.java
index e8a3d062d..e866c415b 100644
--- a/Plugins/Mineplex.Core/src/mineplex/core/bonuses/gui/buttons/ClaimTipsButton.java
+++ b/Plugins/Mineplex.Core/src/mineplex/core/bonuses/gui/buttons/ClaimTipsButton.java
@@ -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()
diff --git a/Plugins/Mineplex.Core/src/mineplex/core/boosters/BoosterManager.java b/Plugins/Mineplex.Core/src/mineplex/core/boosters/BoosterManager.java
index 4254f6594..eec3e3c22 100644
--- a/Plugins/Mineplex.Core/src/mineplex/core/boosters/BoosterManager.java
+++ b/Plugins/Mineplex.Core/src/mineplex/core/boosters/BoosterManager.java
@@ -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> _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;
}
/**
diff --git a/Plugins/Mineplex.Core/src/mineplex/core/boosters/command/ThankCommand.java b/Plugins/Mineplex.Core/src/mineplex/core/boosters/command/ThankCommand.java
index 0670ce643..b6a379fc0 100644
--- a/Plugins/Mineplex.Core/src/mineplex/core/boosters/command/ThankCommand.java
+++ b/Plugins/Mineplex.Core/src/mineplex/core/boosters/command/ThankCommand.java
@@ -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
}
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)
diff --git a/Plugins/Mineplex.Core/src/mineplex/core/boosters/tips/BoosterThankManager.java b/Plugins/Mineplex.Core/src/mineplex/core/boosters/tips/BoosterThankManager.java
new file mode 100644
index 000000000..c3ae99372
--- /dev/null
+++ b/Plugins/Mineplex.Core/src/mineplex/core/boosters/tips/BoosterThankManager.java
@@ -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 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;
+ }
+}
diff --git a/Plugins/Mineplex.Core/src/mineplex/core/boosters/tips/BoosterThankRepository.java b/Plugins/Mineplex.Core/src/mineplex/core/boosters/tips/BoosterThankRepository.java
new file mode 100644
index 000000000..8fd26265e
--- /dev/null
+++ b/Plugins/Mineplex.Core/src/mineplex/core/boosters/tips/BoosterThankRepository.java
@@ -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()
+ {
+
+ }
+}
diff --git a/Plugins/Mineplex.Core/src/mineplex/core/boosters/tips/BoosterTipManager.java b/Plugins/Mineplex.Core/src/mineplex/core/boosters/tips/BoosterTipManager.java
deleted file mode 100644
index ff31ce07e..000000000
--- a/Plugins/Mineplex.Core/src/mineplex/core/boosters/tips/BoosterTipManager.java
+++ /dev/null
@@ -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
-{
- 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 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 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);
- }
-}
diff --git a/Plugins/Mineplex.Core/src/mineplex/core/boosters/tips/BoosterTipRepository.java b/Plugins/Mineplex.Core/src/mineplex/core/boosters/tips/BoosterTipRepository.java
deleted file mode 100644
index 6ece1a5b2..000000000
--- a/Plugins/Mineplex.Core/src/mineplex/core/boosters/tips/BoosterTipRepository.java
+++ /dev/null
@@ -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()
- {
-
- }
-}
diff --git a/Plugins/Mineplex.Core/src/mineplex/core/boosters/tips/TipAddResult.java b/Plugins/Mineplex.Core/src/mineplex/core/boosters/tips/TipAddResult.java
index 965a8e738..aa657b6e2 100644
--- a/Plugins/Mineplex.Core/src/mineplex/core/boosters/tips/TipAddResult.java
+++ b/Plugins/Mineplex.Core/src/mineplex/core/boosters/tips/TipAddResult.java
@@ -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);
diff --git a/Plugins/Mineplex.Core/src/mineplex/core/chat/Chat.java b/Plugins/Mineplex.Core/src/mineplex/core/chat/Chat.java
index effa0f484..c27c6a00a 100644
--- a/Plugins/Mineplex.Core/src/mineplex/core/chat/Chat.java
+++ b/Plugins/Mineplex.Core/src/mineplex/core/chat/Chat.java
@@ -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> _highPriorityFilters = new ArrayList<>();
private List> _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.
*/
diff --git a/Plugins/Mineplex.Core/src/mineplex/core/party/manager/PartyInviteManager.java b/Plugins/Mineplex.Core/src/mineplex/core/party/manager/PartyInviteManager.java
index b05477683..bfff39b40 100644
--- a/Plugins/Mineplex.Core/src/mineplex/core/party/manager/PartyInviteManager.java
+++ b/Plugins/Mineplex.Core/src/mineplex/core/party/manager/PartyInviteManager.java
@@ -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);
}
/**
diff --git a/Plugins/Mineplex.Core/src/mineplex/core/party/manager/PartyRedisManager.java b/Plugins/Mineplex.Core/src/mineplex/core/party/manager/PartyRedisManager.java
index 4f1d01473..993fe1a5f 100644
--- a/Plugins/Mineplex.Core/src/mineplex/core/party/manager/PartyRedisManager.java
+++ b/Plugins/Mineplex.Core/src/mineplex/core/party/manager/PartyRedisManager.java
@@ -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();
+ }
+ }
}
\ No newline at end of file
diff --git a/Plugins/Mineplex.Core/src/mineplex/core/portal/Portal.java b/Plugins/Mineplex.Core/src/mineplex/core/portal/Portal.java
index 1b02de296..0e872a0c4 100644
--- a/Plugins/Mineplex.Core/src/mineplex/core/portal/Portal.java
+++ b/Plugins/Mineplex.Core/src/mineplex/core/portal/Portal.java
@@ -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;
}
diff --git a/Plugins/Mineplex.Core/src/mineplex/core/thank/ClaimThankResult.java b/Plugins/Mineplex.Core/src/mineplex/core/thank/ClaimThankResult.java
new file mode 100644
index 000000000..c57c977da
--- /dev/null
+++ b/Plugins/Mineplex.Core/src/mineplex/core/thank/ClaimThankResult.java
@@ -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;
+ }
+}
diff --git a/Plugins/Mineplex.Core/src/mineplex/core/thank/ThankData.java b/Plugins/Mineplex.Core/src/mineplex/core/thank/ThankData.java
new file mode 100644
index 000000000..2a25ead78
--- /dev/null
+++ b/Plugins/Mineplex.Core/src/mineplex/core/thank/ThankData.java
@@ -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;
+ }
+}
diff --git a/Plugins/Mineplex.Core/src/mineplex/core/thank/ThankManager.java b/Plugins/Mineplex.Core/src/mineplex/core/thank/ThankManager.java
new file mode 100644
index 000000000..e258f82bb
--- /dev/null
+++ b/Plugins/Mineplex.Core/src/mineplex/core/thank/ThankManager.java
@@ -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
+{
+ 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 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 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 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);
+ }
+}
diff --git a/Plugins/Mineplex.Core/src/mineplex/core/thank/ThankRepository.java b/Plugins/Mineplex.Core/src/mineplex/core/thank/ThankRepository.java
new file mode 100644
index 000000000..d426009fa
--- /dev/null
+++ b/Plugins/Mineplex.Core/src/mineplex/core/thank/ThankRepository.java
@@ -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;
+ }
+}
diff --git a/Plugins/Mineplex.Core/src/mineplex/core/thank/ThankResult.java b/Plugins/Mineplex.Core/src/mineplex/core/thank/ThankResult.java
new file mode 100644
index 000000000..8b0c8e6c3
--- /dev/null
+++ b/Plugins/Mineplex.Core/src/mineplex/core/thank/ThankResult.java
@@ -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
+}
diff --git a/Plugins/Mineplex.Core/src/mineplex/core/thank/command/ThankCommand.java b/Plugins/Mineplex.Core/src/mineplex/core/thank/command/ThankCommand.java
new file mode 100644
index 000000000..ac26750e1
--- /dev/null
+++ b/Plugins/Mineplex.Core/src/mineplex/core/thank/command/ThankCommand.java
@@ -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
+{
+ 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 ")));
+ 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);
+ }
+ });
+ }
+ }
+}
diff --git a/Plugins/Mineplex.Database/src/mineplex/database/Account.java b/Plugins/Mineplex.Database/src/mineplex/database/Account.java
index c9e7b6499..97cffe5a9 100644
--- a/Plugins/Mineplex.Database/src/mineplex/database/Account.java
+++ b/Plugins/Mineplex.Database/src/mineplex/database/Account.java
@@ -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 Account
@@ -39,6 +39,7 @@ public class Account extends org.jooq.impl.SchemaImpl implements java.io.Seriali
private final java.util.List> getTables0() {
return java.util.Arrays.>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);
}
}
diff --git a/Plugins/Mineplex.Database/src/mineplex/database/Keys.java b/Plugins/Mineplex.Database/src/mineplex/database/Keys.java
index 84db331ea..3b8624355 100644
--- a/Plugins/Mineplex.Database/src/mineplex/database/Keys.java
+++ b/Plugins/Mineplex.Database/src/mineplex/database/Keys.java
@@ -35,6 +35,7 @@ public class Keys {
public static final org.jooq.Identity IDENTITY_accountPurchases = Identities0.IDENTITY_accountPurchases;
public static final org.jooq.Identity IDENTITY_accounts = Identities0.IDENTITY_accounts;
public static final org.jooq.Identity IDENTITY_accountTasks = Identities0.IDENTITY_accountTasks;
+ public static final org.jooq.Identity IDENTITY_accountThankTransactions = Identities0.IDENTITY_accountThankTransactions;
public static final org.jooq.Identity IDENTITY_accountTipClaimLogs = Identities0.IDENTITY_accountTipClaimLogs;
public static final org.jooq.Identity IDENTITY_accountTransactions = Identities0.IDENTITY_accountTransactions;
public static final org.jooq.Identity IDENTITY_battlePets = Identities0.IDENTITY_battlePets;
@@ -48,6 +49,7 @@ public class Keys {
public static final org.jooq.Identity IDENTITY_clans = Identities0.IDENTITY_clans;
public static final org.jooq.Identity IDENTITY_clanServer = Identities0.IDENTITY_clanServer;
public static final org.jooq.Identity IDENTITY_clanShopItem = Identities0.IDENTITY_clanShopItem;
+ public static final org.jooq.Identity IDENTITY_clansNetherPortals = Identities0.IDENTITY_clansNetherPortals;
public static final org.jooq.Identity IDENTITY_clanTerritory = Identities0.IDENTITY_clanTerritory;
public static final org.jooq.Identity IDENTITY_clanWar = Identities0.IDENTITY_clanWar;
public static final org.jooq.Identity IDENTITY_customData = Identities0.IDENTITY_customData;
@@ -76,11 +78,14 @@ public class Keys {
public static final org.jooq.Identity IDENTITY_tournaments = Identities0.IDENTITY_tournaments;
public static final org.jooq.Identity IDENTITY_tournamentTeams = Identities0.IDENTITY_tournamentTeams;
public static final org.jooq.Identity IDENTITY_transactions = Identities0.IDENTITY_transactions;
+ public static final org.jooq.Identity IDENTITY_unicodereplacer = Identities0.IDENTITY_unicodereplacer;
+ public static final org.jooq.Identity IDENTITY_youtube = Identities0.IDENTITY_youtube;
// -------------------------------------------------------------------------
// UNIQUE and PRIMARY KEY definitions
// -------------------------------------------------------------------------
+ public static final org.jooq.UniqueKey KEY_accountAmplifierThank_PRIMARY = UniqueKeys0.KEY_accountAmplifierThank_PRIMARY;
public static final org.jooq.UniqueKey KEY_accountAuth_PRIMARY = UniqueKeys0.KEY_accountAuth_PRIMARY;
public static final org.jooq.UniqueKey KEY_accountClan_PRIMARY = UniqueKeys0.KEY_accountClan_PRIMARY;
public static final org.jooq.UniqueKey KEY_accountCoinTransactions_PRIMARY = UniqueKeys0.KEY_accountCoinTransactions_PRIMARY;
@@ -104,11 +109,14 @@ public class Keys {
public static final org.jooq.UniqueKey KEY_accounts_uuidIndex = UniqueKeys0.KEY_accounts_uuidIndex;
public static final org.jooq.UniqueKey KEY_accountStat_PRIMARY = UniqueKeys0.KEY_accountStat_PRIMARY;
public static final org.jooq.UniqueKey KEY_accountTasks_PRIMARY = UniqueKeys0.KEY_accountTasks_PRIMARY;
+ public static final org.jooq.UniqueKey KEY_accountThank_PRIMARY = UniqueKeys0.KEY_accountThank_PRIMARY;
+ public static final org.jooq.UniqueKey KEY_accountThankTransactions_PRIMARY = UniqueKeys0.KEY_accountThankTransactions_PRIMARY;
public static final org.jooq.UniqueKey KEY_accountTip_PRIMARY = UniqueKeys0.KEY_accountTip_PRIMARY;
public static final org.jooq.UniqueKey KEY_accountTipClaimLogs_PRIMARY = UniqueKeys0.KEY_accountTipClaimLogs_PRIMARY;
public static final org.jooq.UniqueKey KEY_accountTipLogs_PRIMARY = UniqueKeys0.KEY_accountTipLogs_PRIMARY;
public static final org.jooq.UniqueKey KEY_accountTransactions_PRIMARY = UniqueKeys0.KEY_accountTransactions_PRIMARY;
public static final org.jooq.UniqueKey KEY_accountValentinesGift_PRIMARY = UniqueKeys0.KEY_accountValentinesGift_PRIMARY;
+ public static final org.jooq.UniqueKey KEY_accountWebsiteLinkCode_PRIMARY = UniqueKeys0.KEY_accountWebsiteLinkCode_PRIMARY;
public static final org.jooq.UniqueKey KEY_activeTournaments_PRIMARY = UniqueKeys0.KEY_activeTournaments_PRIMARY;
public static final org.jooq.UniqueKey KEY_battlePets_PRIMARY = UniqueKeys0.KEY_battlePets_PRIMARY;
public static final org.jooq.UniqueKey KEY_bonus_PRIMARY = UniqueKeys0.KEY_bonus_PRIMARY;
@@ -117,6 +125,7 @@ public class Keys {
public static final org.jooq.UniqueKey KEY_botSpam_unique_text = UniqueKeys0.KEY_botSpam_unique_text;
public static final org.jooq.UniqueKey KEY_chatsnap_PRIMARY = UniqueKeys0.KEY_chatsnap_PRIMARY;
public static final org.jooq.UniqueKey KEY_clanAlliances_PRIMARY = UniqueKeys0.KEY_clanAlliances_PRIMARY;
+ public static final org.jooq.UniqueKey KEY_clanBanners_PRIMARY = UniqueKeys0.KEY_clanBanners_PRIMARY;
public static final org.jooq.UniqueKey KEY_clanBans_PRIMARY = UniqueKeys0.KEY_clanBans_PRIMARY;
public static final org.jooq.UniqueKey KEY_clanEnemies_PRIMARY = UniqueKeys0.KEY_clanEnemies_PRIMARY;
public static final org.jooq.UniqueKey KEY_clanEnemies_unique_clanId = UniqueKeys0.KEY_clanEnemies_unique_clanId;
@@ -126,8 +135,10 @@ public class Keys {
public static final org.jooq.UniqueKey KEY_clans_clanName = UniqueKeys0.KEY_clans_clanName;
public static final org.jooq.UniqueKey KEY_clanServer_PRIMARY = UniqueKeys0.KEY_clanServer_PRIMARY;
public static final org.jooq.UniqueKey KEY_clanServer_unique_serverName = UniqueKeys0.KEY_clanServer_unique_serverName;
+ public static final org.jooq.UniqueKey KEY_clansGold_PRIMARY = UniqueKeys0.KEY_clansGold_PRIMARY;
public static final org.jooq.UniqueKey KEY_clanShopItem_PRIMARY = UniqueKeys0.KEY_clanShopItem_PRIMARY;
public static final org.jooq.UniqueKey KEY_clanShopItem_shop_page_slot_UNIQUE = UniqueKeys0.KEY_clanShopItem_shop_page_slot_UNIQUE;
+ public static final org.jooq.UniqueKey KEY_clansNetherPortals_PRIMARY = UniqueKeys0.KEY_clansNetherPortals_PRIMARY;
public static final org.jooq.UniqueKey KEY_clansOutposts_PRIMARY = UniqueKeys0.KEY_clansOutposts_PRIMARY;
public static final org.jooq.UniqueKey KEY_clansPvpTimer_PRIMARY = UniqueKeys0.KEY_clansPvpTimer_PRIMARY;
public static final org.jooq.UniqueKey KEY_clansSiegeWeapons_PRIMARY = UniqueKeys0.KEY_clansSiegeWeapons_PRIMARY;
@@ -154,7 +165,6 @@ public class Keys {
public static final org.jooq.UniqueKey KEY_items_name_UNIQUE = UniqueKeys0.KEY_items_name_UNIQUE;
public static final org.jooq.UniqueKey KEY_items_uniqueNameCategoryIndex = UniqueKeys0.KEY_items_uniqueNameCategoryIndex;
public static final org.jooq.UniqueKey KEY_kitProgression_PRIMARY = UniqueKeys0.KEY_kitProgression_PRIMARY;
- public static final org.jooq.UniqueKey KEY_kit_progression_PRIMARY = UniqueKeys0.KEY_kit_progression_PRIMARY;
public static final org.jooq.UniqueKey KEY_mail_PRIMARY = UniqueKeys0.KEY_mail_PRIMARY;
public static final org.jooq.UniqueKey KEY_mailbox_PRIMARY = UniqueKeys0.KEY_mailbox_PRIMARY;
public static final org.jooq.UniqueKey KEY_npcs_PRIMARY = UniqueKeys0.KEY_npcs_PRIMARY;
@@ -162,6 +172,7 @@ public class Keys {
public static final org.jooq.UniqueKey KEY_playerMap_PRIMARY = UniqueKeys0.KEY_playerMap_PRIMARY;
public static final org.jooq.UniqueKey KEY_playerMap_playerIndex = UniqueKeys0.KEY_playerMap_playerIndex;
public static final org.jooq.UniqueKey KEY_polls_PRIMARY = UniqueKeys0.KEY_polls_PRIMARY;
+ public static final org.jooq.UniqueKey KEY_powerPlayClub_PRIMARY = UniqueKeys0.KEY_powerPlayClub_PRIMARY;
public static final org.jooq.UniqueKey KEY_rankBenefits_PRIMARY = UniqueKeys0.KEY_rankBenefits_PRIMARY;
public static final org.jooq.UniqueKey KEY_rankedBans_PRIMARY = UniqueKeys0.KEY_rankedBans_PRIMARY;
public static final org.jooq.UniqueKey KEY_reportTickets_PRIMARY = UniqueKeys0.KEY_reportTickets_PRIMARY;
@@ -183,11 +194,15 @@ public class Keys {
public static final org.jooq.UniqueKey KEY_tournaments_PRIMARY = UniqueKeys0.KEY_tournaments_PRIMARY;
public static final org.jooq.UniqueKey KEY_tournamentTeams_PRIMARY = UniqueKeys0.KEY_tournamentTeams_PRIMARY;
public static final org.jooq.UniqueKey KEY_transactions_PRIMARY = UniqueKeys0.KEY_transactions_PRIMARY;
+ public static final org.jooq.UniqueKey KEY_unicodereplacer_PRIMARY = UniqueKeys0.KEY_unicodereplacer_PRIMARY;
+ public static final org.jooq.UniqueKey KEY_unicodereplacer_unicode = UniqueKeys0.KEY_unicodereplacer_unicode;
+ public static final org.jooq.UniqueKey KEY_youtube_PRIMARY = UniqueKeys0.KEY_youtube_PRIMARY;
// -------------------------------------------------------------------------
// FOREIGN KEY definitions
// -------------------------------------------------------------------------
+ public static final org.jooq.ForeignKey accountAmplifierThank_accounts_id_fk = ForeignKeys0.accountAmplifierThank_accounts_id_fk;
public static final org.jooq.ForeignKey accountAuth_accounts_id_fk = ForeignKeys0.accountAuth_accounts_id_fk;
public static final org.jooq.ForeignKey FK_ACT_ACCOUNTS_ID = ForeignKeys0.FK_ACT_ACCOUNTS_ID;
public static final org.jooq.ForeignKey CUSTOMDATA_ACCOUNT = ForeignKeys0.CUSTOMDATA_ACCOUNT;
@@ -208,6 +223,9 @@ public class Keys {
public static final org.jooq.ForeignKey accountStat_stat = ForeignKeys0.accountStat_stat;
public static final org.jooq.ForeignKey ACCOUNTTASKS_ACCOUNTID = ForeignKeys0.ACCOUNTTASKS_ACCOUNTID;
public static final org.jooq.ForeignKey ACCOUNTTASKS_TASKID = ForeignKeys0.ACCOUNTTASKS_TASKID;
+ public static final org.jooq.ForeignKey accountThank_accounts_id_fk = ForeignKeys0.accountThank_accounts_id_fk;
+ public static final org.jooq.ForeignKey accountThankTransactions_accounts_id_fk2 = ForeignKeys0.accountThankTransactions_accounts_id_fk2;
+ public static final org.jooq.ForeignKey accountThankTransactions_accounts_id_fk = ForeignKeys0.accountThankTransactions_accounts_id_fk;
public static final org.jooq.ForeignKey accountTips_accounts_id_fk = ForeignKeys0.accountTips_accounts_id_fk;
public static final org.jooq.ForeignKey accountTipClaimLogs_accounts_id_fk = ForeignKeys0.accountTipClaimLogs_accounts_id_fk;
public static final org.jooq.ForeignKey accountTipLogs_accounts_id_fk = ForeignKeys0.accountTipLogs_accounts_id_fk;
@@ -215,18 +233,23 @@ public class Keys {
public static final org.jooq.ForeignKey ACCOUNTTRANSACTIONS_TRANSACTIONID = ForeignKeys0.ACCOUNTTRANSACTIONS_TRANSACTIONID;
public static final org.jooq.ForeignKey accountValentines_sender_fk = ForeignKeys0.accountValentines_sender_fk;
public static final org.jooq.ForeignKey accountValentines_target_fk = ForeignKeys0.accountValentines_target_fk;
+ public static final org.jooq.ForeignKey accountWebsiteLinkCode_ibfk_1 = ForeignKeys0.accountWebsiteLinkCode_ibfk_1;
public static final org.jooq.ForeignKey bonus_ibfk_1 = ForeignKeys0.bonus_ibfk_1;
public static final org.jooq.ForeignKey bonusLogAccountId = ForeignKeys0.bonusLogAccountId;
public static final org.jooq.ForeignKey bonusLogItemId = ForeignKeys0.bonusLogItemId;
+ public static final org.jooq.ForeignKey clansGold_ibfk_1 = ForeignKeys0.clansGold_ibfk_1;
+ public static final org.jooq.ForeignKey clansGold_ibfk_2 = ForeignKeys0.clansGold_ibfk_2;
public static final org.jooq.ForeignKey ELORATING_ACCOUNTID = ForeignKeys0.ELORATING_ACCOUNTID;
public static final org.jooq.ForeignKey facebook_accounts_id_fk = ForeignKeys0.facebook_accounts_id_fk;
public static final org.jooq.ForeignKey gadgets_ibfk_1 = ForeignKeys0.gadgets_ibfk_1;
public static final org.jooq.ForeignKey mail_ibfk_1 = ForeignKeys0.mail_ibfk_1;
public static final org.jooq.ForeignKey mailbox_ibfk_1 = ForeignKeys0.mailbox_ibfk_1;
+ public static final org.jooq.ForeignKey powerPlayClub_ibfk_1 = ForeignKeys0.powerPlayClub_ibfk_1;
public static final org.jooq.ForeignKey rankBenefits_ibfk_1 = ForeignKeys0.rankBenefits_ibfk_1;
public static final org.jooq.ForeignKey titanGiveaway_ibfk_1 = ForeignKeys0.titanGiveaway_ibfk_1;
public static final org.jooq.ForeignKey TEAM_TOURNAMENT_KEY = ForeignKeys0.TEAM_TOURNAMENT_KEY;
public static final org.jooq.ForeignKey TEAM_TOURNAMENT_ACCOUNT_ID = ForeignKeys0.TEAM_TOURNAMENT_ACCOUNT_ID;
+ public static final org.jooq.ForeignKey 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 IDENTITY_accountPurchases = createIdentity(mineplex.database.tables.AccountPurchases.accountPurchases, mineplex.database.tables.AccountPurchases.accountPurchases.id);
public static org.jooq.Identity IDENTITY_accounts = createIdentity(mineplex.database.tables.Accounts.accounts, mineplex.database.tables.Accounts.accounts.id);
public static org.jooq.Identity IDENTITY_accountTasks = createIdentity(mineplex.database.tables.AccountTasks.accountTasks, mineplex.database.tables.AccountTasks.accountTasks.id);
+ public static org.jooq.Identity IDENTITY_accountThankTransactions = createIdentity(mineplex.database.tables.AccountThankTransactions.accountThankTransactions, mineplex.database.tables.AccountThankTransactions.accountThankTransactions.id);
public static org.jooq.Identity IDENTITY_accountTipClaimLogs = createIdentity(mineplex.database.tables.AccountTipClaimLogs.accountTipClaimLogs, mineplex.database.tables.AccountTipClaimLogs.accountTipClaimLogs.id);
public static org.jooq.Identity IDENTITY_accountTransactions = createIdentity(mineplex.database.tables.AccountTransactions.accountTransactions, mineplex.database.tables.AccountTransactions.accountTransactions.id);
public static org.jooq.Identity 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 IDENTITY_clans = createIdentity(mineplex.database.tables.Clans.clans, mineplex.database.tables.Clans.clans.id);
public static org.jooq.Identity IDENTITY_clanServer = createIdentity(mineplex.database.tables.ClanServer.clanServer, mineplex.database.tables.ClanServer.clanServer.id);
public static org.jooq.Identity IDENTITY_clanShopItem = createIdentity(mineplex.database.tables.ClanShopItem.clanShopItem, mineplex.database.tables.ClanShopItem.clanShopItem.id);
+ public static org.jooq.Identity IDENTITY_clansNetherPortals = createIdentity(mineplex.database.tables.ClansNetherPortals.clansNetherPortals, mineplex.database.tables.ClansNetherPortals.clansNetherPortals.id);
public static org.jooq.Identity IDENTITY_clanTerritory = createIdentity(mineplex.database.tables.ClanTerritory.clanTerritory, mineplex.database.tables.ClanTerritory.clanTerritory.id);
public static org.jooq.Identity IDENTITY_clanWar = createIdentity(mineplex.database.tables.ClanWar.clanWar, mineplex.database.tables.ClanWar.clanWar.id);
public static org.jooq.Identity 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 IDENTITY_tournaments = createIdentity(mineplex.database.tables.Tournaments.tournaments, mineplex.database.tables.Tournaments.tournaments.id);
public static org.jooq.Identity IDENTITY_tournamentTeams = createIdentity(mineplex.database.tables.TournamentTeams.tournamentTeams, mineplex.database.tables.TournamentTeams.tournamentTeams.id);
public static org.jooq.Identity IDENTITY_transactions = createIdentity(mineplex.database.tables.Transactions.transactions, mineplex.database.tables.Transactions.transactions.id);
+ public static org.jooq.Identity IDENTITY_unicodereplacer = createIdentity(mineplex.database.tables.Unicodereplacer.unicodereplacer, mineplex.database.tables.Unicodereplacer.unicodereplacer.id);
+ public static org.jooq.Identity 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 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 KEY_accountAuth_PRIMARY = createUniqueKey(mineplex.database.tables.AccountAuth.accountAuth, mineplex.database.tables.AccountAuth.accountAuth.id);
public static final org.jooq.UniqueKey KEY_accountClan_PRIMARY = createUniqueKey(mineplex.database.tables.AccountClan.accountClan, mineplex.database.tables.AccountClan.accountClan.id);
public static final org.jooq.UniqueKey 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 KEY_accounts_uuidIndex = createUniqueKey(mineplex.database.tables.Accounts.accounts, mineplex.database.tables.Accounts.accounts.uuid);
public static final org.jooq.UniqueKey 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 KEY_accountTasks_PRIMARY = createUniqueKey(mineplex.database.tables.AccountTasks.accountTasks, mineplex.database.tables.AccountTasks.accountTasks.id);
+ public static final org.jooq.UniqueKey KEY_accountThank_PRIMARY = createUniqueKey(mineplex.database.tables.AccountThank.accountThank, mineplex.database.tables.AccountThank.accountThank.accountId);
+ public static final org.jooq.UniqueKey KEY_accountThankTransactions_PRIMARY = createUniqueKey(mineplex.database.tables.AccountThankTransactions.accountThankTransactions, mineplex.database.tables.AccountThankTransactions.accountThankTransactions.id);
public static final org.jooq.UniqueKey KEY_accountTip_PRIMARY = createUniqueKey(mineplex.database.tables.AccountTip.accountTip, mineplex.database.tables.AccountTip.accountTip.accountId);
public static final org.jooq.UniqueKey KEY_accountTipClaimLogs_PRIMARY = createUniqueKey(mineplex.database.tables.AccountTipClaimLogs.accountTipClaimLogs, mineplex.database.tables.AccountTipClaimLogs.accountTipClaimLogs.id);
public static final org.jooq.UniqueKey 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 KEY_accountTransactions_PRIMARY = createUniqueKey(mineplex.database.tables.AccountTransactions.accountTransactions, mineplex.database.tables.AccountTransactions.accountTransactions.id);
public static final org.jooq.UniqueKey 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 KEY_accountWebsiteLinkCode_PRIMARY = createUniqueKey(mineplex.database.tables.AccountWebsiteLinkCode.accountWebsiteLinkCode, mineplex.database.tables.AccountWebsiteLinkCode.accountWebsiteLinkCode.accountId);
public static final org.jooq.UniqueKey KEY_activeTournaments_PRIMARY = createUniqueKey(mineplex.database.tables.ActiveTournaments.activeTournaments, mineplex.database.tables.ActiveTournaments.activeTournaments.name);
public static final org.jooq.UniqueKey KEY_battlePets_PRIMARY = createUniqueKey(mineplex.database.tables.BattlePets.battlePets, mineplex.database.tables.BattlePets.battlePets.petId);
public static final org.jooq.UniqueKey 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 KEY_botSpam_unique_text = createUniqueKey(mineplex.database.tables.BotSpam.botSpam, mineplex.database.tables.BotSpam.botSpam.text);
public static final org.jooq.UniqueKey KEY_chatsnap_PRIMARY = createUniqueKey(mineplex.database.tables.Chatsnap.chatsnap, mineplex.database.tables.Chatsnap.chatsnap.id);
public static final org.jooq.UniqueKey KEY_clanAlliances_PRIMARY = createUniqueKey(mineplex.database.tables.ClanAlliances.clanAlliances, mineplex.database.tables.ClanAlliances.clanAlliances.id);
+ public static final org.jooq.UniqueKey KEY_clanBanners_PRIMARY = createUniqueKey(mineplex.database.tables.ClanBanners.clanBanners, mineplex.database.tables.ClanBanners.clanBanners.clanId);
public static final org.jooq.UniqueKey KEY_clanBans_PRIMARY = createUniqueKey(mineplex.database.tables.ClanBans.clanBans, mineplex.database.tables.ClanBans.clanBans.id);
public static final org.jooq.UniqueKey KEY_clanEnemies_PRIMARY = createUniqueKey(mineplex.database.tables.ClanEnemies.clanEnemies, mineplex.database.tables.ClanEnemies.clanEnemies.id);
public static final org.jooq.UniqueKey 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 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 KEY_clanServer_PRIMARY = createUniqueKey(mineplex.database.tables.ClanServer.clanServer, mineplex.database.tables.ClanServer.clanServer.id);
public static final org.jooq.UniqueKey KEY_clanServer_unique_serverName = createUniqueKey(mineplex.database.tables.ClanServer.clanServer, mineplex.database.tables.ClanServer.clanServer.serverName);
+ public static final org.jooq.UniqueKey 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 KEY_clanShopItem_PRIMARY = createUniqueKey(mineplex.database.tables.ClanShopItem.clanShopItem, mineplex.database.tables.ClanShopItem.clanShopItem.id);
public static final org.jooq.UniqueKey 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 KEY_clansNetherPortals_PRIMARY = createUniqueKey(mineplex.database.tables.ClansNetherPortals.clansNetherPortals, mineplex.database.tables.ClansNetherPortals.clansNetherPortals.id);
public static final org.jooq.UniqueKey KEY_clansOutposts_PRIMARY = createUniqueKey(mineplex.database.tables.ClansOutposts.clansOutposts, mineplex.database.tables.ClansOutposts.clansOutposts.uniqueId);
public static final org.jooq.UniqueKey KEY_clansPvpTimer_PRIMARY = createUniqueKey(mineplex.database.tables.ClansPvpTimer.clansPvpTimer, mineplex.database.tables.ClansPvpTimer.clansPvpTimer.accountId);
public static final org.jooq.UniqueKey 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 KEY_items_name_UNIQUE = createUniqueKey(mineplex.database.tables.Items.items, mineplex.database.tables.Items.items.name);
public static final org.jooq.UniqueKey KEY_items_uniqueNameCategoryIndex = createUniqueKey(mineplex.database.tables.Items.items, mineplex.database.tables.Items.items.name, mineplex.database.tables.Items.items.categoryId);
public static final org.jooq.UniqueKey KEY_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 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 KEY_mail_PRIMARY = createUniqueKey(mineplex.database.tables.Mail.mail, mineplex.database.tables.Mail.mail.id);
public static final org.jooq.UniqueKey KEY_mailbox_PRIMARY = createUniqueKey(mineplex.database.tables.Mailbox.mailbox, mineplex.database.tables.Mailbox.mailbox.id);
public static final org.jooq.UniqueKey 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 KEY_playerMap_PRIMARY = createUniqueKey(mineplex.database.tables.PlayerMap.playerMap, mineplex.database.tables.PlayerMap.playerMap.id);
public static final org.jooq.UniqueKey KEY_playerMap_playerIndex = createUniqueKey(mineplex.database.tables.PlayerMap.playerMap, mineplex.database.tables.PlayerMap.playerMap.playerName);
public static final org.jooq.UniqueKey KEY_polls_PRIMARY = createUniqueKey(mineplex.database.tables.Polls.polls, mineplex.database.tables.Polls.polls.id);
+ public static final org.jooq.UniqueKey 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 KEY_rankBenefits_PRIMARY = createUniqueKey(mineplex.database.tables.RankBenefits.rankBenefits, mineplex.database.tables.RankBenefits.rankBenefits.id);
public static final org.jooq.UniqueKey KEY_rankedBans_PRIMARY = createUniqueKey(mineplex.database.tables.RankedBans.rankedBans, mineplex.database.tables.RankedBans.rankedBans.accountId);
public static final org.jooq.UniqueKey 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 KEY_tournaments_PRIMARY = createUniqueKey(mineplex.database.tables.Tournaments.tournaments, mineplex.database.tables.Tournaments.tournaments.id);
public static final org.jooq.UniqueKey KEY_tournamentTeams_PRIMARY = createUniqueKey(mineplex.database.tables.TournamentTeams.tournamentTeams, mineplex.database.tables.TournamentTeams.tournamentTeams.id);
public static final org.jooq.UniqueKey KEY_transactions_PRIMARY = createUniqueKey(mineplex.database.tables.Transactions.transactions, mineplex.database.tables.Transactions.transactions.id);
+ public static final org.jooq.UniqueKey KEY_unicodereplacer_PRIMARY = createUniqueKey(mineplex.database.tables.Unicodereplacer.unicodereplacer, mineplex.database.tables.Unicodereplacer.unicodereplacer.id);
+ public static final org.jooq.UniqueKey KEY_unicodereplacer_unicode = createUniqueKey(mineplex.database.tables.Unicodereplacer.unicodereplacer, mineplex.database.tables.Unicodereplacer.unicodereplacer.unicode);
+ public static final org.jooq.UniqueKey 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 youtube_ibfk_1 = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.Youtube.youtube, mineplex.database.tables.Youtube.youtube.accountId);
}
}
diff --git a/Plugins/Mineplex.Database/src/mineplex/database/Routines.java b/Plugins/Mineplex.Database/src/mineplex/database/Routines.java
index af540cee5..e4d6ad2b1 100644
--- a/Plugins/Mineplex.Database/src/mineplex/database/Routines.java
+++ b/Plugins/Mineplex.Database/src/mineplex/database/Routines.java
@@ -28,6 +28,21 @@ public class Routines {
return p.getSuccess();
}
+ /**
+ * Call Account.addThank
+ */
+ 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 Account.addTip
*/
@@ -42,6 +57,18 @@ public class Routines {
return p.getSuccess();
}
+ /**
+ * Call Account.checkAmplifierThank
+ */
+ 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 Account.check_daily
*/
@@ -105,6 +132,17 @@ public class Routines {
return p;
}
+ /**
+ * Call Account.claimThank
+ */
+ 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 Account.claimTips
*/
diff --git a/Plugins/Mineplex.Database/src/mineplex/database/Tables.java b/Plugins/Mineplex.Database/src/mineplex/database/Tables.java
index f4c26f567..c65a8a1c7 100644
--- a/Plugins/Mineplex.Database/src/mineplex/database/Tables.java
+++ b/Plugins/Mineplex.Database/src/mineplex/database/Tables.java
@@ -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;
}
diff --git a/Plugins/Mineplex.Database/src/mineplex/database/routines/AddThank.java b/Plugins/Mineplex.Database/src/mineplex/database/routines/AddThank.java
new file mode 100644
index 000000000..584e2c830
--- /dev/null
+++ b/Plugins/Mineplex.Database/src/mineplex/database/routines/AddThank.java
@@ -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 implements java.io.Serializable, java.lang.Cloneable {
+
+ private static final long serialVersionUID = -344701696;
+
+ /**
+ * The parameter Account.addThank.inReceiverAccountId
.
+ */
+ public static final org.jooq.Parameter inReceiverAccountId = createParameter("inReceiverAccountId", org.jooq.impl.SQLDataType.INTEGER, false);
+
+ /**
+ * The parameter Account.addThank.inSenderAccountId
.
+ */
+ public static final org.jooq.Parameter inSenderAccountId = createParameter("inSenderAccountId", org.jooq.impl.SQLDataType.INTEGER, false);
+
+ /**
+ * The parameter Account.addThank.inThankAmount
.
+ */
+ public static final org.jooq.Parameter inThankAmount = createParameter("inThankAmount", org.jooq.impl.SQLDataType.INTEGER, false);
+
+ /**
+ * The parameter Account.addThank.inReason
.
+ */
+ public static final org.jooq.Parameter inReason = createParameter("inReason", org.jooq.impl.SQLDataType.VARCHAR.length(32), false);
+
+ /**
+ * The parameter Account.addThank.inIgnoreCooldown
.
+ */
+ public static final org.jooq.Parameter inIgnoreCooldown = createParameter("inIgnoreCooldown", org.jooq.impl.SQLDataType.TINYINT, false);
+
+ /**
+ * The parameter Account.addThank.success
.
+ */
+ public static final org.jooq.Parameter 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 inReceiverAccountId
parameter IN value to the routine
+ */
+ public void setInReceiverAccountId(java.lang.Integer value) {
+ setValue(mineplex.database.routines.AddThank.inReceiverAccountId, value);
+ }
+
+ /**
+ * Set the inSenderAccountId
parameter IN value to the routine
+ */
+ public void setInSenderAccountId(java.lang.Integer value) {
+ setValue(mineplex.database.routines.AddThank.inSenderAccountId, value);
+ }
+
+ /**
+ * Set the inThankAmount
parameter IN value to the routine
+ */
+ public void setInThankAmount(java.lang.Integer value) {
+ setValue(mineplex.database.routines.AddThank.inThankAmount, value);
+ }
+
+ /**
+ * Set the inReason
parameter IN value to the routine
+ */
+ public void setInReason(java.lang.String value) {
+ setValue(mineplex.database.routines.AddThank.inReason, value);
+ }
+
+ /**
+ * Set the inIgnoreCooldown
parameter IN value to the routine
+ */
+ public void setInIgnoreCooldown(java.lang.Byte value) {
+ setValue(mineplex.database.routines.AddThank.inIgnoreCooldown, value);
+ }
+
+ /**
+ * Get the success
parameter OUT value from the routine
+ */
+ public java.lang.Byte getSuccess() {
+ return getValue(success);
+ }
+}
diff --git a/Plugins/Mineplex.Database/src/mineplex/database/routines/CheckAmplifierThank.java b/Plugins/Mineplex.Database/src/mineplex/database/routines/CheckAmplifierThank.java
new file mode 100644
index 000000000..2fd338361
--- /dev/null
+++ b/Plugins/Mineplex.Database/src/mineplex/database/routines/CheckAmplifierThank.java
@@ -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 implements java.io.Serializable, java.lang.Cloneable {
+
+ private static final long serialVersionUID = 522346006;
+
+ /**
+ * The parameter Account.checkAmplifierThank.inAccountId
.
+ */
+ public static final org.jooq.Parameter inAccountId = createParameter("inAccountId", org.jooq.impl.SQLDataType.INTEGER, false);
+
+ /**
+ * The parameter Account.checkAmplifierThank.inAmplifierId
.
+ */
+ public static final org.jooq.Parameter inAmplifierId = createParameter("inAmplifierId", org.jooq.impl.SQLDataType.INTEGER, false);
+
+ /**
+ * The parameter Account.checkAmplifierThank.canThank
.
+ */
+ public static final org.jooq.Parameter 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 inAccountId
parameter IN value to the routine
+ */
+ public void setInAccountId(java.lang.Integer value) {
+ setValue(mineplex.database.routines.CheckAmplifierThank.inAccountId, value);
+ }
+
+ /**
+ * Set the inAmplifierId
parameter IN value to the routine
+ */
+ public void setInAmplifierId(java.lang.Integer value) {
+ setValue(mineplex.database.routines.CheckAmplifierThank.inAmplifierId, value);
+ }
+
+ /**
+ * Get the canThank
parameter OUT value from the routine
+ */
+ public java.lang.Byte getCanThank() {
+ return getValue(canThank);
+ }
+}
diff --git a/Plugins/Mineplex.Database/src/mineplex/database/routines/ClaimThank.java b/Plugins/Mineplex.Database/src/mineplex/database/routines/ClaimThank.java
new file mode 100644
index 000000000..d88ec80e7
--- /dev/null
+++ b/Plugins/Mineplex.Database/src/mineplex/database/routines/ClaimThank.java
@@ -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 implements java.io.Serializable, java.lang.Cloneable {
+
+ private static final long serialVersionUID = 856582355;
+
+ /**
+ * The parameter Account.claimThank.inAccountId
.
+ */
+ public static final org.jooq.Parameter inAccountId = createParameter("inAccountId", org.jooq.impl.SQLDataType.INTEGER, false);
+
+ /**
+ * The parameter Account.claimThank.amountClaimed
.
+ */
+ public static final org.jooq.Parameter amountClaimed = createParameter("amountClaimed", org.jooq.impl.SQLDataType.INTEGER, false);
+
+ /**
+ * The parameter Account.claimThank.uniqueThank
.
+ */
+ public static final org.jooq.Parameter 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