mirror of
https://github.com/ArthurDanjou/WitchRush.git
synced 2026-01-14 12:14:39 +01:00
Creating git
This commit is contained in:
committed by
BunSPotatoeS
parent
9ecd1772b3
commit
781008ddb8
1325
.idea/workspace.xml
generated
Normal file
1325
.idea/workspace.xml
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -3,7 +3,9 @@ package net.berrygames.witchrush;
|
|||||||
import net.berrygames.witchrush.game.GameState;
|
import net.berrygames.witchrush.game.GameState;
|
||||||
import net.berrygames.witchrush.kits.Kits;
|
import net.berrygames.witchrush.kits.Kits;
|
||||||
import net.berrygames.witchrush.team.TeamManager;
|
import net.berrygames.witchrush.team.TeamManager;
|
||||||
|
import net.berrygames.witchrush.team.TeamsInfos;
|
||||||
import net.berrygames.witchrush.tools.ItemFactory;
|
import net.berrygames.witchrush.tools.ItemFactory;
|
||||||
|
import net.berrygames.witchrush.tools.Locations;
|
||||||
import org.bukkit.Color;
|
import org.bukkit.Color;
|
||||||
import org.bukkit.DyeColor;
|
import org.bukkit.DyeColor;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
@@ -23,17 +25,33 @@ public class WitchPlayer {
|
|||||||
private boolean spectator;
|
private boolean spectator;
|
||||||
private int kills, death;
|
private int kills, death;
|
||||||
private TeamManager manager;
|
private TeamManager manager;
|
||||||
|
private TeamsInfos team;
|
||||||
|
|
||||||
public WitchPlayer(Player player) {
|
public WitchPlayer(Player player) {
|
||||||
this.player = player;
|
this.player = player;
|
||||||
this.spectator = GameState.getStatus().equals(GameState.GAME) ? true: false;
|
this.spectator = GameState.getStatus().equals(GameState.GAME) ? true: false;
|
||||||
this.kills = 0;
|
this.kills = 0;
|
||||||
this.death = 0;
|
this.death = 0;
|
||||||
|
this.team = WitchRush.get().getTeamManager().getPlayerTeam(player);
|
||||||
this.manager = WitchRush.get().getTeamManager();
|
this.manager = WitchRush.get().getTeamManager();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void teleportToBase(){
|
public void teleportToBase(){
|
||||||
player.teleport(manager.getTeamLocation(manager.getPlayerTeam(player)));
|
switch (manager.getPlayerTeam(player)){
|
||||||
|
case ROUGE:
|
||||||
|
player.teleport(Locations.SPAWN_ROUGE.getLoc());
|
||||||
|
break;
|
||||||
|
case VERT:
|
||||||
|
player.teleport(Locations.SPAWN_VERT.getLoc());
|
||||||
|
break;
|
||||||
|
case JAUNE:
|
||||||
|
player.teleport(Locations.SPAWN_JAUNE.getLoc());
|
||||||
|
break;
|
||||||
|
case BLEU:
|
||||||
|
player.teleport(Locations.SPAWN_BLEU.getLoc());
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void giveStuff(){
|
public void giveStuff(){
|
||||||
|
|||||||
@@ -22,8 +22,6 @@ public class WitchRush extends JavaPlugin {
|
|||||||
|
|
||||||
private TeamManager teamManager;
|
private TeamManager teamManager;
|
||||||
private boolean forcedStart;
|
private boolean forcedStart;
|
||||||
private File file;
|
|
||||||
private FileConfiguration conf;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
@@ -36,10 +34,6 @@ public class WitchRush extends JavaPlugin {
|
|||||||
new CommandsManager().register(this);
|
new CommandsManager().register(this);
|
||||||
new ListenersManager().register(this);
|
new ListenersManager().register(this);
|
||||||
|
|
||||||
saveDefaultConfig();
|
|
||||||
|
|
||||||
this.createYML(getConfig().getString("game.mode"));
|
|
||||||
|
|
||||||
System.out.println("*-*-*-*-*-*-*-*");
|
System.out.println("*-*-*-*-*-*-*-*");
|
||||||
System.out.println("WitchRush");
|
System.out.println("WitchRush");
|
||||||
System.out.println("by BunS");
|
System.out.println("by BunS");
|
||||||
@@ -49,34 +43,6 @@ public class WitchRush extends JavaPlugin {
|
|||||||
super.onEnable();
|
super.onEnable();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void createYML(String name) {
|
|
||||||
this.file = new File(getDataFolder(), name+".yml");
|
|
||||||
if (!file.exists()) {
|
|
||||||
file.getParentFile().mkdirs();
|
|
||||||
saveResource(name+".yml", false);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.conf = new YamlConfiguration();
|
|
||||||
try {
|
|
||||||
conf.load(file);
|
|
||||||
} catch (IOException | InvalidConfigurationException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setConf(String path, Object value){
|
|
||||||
this.conf.set(path, value);
|
|
||||||
try {
|
|
||||||
this.conf.save(this.file);
|
|
||||||
} catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public FileConfiguration getConf(){
|
|
||||||
return conf;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onDisable() {
|
public void onDisable() {
|
||||||
System.out.println("*-*-*-*-*-*-*-*");
|
System.out.println("*-*-*-*-*-*-*-*");
|
||||||
@@ -90,11 +56,6 @@ public class WitchRush extends JavaPlugin {
|
|||||||
Bukkit.getWorld("world").getEntities().forEach(en -> en.remove());
|
Bukkit.getWorld("world").getEntities().forEach(en -> en.remove());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public File getFile() {
|
|
||||||
return file;
|
|
||||||
}
|
|
||||||
|
|
||||||
public TeamManager getTeamManager() {
|
public TeamManager getTeamManager() {
|
||||||
return teamManager;
|
return teamManager;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,12 +2,10 @@ package net.berrygames.witchrush.commands;
|
|||||||
|
|
||||||
import net.berrygames.witchrush.WitchRush;
|
import net.berrygames.witchrush.WitchRush;
|
||||||
import net.berrygames.witchrush.commands.admins.GameCMD;
|
import net.berrygames.witchrush.commands.admins.GameCMD;
|
||||||
import net.berrygames.witchrush.commands.admins.LocationsCMD;
|
|
||||||
|
|
||||||
public class CommandsManager {
|
public class CommandsManager {
|
||||||
|
|
||||||
public void register(WitchRush main){
|
public void register(WitchRush main){
|
||||||
main.getCommand("gamestart").setExecutor(new GameCMD());
|
main.getCommand("gamestart").setExecutor(new GameCMD());
|
||||||
main.getCommand("setlocation").setExecutor(new LocationsCMD());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,187 +0,0 @@
|
|||||||
package net.berrygames.witchrush.commands.admins;
|
|
||||||
|
|
||||||
import net.berrygames.witchrush.WitchRush;
|
|
||||||
import net.berrygames.witchrush.game.GameState;
|
|
||||||
import org.bukkit.command.Command;
|
|
||||||
import org.bukkit.command.CommandExecutor;
|
|
||||||
import org.bukkit.command.CommandSender;
|
|
||||||
import org.bukkit.entity.Player;
|
|
||||||
|
|
||||||
public class LocationsCMD implements CommandExecutor {
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
|
||||||
if(!(sender instanceof Player)) return false;
|
|
||||||
|
|
||||||
Player player = (Player) sender;
|
|
||||||
if(!player.isOp())return false;
|
|
||||||
|
|
||||||
if(!GameState.getStatus().equals(GameState.LOBBY)) return false;
|
|
||||||
|
|
||||||
if(args.length == 2){
|
|
||||||
switch (args[0].toLowerCase()){
|
|
||||||
case "bleu":
|
|
||||||
switch (args[1].toLowerCase()){
|
|
||||||
case "shop":
|
|
||||||
WitchRush.get().setConf("teams.bleu.shop.x", player.getLocation().getX());
|
|
||||||
WitchRush.get().setConf("teams.bleu.shop.y", player.getLocation().getY());
|
|
||||||
WitchRush.get().setConf("teams.bleu.shop.z", player.getLocation().getZ());
|
|
||||||
WitchRush.get().setConf("teams.bleu.shop.yaw", player.getLocation().getYaw());
|
|
||||||
WitchRush.get().setConf("teams.bleu.shop.pitch", player.getLocation().getPitch());
|
|
||||||
player.sendMessage("Location ajoutée !");
|
|
||||||
break;
|
|
||||||
case "spawn":
|
|
||||||
WitchRush.get().setConf("teams.bleu.spawn.x", player.getLocation().getX());
|
|
||||||
WitchRush.get().setConf("teams.bleu.spawn.y", player.getLocation().getY());
|
|
||||||
WitchRush.get().setConf("teams.bleu.spawn.z", player.getLocation().getZ());
|
|
||||||
WitchRush.get().setConf("teams.bleu.spawn.yaw", player.getLocation().getYaw());
|
|
||||||
WitchRush.get().setConf("teams.bleu.spawn.pitch", player.getLocation().getPitch());
|
|
||||||
player.sendMessage("Location ajoutée !");
|
|
||||||
break;
|
|
||||||
case "upgrade":
|
|
||||||
WitchRush.get().setConf("teams.bleu.upgrade.x", player.getLocation().getX());
|
|
||||||
WitchRush.get().setConf("teams.bleu.upgrade.y", player.getLocation().getY());
|
|
||||||
WitchRush.get().setConf("teams.bleu.upgrade.z", player.getLocation().getZ());
|
|
||||||
WitchRush.get().setConf("teams.bleu.upgrade.yaw", player.getLocation().getYaw());
|
|
||||||
WitchRush.get().setConf("teams.bleu.upgrade.pitch", player.getLocation().getPitch());
|
|
||||||
player.sendMessage("Location ajoutée !");
|
|
||||||
break;
|
|
||||||
case "boss":
|
|
||||||
WitchRush.get().setConf("teams.bleu.boss.x", player.getLocation().getX());
|
|
||||||
WitchRush.get().setConf("teams.bleu.boss.y", player.getLocation().getY());
|
|
||||||
WitchRush.get().setConf("teams.bleu.boss.z", player.getLocation().getZ());
|
|
||||||
WitchRush.get().setConf("teams.bleu.boss.yaw", player.getLocation().getYaw());
|
|
||||||
WitchRush.get().setConf("teams.bleu.boss.pitch", player.getLocation().getPitch());
|
|
||||||
player.sendMessage("Location ajoutée !");
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
player.sendMessage("§cUsage: /setLocation [team] [shop|spawn|upgrade|boss]");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case "vert":
|
|
||||||
switch (args[1].toLowerCase()){
|
|
||||||
case "shop":
|
|
||||||
WitchRush.get().setConf("teams.vert.shop.x", player.getLocation().getX());
|
|
||||||
WitchRush.get().setConf("teams.vert.shop.y", player.getLocation().getY());
|
|
||||||
WitchRush.get().setConf("teams.vert.shop.z", player.getLocation().getZ());
|
|
||||||
WitchRush.get().setConf("teams.vert.shop.yaw", player.getLocation().getYaw());
|
|
||||||
WitchRush.get().setConf("teams.vert.shop.pitch", player.getLocation().getPitch());
|
|
||||||
player.sendMessage("Location ajoutée !");
|
|
||||||
break;
|
|
||||||
case "spawn":
|
|
||||||
WitchRush.get().setConf("teams.vert.spawn.x", player.getLocation().getX());
|
|
||||||
WitchRush.get().setConf("teams.vert.spawn.y", player.getLocation().getY());
|
|
||||||
WitchRush.get().setConf("teams.vert.spawn.z", player.getLocation().getZ());
|
|
||||||
WitchRush.get().setConf("teams.vert.spawn.yaw", player.getLocation().getYaw());
|
|
||||||
WitchRush.get().setConf("teams.vert.spawn.pitch", player.getLocation().getPitch());
|
|
||||||
player.sendMessage("Location ajoutée !");
|
|
||||||
break;
|
|
||||||
case "upgrade":
|
|
||||||
WitchRush.get().setConf("teams.vert.upgrade.x", player.getLocation().getX());
|
|
||||||
WitchRush.get().setConf("teams.vert.upgrade.y", player.getLocation().getY());
|
|
||||||
WitchRush.get().setConf("teams.vert.upgrade.z", player.getLocation().getZ());
|
|
||||||
WitchRush.get().setConf("teams.vert.upgrade.yaw", player.getLocation().getYaw());
|
|
||||||
WitchRush.get().setConf("teams.vert.upgrade.pitch", player.getLocation().getPitch());
|
|
||||||
player.sendMessage("Location ajoutée !");
|
|
||||||
break;
|
|
||||||
case "boss":
|
|
||||||
WitchRush.get().setConf("teams.vert.boss.x", player.getLocation().getX());
|
|
||||||
WitchRush.get().setConf("teams.vert.boss.y", player.getLocation().getY());
|
|
||||||
WitchRush.get().setConf("teams.vert.boss.z", player.getLocation().getZ());
|
|
||||||
WitchRush.get().setConf("teams.vert.boss.yaw", player.getLocation().getYaw());
|
|
||||||
WitchRush.get().setConf("teams.vert.boss.pitch", player.getLocation().getPitch());
|
|
||||||
player.sendMessage("Location ajoutée !");
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
player.sendMessage("§cUsage: /setLocation [team] [shop|spawn|upgrade|boss]");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case "jaune":
|
|
||||||
switch (args[1].toLowerCase()){
|
|
||||||
case "shop":
|
|
||||||
WitchRush.get().setConf("teams.jaune.shop.x", player.getLocation().getX());
|
|
||||||
WitchRush.get().setConf("teams.jaune.shop.y", player.getLocation().getY());
|
|
||||||
WitchRush.get().setConf("teams.jaune.shop.z", player.getLocation().getZ());
|
|
||||||
WitchRush.get().setConf("teams.jaune.shop.yaw", player.getLocation().getYaw());
|
|
||||||
WitchRush.get().setConf("teams.jaune.shop.pitch", player.getLocation().getPitch());
|
|
||||||
player.sendMessage("Location ajoutée !");
|
|
||||||
break;
|
|
||||||
case "spawn":
|
|
||||||
WitchRush.get().setConf("teams.jaune.spawn.x", player.getLocation().getX());
|
|
||||||
WitchRush.get().setConf("teams.jaune.spawn.y", player.getLocation().getY());
|
|
||||||
WitchRush.get().setConf("teams.jaune.spawn.z", player.getLocation().getZ());
|
|
||||||
WitchRush.get().setConf("teams.jaune.spawn.yaw", player.getLocation().getYaw());
|
|
||||||
WitchRush.get().setConf("teams.jaune.spawn.pitch", player.getLocation().getPitch());
|
|
||||||
player.sendMessage("Location ajoutée !");
|
|
||||||
break;
|
|
||||||
case "upgrade":
|
|
||||||
WitchRush.get().setConf("teams.jaune.upgrade.x", player.getLocation().getX());
|
|
||||||
WitchRush.get().setConf("teams.jaune.upgrade.y", player.getLocation().getY());
|
|
||||||
WitchRush.get().setConf("teams.jaune.upgrade.z", player.getLocation().getZ());
|
|
||||||
WitchRush.get().setConf("teams.jaune.upgrade.yaw", player.getLocation().getYaw());
|
|
||||||
WitchRush.get().setConf("teams.jaune.upgrade.pitch", player.getLocation().getPitch());
|
|
||||||
player.sendMessage("Location ajoutée !");
|
|
||||||
break;
|
|
||||||
case "boss":
|
|
||||||
WitchRush.get().setConf("teams.jaune.boss.x", player.getLocation().getX());
|
|
||||||
WitchRush.get().setConf("teams.jaune.boss.y", player.getLocation().getY());
|
|
||||||
WitchRush.get().setConf("teams.jaune.boss.z", player.getLocation().getZ());
|
|
||||||
WitchRush.get().setConf("teams.jaune.boss.yaw", player.getLocation().getYaw());
|
|
||||||
WitchRush.get().setConf("teams.jaune.boss.pitch", player.getLocation().getPitch());
|
|
||||||
player.sendMessage("Location ajoutée !");
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
player.sendMessage("§cUsage: /setLocation [team] [shop|spawn|upgrade|boss]");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case "rouge":
|
|
||||||
switch (args[1].toLowerCase()){
|
|
||||||
case "shop":
|
|
||||||
WitchRush.get().setConf("teams.rouge.shop.x", player.getLocation().getX());
|
|
||||||
WitchRush.get().setConf("teams.rouge.shop.y", player.getLocation().getY());
|
|
||||||
WitchRush.get().setConf("teams.rouge.shop.z", player.getLocation().getZ());
|
|
||||||
WitchRush.get().setConf("teams.rouge.shop.yaw", player.getLocation().getYaw());
|
|
||||||
WitchRush.get().setConf("teams.rouge.shop.pitch", player.getLocation().getPitch());
|
|
||||||
player.sendMessage("Location ajoutée !");
|
|
||||||
break;
|
|
||||||
case "spawn":
|
|
||||||
WitchRush.get().setConf("teams.rouge.spawn.x", player.getLocation().getX());
|
|
||||||
WitchRush.get().setConf("teams.rouge.spawn.y", player.getLocation().getY());
|
|
||||||
WitchRush.get().setConf("teams.rouge.spawn.z", player.getLocation().getZ());
|
|
||||||
WitchRush.get().setConf("teams.rouge.spawn.yaw", player.getLocation().getYaw());
|
|
||||||
WitchRush.get().setConf("teams.rouge.spawn.pitch", player.getLocation().getPitch());
|
|
||||||
player.sendMessage("Location ajoutée !");
|
|
||||||
break;
|
|
||||||
case "upgrade":
|
|
||||||
WitchRush.get().setConf("teams.rouge.upgrade.x", player.getLocation().getX());
|
|
||||||
WitchRush.get().setConf("teams.rouge.upgrade.y", player.getLocation().getY());
|
|
||||||
WitchRush.get().setConf("teams.rouge.upgrade.z", player.getLocation().getZ());
|
|
||||||
WitchRush.get().setConf("teams.rouge.upgrade.yaw", player.getLocation().getYaw());
|
|
||||||
WitchRush.get().setConf("teams.rouge.upgrade.pitch", player.getLocation().getPitch());
|
|
||||||
player.sendMessage("Location ajoutée !");
|
|
||||||
break;
|
|
||||||
case "boss":
|
|
||||||
WitchRush.get().setConf("teams.rouge.boss.x", player.getLocation().getX());
|
|
||||||
WitchRush.get().setConf("teams.rouge.boss.y", player.getLocation().getY());
|
|
||||||
WitchRush.get().setConf("teams.rouge.boss.z", player.getLocation().getZ());
|
|
||||||
WitchRush.get().setConf("teams.rouge.boss.yaw", player.getLocation().getYaw());
|
|
||||||
WitchRush.get().setConf("teams.rouge.boss.pitch", player.getLocation().getPitch());
|
|
||||||
player.sendMessage("Location ajoutée !");
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
player.sendMessage("§cUsage: /setLocation [team] [shop|spawn|upgrade|boss]");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
player.sendMessage("§cUsage: /setLocation [team] [shop|spawn|upgrade|boss]");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -31,7 +31,7 @@ public enum Kits {
|
|||||||
return this.items;
|
return this.items;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ArrayList<ItemStack> getElfIKit(){
|
public static ArrayList<ItemStack> getGoblinIKit(){
|
||||||
ArrayList<ItemStack> list = new ArrayList<>();
|
ArrayList<ItemStack> list = new ArrayList<>();
|
||||||
|
|
||||||
list.add(new ItemFactory(Material.WOOD_SWORD).withName("§bSword Level I").done());
|
list.add(new ItemFactory(Material.WOOD_SWORD).withName("§bSword Level I").done());
|
||||||
@@ -39,7 +39,7 @@ public enum Kits {
|
|||||||
|
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
public static ArrayList<ItemStack> getElfIIKit(){
|
public static ArrayList<ItemStack> getGoblinIIKit(){
|
||||||
ArrayList<ItemStack> list = new ArrayList<>();
|
ArrayList<ItemStack> list = new ArrayList<>();
|
||||||
|
|
||||||
list.add(new ItemFactory(Material.STONE_SWORD).withName("§bSword Level II").done());
|
list.add(new ItemFactory(Material.STONE_SWORD).withName("§bSword Level II").done());
|
||||||
@@ -47,7 +47,7 @@ public enum Kits {
|
|||||||
|
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
public static ArrayList<ItemStack> getElfIIIKit(){
|
public static ArrayList<ItemStack> getGoblinIIIKit(){
|
||||||
ArrayList<ItemStack> list = new ArrayList<>();
|
ArrayList<ItemStack> list = new ArrayList<>();
|
||||||
|
|
||||||
list.add(new ItemFactory(Material.IRON_SWORD).withName("§bSword Level III").done());
|
list.add(new ItemFactory(Material.IRON_SWORD).withName("§bSword Level III").done());
|
||||||
@@ -56,7 +56,7 @@ public enum Kits {
|
|||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ArrayList<ItemStack> getGoblinIKit(){
|
public static ArrayList<ItemStack> getElfIKit(){
|
||||||
ArrayList<ItemStack> list = new ArrayList<>();
|
ArrayList<ItemStack> list = new ArrayList<>();
|
||||||
|
|
||||||
list.add(new ItemFactory(Material.BOW).withName("§bArc Level I").done());
|
list.add(new ItemFactory(Material.BOW).withName("§bArc Level I").done());
|
||||||
@@ -65,7 +65,7 @@ public enum Kits {
|
|||||||
|
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
public static ArrayList<ItemStack> getGoblinIIKit(){
|
public static ArrayList<ItemStack> getElfIIKit(){
|
||||||
ArrayList<ItemStack> list = new ArrayList<>();
|
ArrayList<ItemStack> list = new ArrayList<>();
|
||||||
|
|
||||||
list.add(new ItemFactory(Material.BOW).withName("§bArc Level II").withEnchant(Enchantment.ARROW_DAMAGE, 1).done());
|
list.add(new ItemFactory(Material.BOW).withName("§bArc Level II").withEnchant(Enchantment.ARROW_DAMAGE, 1).done());
|
||||||
@@ -74,7 +74,7 @@ public enum Kits {
|
|||||||
|
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
public static ArrayList<ItemStack> getGoblinIIIKit(){
|
public static ArrayList<ItemStack> getElfIIIKit(){
|
||||||
ArrayList<ItemStack> list = new ArrayList<>();
|
ArrayList<ItemStack> list = new ArrayList<>();
|
||||||
|
|
||||||
list.add(new ItemFactory(Material.BOW).withName("§bArc Level III").withEnchant(Enchantment.ARROW_DAMAGE, 2).done());
|
list.add(new ItemFactory(Material.BOW).withName("§bArc Level III").withEnchant(Enchantment.ARROW_DAMAGE, 2).done());
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ public class ListenersManager {
|
|||||||
pm.registerEvents(new PlayerFood(), main);
|
pm.registerEvents(new PlayerFood(), main);
|
||||||
pm.registerEvents(new InventoryClick(), main);
|
pm.registerEvents(new InventoryClick(), main);
|
||||||
pm.registerEvents(new DamageEvent(), main);
|
pm.registerEvents(new DamageEvent(), main);
|
||||||
|
pm.registerEvents(new PlayerMove(), main);
|
||||||
|
|
||||||
// --- WORLD ---//
|
// --- WORLD ---//
|
||||||
pm.registerEvents(new WorldEvents(), main);
|
pm.registerEvents(new WorldEvents(), main);
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ public class InventoryClick implements Listener {
|
|||||||
case DOUBLE_PLANT:
|
case DOUBLE_PLANT:
|
||||||
player.playSound(player.getLocation(), Sound.ENTITY_VILLAGER_YES, 1.0f, 1.0f);
|
player.playSound(player.getLocation(), Sound.ENTITY_VILLAGER_YES, 1.0f, 1.0f);
|
||||||
teamManager.removePlayerAllTeam(player);
|
teamManager.removePlayerAllTeam(player);
|
||||||
|
System.out.println(teamManager.getPlayerTeam(player));
|
||||||
player.sendMessage("§dVous serez dans une équipe au debut de la partie !");
|
player.sendMessage("§dVous serez dans une équipe au debut de la partie !");
|
||||||
player.closeInventory();
|
player.closeInventory();
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import net.berrygames.witchrush.game.GameState;
|
|||||||
import net.berrygames.witchrush.game.task.StartTask;
|
import net.berrygames.witchrush.game.task.StartTask;
|
||||||
import net.berrygames.witchrush.team.TeamManager;
|
import net.berrygames.witchrush.team.TeamManager;
|
||||||
import net.berrygames.witchrush.tools.ItemFactory;
|
import net.berrygames.witchrush.tools.ItemFactory;
|
||||||
|
import net.berrygames.witchrush.tools.Locations;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.GameMode;
|
import org.bukkit.GameMode;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
@@ -37,11 +38,8 @@ public class PlayerJoin implements Listener {
|
|||||||
player.setExp(0f);
|
player.setExp(0f);
|
||||||
player.setHealth(20);
|
player.setHealth(20);
|
||||||
player.setFoodLevel(20);
|
player.setFoodLevel(20);
|
||||||
player.teleport(new Location(Bukkit.getWorld("world"), 0, 66, 0));
|
player.teleport(Locations.WAITING_ROOMS.getLoc());
|
||||||
witchPlayer.sendWaitingStuff();
|
witchPlayer.sendWaitingStuff();
|
||||||
if(WitchPlayer.getwitchMap().size() >= 4){
|
|
||||||
new StartTask().runTaskTimer(WitchRush.get(), 0, 20);
|
|
||||||
}
|
|
||||||
if(player.isOp()){
|
if(player.isOp()){
|
||||||
player.getInventory().setItem(0, new ItemFactory(Material.FEATHER).withName("§cDémarrage forcé").done());
|
player.getInventory().setItem(0, new ItemFactory(Material.FEATHER).withName("§cDémarrage forcé").done());
|
||||||
}
|
}
|
||||||
@@ -53,6 +51,7 @@ public class PlayerJoin implements Listener {
|
|||||||
player.sendMessage(" ");
|
player.sendMessage(" ");
|
||||||
e.setJoinMessage(null);
|
e.setJoinMessage(null);
|
||||||
witchPlayer.setSpectator(true);
|
witchPlayer.setSpectator(true);
|
||||||
|
player.teleport(Locations.SPECTATORS.getLoc());
|
||||||
player.setGameMode(GameMode.SPECTATOR);
|
player.setGameMode(GameMode.SPECTATOR);
|
||||||
player.setLevel(0);
|
player.setLevel(0);
|
||||||
player.setHealth(20);
|
player.setHealth(20);
|
||||||
@@ -65,6 +64,7 @@ public class PlayerJoin implements Listener {
|
|||||||
player.sendMessage("§7Seuls les autres spectateurs voient vos messages !");
|
player.sendMessage("§7Seuls les autres spectateurs voient vos messages !");
|
||||||
player.sendMessage(" ");
|
player.sendMessage(" ");
|
||||||
e.setJoinMessage(null);
|
e.setJoinMessage(null);
|
||||||
|
player.teleport(Locations.SPECTATORS.getLoc());
|
||||||
player.setGameMode(GameMode.SPECTATOR);
|
player.setGameMode(GameMode.SPECTATOR);
|
||||||
player.setLevel(0);
|
player.setLevel(0);
|
||||||
player.setHealth(20);
|
player.setHealth(20);
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
package net.berrygames.witchrush.listeners.players;
|
||||||
|
|
||||||
|
import net.berrygames.witchrush.game.GameState;
|
||||||
|
import net.berrygames.witchrush.tools.Locations;
|
||||||
|
import org.bukkit.entity.Player;
|
||||||
|
import org.bukkit.event.EventHandler;
|
||||||
|
import org.bukkit.event.Listener;
|
||||||
|
import org.bukkit.event.player.PlayerMoveEvent;
|
||||||
|
|
||||||
|
public class PlayerMove implements Listener {
|
||||||
|
|
||||||
|
@EventHandler
|
||||||
|
public void move(PlayerMoveEvent e){
|
||||||
|
Player player = e.getPlayer();
|
||||||
|
if(player.getLocation().getBlockY() <= 110 && GameState.getStatus().equals(GameState.LOBBY)){
|
||||||
|
player.teleport(Locations.WAITING_ROOMS.getLoc());
|
||||||
|
player.sendMessage("§cNe tombe pas dans le néant !");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -47,6 +47,13 @@ public class WorldEvents implements Listener {
|
|||||||
break;
|
break;
|
||||||
case GAME:
|
case GAME:
|
||||||
e.setCancelled(false);
|
e.setCancelled(false);
|
||||||
|
switch (e.getBlock().getType()){
|
||||||
|
case SANDSTONE:
|
||||||
|
e.setCancelled(false);
|
||||||
|
break;
|
||||||
|
default: e.setCancelled(true);
|
||||||
|
break;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case END:
|
case END:
|
||||||
e.setCancelled(true);
|
e.setCancelled(true);
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
package net.berrygames.witchrush.team;
|
package net.berrygames.witchrush.team;
|
||||||
|
|
||||||
import net.berrygames.witchrush.WitchRush;
|
import net.berrygames.witchrush.tools.Locations;
|
||||||
import net.berrygames.witchrush.tools.WitchBoss;
|
import net.berrygames.witchrush.tools.WitchBoss;
|
||||||
import org.bukkit.Bukkit;
|
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
@@ -41,7 +40,9 @@ public class TeamManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void addPlayerInRandomTeam(final Player player) {
|
public void addPlayerInRandomTeam(final Player player) {
|
||||||
if(playerHaveTeam(player)) return;
|
for(TeamsInfos infos : TeamsInfos.values()){
|
||||||
|
if(isPlayerInTeam(player, infos)) return;
|
||||||
|
}
|
||||||
TreeMap<TeamsInfos, List<Player>> teamMap = new TreeMap<>();
|
TreeMap<TeamsInfos, List<Player>> teamMap = new TreeMap<>();
|
||||||
for(TeamsInfos infos : TeamsInfos.values()){
|
for(TeamsInfos infos : TeamsInfos.values()){
|
||||||
teamMap.put(infos, getPlayersTeamList(infos));
|
teamMap.put(infos, getPlayersTeamList(infos));
|
||||||
@@ -54,49 +55,49 @@ public class TeamManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Location getBossLocation(final TeamsInfos teamInfos) {
|
public Location getBossLocation(final TeamsInfos teamInfos) {
|
||||||
return new Location(Bukkit.getWorld("world"),
|
switch (teamInfos){
|
||||||
WitchRush.get().getConf().getDouble("teams."+teamInfos.getTeamName()+".boss.x"),
|
case JAUNE:
|
||||||
WitchRush.get().getConf().getDouble("teams."+teamInfos.getTeamName()+".boss.y"),
|
return Locations.BOSS_JAUNE.getLoc();
|
||||||
WitchRush.get().getConf().getDouble("teams."+teamInfos.getTeamName()+".boss.z"),
|
case ROUGE:
|
||||||
WitchRush.get().getConf().getLong("teams."+teamInfos.getTeamName()+".boss.yaw"),
|
return Locations.BOSS_ROUGE.getLoc();
|
||||||
WitchRush.get().getConf().getLong("teams."+teamInfos.getTeamName()+".boss.pitch"));
|
case VERT:
|
||||||
|
return Locations.BOSS_VERT.getLoc();
|
||||||
|
case BLEU:
|
||||||
|
return Locations.BOSS_BLEU.getLoc();
|
||||||
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
public Location getShopLocation(final TeamsInfos teamInfos) {
|
public Location getShopLocation(final TeamsInfos teamInfos) {
|
||||||
return new Location(Bukkit.getWorld("world"),
|
switch (teamInfos){
|
||||||
WitchRush.get().getConf().getDouble("teams."+teamInfos.getTeamName()+".shop.x"),
|
case JAUNE:
|
||||||
WitchRush.get().getConf().getDouble("teams."+teamInfos.getTeamName()+".shop.y"),
|
return Locations.SHOP_JAUNE.getLoc();
|
||||||
WitchRush.get().getConf().getDouble("teams."+teamInfos.getTeamName()+".shop.z"),
|
case ROUGE:
|
||||||
WitchRush.get().getConf().getLong("teams."+teamInfos.getTeamName()+".shop.yaw"),
|
return Locations.SHOP_ROUGE.getLoc();
|
||||||
WitchRush.get().getConf().getLong("teams."+teamInfos.getTeamName()+".shop.pitch"));
|
case VERT:
|
||||||
|
return Locations.SHOP_VERT.getLoc();
|
||||||
|
case BLEU:
|
||||||
|
return Locations.SHOP_BLEU.getLoc();
|
||||||
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
public Location getUpgradeLocation(final TeamsInfos teamInfos) {
|
public Location getUpgradeLocation(final TeamsInfos teamInfos) {
|
||||||
return new Location(Bukkit.getWorld("world"),
|
switch (teamInfos){
|
||||||
WitchRush.get().getConf().getDouble("teams."+teamInfos.getTeamName()+".upgrade.x"),
|
case JAUNE:
|
||||||
WitchRush.get().getConf().getDouble("teams."+teamInfos.getTeamName()+".upgrade.y"),
|
return Locations.UPGRADE_JAUNE.getLoc();
|
||||||
WitchRush.get().getConf().getDouble("teams."+teamInfos.getTeamName()+".upgrade.z"),
|
case ROUGE:
|
||||||
WitchRush.get().getConf().getLong("teams."+teamInfos.getTeamName()+".upgrade.yaw"),
|
return Locations.UPGRADE_ROUGE.getLoc();
|
||||||
WitchRush.get().getConf().getLong("teams."+teamInfos.getTeamName()+".upgrade.pitch"));
|
case VERT:
|
||||||
|
return Locations.UPGRADE_VERT.getLoc();
|
||||||
|
case BLEU:
|
||||||
|
return Locations.UPGRADE_BLEU.getLoc();
|
||||||
}
|
}
|
||||||
public Location getTeamLocation(final TeamsInfos teamInfos) {
|
return null;
|
||||||
return new Location(Bukkit.getWorld("world"),
|
|
||||||
WitchRush.get().getConf().getDouble("teams."+teamInfos.getTeamName()+".spawn.x"),
|
|
||||||
WitchRush.get().getConf().getDouble("teams."+teamInfos.getTeamName()+".spawn.y"),
|
|
||||||
WitchRush.get().getConf().getDouble("teams."+teamInfos.getTeamName()+".spawn.z"),
|
|
||||||
WitchRush.get().getConf().getLong("teams."+teamInfos.getTeamName()+".spawn.yaw"),
|
|
||||||
WitchRush.get().getConf().getLong("teams."+teamInfos.getTeamName()+".spawn.pitch"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isPlayerInTeam(final Player player, final TeamsInfos teamInfos) {
|
public boolean isPlayerInTeam(final Player player, final TeamsInfos teamInfos) {
|
||||||
return this.playerTeamList.get(teamInfos) != null && this.playerTeamList.get(teamInfos).contains(player);
|
return this.playerTeamList.get(teamInfos) != null && this.playerTeamList.get(teamInfos).contains(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean playerHaveTeam(final Player player) {
|
|
||||||
for (final TeamsInfos teamInfos : TeamsInfos.values()) {
|
|
||||||
return isPlayerInTeam(player, teamInfos);
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean teamIsFull(final TeamsInfos teamInfos) {
|
public boolean teamIsFull(final TeamsInfos teamInfos) {
|
||||||
return this.playerTeamList.get(teamInfos) != null && this.playerTeamList.get(teamInfos).size() >= this.getPlayerTeamLimit();
|
return this.playerTeamList.get(teamInfos) != null && this.playerTeamList.get(teamInfos).size() >= this.getPlayerTeamLimit();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,23 +5,25 @@ import org.bukkit.DyeColor;
|
|||||||
|
|
||||||
public enum TeamsInfos {
|
public enum TeamsInfos {
|
||||||
|
|
||||||
VERT(0,"Vert", "§a", DyeColor.LIME, (short)5, Color.GREEN, 23),
|
VERT(0,"Vert", "vert", "§a", DyeColor.LIME, (short)5, Color.GREEN, 23),
|
||||||
BLEU(1,"Bleu", "§b", DyeColor.LIGHT_BLUE, (short)3, Color.BLUE, 19),
|
BLEU(1,"Bleu", "bleu", "§b", DyeColor.LIGHT_BLUE, (short)3, Color.BLUE, 19),
|
||||||
JAUNE(2,"Jaune", "§e", DyeColor.YELLOW, (short)4, Color.YELLOW, 21),
|
JAUNE(2,"Jaune", "jaune", "§e", DyeColor.YELLOW, (short)4, Color.YELLOW, 21),
|
||||||
ROUGE(3,"Rouge", "§c", DyeColor.RED, (short)14, Color.RED, 25),
|
ROUGE(3,"Rouge", "rouge", "§c", DyeColor.RED, (short)14, Color.RED, 25),
|
||||||
;
|
;
|
||||||
|
|
||||||
private int id;
|
private int id;
|
||||||
private String teamName;
|
private String teamName;
|
||||||
|
private String configName;
|
||||||
private String chatColor;
|
private String chatColor;
|
||||||
private short dataClay;
|
private short dataClay;
|
||||||
private Color color;
|
private Color color;
|
||||||
private DyeColor dyeColor;
|
private DyeColor dyeColor;
|
||||||
private int slotGUI;
|
private int slotGUI;
|
||||||
|
|
||||||
TeamsInfos(int id, String teamName, String chatColor, DyeColor dyeColor, short dataClay, Color color, int slotGUI) {
|
TeamsInfos(int id, String teamName, String configName, String chatColor, DyeColor dyeColor, short dataClay, Color color, int slotGUI) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.teamName = teamName;
|
this.teamName = teamName;
|
||||||
|
this.configName = configName;
|
||||||
this.chatColor = chatColor;
|
this.chatColor = chatColor;
|
||||||
this.dyeColor = dyeColor;
|
this.dyeColor = dyeColor;
|
||||||
this.dataClay = dataClay;
|
this.dataClay = dataClay;
|
||||||
@@ -49,6 +51,10 @@ public enum TeamsInfos {
|
|||||||
return color;
|
return color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getConfigName() {
|
||||||
|
return configName;
|
||||||
|
}
|
||||||
|
|
||||||
public int getId() {
|
public int getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@@ -83,5 +89,4 @@ public enum TeamsInfos {
|
|||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ public class DeadPlayer {
|
|||||||
this.witchPlayer.setSpectator(true);
|
this.witchPlayer.setSpectator(true);
|
||||||
player.setHealth(20);
|
player.setHealth(20);
|
||||||
player.setGameMode(GameMode.SPECTATOR);
|
player.setGameMode(GameMode.SPECTATOR);
|
||||||
|
player.teleport(Locations.SPECTATORS.getLoc());
|
||||||
player.sendTitle("§cVous êtes mort", " ");
|
player.sendTitle("§cVous êtes mort", " ");
|
||||||
task = Bukkit.getScheduler().runTaskTimer(WitchRush.get(), new Runnable() {
|
task = Bukkit.getScheduler().runTaskTimer(WitchRush.get(), new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -0,0 +1,43 @@
|
|||||||
|
package net.berrygames.witchrush.tools;
|
||||||
|
|
||||||
|
import net.berrygames.witchrush.team.TeamsInfos;
|
||||||
|
import org.bukkit.Bukkit;
|
||||||
|
import org.bukkit.Location;
|
||||||
|
|
||||||
|
public enum Locations {
|
||||||
|
|
||||||
|
WAITING_ROOMS(new Location(Bukkit.getWorld("world"), -177, 153, 139.5, 0, 0)),
|
||||||
|
SPECTATORS(new Location(Bukkit.getWorld("world"), -50.5, 114, 51.5, 0, 0)),
|
||||||
|
|
||||||
|
SPAWN_JAUNE(new Location(Bukkit.getWorld("world"), 72.5, 98, 59, 90, 0)),
|
||||||
|
SPAWN_VERT(new Location(Bukkit.getWorld("world"), -58.5, 98, 177, -180, 0)),
|
||||||
|
SPAWN_BLEU(new Location(Bukkit.getWorld("world"), -45, 98, -74.5, 0, 0)),
|
||||||
|
SPAWN_ROUGE(new Location(Bukkit.getWorld("world"), -49.5, 91, 116.5, 180, 0)),
|
||||||
|
|
||||||
|
UPGRADE_JAUNE(new Location(Bukkit.getWorld("world"), 76.5, 97, 70.5, 130, 0)),
|
||||||
|
UPGRADE_VERT(new Location(Bukkit.getWorld("world"), -70.5, 97, 179.5, -100, 0)),
|
||||||
|
UPGRADE_BLEU(new Location(Bukkit.getWorld("world"), -34.5, 97, -78.5, 79, 0)),
|
||||||
|
UPGRADE_ROUGE(new Location(Bukkit.getWorld("world"), -49.5, 91, 116.5, 180, 0)),
|
||||||
|
|
||||||
|
SHOP_JAUNE(new Location(Bukkit.getWorld("world"), 66.5, 97, 72.5, -150, 0)),
|
||||||
|
SHOP_VERT(new Location(Bukkit.getWorld("world"), -71.5, 97, 170.5, -60, 0)),
|
||||||
|
SHOP_BLEU(new Location(Bukkit.getWorld("world"), -32.5, 97, -69.5, 120, 0)),
|
||||||
|
SHOP_ROUGE(new Location(Bukkit.getWorld("world"), -172.5, 98, 31.5, 30, 0)),
|
||||||
|
|
||||||
|
BOSS_JAUNE(new Location(Bukkit.getWorld("world"), 12.5, 91, 49.5, 90, 0)),
|
||||||
|
BOSS_VERT(new Location(Bukkit.getWorld("world"), -49.5, 91, 116.5, 180, 0)),
|
||||||
|
BOSS_BLEU(new Location(Bukkit.getWorld("world"), -54.5, 91, -15.5, 0,0)),
|
||||||
|
BOSS_ROUGE(new Location(Bukkit.getWorld("world"), -172.5, 98, 31.5, 30, 0)),
|
||||||
|
|
||||||
|
;
|
||||||
|
|
||||||
|
private Location loc;
|
||||||
|
|
||||||
|
Locations(Location loc) {
|
||||||
|
this.loc = loc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Location getLoc() {
|
||||||
|
return loc;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
teams:
|
|
||||||
|
|
||||||
bleu:
|
|
||||||
x:
|
|
||||||
y:
|
|
||||||
z:
|
|
||||||
yaw:
|
|
||||||
pitch:
|
|
||||||
|
|
||||||
rouge:
|
|
||||||
x:
|
|
||||||
y:
|
|
||||||
z:
|
|
||||||
yaw:
|
|
||||||
pitch:
|
|
||||||
|
|
||||||
jaune:
|
|
||||||
x:
|
|
||||||
y:
|
|
||||||
z:
|
|
||||||
yaw:
|
|
||||||
pitch:
|
|
||||||
|
|
||||||
vert:
|
|
||||||
x:
|
|
||||||
y:
|
|
||||||
z:
|
|
||||||
yaw:
|
|
||||||
pitch:
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
game:
|
|
||||||
mode: "4x4"
|
|
||||||
bossLife: 500
|
|
||||||
@@ -6,5 +6,3 @@ website: berrygames.net
|
|||||||
|
|
||||||
commands:
|
commands:
|
||||||
gamestart:
|
gamestart:
|
||||||
setlocation:
|
|
||||||
aliases: [setloc, loc]
|
|
||||||
BIN
WitchRush/target/WitchRush-1.0-SNAPSHOT.jar
Normal file
BIN
WitchRush/target/WitchRush-1.0-SNAPSHOT.jar
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
8
WitchRush/target/classes/plugin.yml
Normal file
8
WitchRush/target/classes/plugin.yml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
name: WitchRush
|
||||||
|
version: 1.0
|
||||||
|
author: BunSLaPatate
|
||||||
|
main: net.berrygames.witchrush.WitchRush
|
||||||
|
website: berrygames.net
|
||||||
|
|
||||||
|
commands:
|
||||||
|
gamestart:
|
||||||
5
WitchRush/target/maven-archiver/pom.properties
Normal file
5
WitchRush/target/maven-archiver/pom.properties
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#Generated by Maven
|
||||||
|
#Wed Oct 24 00:18:38 CEST 2018
|
||||||
|
groupId=net.berrygames.witchrush
|
||||||
|
artifactId=WitchRush
|
||||||
|
version=1.0-SNAPSHOT
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
net\berrygames\witchrush\team\TeamsInfos.class
|
||||||
|
net\berrygames\witchrush\team\TeamsMenu.class
|
||||||
|
net\berrygames\witchrush\listeners\entities\DamageEvent.class
|
||||||
|
net\berrygames\witchrush\listeners\players\InventoryClick.class
|
||||||
|
net\berrygames\witchrush\listeners\players\PlayerFood.class
|
||||||
|
net\berrygames\witchrush\shop\ShopGui.class
|
||||||
|
net\berrygames\witchrush\listeners\entities\EntityDeath$1.class
|
||||||
|
net\berrygames\witchrush\listeners\entities\DamageEvent$1.class
|
||||||
|
net\berrygames\witchrush\kits\Kits.class
|
||||||
|
net\berrygames\witchrush\tools\DeadPlayer$1.class
|
||||||
|
net\berrygames\witchrush\listeners\players\PlayerInteract.class
|
||||||
|
net\berrygames\witchrush\game\WinManager.class
|
||||||
|
net\berrygames\witchrush\commands\admins\GameCMD.class
|
||||||
|
net\berrygames\witchrush\listeners\players\PlayerJoin.class
|
||||||
|
net\berrygames\witchrush\game\task\StartTask.class
|
||||||
|
net\berrygames\witchrush\WitchPlayer$1.class
|
||||||
|
net\berrygames\witchrush\listeners\players\PlayerInteract$1.class
|
||||||
|
net\berrygames\witchrush\game\task\HealthRunnable.class
|
||||||
|
net\berrygames\witchrush\listeners\world\WorldEvents.class
|
||||||
|
net\berrygames\witchrush\tools\WitchBoss.class
|
||||||
|
net\berrygames\witchrush\commands\CommandsManager.class
|
||||||
|
net\berrygames\witchrush\shop\UpgradeGUI.class
|
||||||
|
net\berrygames\witchrush\WitchRush.class
|
||||||
|
net\berrygames\witchrush\listeners\entities\EntityDeath.class
|
||||||
|
net\berrygames\witchrush\tools\Locations.class
|
||||||
|
net\berrygames\witchrush\listeners\players\PlayerDeath$1.class
|
||||||
|
net\berrygames\witchrush\listeners\world\WorldEvents$1.class
|
||||||
|
net\berrygames\witchrush\listeners\players\PlayerJoin$1.class
|
||||||
|
net\berrygames\witchrush\listeners\ListenersManager.class
|
||||||
|
net\berrygames\witchrush\game\GameManager.class
|
||||||
|
net\berrygames\witchrush\listeners\players\PlayerQuit.class
|
||||||
|
net\berrygames\witchrush\listeners\players\PlayerQuit$1.class
|
||||||
|
net\berrygames\witchrush\tools\ItemFactory.class
|
||||||
|
net\berrygames\witchrush\listeners\players\PlayerChat.class
|
||||||
|
net\berrygames\witchrush\listeners\servers\ServerPing.class
|
||||||
|
net\berrygames\witchrush\game\task\PVPTask.class
|
||||||
|
net\berrygames\witchrush\listeners\players\PlayerDeath.class
|
||||||
|
net\berrygames\witchrush\team\TeamManager.class
|
||||||
|
net\berrygames\witchrush\tools\PNJSpawner.class
|
||||||
|
net\berrygames\witchrush\game\GameState.class
|
||||||
|
net\berrygames\witchrush\listeners\players\InventoryClick$1.class
|
||||||
|
net\berrygames\witchrush\listeners\players\PlayerChat$1.class
|
||||||
|
net\berrygames\witchrush\tools\DeadPlayer.class
|
||||||
|
net\berrygames\witchrush\team\TeamManager$1.class
|
||||||
|
net\berrygames\witchrush\listeners\players\PlayerMove.class
|
||||||
|
net\berrygames\witchrush\WitchPlayer.class
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
C:\Users\asus\Desktop\Dev\WorkSpace\WitchRush\WitchRush\src\main\java\net\berrygames\witchrush\commands\CommandsManager.java
|
||||||
|
C:\Users\asus\Desktop\Dev\WorkSpace\WitchRush\WitchRush\src\main\java\net\berrygames\witchrush\listeners\entities\DamageEvent.java
|
||||||
|
C:\Users\asus\Desktop\Dev\WorkSpace\WitchRush\WitchRush\src\main\java\net\berrygames\witchrush\listeners\ListenersManager.java
|
||||||
|
C:\Users\asus\Desktop\Dev\WorkSpace\WitchRush\WitchRush\src\main\java\net\berrygames\witchrush\commands\admins\GameCMD.java
|
||||||
|
C:\Users\asus\Desktop\Dev\WorkSpace\WitchRush\WitchRush\src\main\java\net\berrygames\witchrush\game\task\StartTask.java
|
||||||
|
C:\Users\asus\Desktop\Dev\WorkSpace\WitchRush\WitchRush\src\main\java\net\berrygames\witchrush\listeners\players\PlayerChat.java
|
||||||
|
C:\Users\asus\Desktop\Dev\WorkSpace\WitchRush\WitchRush\src\main\java\net\berrygames\witchrush\shop\ShopGui.java
|
||||||
|
C:\Users\asus\Desktop\Dev\WorkSpace\WitchRush\WitchRush\src\main\java\net\berrygames\witchrush\listeners\entities\EntityDeath.java
|
||||||
|
C:\Users\asus\Desktop\Dev\WorkSpace\WitchRush\WitchRush\src\main\java\net\berrygames\witchrush\listeners\players\PlayerFood.java
|
||||||
|
C:\Users\asus\Desktop\Dev\WorkSpace\WitchRush\WitchRush\src\main\java\net\berrygames\witchrush\team\TeamsInfos.java
|
||||||
|
C:\Users\asus\Desktop\Dev\WorkSpace\WitchRush\WitchRush\src\main\java\net\berrygames\witchrush\listeners\servers\ServerPing.java
|
||||||
|
C:\Users\asus\Desktop\Dev\WorkSpace\WitchRush\WitchRush\src\main\java\net\berrygames\witchrush\listeners\players\PlayerDeath.java
|
||||||
|
C:\Users\asus\Desktop\Dev\WorkSpace\WitchRush\WitchRush\src\main\java\net\berrygames\witchrush\tools\Locations.java
|
||||||
|
C:\Users\asus\Desktop\Dev\WorkSpace\WitchRush\WitchRush\src\main\java\net\berrygames\witchrush\listeners\players\PlayerQuit.java
|
||||||
|
C:\Users\asus\Desktop\Dev\WorkSpace\WitchRush\WitchRush\src\main\java\net\berrygames\witchrush\WitchPlayer.java
|
||||||
|
C:\Users\asus\Desktop\Dev\WorkSpace\WitchRush\WitchRush\src\main\java\net\berrygames\witchrush\listeners\players\PlayerMove.java
|
||||||
|
C:\Users\asus\Desktop\Dev\WorkSpace\WitchRush\WitchRush\src\main\java\net\berrygames\witchrush\game\task\PVPTask.java
|
||||||
|
C:\Users\asus\Desktop\Dev\WorkSpace\WitchRush\WitchRush\src\main\java\net\berrygames\witchrush\tools\ItemFactory.java
|
||||||
|
C:\Users\asus\Desktop\Dev\WorkSpace\WitchRush\WitchRush\src\main\java\net\berrygames\witchrush\game\WinManager.java
|
||||||
|
C:\Users\asus\Desktop\Dev\WorkSpace\WitchRush\WitchRush\src\main\java\net\berrygames\witchrush\team\TeamsMenu.java
|
||||||
|
C:\Users\asus\Desktop\Dev\WorkSpace\WitchRush\WitchRush\src\main\java\net\berrygames\witchrush\WitchRush.java
|
||||||
|
C:\Users\asus\Desktop\Dev\WorkSpace\WitchRush\WitchRush\src\main\java\net\berrygames\witchrush\game\GameState.java
|
||||||
|
C:\Users\asus\Desktop\Dev\WorkSpace\WitchRush\WitchRush\src\main\java\net\berrygames\witchrush\listeners\world\WorldEvents.java
|
||||||
|
C:\Users\asus\Desktop\Dev\WorkSpace\WitchRush\WitchRush\src\main\java\net\berrygames\witchrush\listeners\players\PlayerInteract.java
|
||||||
|
C:\Users\asus\Desktop\Dev\WorkSpace\WitchRush\WitchRush\src\main\java\net\berrygames\witchrush\listeners\players\PlayerJoin.java
|
||||||
|
C:\Users\asus\Desktop\Dev\WorkSpace\WitchRush\WitchRush\src\main\java\net\berrygames\witchrush\shop\UpgradeGUI.java
|
||||||
|
C:\Users\asus\Desktop\Dev\WorkSpace\WitchRush\WitchRush\src\main\java\net\berrygames\witchrush\listeners\players\InventoryClick.java
|
||||||
|
C:\Users\asus\Desktop\Dev\WorkSpace\WitchRush\WitchRush\src\main\java\net\berrygames\witchrush\tools\DeadPlayer.java
|
||||||
|
C:\Users\asus\Desktop\Dev\WorkSpace\WitchRush\WitchRush\src\main\java\net\berrygames\witchrush\game\GameManager.java
|
||||||
|
C:\Users\asus\Desktop\Dev\WorkSpace\WitchRush\WitchRush\src\main\java\net\berrygames\witchrush\game\task\HealthRunnable.java
|
||||||
|
C:\Users\asus\Desktop\Dev\WorkSpace\WitchRush\WitchRush\src\main\java\net\berrygames\witchrush\tools\WitchBoss.java
|
||||||
|
C:\Users\asus\Desktop\Dev\WorkSpace\WitchRush\WitchRush\src\main\java\net\berrygames\witchrush\tools\PNJSpawner.java
|
||||||
|
C:\Users\asus\Desktop\Dev\WorkSpace\WitchRush\WitchRush\src\main\java\net\berrygames\witchrush\kits\Kits.java
|
||||||
|
C:\Users\asus\Desktop\Dev\WorkSpace\WitchRush\WitchRush\src\main\java\net\berrygames\witchrush\team\TeamManager.java
|
||||||
BIN
WitchRush/target/original-WitchRush-1.0-SNAPSHOT.jar
Normal file
BIN
WitchRush/target/original-WitchRush-1.0-SNAPSHOT.jar
Normal file
Binary file not shown.
Reference in New Issue
Block a user