Jump to content
  • 0
Sign in to follow this  
Normality

Yell Crown Problems

Question

It's probably an easy fix but at the moment i'm a little lost..

I've done all crown placements.

<img=1> Mod
<img=2> Admin
<img=3> Owner
<img=4> Donator
<img=5> Server Support
<img=6> Veteran

This is how it looks in the command.java files.

[CODE]
if(c.playerRights == 5 && !hasYelled) {
c2.sendMessage("<col=2200FF><shad=0>[Support]</col><img=5>"+ c.playerName +": "+ Misc.optimizeText(playerCommand.substring(5)) +"");
hasYelled = true;
} else if (c.playerRights == 1 && !hasYelled) {
c2.sendMessage("<col=8F8F8F><shad=0> [Mod] <img=1>"+ c.playerName +": "+ Misc.optimizeText(playerCommand.substring(5)) +"");
hasYelled = true;[/CODE]

That's Server Support and Mod...

The crowns show up normally when you talk, All in the correct order.. But when i want them to appear in the ::yell [message] The yells work perfectly just no crown appears.. :/

Anyone have a fix for this?

I would be really thankful.

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0
[quote name='Normality']It's probably an easy fix but at the moment i'm a little lost..

I've done all crown placements.

<img=1> Mod
<img=2> Admin
<img=3> Owner
<img=4> Donator
<img=5> Server Support
<img=6> Veteran

This is how it looks in the command.java files.

[CODE]
if(c.playerRights == 5 && !hasYelled) {
c2.sendMessage("<col=2200FF><shad=0>[Support]</col><img=5>"+ c.playerName +": "+ Misc.optimizeText(playerCommand.substring(5)) +"");
hasYelled = true;
} else if (c.playerRights == 1 && !hasYelled) {
c2.sendMessage("<col=8F8F8F><shad=0> [Mod] <img=1>"+ c.playerName +": "+ Misc.optimizeText(playerCommand.substring(5)) +"");
hasYelled = true;[/CODE]

That's Server Support and Mod...

The crowns show up normally when you talk, All in the correct order.. But when i want them to appear in the ::yell [message] The yells work perfectly just no crown appears.. :/

Anyone have a fix for this?

I would be really thankful.[/QUOTE]

crowns work before you edited them ?

+ do the ones you've not edited work ?

Share this post


Link to post
Share on other sites
  • 0
[B]Can you show me a picture please, giving me the code really wont help me solve this problem.

Thanks.[/B]

Share this post


Link to post
Share on other sites
Sign in to follow this  

×