mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Fix for ezModo not working and changed brackets in chat to be White again for now.
This commit is contained in:
parent
b2711e4328
commit
1388780143
@ -459,8 +459,8 @@ public class vMinecraftChat {
|
|||||||
public static boolean quote(Player player, String message)
|
public static boolean quote(Player player, String message)
|
||||||
{
|
{
|
||||||
//Format the name
|
//Format the name
|
||||||
String playerName = player.getColor() + "<" + getName(player)
|
String playerName = Colors.White + "<" + getName(player)
|
||||||
+ player.getColor() + "> ";
|
+ Colors.White + "> ";
|
||||||
if(vMinecraftSettings.getInstance().greentext()) {
|
if(vMinecraftSettings.getInstance().greentext()) {
|
||||||
//Log the chat
|
//Log the chat
|
||||||
log.log(Level.INFO, "<"+player.getName()+"> " + message);
|
log.log(Level.INFO, "<"+player.getName()+"> " + message);
|
||||||
@ -504,8 +504,8 @@ public class vMinecraftChat {
|
|||||||
public static boolean quakeColors(Player player, String message)
|
public static boolean quakeColors(Player player, String message)
|
||||||
{
|
{
|
||||||
//Format the name
|
//Format the name
|
||||||
String playerName = player.getColor() + "<"
|
String playerName = Colors.White + "<"
|
||||||
+ getName(player) + player.getColor() +"> ";
|
+ getName(player) + Colors.White +"> ";
|
||||||
if(vMinecraftSettings.getInstance().quakeColors()) {
|
if(vMinecraftSettings.getInstance().quakeColors()) {
|
||||||
|
|
||||||
String color = vMinecraftUsers.getProfile(player).getColor();
|
String color = vMinecraftUsers.getProfile(player).getColor();
|
||||||
|
@ -86,6 +86,10 @@ public class vMinecraftListener extends PluginListener {
|
|||||||
//Use: Checks for exploits and runs the commands
|
//Use: Checks for exploits and runs the commands
|
||||||
//=====================================================================
|
//=====================================================================
|
||||||
public boolean onHealthChange(Player player,int oldValue,int newValue){
|
public boolean onHealthChange(Player player,int oldValue,int newValue){
|
||||||
|
//Invincibility for EzModo players
|
||||||
|
if(vMinecraftSettings.getInstance().isEzModo(player.getName())){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
//Sets a player as dead
|
//Sets a player as dead
|
||||||
if (player.getHealth() < 1){
|
if (player.getHealth() < 1){
|
||||||
vMinecraftUsers.getProfile(player).isDead(true);
|
vMinecraftUsers.getProfile(player).isDead(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user