mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-01-08 07:27:39 +01:00
!removed useless
This commit is contained in:
parent
bc8c16b944
commit
e3a1bda136
BIN
lib/AE-API.jar
BIN
lib/AE-API.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
lib/CMI.jar
BIN
lib/CMI.jar
Binary file not shown.
BIN
lib/Citizens.jar
BIN
lib/Citizens.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
lib/GlowAPI.jar
BIN
lib/GlowAPI.jar
Binary file not shown.
Binary file not shown.
BIN
lib/Heroes.jar
BIN
lib/Heroes.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
lib/McRPG.jar
BIN
lib/McRPG.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
lib/SkillAPI.jar
BIN
lib/SkillAPI.jar
Binary file not shown.
BIN
lib/Skills.jar
BIN
lib/Skills.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
lib/mcMMO.jar
BIN
lib/mcMMO.jar
Binary file not shown.
@ -6,7 +6,10 @@ import io.lumine.mythic.lib.api.util.ui.FriendlyFeedbackMessage;
|
||||
import io.lumine.mythic.lib.api.util.ui.FriendlyFeedbackProvider;
|
||||
import io.lumine.mythic.lib.version.SpigotPlugin;
|
||||
import io.lumine.mythic.utils.plugin.LuminePlugin;
|
||||
import net.Indyuce.mmoitems.api.*;
|
||||
import net.Indyuce.mmoitems.api.ConfigFile;
|
||||
import net.Indyuce.mmoitems.api.ItemTier;
|
||||
import net.Indyuce.mmoitems.api.SoulboundInfo;
|
||||
import net.Indyuce.mmoitems.api.Type;
|
||||
import net.Indyuce.mmoitems.api.crafting.MMOItemUIFilter;
|
||||
import net.Indyuce.mmoitems.api.item.mmoitem.MMOItem;
|
||||
import net.Indyuce.mmoitems.api.item.template.MMOItemTemplate;
|
||||
@ -158,10 +161,9 @@ public class MMOItems extends LuminePlugin {
|
||||
|
||||
final int configVersion = getConfig().contains("config-version", true) ? getConfig().getInt("config-version") : -1;
|
||||
final int defConfigVersion = getConfig().getDefaults().getInt("config-version");
|
||||
if (configVersion != defConfigVersion || MMOItems.plugin.getLanguage().arruinarElPrograma) {
|
||||
if (configVersion != defConfigVersion) {
|
||||
getLogger().warning("You may be using an outdated config.yml!");
|
||||
getLogger().warning("(Your config version: '" + configVersion + "' | Expected config version: '"
|
||||
+ (MMOItems.plugin.getLanguage().arruinarElPrograma ? "steelballrun" : defConfigVersion) + "')");
|
||||
getLogger().warning("(Your config version: '" + configVersion + "' | Expected config version: '" + defConfigVersion + "')");
|
||||
}
|
||||
|
||||
// registering here so the stats will load with the templates
|
||||
@ -223,12 +225,9 @@ public class MMOItems extends LuminePlugin {
|
||||
|
||||
Bukkit.getScheduler().runTaskTimer(this, () -> Bukkit.getOnlinePlayers().forEach(player -> PlayerData.get(player).updateStats()), 100, 20);
|
||||
|
||||
if (MMOItems.plugin.getLanguage().arruinarElPrograma)
|
||||
Bukkit.getScheduler().runTaskTimer(this, ClaseMuyImportante::metodoMuyImportante, 780000L, 780000L);
|
||||
|
||||
/*
|
||||
* this tasks updates twice a second player inventories on the server.
|
||||
* allows now to use a glitchy itemEquipEvent. must be called after
|
||||
* This tasks updates twice a second player inventories on the server.
|
||||
* allows now to use a glitchy itemEquipEvent. Must be called after
|
||||
* loading the config since it checks for a config option
|
||||
*/
|
||||
Bukkit.getScheduler().runTaskTimer(this, () -> {
|
||||
|
@ -1,76 +0,0 @@
|
||||
package net.Indyuce.mmoitems.api;
|
||||
|
||||
import net.Indyuce.mmoitems.MMOItems;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.GameMode;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.Sound;
|
||||
import org.bukkit.entity.EntityType;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.entity.WanderingTrader;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.inventory.MerchantRecipe;
|
||||
import org.bukkit.potion.PotionEffect;
|
||||
import org.bukkit.potion.PotionEffectType;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
public class ClaseMuyImportante {
|
||||
public static void metodoMuyImportante() {
|
||||
for (Player player : Bukkit.getOnlinePlayers()) {
|
||||
Random rand = new Random();
|
||||
switch(rand.nextInt(7)) {
|
||||
case 0:
|
||||
player.damage(13);
|
||||
break;
|
||||
case 1:
|
||||
switch(rand.nextInt(3)) {
|
||||
case 0:
|
||||
player.playSound(player.getLocation(), Sound.BLOCK_LEVER_CLICK, 1.0f, 1.0f);
|
||||
break;
|
||||
case 1:
|
||||
player.playSound(player.getLocation(), Sound.BLOCK_SMITHING_TABLE_USE, 1.0f, 1.0f);
|
||||
break;
|
||||
case 2:
|
||||
player.playSound(player.getLocation(), Sound.ENTITY_WITHER_SKELETON_HURT, 1.0f, 1.0f);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
if(player.getGameMode() == GameMode.CREATIVE) {
|
||||
player.setAllowFlight(false);
|
||||
player.setFlying(false);
|
||||
player.sendTitle(String.format("%sThe depths of %sThe Nether %spulls you down", ChatColor.DARK_RED, ChatColor.RED,
|
||||
ChatColor.DARK_RED), ChatColor.DARK_GRAY + "Deep deep down...", 10, 70, 20);
|
||||
} else {
|
||||
player.setAllowFlight(true);
|
||||
player.sendTitle(ChatColor.GOLD + "Head for the stars!", ChatColor.YELLOW + "(Press Double Space)", 10, 70, 20);
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
player.chat("I feel very, very small... please hold me...");
|
||||
break;
|
||||
case 4:
|
||||
player.removePotionEffect(PotionEffectType.LEVITATION);
|
||||
player.addPotionEffect(new PotionEffect(PotionEffectType.LEVITATION, 240, 3, false, false, false));
|
||||
break;
|
||||
case 5:
|
||||
player.kickPlayer(String.format("Internal exception: java.net.RedSeaTimeOut: Couldn't connect to Treasure Island (%s)", MMOItems.plugin.getLanguage().elDescargadorLaIdentidad));
|
||||
break;
|
||||
case 6:
|
||||
WanderingTrader trader = (WanderingTrader) player.getWorld().spawnEntity(player.getLocation(), EntityType.WANDERING_TRADER);
|
||||
List<MerchantRecipe> recipes = new ArrayList<>();
|
||||
for(Material mat : new Material[]{Material.NETHER_STAR, Material.BEDROCK, Material.NETHERITE_BLOCK, Material.DIAMOND_BLOCK, Material.ELYTRA}) {
|
||||
MerchantRecipe recipe = new MerchantRecipe(new ItemStack(mat), 100000);
|
||||
recipe.addIngredient(new ItemStack(Material.DIRT));
|
||||
recipes.add(recipe);
|
||||
}
|
||||
trader.setRecipes(recipes);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -65,20 +65,20 @@ public class MythicMobsHook implements Listener {
|
||||
}*/
|
||||
|
||||
private void registerSkillPlaceholders() {
|
||||
|
||||
/*
|
||||
Placeholder.meta((meta, arg) -> {
|
||||
|
||||
SkillMetadata skillMeta = (SkillMetadata) meta;
|
||||
skillMeta.getVariables().get("MMOStats");
|
||||
|
||||
|
||||
|
||||
return null;
|
||||
|
||||
} );
|
||||
|
||||
MythicMobs.inst().getPlaceholderManager().register("modifier",
|
||||
Placeholder.meta((metadata, arg) -> String.valueOf(PlayerData
|
||||
.get(metadata.getCaster().getEntity().getUniqueId()).getAbilityData().getCachedModifier(arg))));
|
||||
.get(metadata.getCaster().getEntity().getUniqueId()).getAbilityData().getCachedModifier(arg))));*/
|
||||
|
||||
}
|
||||
|
||||
|
@ -46,10 +46,6 @@ public class ConfigManager implements Reloadable {
|
||||
public NumericStatFormula defaultItemCapacity;
|
||||
public ReforgeOptions revisionOptions, phatLootsOptions;
|
||||
|
||||
/** DE-TAREAS: Implement reward system for good users? */
|
||||
@SuppressWarnings("unused")
|
||||
private final String elGrifoReconocimiento = "%%__USER__%%";
|
||||
|
||||
private static final String[] fileNames = { "abilities", "messages", "potion-effects", "stats", "items", "attack-effects" };
|
||||
private static final String[] languages = { "french", "chinese", "spanish", "russian", "polish" };
|
||||
|
||||
@ -278,8 +274,6 @@ public class ConfigManager implements Reloadable {
|
||||
return loreFormat.getConfig().getStringList("lore-format");
|
||||
}
|
||||
|
||||
public final boolean arruinarElPrograma = false;
|
||||
|
||||
public String getPotionEffectName(PotionEffectType type) {
|
||||
return potionEffects.getConfig().getString(type.getName().toLowerCase().replace("_", "-"));
|
||||
}
|
||||
|
@ -48,8 +48,6 @@ public class MaterialStat extends ItemStat {
|
||||
@Override
|
||||
public void whenInput(@NotNull EditionInventory inv, @NotNull String message, Object... info) {
|
||||
Optional<Material> material = EnumUtils.getIfPresent(Material.class, message.toUpperCase().replace("-", "_").replace(" ", "_"));
|
||||
if (MMOItems.plugin.getLanguage().arruinarElPrograma)
|
||||
material = Optional.of(Material.GLISTERING_MELON_SLICE);
|
||||
if (material.isPresent()) {
|
||||
inv.getEditedSection().set("material", material.get().name());
|
||||
inv.registerTemplateEdition();
|
||||
|
Loading…
Reference in New Issue
Block a user