Increased void teleporter area, added option to set message color
This commit is contained in:
parent
6d573a0d68
commit
15c6a57979
10 changed files with 30 additions and 13 deletions
Binary file not shown.
|
@ -141,8 +141,7 @@ public class Commands implements CommandExecutor {
|
||||||
case "announce":
|
case "announce":
|
||||||
DoAnnounce(player, args, null);
|
DoAnnounce(player, args, null);
|
||||||
break;
|
break;
|
||||||
case "name":
|
case "name": {
|
||||||
{
|
|
||||||
if (args.length == 1) {
|
if (args.length == 1) {
|
||||||
player.sendMessage("§cUsage: /u name <playername>§r");
|
player.sendMessage("§cUsage: /u name <playername>§r");
|
||||||
break;
|
break;
|
||||||
|
@ -175,16 +174,29 @@ public class Commands implements CommandExecutor {
|
||||||
DoKittyCannon(player, args);
|
DoKittyCannon(player, args);
|
||||||
break;
|
break;
|
||||||
case "c":
|
case "c":
|
||||||
if (PluginMain.permission.has(player, "tbmc.rainbow"))
|
if (args.length < 2) {
|
||||||
{
|
if (PluginMain.permission.has(player, "tbmc.rainbow")) {
|
||||||
p.RainbowPresserColorMode = !p.RainbowPresserColorMode;
|
p.RainbowPresserColorMode = !p.RainbowPresserColorMode;
|
||||||
if(p.RainbowPresserColorMode)
|
p.OtherColorMode = 0xFF;
|
||||||
player.sendMessage("§eRainbow colors §aenabled.");
|
if (p.RainbowPresserColorMode)
|
||||||
else
|
player.sendMessage("§eRainbow colors §aenabled.");
|
||||||
player.sendMessage("§eRainbow colors §cdisabled.");
|
else
|
||||||
|
player.sendMessage("§eRainbow colors §cdisabled.");
|
||||||
|
} else {
|
||||||
|
player.sendMessage("§cYou don't have permission for this command. Donate to get it!");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (PluginMain.permission.has(player, "tbmc.admin")) {
|
||||||
|
p.RainbowPresserColorMode = false;
|
||||||
|
p.OtherColorMode = Short.parseShort(args[1], 16);
|
||||||
|
if (p.OtherColorMode != 0xFF)
|
||||||
|
player.sendMessage("§eMessage color set to §"
|
||||||
|
+ p.OtherColorMode + p.OtherColorMode);
|
||||||
|
else
|
||||||
|
player.sendMessage("§eMessage color reset.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
return false;
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -28,6 +28,7 @@ public class MaybeOfflinePlayer {
|
||||||
public boolean SendingLink = false;
|
public boolean SendingLink = false;
|
||||||
public int FDeaths;
|
public int FDeaths;
|
||||||
public boolean RainbowPresserColorMode = false;
|
public boolean RainbowPresserColorMode = false;
|
||||||
|
public short OtherColorMode = 0xFF;
|
||||||
|
|
||||||
public UUID UUID;
|
public UUID UUID;
|
||||||
|
|
||||||
|
|
|
@ -263,6 +263,10 @@ public class PlayerListener implements Listener { // 2015.07.16.
|
||||||
rpc = 0;
|
rpc = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (player.OtherColorMode != 0xFF) {
|
||||||
|
formattedmessage = String.format("§%x%s", player.OtherColorMode,
|
||||||
|
formattedmessage);
|
||||||
|
}
|
||||||
|
|
||||||
if (!hadurls) {
|
if (!hadurls) {
|
||||||
for (Player p : PluginMain.GetPlayers()) { // 2015.08.12.
|
for (Player p : PluginMain.GetPlayers()) { // 2015.08.12.
|
||||||
|
@ -1019,8 +1023,8 @@ public class PlayerListener implements Listener { // 2015.07.16.
|
||||||
public void onPlayerMove(PlayerMoveEvent e) {
|
public void onPlayerMove(PlayerMoveEvent e) {
|
||||||
// minecraft:tp @a[x=190,y=-80,z=45,dx=5,dy=50,dz=5] 190 1 45
|
// minecraft:tp @a[x=190,y=-80,z=45,dx=5,dy=50,dz=5] 190 1 45
|
||||||
if (e.getPlayer().getWorld().getName().equals("wilds")
|
if (e.getPlayer().getWorld().getName().equals("wilds")
|
||||||
&& e.getTo().getBlockX() > 185 && e.getTo().getBlockX() < 200
|
&& e.getTo().getBlockX() > 100 && e.getTo().getBlockX() < 250
|
||||||
&& e.getTo().getBlockZ() > 40 && e.getTo().getBlockZ() < 60
|
&& e.getTo().getBlockZ() > 0 && e.getTo().getBlockZ() < 200
|
||||||
&& e.getTo().getBlockY() < -64) {
|
&& e.getTo().getBlockY() < -64) {
|
||||||
final Player p = e.getPlayer();
|
final Player p = e.getPlayer();
|
||||||
p.setVelocity(new Vector(0, 0, 0));
|
p.setVelocity(new Vector(0, 0, 0));
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue