More valentines adjustments/fix gladiators tutorial being enabled
This commit is contained in:
parent
2eeddb828b
commit
d8965179f7
@ -28,6 +28,10 @@ public class SkinData
|
||||
public final static SkinData PRESENT = new SkinData("eyJ0aW1lc3RhbXAiOjE0NTAwMTk3MDIxNjIsInByb2ZpbGVJZCI6ImE5ZDBjMDcyYmYxOTQwYTFhMTkzNjhkMDlkNTAwMjZlIiwicHJvZmlsZU5hbWUiOiJTcGlyaXR1c1NhbmN0dXMiLCJzaWduYXR1cmVSZXF1aXJlZCI6dHJ1ZSwidGV4dHVyZXMiOnsiU0tJTiI6eyJ1cmwiOiJodHRwOi8vdGV4dHVyZXMubWluZWNyYWZ0Lm5ldC90ZXh0dXJlL2U2YzRkZWQwNTdjMjhiMTU0NjVkYzQzNmFmODIyYTNkZTY4NzgyZTZjMzgyOGMzMmFhYWE4ZjRiOTIzOWVjIn19fQ==","rJNlxTqHHmOoWwbXdMQLcj0P9w/PIr/hWKXH0nbhm/S2CFo/zfefffZlnQmpKCgn1Y8tXvcRwLGQ4CLpm9m2ZrKprSWRhrnOtZWYabrhExQESEammS3TY81VoNt+4On0pAGBippz/bRfWLuDne2rDbhuljnqvxjROmxpky7gRCU06VMlm2WLFC5XYJkiAaOXBqzpiHMMRPNnCvtcbtpILKi/Luj302eyN8nRKjHHbbiDmttwvlshxZ8UxJHvALtM506IUHba10Q6QX2zCeDAU5/WYRKa6e19r8plROcgGbKYFSq8JW5cWuWT3/rveZM6FnU6ABn9DWsCyfQ5wr2jdBd+xaevGTAScRHA5J493GqL1bBZYKj9yhQFtxJHCAf0++raAVPCZgyPtwTth4TAQisn8gnhM5R+txnW6xK+oflLy0dwEN1YdPLN/h7yuDnyjSMDe9RZT2NKMjok2C6Kux4WBI0KFXKC5Gqwa3Htku4v3WEOWMaVoWOtchQ9BzpQ/etD0ylmzjALQLB+HtndEEm1Jd3tmob42X4hBE8hCce7C3EtGINB33dlx4CK1xBqyGTJEqi69DJRzVL99u98+7kJ1Db9+MaPOfI4B2RY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8WS8TRYw2JigSkWrRW0fXPBCtTtQN5jiwM5/HrTpNLzg03J6SpfZ+rr8Rhq0S/8beQOMas=");
|
||||
|
||||
private Property _skinProperty;
|
||||
|
||||
|
@ -64,7 +64,9 @@ import org.bukkit.craftbukkit.v1_8_R3.entity.CraftEntity;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.EventPriority;
|
||||
import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||
import org.bukkit.event.player.PlayerInteractAtEntityEvent;
|
||||
import org.bukkit.event.player.PlayerInteractEntityEvent;
|
||||
import org.bukkit.event.player.PlayerJoinEvent;
|
||||
import org.bukkit.event.player.PlayerQuitEvent;
|
||||
@ -817,8 +819,8 @@ public class BonusManager extends MiniClientPlugin<BonusClientData> implements I
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler(ignoreCancelled = true)
|
||||
public void openGui(PlayerInteractEntityEvent event)
|
||||
@EventHandler(priority = EventPriority.LOW, ignoreCancelled = true)
|
||||
public void openGui(PlayerInteractAtEntityEvent event)
|
||||
{
|
||||
if (!_enabled)
|
||||
return;
|
||||
@ -831,6 +833,23 @@ public class BonusManager extends MiniClientPlugin<BonusClientData> implements I
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void openGui(EntityDamageByEntityEvent event)
|
||||
{
|
||||
if (!_enabled)
|
||||
return;
|
||||
|
||||
if (event.getDamager() instanceof Player)
|
||||
{
|
||||
Player player = (Player) event.getDamager();
|
||||
if (event.getEntity().equals(_carlNpc.getEntity()))
|
||||
{
|
||||
updateDailyStreak(player);
|
||||
new BonusGui(_plugin, player, this, _rewardManager, _facebookManager).openInventory();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static long getNextVoteTime(long time) {
|
||||
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
|
@ -129,7 +129,12 @@ public class GadgetPage extends ShopPageBase<CosmeticManager, CosmeticShop>
|
||||
else if (gadget.GetCost(CurrencyType.Coins) == -6)
|
||||
{
|
||||
itemLore.add(C.cBlack);
|
||||
itemLore.add(C.cBlue + "Found in Valentines Holiday Treasure");
|
||||
itemLore.add(C.cBlue + "Found in Valentines Gifts");
|
||||
}
|
||||
else if (gadget.GetCost(CurrencyType.Coins) == -7)
|
||||
{
|
||||
itemLore.add(C.cBlack);
|
||||
itemLore.add(C.cBlue + "Purchased from shop.mineplex.com");
|
||||
}
|
||||
//Rank Unlocks
|
||||
else if (gadget.GetCost(CurrencyType.Coins) == -10)
|
||||
|
@ -5,6 +5,10 @@ import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
import mineplex.core.gadget.gadgets.hat.HatCompanion;
|
||||
import mineplex.core.gadget.gadgets.hat.HatLovestruck;
|
||||
import mineplex.core.gadget.gadgets.hat.HatSecretPackage;
|
||||
import mineplex.core.gadget.gadgets.hat.HatTeddyBear;
|
||||
import mineplex.core.gadget.gadgets.item.*;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Location;
|
||||
@ -270,6 +274,10 @@ public class GadgetManager extends MiniPlugin
|
||||
addGadget(new HatCoal(this));
|
||||
addGadget(new HatRudolph(this));
|
||||
addGadget(new HatGrinch(this));
|
||||
addGadget(new HatLovestruck(this));
|
||||
addGadget(new HatSecretPackage(this));
|
||||
addGadget(new HatTeddyBear(this));
|
||||
addGadget(new HatCompanion(this));
|
||||
|
||||
// Music
|
||||
addGadget(new MusicGadget(this, "13 Disc", new String[] {""}, -2, 2256, 178000));
|
||||
|
@ -24,7 +24,7 @@ public class ArrowTrailHearts extends ArrowEffectGadget
|
||||
{
|
||||
super(manager, "Arrows of Cupid",
|
||||
UtilText.splitLineToArray(C.cGray + "Tether your love to an arrow, then spear someone with it. Maybe they'll fall in love!", LineFormat.LORE),
|
||||
1,
|
||||
-6,
|
||||
Material.APPLE, (byte) 0);
|
||||
}
|
||||
|
||||
|
@ -27,7 +27,7 @@ public class DeathHearts extends DeathEffectGadget
|
||||
{
|
||||
super(manager, "Broken Hearted",
|
||||
UtilText.splitLineToArray(C.cGray + "Nothing hurts more than having your heart broken. Apart from being killed, that is.", LineFormat.LORE),
|
||||
1, Material.APPLE, (byte) 4);
|
||||
-6, Material.APPLE, (byte) 4);
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
|
@ -24,7 +24,7 @@ public class DoubleJumpHearts extends DoubleJumpEffectGadget
|
||||
{
|
||||
super(manager, "Wings of Love",
|
||||
UtilText.splitLineToArray(C.cGray + "Nothing hurts more than having your heart broken. Apart from being killed, that is.", LineFormat.LORE),
|
||||
1, Material.APPLE, (byte) 0);
|
||||
-6, Material.APPLE, (byte) 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -0,0 +1,19 @@
|
||||
package mineplex.core.gadget.gadgets.hat;
|
||||
|
||||
import mineplex.core.common.skin.SkinData;
|
||||
import mineplex.core.common.util.C;
|
||||
import mineplex.core.common.util.LineFormat;
|
||||
import mineplex.core.common.util.UtilText;
|
||||
import mineplex.core.gadget.GadgetManager;
|
||||
import mineplex.core.gadget.types.HatGadget;
|
||||
|
||||
public class HatCompanion extends HatGadget
|
||||
{
|
||||
public HatCompanion(GadgetManager manager)
|
||||
{
|
||||
super(manager, "Companion",
|
||||
UtilText.splitLineToArray(C.cGray + "The Enrichment Center reminds you that the Weighted Companion Cube will never threaten to stab you and, in fact, cannot speak", LineFormat.LORE),
|
||||
-6,
|
||||
SkinData.COMPANION_CUBE.getSkull());
|
||||
}
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
package mineplex.core.gadget.gadgets.hat;
|
||||
|
||||
import mineplex.core.common.skin.SkinData;
|
||||
import mineplex.core.common.util.C;
|
||||
import mineplex.core.common.util.LineFormat;
|
||||
import mineplex.core.common.util.UtilText;
|
||||
import mineplex.core.gadget.GadgetManager;
|
||||
import mineplex.core.gadget.types.HatGadget;
|
||||
|
||||
public class HatLovestruck extends HatGadget
|
||||
{
|
||||
public HatLovestruck(GadgetManager manager)
|
||||
{
|
||||
super(manager, "Lovestruck",
|
||||
UtilText.splitLineToArray(C.cGray + "I think I'm in love... Wait a minute, did someone use a love potion on me?!", LineFormat.LORE),
|
||||
-6,
|
||||
SkinData.LOVESTRUCK.getSkull());
|
||||
}
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
package mineplex.core.gadget.gadgets.hat;
|
||||
|
||||
import mineplex.core.common.skin.SkinData;
|
||||
import mineplex.core.common.util.C;
|
||||
import mineplex.core.common.util.LineFormat;
|
||||
import mineplex.core.common.util.UtilText;
|
||||
import mineplex.core.gadget.GadgetManager;
|
||||
import mineplex.core.gadget.types.HatGadget;
|
||||
|
||||
public class HatSecretPackage extends HatGadget
|
||||
{
|
||||
public HatSecretPackage(GadgetManager manager)
|
||||
{
|
||||
super(manager, "Secret Package",
|
||||
UtilText.splitLineToArray(C.cGray + "I hope Chiss is inside!", LineFormat.LORE),
|
||||
-6,
|
||||
SkinData.SECRET_PACKAGE.getSkull());
|
||||
}
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
package mineplex.core.gadget.gadgets.hat;
|
||||
|
||||
import mineplex.core.common.skin.SkinData;
|
||||
import mineplex.core.common.util.C;
|
||||
import mineplex.core.common.util.LineFormat;
|
||||
import mineplex.core.common.util.UtilText;
|
||||
import mineplex.core.gadget.GadgetManager;
|
||||
import mineplex.core.gadget.types.HatGadget;
|
||||
|
||||
public class HatTeddyBear extends HatGadget
|
||||
{
|
||||
public HatTeddyBear(GadgetManager manager)
|
||||
{
|
||||
super(manager, "Teddy Bear",
|
||||
UtilText.splitLineToArray(C.cGray + "Aww, it's a cute teddy bear! What shall I name him?", LineFormat.LORE),
|
||||
-6,
|
||||
SkinData.TEDDY_BEAR.getSkull());
|
||||
}
|
||||
}
|
@ -90,7 +90,7 @@ public class ItemBow extends ItemGadget
|
||||
{
|
||||
super(manager, "Cupid's Arrows",
|
||||
UtilText.splitLineToArray(C.cGray + "This symbol of love will live on with you forever! Mainly because we couldn't attach the cupid wings to it. I guess duct tape can't fix everything!", LineFormat.LORE),
|
||||
1, Material.BOW, (byte) 0, 1000, new Ammo("Cupid Arrow", "Cupid's Arrows", Material.ARROW, (byte) 0, UtilText.splitLineToArray(C.cGray + "Use these arrows to shoot love into people's hearts!", LineFormat.LORE), 1, 15));
|
||||
-6, Material.BOW, (byte) 0, 1000, new Ammo("Cupid Arrow", "Cupid's Arrows", Material.ARROW, (byte) 0, UtilText.splitLineToArray(C.cGray + "Use these arrows to shoot love into people's hearts!", LineFormat.LORE), -6, 15));
|
||||
|
||||
Manager.getPacketManager().addPacketHandler(_packetHandler, PacketPlayOutSpawnEntity.class);
|
||||
}
|
||||
|
@ -24,12 +24,12 @@ public class ItemFlowerGift extends ItemGadget
|
||||
{
|
||||
super(manager,
|
||||
"Valentines Gift",
|
||||
UtilText.splitLineToArray(C.cGray + "Maybe you can win over Chiss' heart with this!", LineFormat.LORE),
|
||||
1,
|
||||
UtilText.splitLineToArray(C.cGray + "Maybe if Sigils and Phinary used these they wouldn't be so alone", LineFormat.LORE),
|
||||
-7,
|
||||
Material.RED_ROSE,
|
||||
(byte) 0,
|
||||
2000,
|
||||
new Ammo("Valentines Gift", "Valentines Gift", Material.RED_ROSE, (byte) 0, UtilText.splitLineToArray(C.cGray + "Maybe you can win over Chiss' heart with this!", LineFormat.LORE), 1, 10));
|
||||
new Ammo("Valentines Gift", "Valentines Gift", Material.RED_ROSE, (byte) 0, UtilText.splitLineToArray(C.cGray + "Maybe if Sigils and Phinary used these they wouldn't be so alone", LineFormat.LORE), -7, 10));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -20,6 +20,7 @@ import mineplex.core.common.util.LineFormat;
|
||||
import mineplex.core.common.util.UtilBlock;
|
||||
import mineplex.core.common.util.UtilGear;
|
||||
import mineplex.core.common.util.UtilInv;
|
||||
import mineplex.core.common.util.UtilMath;
|
||||
import mineplex.core.common.util.UtilPlayer;
|
||||
import mineplex.core.common.util.UtilText;
|
||||
import mineplex.core.gadget.GadgetManager;
|
||||
@ -33,6 +34,12 @@ import mineplex.core.recharge.Recharge;
|
||||
|
||||
public class ItemLovePotion extends ItemGadget
|
||||
{
|
||||
private static final String[] DRINK_MESSAGES = {
|
||||
"YUCK! This does not taste like it was meant for humans.",
|
||||
"Gross! Why do I keep drinking this stuff... ",
|
||||
"BAAAAA BAAAAAAAA. Weird, that made me feel a bit sheepish."
|
||||
};
|
||||
|
||||
/**
|
||||
* Created by: Mysticate
|
||||
* Timestamp: February 6, 2016
|
||||
@ -44,7 +51,7 @@ public class ItemLovePotion extends ItemGadget
|
||||
manager,
|
||||
"Love Potion",
|
||||
UtilText.splitLineToArray(C.cGray + "It doesn't seem to affect humans..? What kind of love potion is this!?", LineFormat.LORE),
|
||||
1,
|
||||
-6,
|
||||
Material.POTION,
|
||||
(byte) 8233,
|
||||
20000,
|
||||
@ -55,7 +62,7 @@ public class ItemLovePotion extends ItemGadget
|
||||
Material.POTION,
|
||||
(byte) 8233,
|
||||
UtilText.splitLineToArray(C.cGray + "It doesn't seem to affect humans..? What kind of love potion is this!?", LineFormat.LORE),
|
||||
1,
|
||||
-6,
|
||||
16)
|
||||
);
|
||||
}
|
||||
@ -165,8 +172,9 @@ public class ItemLovePotion extends ItemGadget
|
||||
UtilInv.Update(player);
|
||||
return;
|
||||
}
|
||||
|
||||
UtilPlayer.message(player, F.main("Potion", "You drank the love potion, because why not?"));
|
||||
|
||||
String message = UtilMath.randomElement(DRINK_MESSAGES);
|
||||
UtilPlayer.message(player, F.main("Potion", message));
|
||||
|
||||
Manager.getInventoryManager().addItemToInventory(player, GetName(), -1);
|
||||
|
||||
|
@ -31,11 +31,11 @@ public class ValentinesManager extends MiniPlugin
|
||||
|
||||
private final boolean _enabled = true;
|
||||
|
||||
private final String _prefix = C.cRed + "Polly the Pink Sheep";
|
||||
private final String _prefix = C.cDPurple + "Polly";
|
||||
private final String _identifier = "Polly the Pink Sheep";
|
||||
private final String _reward = "Loving Sheeples"; // The sales package to reward
|
||||
|
||||
private final float _dropRate = .5F; // 50%
|
||||
private final float _dropRate = .1F;
|
||||
|
||||
private CoreClientManager _client;
|
||||
private DonationManager _donation;
|
||||
@ -65,8 +65,6 @@ public class ValentinesManager extends MiniPlugin
|
||||
|
||||
Player player = event.getPlayer();
|
||||
|
||||
player.sendMessage(event.getOther().getCustomName());
|
||||
|
||||
if (!event.getOther().getCustomName().contains(_identifier))
|
||||
return;
|
||||
|
||||
@ -79,11 +77,11 @@ public class ValentinesManager extends MiniPlugin
|
||||
return;
|
||||
}
|
||||
|
||||
if (_donation.Get(player).OwnsUnknownPackage(_reward))
|
||||
{
|
||||
UtilPlayer.message(player, F.main(_prefix, "I already love you!"));
|
||||
return;
|
||||
}
|
||||
// if (_donation.Get(player).OwnsUnknownPackage(_reward))
|
||||
// {
|
||||
// UtilPlayer.message(player, F.main(_prefix, "I already love you!"));
|
||||
// return;
|
||||
// }
|
||||
|
||||
event.setCancelled(false); // Uncancel
|
||||
|
||||
|
@ -22,6 +22,12 @@ import mineplex.hub.modules.ValentinesManager;
|
||||
|
||||
public class Courtship
|
||||
{
|
||||
private static final String[] FAIL_MESSAGES = {
|
||||
"Mmmmmm, that's delicious! I still don't like you very much though.",
|
||||
"For a moment there, I thought you were my friend... But you're not! Leave me alone!",
|
||||
"Just because I'm drinking your drink, doesn't mean we're friends!"
|
||||
};
|
||||
|
||||
/**
|
||||
* Created by: Mysticate
|
||||
* Timestamp: February 6, 2016
|
||||
@ -174,6 +180,6 @@ public class Courtship
|
||||
private void message(String message)
|
||||
{
|
||||
UtilPlayer.message(_player, " ");
|
||||
UtilPlayer.message(_player, F.main(_prefix, message));
|
||||
UtilPlayer.message(_player, F.main(_prefix, C.cPurple + message));
|
||||
}
|
||||
}
|
||||
|
@ -110,7 +110,7 @@ public class Gladiators extends SoloGame
|
||||
DamageTeamSelf = true;
|
||||
HungerSet = 20;
|
||||
DontAllowOverfill = true;
|
||||
EnableTutorials = true;
|
||||
EnableTutorials = false;
|
||||
|
||||
BlockBreakAllow.add(Material.SUGAR_CANE_BLOCK.getId());
|
||||
BlockBreakAllow.add(Material.DEAD_BUSH.getId());
|
||||
|
Loading…
Reference in New Issue
Block a user