mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Phase 2 of rearrange. Reminder for self to move plugin.yml back once maven support is setup. plugin
commenting is to get around the craftbukkit dep (which disables colorsend and comments out something nossr forgot about.) UNTESTED
This commit is contained in:
parent
cbd4a512d5
commit
2eddcbeb05
@ -5,7 +5,7 @@ import org.bukkit.entity.LivingEntity;
|
|||||||
import org.getspout.spoutapi.gui.GenericLabel;
|
import org.getspout.spoutapi.gui.GenericLabel;
|
||||||
import org.getspout.spoutapi.gui.GenericTexture;
|
import org.getspout.spoutapi.gui.GenericTexture;
|
||||||
|
|
||||||
import com.gmail.nossr50.spout.SpoutStuff;
|
//import com.gmail.nossr50.spout.SpoutStuff;
|
||||||
|
|
||||||
public class HealthBarMMO
|
public class HealthBarMMO
|
||||||
{
|
{
|
||||||
@ -18,8 +18,8 @@ public class HealthBarMMO
|
|||||||
health_name = new GenericLabel();
|
health_name = new GenericLabel();
|
||||||
health_name.setText(ChatColor.GREEN+name).setDirty(true);
|
health_name.setText(ChatColor.GREEN+name).setDirty(true);
|
||||||
|
|
||||||
health_bar = new GenericTexture();
|
//health_bar = new GenericTexture();
|
||||||
health_bar.setUrl(SpoutStuff.getHealthBarURL(entity.getHealth())).setHeight(8).setWidth(64).setDirty(true);
|
//health_bar.setUrl(SpoutStuff.getHealthBarURL(entity.getHealth())).setHeight(8).setWidth(64).setDirty(true);
|
||||||
|
|
||||||
playerName = name;
|
playerName = name;
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@ import org.bukkit.ChatColor;
|
|||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.block.Block;
|
import org.bukkit.block.Block;
|
||||||
import org.bukkit.craftbukkit.command.ColouredConsoleSender;
|
//import org.bukkit.craftbukkit.command.ColouredConsoleSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.event.block.Action;
|
import org.bukkit.event.block.Action;
|
||||||
import org.bukkit.event.player.PlayerChatEvent;
|
import org.bukkit.event.player.PlayerChatEvent;
|
||||||
@ -243,11 +243,11 @@ public class mcPlayerListener extends PlayerListener
|
|||||||
if(Party.getInstance().inSameParty(player, x))
|
if(Party.getInstance().inSameParty(player, x))
|
||||||
x.sendMessage(format);
|
x.sendMessage(format);
|
||||||
}
|
}
|
||||||
if(Bukkit.getServer() instanceof ColouredConsoleSender)
|
/*if(Bukkit.getServer() instanceof ColouredConsoleSender)
|
||||||
{
|
{
|
||||||
ColouredConsoleSender ccs = (ColouredConsoleSender) Bukkit.getServer();
|
ColouredConsoleSender ccs = (ColouredConsoleSender) Bukkit.getServer();
|
||||||
ccs.sendMessage(ChatColor.GREEN+"[P]"+format); //Colors, woot!
|
ccs.sendMessage(ChatColor.GREEN+"[P]"+format); //Colors, woot!
|
||||||
}
|
}*/
|
||||||
} else if (PP.getAdminChatMode()) {
|
} else if (PP.getAdminChatMode()) {
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
String format = ChatColor.AQUA + "{" + ChatColor.WHITE + player.getDisplayName() + ChatColor.AQUA + "} "+event.getMessage();
|
String format = ChatColor.AQUA + "{" + ChatColor.WHITE + player.getDisplayName() + ChatColor.AQUA + "} "+event.getMessage();
|
||||||
@ -256,11 +256,11 @@ public class mcPlayerListener extends PlayerListener
|
|||||||
if(x.isOp() || mcPermissions.getInstance().adminChat(x))
|
if(x.isOp() || mcPermissions.getInstance().adminChat(x))
|
||||||
x.sendMessage(format);
|
x.sendMessage(format);
|
||||||
}
|
}
|
||||||
if(Bukkit.getServer() instanceof ColouredConsoleSender)
|
/*if(Bukkit.getServer() instanceof ColouredConsoleSender)
|
||||||
{
|
{
|
||||||
ColouredConsoleSender ccs = (ColouredConsoleSender) Bukkit.getServer();
|
ColouredConsoleSender ccs = (ColouredConsoleSender) Bukkit.getServer();
|
||||||
ccs.sendMessage(ChatColor.AQUA+"[A]"+format); //Colors, woot!
|
ccs.sendMessage(ChatColor.AQUA+"[A]"+format); //Colors, woot!
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,6 +1,6 @@
|
|||||||
name: mcMMO
|
name: mcMMO
|
||||||
main: com.gmail.nossr50.mcMMO
|
main: com.gmail.nossr50.mcMMO
|
||||||
version: 1.1.14
|
version: 1.1.14-Disk-GIT
|
||||||
softdepend: [Spout]
|
softdepend: [Spout]
|
||||||
commands:
|
commands:
|
||||||
mchud:
|
mchud:
|
Loading…
Reference in New Issue
Block a user