mirror of
https://github.com/garbagemule/MobArena.git
synced 2025-01-13 11:41:28 +01:00
Re-added dooooo it hippie monster
This commit is contained in:
parent
5dc1c31056
commit
3b922c26a4
BIN
MobArena.jar
BIN
MobArena.jar
Binary file not shown.
@ -101,6 +101,7 @@ public class MACommands implements CommandExecutor
|
||||
String base = args[0].toLowerCase();
|
||||
String arg1 = (args.length > 1) ? args[1].toLowerCase() : "";
|
||||
String arg2 = (args.length > 2) ? args[2].toLowerCase() : "";
|
||||
String arg3 = (args.length > 3) ? args[3].toLowerCase() : "";
|
||||
|
||||
|
||||
|
||||
@ -1052,6 +1053,55 @@ public class MACommands implements CommandExecutor
|
||||
return true;
|
||||
}
|
||||
|
||||
if (base.equals("dooooo") && arg1.equals("it") && arg2.equals("hippie") && arg3.equals("monster"))
|
||||
{
|
||||
if (!(player && MobArena.has(p, "mobarena.setup.autogenerate")) && !op)
|
||||
{
|
||||
MAUtils.tellPlayer(sender, MAMessages.get(Msg.MISC_NO_ACCESS));
|
||||
return true;
|
||||
}
|
||||
|
||||
String name = "a0";
|
||||
do name = name.substring(0,1) + (Integer.parseInt(name.substring(1,2)) + 1);
|
||||
while (am.getArenaWithName(name) != null);
|
||||
|
||||
if (MAUtils.doooooItHippieMonster(p.getLocation(), 13, name, plugin))
|
||||
MAUtils.tellPlayer(sender, "Arena with name '" + name + "' generated.");
|
||||
else
|
||||
MAUtils.tellPlayer(sender, "Could not auto-generate arena.");
|
||||
return true;
|
||||
}
|
||||
|
||||
if (base.equals("undo") && arg1.equals("it") && arg2.equals("hippie") && arg3.equals("monster"))
|
||||
{
|
||||
if (!(player && MobArena.has(p, "mobarena.setup.autodegenerate")) && !op)
|
||||
{
|
||||
MAUtils.tellPlayer(sender, MAMessages.get(Msg.MISC_NO_ACCESS));
|
||||
return true;
|
||||
}
|
||||
if (am.arenas.size() < 2)
|
||||
{
|
||||
MAUtils.tellPlayer(sender, "At least one arena must exist!");
|
||||
return true;
|
||||
}
|
||||
if (am.getArenaWithName("a1") == null)
|
||||
{
|
||||
MAUtils.tellPlayer(sender, MAMessages.get(Msg.ARENA_DOES_NOT_EXIST));
|
||||
return true;
|
||||
}
|
||||
|
||||
String name = "a1";
|
||||
while (am.getArenaWithName(name) != null)
|
||||
name = name.substring(0,1) + (Integer.parseInt(name.substring(1,2)) + 1);
|
||||
name = name.substring(0,1) + (Integer.parseInt(name.substring(1,2)) - 1);
|
||||
|
||||
if (MAUtils.undoItHippieMonster(name, plugin, true))
|
||||
MAUtils.tellPlayer(sender, "Arena with name '" + name + "' degenerated.");
|
||||
else
|
||||
MAUtils.tellPlayer(sender, "Could not degenerate arena.");
|
||||
return true;
|
||||
}
|
||||
|
||||
MAUtils.tellPlayer(sender, "Command not found.");
|
||||
return true;
|
||||
}
|
||||
|
@ -1043,7 +1043,7 @@ public class MAUtils
|
||||
*/
|
||||
public static void checkForUpdates(MobArena plugin, final Player p, boolean response)
|
||||
{
|
||||
String site = "http://forums.bukkit.org/threads/818.19144/";
|
||||
String site = "http://forums.bukkit.org/threads/19144/";
|
||||
try
|
||||
{
|
||||
// Make a URI of the site address
|
||||
|
Loading…
Reference in New Issue
Block a user