parent
9eb6707407
commit
3c8fea6ed0
11
pom.xml
11
pom.xml
|
@ -31,7 +31,6 @@
|
|||
<artifactSet>
|
||||
<includes>
|
||||
<include>pw.yumc:YumCore</include>
|
||||
<include>cn.citycraft:PluginHelper</include>
|
||||
</includes>
|
||||
</artifactSet>
|
||||
<relocations>
|
||||
|
@ -39,10 +38,6 @@
|
|||
<pattern>pw.yumc.YumCore</pattern>
|
||||
<shadedPattern>${project.groupId}.${project.artifactId}</shadedPattern>
|
||||
</relocation>
|
||||
<relocation>
|
||||
<pattern>cn.citycraft.PluginHelper</pattern>
|
||||
<shadedPattern>${project.groupId}.${project.artifactId}</shadedPattern>
|
||||
</relocation>
|
||||
</relocations>
|
||||
</configuration>
|
||||
<executions>
|
||||
|
@ -79,12 +74,6 @@
|
|||
<type>jar</type>
|
||||
<version>1.10.2-R0.1-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cn.citycraft</groupId>
|
||||
<artifactId>PluginHelper</artifactId>
|
||||
<type>jar</type>
|
||||
<version>1.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>pw.yumc</groupId>
|
||||
<artifactId>YumCore</artifactId>
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
package cn.citycraft.LuckLottery;
|
||||
package pw.yumc.LuckLottery;
|
||||
|
||||
import org.bukkit.plugin.PluginManager;
|
||||
import org.bukkit.plugin.RegisteredServiceProvider;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
import cn.citycraft.LuckLottery.command.LuckLotteryCommand;
|
||||
import cn.citycraft.LuckLottery.config.OfflineDate;
|
||||
import cn.citycraft.LuckLottery.config.PlayerData;
|
||||
import cn.citycraft.LuckLottery.listen.PlayerListen;
|
||||
import cn.citycraft.LuckLottery.runnable.LotteryReward;
|
||||
import cn.citycraft.LuckLottery.utils.ChatUtils;
|
||||
import cn.citycraft.LuckLottery.utils.LotteryUtils;
|
||||
import net.milkbowl.vault.economy.Economy;
|
||||
import pw.yumc.LuckLottery.command.LuckLotteryCommand;
|
||||
import pw.yumc.LuckLottery.config.OfflineDate;
|
||||
import pw.yumc.LuckLottery.config.PlayerData;
|
||||
import pw.yumc.LuckLottery.listen.PlayerListen;
|
||||
import pw.yumc.LuckLottery.runnable.LotteryReward;
|
||||
import pw.yumc.LuckLottery.utils.ChatUtils;
|
||||
import pw.yumc.LuckLottery.utils.LotteryUtils;
|
||||
import pw.yumc.YumCore.config.FileConfig;
|
||||
import pw.yumc.YumCore.statistic.Statistics;
|
||||
import pw.yumc.YumCore.update.SubscribeTask;
|
||||
|
@ -67,7 +67,7 @@ public class LuckLottery extends JavaPlugin {
|
|||
@Override
|
||||
public void onLoad() {
|
||||
plugin = this;
|
||||
config = new FileConfig(this);
|
||||
config = new FileConfig();
|
||||
offlinedata = new OfflineDate(this);
|
||||
PlayerData.reloadPlayerLottery();
|
||||
ChatUtils.setPluginname(config.getMessage("pluginname"));
|
|
@ -1,16 +1,16 @@
|
|||
package cn.citycraft.LuckLottery.command;
|
||||
package pw.yumc.LuckLottery.command;
|
||||
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.plugin.PluginManager;
|
||||
|
||||
import cn.citycraft.LuckLottery.LuckLottery;
|
||||
import cn.citycraft.LuckLottery.config.PlayerData;
|
||||
import cn.citycraft.LuckLottery.utils.ChatUtils;
|
||||
import cn.citycraft.LuckLottery.utils.InvUtils;
|
||||
import cn.citycraft.LuckLottery.utils.LotteryUtils;
|
||||
import cn.citycraft.LuckLottery.utils.Perm;
|
||||
import pw.yumc.LuckLottery.LuckLottery;
|
||||
import pw.yumc.LuckLottery.config.PlayerData;
|
||||
import pw.yumc.LuckLottery.utils.ChatUtils;
|
||||
import pw.yumc.LuckLottery.utils.InvUtils;
|
||||
import pw.yumc.LuckLottery.utils.LotteryUtils;
|
||||
import pw.yumc.LuckLottery.utils.Perm;
|
||||
import pw.yumc.YumCore.commands.CommandArgument;
|
||||
import pw.yumc.YumCore.commands.CommandExecutor;
|
||||
import pw.yumc.YumCore.commands.CommandManager;
|
|
@ -1,4 +1,4 @@
|
|||
package cn.citycraft.LuckLottery.config;
|
||||
package pw.yumc.LuckLottery.config;
|
||||
|
||||
import java.util.List;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package cn.citycraft.LuckLottery.config;
|
||||
package pw.yumc.LuckLottery.config;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
@ -9,9 +9,9 @@ import org.bukkit.command.CommandSender;
|
|||
import org.bukkit.configuration.ConfigurationSection;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import cn.citycraft.LuckLottery.LuckLottery;
|
||||
import cn.citycraft.LuckLottery.utils.ChatUtils;
|
||||
import cn.citycraft.LuckLottery.utils.LotteryUtils;
|
||||
import pw.yumc.LuckLottery.LuckLottery;
|
||||
import pw.yumc.LuckLottery.utils.ChatUtils;
|
||||
import pw.yumc.LuckLottery.utils.LotteryUtils;
|
||||
import pw.yumc.YumCore.config.FileConfig;
|
||||
|
||||
public class PlayerData {
|
|
@ -1,4 +1,4 @@
|
|||
package cn.citycraft.LuckLottery.listen;
|
||||
package pw.yumc.LuckLottery.listen;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
@ -14,12 +14,12 @@ import org.bukkit.event.player.PlayerJoinEvent;
|
|||
import org.bukkit.inventory.Inventory;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
import cn.citycraft.LuckLottery.LuckLottery;
|
||||
import cn.citycraft.LuckLottery.config.PlayerData;
|
||||
import cn.citycraft.LuckLottery.runnable.LaterShow;
|
||||
import cn.citycraft.LuckLottery.utils.ChatUtils;
|
||||
import cn.citycraft.LuckLottery.utils.InvUtils;
|
||||
import cn.citycraft.LuckLottery.utils.LotteryUtils;
|
||||
import pw.yumc.LuckLottery.LuckLottery;
|
||||
import pw.yumc.LuckLottery.config.PlayerData;
|
||||
import pw.yumc.LuckLottery.runnable.LaterShow;
|
||||
import pw.yumc.LuckLottery.utils.ChatUtils;
|
||||
import pw.yumc.LuckLottery.utils.InvUtils;
|
||||
import pw.yumc.LuckLottery.utils.LotteryUtils;
|
||||
|
||||
public class PlayerListen implements Listener {
|
||||
LuckLottery plugin;
|
|
@ -1,11 +1,11 @@
|
|||
package cn.citycraft.LuckLottery.runnable;
|
||||
package pw.yumc.LuckLottery.runnable;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import cn.citycraft.LuckLottery.utils.ChatUtils;
|
||||
import pw.yumc.LuckLottery.utils.ChatUtils;
|
||||
|
||||
public class LaterShow implements Runnable {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package cn.citycraft.LuckLottery.runnable;
|
||||
package pw.yumc.LuckLottery.runnable;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
|
@ -7,10 +7,10 @@ import org.bukkit.Bukkit;
|
|||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.OfflinePlayer;
|
||||
|
||||
import cn.citycraft.LuckLottery.LuckLottery;
|
||||
import cn.citycraft.LuckLottery.config.PlayerData;
|
||||
import cn.citycraft.LuckLottery.utils.ChatUtils;
|
||||
import cn.citycraft.LuckLottery.utils.LotteryUtils;
|
||||
import pw.yumc.LuckLottery.LuckLottery;
|
||||
import pw.yumc.LuckLottery.config.PlayerData;
|
||||
import pw.yumc.LuckLottery.utils.ChatUtils;
|
||||
import pw.yumc.LuckLottery.utils.LotteryUtils;
|
||||
|
||||
public class LotteryReward implements Runnable {
|
||||
LuckLottery plugin;
|
|
@ -1,4 +1,4 @@
|
|||
package cn.citycraft.LuckLottery.utils;
|
||||
package pw.yumc.LuckLottery.utils;
|
||||
|
||||
import java.util.List;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package cn.citycraft.LuckLottery.utils;
|
||||
package pw.yumc.LuckLottery.utils;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
|
@ -1,4 +1,4 @@
|
|||
package cn.citycraft.LuckLottery.utils;
|
||||
package pw.yumc.LuckLottery.utils;
|
||||
|
||||
import java.security.SecureRandom;
|
||||
import java.util.ArrayList;
|
||||
|
@ -10,9 +10,9 @@ import org.bukkit.Bukkit;
|
|||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import cn.citycraft.LuckLottery.LuckLottery;
|
||||
import cn.citycraft.LuckLottery.config.PlayerData;
|
||||
import cn.citycraft.LuckLottery.runnable.LotteryReward;
|
||||
import pw.yumc.LuckLottery.LuckLottery;
|
||||
import pw.yumc.LuckLottery.config.PlayerData;
|
||||
import pw.yumc.LuckLottery.runnable.LotteryReward;
|
||||
|
||||
public class LotteryUtils {
|
||||
protected static LuckLottery plugin = LuckLottery.plugin;
|
|
@ -1,4 +1,4 @@
|
|||
package cn.citycraft.LuckLottery.utils;
|
||||
package pw.yumc.LuckLottery.utils;
|
||||
|
||||
public class Perm {
|
||||
public static final String ShowAll = "lucklottery.showall";
|
Loading…
Reference in New Issue