Added world restrictions
This commit is contained in:
parent
368b69f0f2
commit
73e7050762
@ -2,7 +2,7 @@
|
|||||||
<classpath>
|
<classpath>
|
||||||
<classpathentry kind="src" path="src"/>
|
<classpathentry kind="src" path="src"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
|
||||||
<classpathentry kind="lib" path="C:/Users/Travja/Documents/Projects/Vault.jar"/>
|
|
||||||
<classpathentry kind="lib" path="C:/Users/Travja/Downloads/bukkit-1.3.1-R1.1-20120809.005103-3.jar"/>
|
<classpathentry kind="lib" path="C:/Users/Travja/Downloads/bukkit-1.3.1-R1.1-20120809.005103-3.jar"/>
|
||||||
|
<classpathentry kind="lib" path="C:/Users/Travja/Documents/Plugins/Vault.jar"/>
|
||||||
<classpathentry kind="output" path="bin"/>
|
<classpathentry kind="output" path="bin"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
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.
88
config.yml
88
config.yml
@ -1,41 +1,90 @@
|
|||||||
# default config.yml
|
# default config.yml
|
||||||
|
|
||||||
#config version for us devs. DONT CHANGE THIS, or it will screw up some things PRETTY badly.
|
#config version for us devs. DONT CHANGE THIS, or it will screw up some things PRETTY badly.
|
||||||
config:
|
config:
|
||||||
version: 1.3
|
version: 1.3
|
||||||
|
|
||||||
|
######################################
|
||||||
|
######## Game Configuration #########
|
||||||
|
######################################
|
||||||
|
|
||||||
|
# The world(s) that all HA features are restricted to.
|
||||||
|
# If left blank all worlds will be allowed.
|
||||||
|
# ie:
|
||||||
|
# worlds:
|
||||||
|
# - world
|
||||||
|
# - world_nether
|
||||||
|
worlds:
|
||||||
|
|
||||||
# Message to display when the games start
|
# Message to display when the games start
|
||||||
Start_Message: '&bLet The Games Begin!'
|
Start_Message: '&bLet The Games Begin!'
|
||||||
|
|
||||||
# If the games should automatically restart at the end
|
# If the games should automatically restart at the end
|
||||||
Auto_Restart: 'false'
|
Auto_Restart: 'false'
|
||||||
|
|
||||||
# If it should automatically start the countdown on warping
|
# If it should automatically start the countdown on warping
|
||||||
Auto_Start: 'false'
|
Auto_Start: 'false'
|
||||||
|
|
||||||
# If tributes need to type /ha confirm to join
|
# If tributes need to type /ha confirm to join
|
||||||
Need_Confirm: 'true'
|
Need_Confirm: 'true'
|
||||||
# Not yet implemented
|
|
||||||
iConomy_Support: 'false'
|
# Whether or not the countdown will start upon warping.
|
||||||
|
Countdown: 'true'
|
||||||
|
# Whether or not players can break blocks while playing
|
||||||
|
Protected_Arena: 'true'
|
||||||
|
|
||||||
|
# Whether or not players will be frozen when they are teleported to their positions
|
||||||
|
Frozen_Teleport: 'true'
|
||||||
|
|
||||||
|
# If the Tributes will get blown to bits when stepping off the pedestal
|
||||||
|
Explode_on_Move: 'false'
|
||||||
|
|
||||||
|
# Whether or not thunder will sound upon a players death
|
||||||
|
Cannon_Death: 'true'
|
||||||
|
######################################
|
||||||
|
######################################
|
||||||
|
######################################
|
||||||
|
|
||||||
|
################################
|
||||||
|
###### Rewards/Sponsoring ######
|
||||||
|
################################
|
||||||
|
|
||||||
# What the reward for winning is
|
# What the reward for winning is
|
||||||
Reward:
|
Reward:
|
||||||
ID: 264
|
ID: 264
|
||||||
Amount: 10
|
Amount: 10
|
||||||
|
# True means give money to winner, false means don't.
|
||||||
|
eco:
|
||||||
|
enabled: false
|
||||||
|
reward: 100
|
||||||
|
# How much money to give the winner.
|
||||||
# What sponsors have to pay to sponsor tributes
|
# What sponsors have to pay to sponsor tributes
|
||||||
Sponsor_Cost:
|
Sponsor_Cost:
|
||||||
ID: 264
|
ID: 264
|
||||||
Amount: 1
|
Amount: 1
|
||||||
# Whether or not the countdown will start upon warping.
|
################################
|
||||||
Countdown: 'true'
|
################################
|
||||||
Spawn_coords: 100,100,100,world
|
################################
|
||||||
|
|
||||||
|
#############################
|
||||||
|
####### Chat Related ########
|
||||||
|
#############################
|
||||||
|
|
||||||
# If players will only talk to close players of the whole server
|
# If players will only talk to close players of the whole server
|
||||||
ChatClose: 'true'
|
ChatClose: 'true'
|
||||||
ChatClose: 'false'
|
|
||||||
# How close the players have to be to talk to them
|
# How close the players have to be to talk to them
|
||||||
ChatClose_Radius: 10
|
ChatClose_Radius: 10
|
||||||
# Whether or not players can break blocks while playing
|
#############################
|
||||||
Protected_Arena: 'true'
|
#############################
|
||||||
# Whether or not players will be frozen when they are teleported to their positions
|
#############################
|
||||||
Frozen_Teleport: 'true'
|
|
||||||
# If the Tributes will get blown to bits when stepping off the pedestal
|
########################
|
||||||
Explode_on_Move: 'false'
|
####### Spawns #########
|
||||||
# Whether or not thunder will sound upon a players death
|
########################
|
||||||
Cannon_Death: 'true'
|
Spawn_coords: 100,100,100,world
|
||||||
|
# If /ha setspawn has been run
|
||||||
|
Spawn_set: 'false'
|
||||||
Tribute_one_spawn: 100,100,100
|
Tribute_one_spawn: 100,100,100
|
||||||
Tribute_two_spawn: 100,100,100
|
Tribute_two_spawn: 100,100,100
|
||||||
Tribute_three_spawn: 100,100,100
|
Tribute_three_spawn: 100,100,100
|
||||||
@ -60,12 +109,9 @@ Tribute_twentyone_spawn: 100,100,100
|
|||||||
Tribute_twentytwo_spawn: 100,100,100
|
Tribute_twentytwo_spawn: 100,100,100
|
||||||
Tribute_twentythree_spawn: 100,100,100
|
Tribute_twentythree_spawn: 100,100,100
|
||||||
Tribute_twentyfour_spawn: 100,100,100
|
Tribute_twentyfour_spawn: 100,100,100
|
||||||
# If /ha setspawn has been run
|
########################
|
||||||
Spawn_set: 'false'
|
########################
|
||||||
# True means give money to winner, false means don't.
|
########################
|
||||||
eco:
|
|
||||||
enabled: false
|
|
||||||
reward: 100
|
|
||||||
# How much money to give the winner.
|
|
||||||
# Leave this. :)
|
# Leave this. :)
|
||||||
Blocks_Destroyed:
|
Blocks_Destroyed:
|
@ -25,34 +25,36 @@ public class Chests implements Listener {
|
|||||||
Block block = event.getClickedBlock();
|
Block block = event.getClickedBlock();
|
||||||
Player p = event.getPlayer();
|
Player p = event.getPlayer();
|
||||||
if(p.getItemInHand().getType()== Material.BLAZE_ROD && event.getAction() == Action.LEFT_CLICK_BLOCK){
|
if(p.getItemInHand().getType()== Material.BLAZE_ROD && event.getAction() == Action.LEFT_CLICK_BLOCK){
|
||||||
if(block.getState() instanceof Chest){
|
if(!plugin.restricted || (plugin.restricted && plugin.config.getStringList("worlds").contains(p.getWorld().toString()))){
|
||||||
if(p.hasPermission("HungerArena.Chest.Store")){
|
if(block.getState() instanceof Chest){
|
||||||
ItemStack[] itemsinchest = ((Chest) block.getState()).getInventory().getContents();
|
if(p.hasPermission("HungerArena.Chest.Store")){
|
||||||
int blockx = block.getX();
|
ItemStack[] itemsinchest = ((Chest) block.getState()).getInventory().getContents();
|
||||||
int blocky = block.getY();
|
int blockx = block.getX();
|
||||||
int blockz = block.getZ();
|
int blocky = block.getY();
|
||||||
String blockw = block.getWorld().getName().toString();
|
int blockz = block.getZ();
|
||||||
if(!plugin.getConfig().contains("Storage." + blockx + "," + blocky + "," + blockz + ".Location.X")){
|
String blockw = block.getWorld().getName().toString();
|
||||||
plugin.getConfig().addDefault("Storage." + blockx + "," + blocky + "," + blockz + ".Location.X", blockx);
|
if(!plugin.getConfig().contains("Storage." + blockx + "," + blocky + "," + blockz + ".Location.X")){
|
||||||
plugin.getConfig().addDefault("Storage." + blockx + "," + blocky + "," + blockz + ".Location.Y", blocky);
|
plugin.getConfig().addDefault("Storage." + blockx + "," + blocky + "," + blockz + ".Location.X", blockx);
|
||||||
plugin.getConfig().addDefault("Storage." + blockx + "," + blocky + "," + blockz + ".Location.Z",blockz);
|
plugin.getConfig().addDefault("Storage." + blockx + "," + blocky + "," + blockz + ".Location.Y", blocky);
|
||||||
plugin.getConfig().addDefault("Storage." + blockx + "," + blocky + "," + blockz + ".Location.W", blockw);
|
plugin.getConfig().addDefault("Storage." + blockx + "," + blocky + "," + blockz + ".Location.Z",blockz);
|
||||||
plugin.getConfig().addDefault("Storage." + blockx + "," + blocky + "," + blockz + ".ItemsInStorage", itemsinchest);
|
plugin.getConfig().addDefault("Storage." + blockx + "," + blocky + "," + blockz + ".Location.W", blockw);
|
||||||
|
plugin.getConfig().addDefault("Storage." + blockx + "," + blocky + "," + blockz + ".ItemsInStorage", itemsinchest);
|
||||||
|
}else{
|
||||||
|
plugin.getConfig().set("Storage." + blockx + "," + blocky+ "," + blockz + ".Location.X",blockx);
|
||||||
|
plugin.getConfig().set("Storage." + blockx + "," + blocky + "," + blockz + ".Location.Y", blocky);
|
||||||
|
plugin.getConfig().set("Storage." + blockx + "," + blocky + "," + blockz + ".Location.Z", blockz);
|
||||||
|
plugin.getConfig().set("Storage." + blockx + "," + blocky + "," + blockz + ".Location.W", blockw);
|
||||||
|
plugin.getConfig().set("Storage." + blockx + "," + blocky + "," + blockz + ".ItemsInStorage", itemsinchest);
|
||||||
|
}
|
||||||
|
List<String> list2 = plugin.getConfig().getStringList("StorageXYZ");
|
||||||
|
list2.add(blockx + "," + blocky + "," + blockz);
|
||||||
|
plugin.getConfig().set("StorageXYZ", list2);
|
||||||
|
plugin.getConfig().options().copyDefaults(true);
|
||||||
|
plugin.saveConfig();
|
||||||
|
p.sendMessage(ChatColor.GREEN + "Chest Stored!");
|
||||||
}else{
|
}else{
|
||||||
plugin.getConfig().set("Storage." + blockx + "," + blocky+ "," + blockz + ".Location.X",blockx);
|
p.sendMessage(ChatColor.RED + "You don't have permission to store chests!");
|
||||||
plugin.getConfig().set("Storage." + blockx + "," + blocky + "," + blockz + ".Location.Y", blocky);
|
|
||||||
plugin.getConfig().set("Storage." + blockx + "," + blocky + "," + blockz + ".Location.Z", blockz);
|
|
||||||
plugin.getConfig().set("Storage." + blockx + "," + blocky + "," + blockz + ".Location.W", blockw);
|
|
||||||
plugin.getConfig().set("Storage." + blockx + "," + blocky + "," + blockz + ".ItemsInStorage", itemsinchest);
|
|
||||||
}
|
}
|
||||||
List<String> list2 = plugin.getConfig().getStringList("StorageXYZ");
|
|
||||||
list2.add(blockx + "," + blocky + "," + blockz);
|
|
||||||
plugin.getConfig().set("StorageXYZ", list2);
|
|
||||||
plugin.getConfig().options().copyDefaults(true);
|
|
||||||
plugin.saveConfig();
|
|
||||||
p.sendMessage(ChatColor.GREEN + "Chest Stored!");
|
|
||||||
}else{
|
|
||||||
p.sendMessage(ChatColor.RED + "You don't have permission to store chests!");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -75,9 +77,9 @@ public class Chests implements Listener {
|
|||||||
plugin.saveConfig();
|
plugin.saveConfig();
|
||||||
p.sendMessage("Chest Removed!");
|
p.sendMessage("Chest Removed!");
|
||||||
} else {
|
} else {
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
p.sendMessage(ChatColor.RED + "[HungerArena] That's a storage chest! You don't have permission to break it!");
|
p.sendMessage(ChatColor.RED + "[HungerArena] That's a storage chest! You don't have permission to break it!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -41,6 +41,7 @@ public class Main extends JavaPlugin{
|
|||||||
public CommandExecutor SpawnsCommand = new SpawnsCommand(this);
|
public CommandExecutor SpawnsCommand = new SpawnsCommand(this);
|
||||||
public boolean canjoin;
|
public boolean canjoin;
|
||||||
public boolean exists;
|
public boolean exists;
|
||||||
|
public boolean restricted;
|
||||||
public FileConfiguration config;
|
public FileConfiguration config;
|
||||||
public ItemStack Reward;
|
public ItemStack Reward;
|
||||||
public ItemStack Cost;
|
public ItemStack Cost;
|
||||||
@ -89,6 +90,11 @@ public class Main extends JavaPlugin{
|
|||||||
}
|
}
|
||||||
Reward = new ItemStack(config.getInt("Reward.ID"), config.getInt("Reward.Amount"));
|
Reward = new ItemStack(config.getInt("Reward.ID"), config.getInt("Reward.Amount"));
|
||||||
Cost = new ItemStack(config.getInt("Sponsor_Cost.ID"), config.getInt("Sponsor_Cost.Amount"));
|
Cost = new ItemStack(config.getInt("Sponsor_Cost.ID"), config.getInt("Sponsor_Cost.Amount"));
|
||||||
|
if(config.getStringList("worlds").isEmpty()){
|
||||||
|
restricted = false;
|
||||||
|
}else if(!config.getStringList("worlds").isEmpty()){
|
||||||
|
restricted = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onDisable(){
|
public void onDisable(){
|
||||||
|
@ -18,222 +18,228 @@ public class SpawnsCommand implements CommandExecutor {
|
|||||||
Player p = (Player) sender;
|
Player p = (Player) sender;
|
||||||
if(cmd.getName().equalsIgnoreCase("StartPoint")){
|
if(cmd.getName().equalsIgnoreCase("StartPoint")){
|
||||||
if(p.hasPermission("HungerArena.StartPoint")){
|
if(p.hasPermission("HungerArena.StartPoint")){
|
||||||
Location ploc = p.getLocation().getBlock().getLocation();
|
if(!plugin.restricted || (plugin.restricted && plugin.config.getStringList("worlds").contains(p.getWorld().toString()))){
|
||||||
if(args[0].equalsIgnoreCase("1")){
|
if(plugin.restricted && !plugin.config.getStringList("worlds").contains(p.getWorld().toString())){
|
||||||
double x = ploc.getX();
|
p.sendMessage(ChatColor.GOLD + "We ran the command, however, this isn't a world you defined in the config...");
|
||||||
double y = ploc.getY();
|
p.sendMessage(ChatColor.GOLD + "If this is the right world, please disregard this message.");
|
||||||
double z = ploc.getZ();
|
}
|
||||||
String w = ploc.getWorld().getName();
|
Location ploc = p.getLocation().getBlock().getLocation();
|
||||||
plugin.config.set("Tribute_one_spawn", x + "," + y + "," + z + "," + w);
|
if(args[0].equalsIgnoreCase("1")){
|
||||||
plugin.saveConfig();
|
double x = ploc.getX();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute one!");
|
double y = ploc.getY();
|
||||||
}
|
double z = ploc.getZ();
|
||||||
if(args[0].equalsIgnoreCase("2")){
|
String w = ploc.getWorld().getName();
|
||||||
double x = ploc.getX();
|
plugin.config.set("Tribute_one_spawn", x + "," + y + "," + z + "," + w);
|
||||||
double y = ploc.getY();
|
plugin.saveConfig();
|
||||||
double z = ploc.getZ();
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute one!");
|
||||||
String w = ploc.getWorld().getName();
|
}
|
||||||
plugin.config.set("Tribute_two_spawn", x + "," + y + "," + z + "," + w);
|
if(args[0].equalsIgnoreCase("2")){
|
||||||
plugin.saveConfig();
|
double x = ploc.getX();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute two!");
|
double y = ploc.getY();
|
||||||
}
|
double z = ploc.getZ();
|
||||||
if(args[0].equalsIgnoreCase("3")){
|
String w = ploc.getWorld().getName();
|
||||||
double x = ploc.getX();
|
plugin.config.set("Tribute_two_spawn", x + "," + y + "," + z + "," + w);
|
||||||
double y = ploc.getY();
|
plugin.saveConfig();
|
||||||
double z = ploc.getZ();
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute two!");
|
||||||
String w = ploc.getWorld().getName();
|
}
|
||||||
plugin.config.set("Tribute_three_spawn", x + "," + y + "," + z + "," + w);
|
if(args[0].equalsIgnoreCase("3")){
|
||||||
plugin.saveConfig();
|
double x = ploc.getX();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute three!");
|
double y = ploc.getY();
|
||||||
}
|
double z = ploc.getZ();
|
||||||
if(args[0].equalsIgnoreCase("4")){
|
String w = ploc.getWorld().getName();
|
||||||
double x = ploc.getX();
|
plugin.config.set("Tribute_three_spawn", x + "," + y + "," + z + "," + w);
|
||||||
double y = ploc.getY();
|
plugin.saveConfig();
|
||||||
double z = ploc.getZ();
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute three!");
|
||||||
String w = ploc.getWorld().getName();
|
}
|
||||||
plugin.config.set("Tribute_four_spawn", x + "," + y + "," + z + "," + w);
|
if(args[0].equalsIgnoreCase("4")){
|
||||||
plugin.saveConfig();
|
double x = ploc.getX();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute four!");
|
double y = ploc.getY();
|
||||||
}
|
double z = ploc.getZ();
|
||||||
if(args[0].equalsIgnoreCase("5")){
|
String w = ploc.getWorld().getName();
|
||||||
double x = ploc.getX();
|
plugin.config.set("Tribute_four_spawn", x + "," + y + "," + z + "," + w);
|
||||||
double y = ploc.getY();
|
plugin.saveConfig();
|
||||||
double z = ploc.getZ();
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute four!");
|
||||||
String w = ploc.getWorld().getName();
|
}
|
||||||
plugin.config.set("Tribute_five_spawn", x + "," + y + "," + z + "," + w);
|
if(args[0].equalsIgnoreCase("5")){
|
||||||
plugin.saveConfig();
|
double x = ploc.getX();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute five!");
|
double y = ploc.getY();
|
||||||
}
|
double z = ploc.getZ();
|
||||||
if(args[0].equalsIgnoreCase("6")){
|
String w = ploc.getWorld().getName();
|
||||||
double x = ploc.getX();
|
plugin.config.set("Tribute_five_spawn", x + "," + y + "," + z + "," + w);
|
||||||
double y = ploc.getY();
|
plugin.saveConfig();
|
||||||
double z = ploc.getZ();
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute five!");
|
||||||
String w = ploc.getWorld().getName();
|
}
|
||||||
plugin.config.set("Tribute_six_spawn", x + "," + y + "," + z + "," + w);
|
if(args[0].equalsIgnoreCase("6")){
|
||||||
plugin.saveConfig();
|
double x = ploc.getX();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute six!");
|
double y = ploc.getY();
|
||||||
}
|
double z = ploc.getZ();
|
||||||
if(args[0].equalsIgnoreCase("7")){
|
String w = ploc.getWorld().getName();
|
||||||
double x = ploc.getX();
|
plugin.config.set("Tribute_six_spawn", x + "," + y + "," + z + "," + w);
|
||||||
double y = ploc.getY();
|
plugin.saveConfig();
|
||||||
double z = ploc.getZ();
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute six!");
|
||||||
String w = ploc.getWorld().getName();
|
}
|
||||||
plugin.config.set("Tribute_seven_spawn", x + "," + y + "," + z + "," + w);
|
if(args[0].equalsIgnoreCase("7")){
|
||||||
plugin.saveConfig();
|
double x = ploc.getX();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute seven!");
|
double y = ploc.getY();
|
||||||
}
|
double z = ploc.getZ();
|
||||||
if(args[0].equalsIgnoreCase("8")){
|
String w = ploc.getWorld().getName();
|
||||||
double x = ploc.getX();
|
plugin.config.set("Tribute_seven_spawn", x + "," + y + "," + z + "," + w);
|
||||||
double y = ploc.getY();
|
plugin.saveConfig();
|
||||||
double z = ploc.getZ();
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute seven!");
|
||||||
String w = ploc.getWorld().getName();
|
}
|
||||||
plugin.config.set("Tribute_eight_spawn", x + "," + y + "," + z + "," + w);
|
if(args[0].equalsIgnoreCase("8")){
|
||||||
plugin.saveConfig();
|
double x = ploc.getX();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute eight!");
|
double y = ploc.getY();
|
||||||
}
|
double z = ploc.getZ();
|
||||||
if(args[0].equalsIgnoreCase("9")){
|
String w = ploc.getWorld().getName();
|
||||||
double x = ploc.getX();
|
plugin.config.set("Tribute_eight_spawn", x + "," + y + "," + z + "," + w);
|
||||||
double y = ploc.getY();
|
plugin.saveConfig();
|
||||||
double z = ploc.getZ();
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute eight!");
|
||||||
String w = ploc.getWorld().getName();
|
}
|
||||||
plugin.config.set("Tribute_nine_spawn", x + "," + y + "," + z + "," + w);
|
if(args[0].equalsIgnoreCase("9")){
|
||||||
plugin.saveConfig();
|
double x = ploc.getX();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute nine!");
|
double y = ploc.getY();
|
||||||
}
|
double z = ploc.getZ();
|
||||||
if(args[0].equalsIgnoreCase("10")){
|
String w = ploc.getWorld().getName();
|
||||||
double x = ploc.getX();
|
plugin.config.set("Tribute_nine_spawn", x + "," + y + "," + z + "," + w);
|
||||||
double y = ploc.getY();
|
plugin.saveConfig();
|
||||||
double z = ploc.getZ();
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute nine!");
|
||||||
String w = ploc.getWorld().getName();
|
}
|
||||||
plugin.config.set("Tribute_ten_spawn", x + "," + y + "," + z + "," + w);
|
if(args[0].equalsIgnoreCase("10")){
|
||||||
plugin.saveConfig();
|
double x = ploc.getX();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute ten!");
|
double y = ploc.getY();
|
||||||
}
|
double z = ploc.getZ();
|
||||||
if(args[0].equalsIgnoreCase("11")){
|
String w = ploc.getWorld().getName();
|
||||||
double x = ploc.getX();
|
plugin.config.set("Tribute_ten_spawn", x + "," + y + "," + z + "," + w);
|
||||||
double y = ploc.getY();
|
plugin.saveConfig();
|
||||||
double z = ploc.getZ();
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute ten!");
|
||||||
String w = ploc.getWorld().getName();
|
}
|
||||||
plugin.config.set("Tribute_eleven_spawn", x + "," + y + "," + z + "," + w);
|
if(args[0].equalsIgnoreCase("11")){
|
||||||
plugin.saveConfig();
|
double x = ploc.getX();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute eleven!");
|
double y = ploc.getY();
|
||||||
}
|
double z = ploc.getZ();
|
||||||
if(args[0].equalsIgnoreCase("12")){
|
String w = ploc.getWorld().getName();
|
||||||
double x = ploc.getX();
|
plugin.config.set("Tribute_eleven_spawn", x + "," + y + "," + z + "," + w);
|
||||||
double y = ploc.getY();
|
plugin.saveConfig();
|
||||||
double z = ploc.getZ();
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute eleven!");
|
||||||
String w = ploc.getWorld().getName();
|
}
|
||||||
plugin.config.set("Tribute_twelve_spawn", x + "," + y + "," + z + "," + w);
|
if(args[0].equalsIgnoreCase("12")){
|
||||||
plugin.saveConfig();
|
double x = ploc.getX();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute twelve!");
|
double y = ploc.getY();
|
||||||
}
|
double z = ploc.getZ();
|
||||||
if(args[0].equalsIgnoreCase("13")){
|
String w = ploc.getWorld().getName();
|
||||||
double x = ploc.getX();
|
plugin.config.set("Tribute_twelve_spawn", x + "," + y + "," + z + "," + w);
|
||||||
double y = ploc.getY();
|
plugin.saveConfig();
|
||||||
double z = ploc.getZ();
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute twelve!");
|
||||||
String w = ploc.getWorld().getName();
|
}
|
||||||
plugin.config.set("Tribute_thirteen_spawn", x + "," + y + "," + z + "," + w);
|
if(args[0].equalsIgnoreCase("13")){
|
||||||
plugin.saveConfig();
|
double x = ploc.getX();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute thirteen!");
|
double y = ploc.getY();
|
||||||
}
|
double z = ploc.getZ();
|
||||||
if(args[0].equalsIgnoreCase("14")){
|
String w = ploc.getWorld().getName();
|
||||||
double x = ploc.getX();
|
plugin.config.set("Tribute_thirteen_spawn", x + "," + y + "," + z + "," + w);
|
||||||
double y = ploc.getY();
|
plugin.saveConfig();
|
||||||
double z = ploc.getZ();
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute thirteen!");
|
||||||
String w = ploc.getWorld().getName();
|
}
|
||||||
plugin.config.set("Tribute_fourteen_spawn", x + "," + y + "," + z + "," + w);
|
if(args[0].equalsIgnoreCase("14")){
|
||||||
plugin.saveConfig();
|
double x = ploc.getX();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute fourteen!");
|
double y = ploc.getY();
|
||||||
}
|
double z = ploc.getZ();
|
||||||
if(args[0].equalsIgnoreCase("15")){
|
String w = ploc.getWorld().getName();
|
||||||
double x = ploc.getX();
|
plugin.config.set("Tribute_fourteen_spawn", x + "," + y + "," + z + "," + w);
|
||||||
double y = ploc.getY();
|
plugin.saveConfig();
|
||||||
double z = ploc.getZ();
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute fourteen!");
|
||||||
String w = ploc.getWorld().getName();
|
}
|
||||||
plugin.config.set("Tribute_fifteen_spawn", x + "," + y + "," + z + "," + w);
|
if(args[0].equalsIgnoreCase("15")){
|
||||||
plugin.saveConfig();
|
double x = ploc.getX();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute fifteen!");
|
double y = ploc.getY();
|
||||||
}
|
double z = ploc.getZ();
|
||||||
if(args[0].equalsIgnoreCase("16")){
|
String w = ploc.getWorld().getName();
|
||||||
double x = ploc.getX();
|
plugin.config.set("Tribute_fifteen_spawn", x + "," + y + "," + z + "," + w);
|
||||||
double y = ploc.getY();
|
plugin.saveConfig();
|
||||||
double z = ploc.getZ();
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute fifteen!");
|
||||||
String w = ploc.getWorld().getName();
|
}
|
||||||
plugin.config.set("Tribute_sixteen_spawn", x + "," + y + "," + z + "," + w);
|
if(args[0].equalsIgnoreCase("16")){
|
||||||
plugin.saveConfig();
|
double x = ploc.getX();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute sixteen!");
|
double y = ploc.getY();
|
||||||
}
|
double z = ploc.getZ();
|
||||||
if(args[0].equalsIgnoreCase("17")){
|
String w = ploc.getWorld().getName();
|
||||||
double x = ploc.getX();
|
plugin.config.set("Tribute_sixteen_spawn", x + "," + y + "," + z + "," + w);
|
||||||
double y = ploc.getY();
|
plugin.saveConfig();
|
||||||
double z = ploc.getZ();
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute sixteen!");
|
||||||
String w = ploc.getWorld().getName();
|
}
|
||||||
plugin.config.set("Tribute_seventeen_spawn", x + "," + y + "," + z + "," + w);
|
if(args[0].equalsIgnoreCase("17")){
|
||||||
plugin.saveConfig();
|
double x = ploc.getX();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute seventeen!");
|
double y = ploc.getY();
|
||||||
}
|
double z = ploc.getZ();
|
||||||
if(args[0].equalsIgnoreCase("18")){
|
String w = ploc.getWorld().getName();
|
||||||
double x = ploc.getX();
|
plugin.config.set("Tribute_seventeen_spawn", x + "," + y + "," + z + "," + w);
|
||||||
double y = ploc.getY();
|
plugin.saveConfig();
|
||||||
double z = ploc.getZ();
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute seventeen!");
|
||||||
String w = ploc.getWorld().getName();
|
}
|
||||||
plugin.config.set("Tribute_eighteen_spawn", x + "," + y + "," + z + "," + w);
|
if(args[0].equalsIgnoreCase("18")){
|
||||||
plugin.saveConfig();
|
double x = ploc.getX();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute eighteen!");
|
double y = ploc.getY();
|
||||||
}
|
double z = ploc.getZ();
|
||||||
if(args[0].equalsIgnoreCase("19")){
|
String w = ploc.getWorld().getName();
|
||||||
double x = ploc.getX();
|
plugin.config.set("Tribute_eighteen_spawn", x + "," + y + "," + z + "," + w);
|
||||||
double y = ploc.getY();
|
plugin.saveConfig();
|
||||||
double z = ploc.getZ();
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute eighteen!");
|
||||||
String w = ploc.getWorld().getName();
|
}
|
||||||
plugin.config.set("Tribute_nineteen_spawn", x + "," + y + "," + z + "," + w);
|
if(args[0].equalsIgnoreCase("19")){
|
||||||
plugin.saveConfig();
|
double x = ploc.getX();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute nineteen!");
|
double y = ploc.getY();
|
||||||
}
|
double z = ploc.getZ();
|
||||||
if(args[0].equalsIgnoreCase("20")){
|
String w = ploc.getWorld().getName();
|
||||||
double x = ploc.getX();
|
plugin.config.set("Tribute_nineteen_spawn", x + "," + y + "," + z + "," + w);
|
||||||
double y = ploc.getY();
|
plugin.saveConfig();
|
||||||
double z = ploc.getZ();
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute nineteen!");
|
||||||
String w = ploc.getWorld().getName();
|
}
|
||||||
plugin.config.set("Tribute_twenty_spawn", x + "," + y + "," + z + "," + w);
|
if(args[0].equalsIgnoreCase("20")){
|
||||||
plugin.saveConfig();
|
double x = ploc.getX();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute twenty!");
|
double y = ploc.getY();
|
||||||
}
|
double z = ploc.getZ();
|
||||||
if(args[0].equalsIgnoreCase("21")){
|
String w = ploc.getWorld().getName();
|
||||||
double x = ploc.getX();
|
plugin.config.set("Tribute_twenty_spawn", x + "," + y + "," + z + "," + w);
|
||||||
double y = ploc.getY();
|
plugin.saveConfig();
|
||||||
double z = ploc.getZ();
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute twenty!");
|
||||||
String w = ploc.getWorld().getName();
|
}
|
||||||
plugin.config.set("Tribute_twentyone_spawn", x + "," + y + "," + z + "," + w);
|
if(args[0].equalsIgnoreCase("21")){
|
||||||
plugin.saveConfig();
|
double x = ploc.getX();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute twentyone!");
|
double y = ploc.getY();
|
||||||
}
|
double z = ploc.getZ();
|
||||||
if(args[0].equalsIgnoreCase("22")){
|
String w = ploc.getWorld().getName();
|
||||||
double x = ploc.getX();
|
plugin.config.set("Tribute_twentyone_spawn", x + "," + y + "," + z + "," + w);
|
||||||
double y = ploc.getY();
|
plugin.saveConfig();
|
||||||
double z = ploc.getZ();
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute twentyone!");
|
||||||
String w = ploc.getWorld().getName();
|
}
|
||||||
plugin.config.set("Tribute_twentytwo_spawn", x + "," + y + "," + z + "," + w);
|
if(args[0].equalsIgnoreCase("22")){
|
||||||
plugin.saveConfig();
|
double x = ploc.getX();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute twentytwo!");
|
double y = ploc.getY();
|
||||||
}
|
double z = ploc.getZ();
|
||||||
if(args[0].equalsIgnoreCase("23")){
|
String w = ploc.getWorld().getName();
|
||||||
double x = ploc.getX();
|
plugin.config.set("Tribute_twentytwo_spawn", x + "," + y + "," + z + "," + w);
|
||||||
double y = ploc.getY();
|
plugin.saveConfig();
|
||||||
double z = ploc.getZ();
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute twentytwo!");
|
||||||
String w = ploc.getWorld().getName();
|
}
|
||||||
plugin.config.set("Tribute_twentythree_spawn", x + "," + y + "," + z + "," + w);
|
if(args[0].equalsIgnoreCase("23")){
|
||||||
plugin.saveConfig();
|
double x = ploc.getX();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute twentythree!");
|
double y = ploc.getY();
|
||||||
}
|
double z = ploc.getZ();
|
||||||
if(args[0].equalsIgnoreCase("24")){
|
String w = ploc.getWorld().getName();
|
||||||
double x = ploc.getX();
|
plugin.config.set("Tribute_twentythree_spawn", x + "," + y + "," + z + "," + w);
|
||||||
double y = ploc.getY();
|
plugin.saveConfig();
|
||||||
double z = ploc.getZ();
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute twentythree!");
|
||||||
String w = ploc.getWorld().getName();
|
}
|
||||||
plugin.config.set("Tribute_twentyfour_spawn", x + "," + y + "," + z + "," + w);
|
if(args[0].equalsIgnoreCase("24")){
|
||||||
plugin.saveConfig();
|
double x = ploc.getX();
|
||||||
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute twentyfour!");
|
double y = ploc.getY();
|
||||||
|
double z = ploc.getZ();
|
||||||
|
String w = ploc.getWorld().getName();
|
||||||
|
plugin.config.set("Tribute_twentyfour_spawn", x + "," + y + "," + z + "," + w);
|
||||||
|
plugin.saveConfig();
|
||||||
|
p.sendMessage(ChatColor.AQUA + "You have set the spawn location of Tribute twentyfour!");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
p.sendMessage(ChatColor.RED + "You don't have permission!");
|
p.sendMessage(ChatColor.RED + "You don't have permission!");
|
||||||
|
@ -17,7 +17,7 @@ public class TeleportListener implements Listener {
|
|||||||
this.plugin = m;
|
this.plugin = m;
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
/*@EventHandler Unwanted right now...
|
||||||
public void onTP(PlayerTeleportEvent evt) {
|
public void onTP(PlayerTeleportEvent evt) {
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
Player p = evt.getPlayer();
|
Player p = evt.getPlayer();
|
||||||
@ -32,6 +32,6 @@ public class TeleportListener implements Listener {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
evt.setCancelled(true);
|
evt.setCancelled(true);
|
||||||
}
|
}*/
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user