Class signs can now contain colors!

This commit is contained in:
Garbage Mule 2011-10-04 22:28:53 +02:00
parent f4b89fe386
commit b13ff6b7fc
3 changed files with 3 additions and 2 deletions

Binary file not shown.

View File

@ -1,6 +1,6 @@
name: MobArena
main: com.garbagemule.MobArena.MobArena
version: 0.94.3.12
version: 0.94.3.13
softdepend: [Spout,Permissions,MultiVerse,XcraftGate,Towny,Heroes,MagicSpells]
commands:
ma:

View File

@ -1,6 +1,7 @@
package com.garbagemule.MobArena;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.block.Block;
@ -577,7 +578,7 @@ public class MAListener implements ArenaListener
Sign sign = (Sign) event.getClickedBlock().getState();
// Check if the first line of the sign is a class name.
String className = sign.getLine(0);
String className = ChatColor.stripColor(sign.getLine(0));
if (!arena.classes.contains(className) && !className.equalsIgnoreCase("random"))
return;