Skip to content

Function

Featured Replies

Write please function for:

1)Change player name color

2)Change player title color

3)Do player a noblesse

4)Set quest done(set quests for sub-class and noblesse is done)

 

Thanks

everything is placed in admincommands,if you wanna make your just take a look there dude.

 

start searching your eclipse,you'll find out many intresting things

  • Author

everything is placed in admincommands,if you wanna make your just take a look there dude.

 

start searching your eclipse,you'll find out many intresting things

I dont use Eclipse, all i can find, but how do the quest if done?

Write please function for:

1)Change player name color

2)Change player title color

3)Do player a noblesse

4)Set quest done(set quests for sub-class and noblesse is done)

 

Thanks

 

this is help section, no we do your code section :/

Use Eclipse or notepad++ search function, and search for keywords. You will easily find if you use proper keywords.

 

Eclipse or whatever IDE (IntelliJ, NetBeans, misc) is a must-have, even for java quests. If you don't use one, then use one.

  • Author

this is help section, no we do your code section :/

I understand, i find this in my source. But when i change name color (in adm panel), when I relogin, color is default. Code in script:

	if (command.startsWith("nameColor"))
	{
		final String val = command.substring(6);
		player.getAppearance().setNameColor(Integer.decode("0x" + val));
		player.broadcastUserInfo();
	}
	else if (command.startsWith("titleColor"))
	{
		final String val = command.substring(6);
		player.getAppearance().setTitleColor(Integer.decode("0x" + val));
		player.broadcastUserInfo();
	}

  • Author

Because color is outwritten due to access rights.

Can you say, how to do normal, when I relogin, color dont be default? I really need this

Sounds obvious you have to rework access rights, either :

  • making it happens only at character creation
  • creating bypass for particular ranks (users, at least)
  • simply drop color name/title stuff from it

  • Author

Sounds obvious you have to rework access rights, either :

  • making it happens only at character creation
  • creating bypass for particular ranks (users, at least)
  • simply drop color name/title stuff from it

 

I don't understand what you written=) My script working, but after reload, color is custom. In mysql table haven't information about colors(how i see)   

What project are u using;

 

You can find access command rights at database or datapack.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.