preparations for 1.1.1 release

This commit is contained in:
Gibstick 2013-08-07 14:51:44 -04:00
parent 54cbc2f8c1
commit 8ee6a3465e
4 changed files with 5 additions and 4 deletions

View File

@ -266,7 +266,7 @@ public class DiscoParty {
} }
void spawnGuest(World world, Location loc, EntityType type) { void spawnGuest(World world, Location loc, EntityType type) {
Entity newGuest = world.spawnEntity(loc, type); Entity newGuest = loc.getWorld().spawnEntity(loc, type);
getGuestList().add(newGuest); getGuestList().add(newGuest);
if (doLightning) { if (doLightning) {
world.strikeLightningEffect(loc); world.strikeLightningEffect(loc);

View File

@ -43,7 +43,7 @@ public final class DiscoSheep extends JavaPlugin {
getConfig().addDefault("default.radius", DiscoParty.defaultRadius); getConfig().addDefault("default.radius", DiscoParty.defaultRadius);
getConfig().addDefault("default.duration", toSeconds_i(DiscoParty.defaultDuration)); getConfig().addDefault("default.duration", toSeconds_i(DiscoParty.defaultDuration));
getConfig().addDefault("default.period-ticks", DiscoParty.defaultPeriod); getConfig().addDefault("default.period-ticks", DiscoParty.defaultPeriod);
/* /*
* Iterate through all live entities and create default configuration values for them * Iterate through all live entities and create default configuration values for them
* excludes bosses and other mobs that throw NPE * excludes bosses and other mobs that throw NPE
@ -177,6 +177,7 @@ public final class DiscoSheep extends JavaPlugin {
+ "-p <ticks>: set the number of ticks between each disco beat\n" + "-p <ticks>: set the number of ticks between each disco beat\n"
+ "-r <integer>: set radius of the area in which sheep can spawn\n" + "-r <integer>: set radius of the area in which sheep can spawn\n"
+ "-g <mob> <number>: set spawns for other mobs" + "-g <mob> <number>: set spawns for other mobs"
+ "-l: enables lightning"
+ "-fw: enables fireworks"); + "-fw: enables fireworks");
return true; return true;
} }

View File

@ -162,7 +162,7 @@ public class DiscoSheepCommandExecutor implements CommandExecutor {
try { try {
mainParty.setGuestNumber(guests[j], getNextIntArg(guests, j)); mainParty.setGuestNumber(guests[j], getNextIntArg(guests, j));
} catch (IllegalArgumentException e) { } catch (IllegalArgumentException e) {
sender.sendMessage("Invalid arguments: " + guests[j] + ", " + guests[j + 1] sender.sendMessage(ChatColor.RED + "Invalid arguments: " + ChatColor.WHITE + guests[j] + ", " + guests[j + 1]
+ ".\nEither a name typo or a number that is not within limits."); + ".\nEither a name typo or a number that is not within limits.");
} }
j += 2; // skip over two arguments, since they come in pairs of entity-number j += 2; // skip over two arguments, since they come in pairs of entity-number

View File

@ -1,7 +1,7 @@
name: DiscoSheep name: DiscoSheep
main: ca.gibstick.discosheep.DiscoSheep main: ca.gibstick.discosheep.DiscoSheep
authors: [Gibstick, RangerMauve] authors: [Gibstick, RangerMauve]
version: 1.1 version: 1.1.1
commands: commands:
ds: ds:
description: "Main DiscoSheep command" description: "Main DiscoSheep command"