More draw words
UHC complete! probably not :'(
This commit is contained in:
parent
a29cc4664f
commit
00bccdc1f7
@ -113,7 +113,12 @@ public class Draw extends SoloGame
|
|||||||
"Book", "Swimming", "Horse", "Paper", "Toaster", "Television", "Hammer", "Piano", "Sleeping", "Yawn", "Sheep", "Night", "Chest", "Lamp", "Redstone",
|
"Book", "Swimming", "Horse", "Paper", "Toaster", "Television", "Hammer", "Piano", "Sleeping", "Yawn", "Sheep", "Night", "Chest", "Lamp", "Redstone",
|
||||||
"Grass", "Plane", "Ocean", "Lake", "Melon", "Pumpkin", "Gift", "Fishing", "Pirate", "Lightning", "Stomach", "Belly Button", "Fishing Rod",
|
"Grass", "Plane", "Ocean", "Lake", "Melon", "Pumpkin", "Gift", "Fishing", "Pirate", "Lightning", "Stomach", "Belly Button", "Fishing Rod",
|
||||||
"Iron Ore", "Diamonds", "Emeralds", "Nether Portal", "Ender Dragon", "Rabbit", "Harry Potter", "Miley Cyrus", "Torch", "Light", "Battery",
|
"Iron Ore", "Diamonds", "Emeralds", "Nether Portal", "Ender Dragon", "Rabbit", "Harry Potter", "Miley Cyrus", "Torch", "Light", "Battery",
|
||||||
"Zombie Pigman", "Telephone", "Tent"
|
"Zombie Pigman", "Telephone", "Tent", "Hand",
|
||||||
|
"Spoon", "Rainbow", "Staircase", "Poop", "Dragon", "Fire", "Apple", "Shoe", "Squid", "Cookie", "Tooth", "Camera", "Sock", "Monkey",
|
||||||
|
"Unicorn", "Smile", "Pool", "Rabbit", "Cupcake", "Pancake", "Princess", "Castle", "Flag", "Planet", "Stars", "Camp Fire", "Rose",
|
||||||
|
"Spray", "Pencil", "Torch", "Ice Cream", "Toilet", "Moose", "Bear", "Beer", "Batman", "Sun Glasses",
|
||||||
|
"Golf Club", "Tennis Racket", "Shield", "Crab", "Pot of Gold", "Cactus", "Television", "Pumpkin Pie", "Chimney", "Stable", "Nether", "Wither",
|
||||||
|
"Beach", "Stop Sign", "Chestplate", "Pokeball", "Christmas Tree", "Present", "Snowflake", "Laptop", "Superman", "Football", "Basketball", "Creeper", "Tetris", "Jump", "Ninja", "Baby", "Troll Face", "Grim Reaper", "Temple",
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@ import org.bukkit.Bukkit;
|
|||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.Chunk;
|
import org.bukkit.Chunk;
|
||||||
import org.bukkit.Difficulty;
|
import org.bukkit.Difficulty;
|
||||||
|
import org.bukkit.GameMode;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.Sound;
|
import org.bukkit.Sound;
|
||||||
@ -969,6 +970,20 @@ public class UHC extends TeamGame
|
|||||||
|
|
||||||
Announce(event.getPlayer().getName() + " set time to Day and Night!");
|
Announce(event.getPlayer().getName() + " set time to Day and Night!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (event.getMessage().startsWith("/dragondamage"))
|
||||||
|
{
|
||||||
|
if (event.getPlayer().getName().equals("Chiss"))
|
||||||
|
{
|
||||||
|
for (Entity ent : event.getPlayer().getWorld().getEntities())
|
||||||
|
{
|
||||||
|
if (ent instanceof EnderDragon)
|
||||||
|
{
|
||||||
|
((EnderDragon) ent).damage(100, event.getPlayer());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
@ -1331,7 +1346,7 @@ public class UHC extends TeamGame
|
|||||||
if (!_ended)
|
if (!_ended)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
GameTeam endTeam = GetTeam("Post Game", false);
|
GameTeam endTeam = GetTeam(ChatColor.GRAY);
|
||||||
|
|
||||||
if (endTeam == null)
|
if (endTeam == null)
|
||||||
{
|
{
|
||||||
@ -1347,10 +1362,29 @@ public class UHC extends TeamGame
|
|||||||
{
|
{
|
||||||
team.RemovePlayer(player);
|
team.RemovePlayer(player);
|
||||||
Manager.Clear(player);
|
Manager.Clear(player);
|
||||||
}
|
|
||||||
|
endTeam.AddPlayer(player);
|
||||||
endTeam.AddPlayer(player);
|
player.setGameMode(GameMode.CREATIVE);
|
||||||
player.setGameMode(GameMode.CREATIVE);
|
player.setFlying(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@EventHandler
|
||||||
|
public void EndCommands(PlayerCommandPreprocessEvent event)
|
||||||
|
{
|
||||||
|
if (!IsLive())
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (!_ended)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (event.getMessage().startsWith("/world"))
|
||||||
|
{
|
||||||
|
event.setCancelled(true);
|
||||||
|
event.getPlayer().teleport(_portalBlock.get(0).clone().add(0, 10, 0));
|
||||||
|
event.getPlayer().setGameMode(GameMode.CREATIVE);
|
||||||
|
event.getPlayer().setFlying(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user