Skip to content

target to gm player interlude

Featured Replies

 

Hello, how could I make a player unable to target an administrator player?

  • Author
5 hours ago, An4rchy said:

Player.java, onAction() -> if (isGM()) return;

it works thanks sorry for another question but if I wanted to hide the name of the administrator it would be in that part onAction ?

 

 

5 hours ago, An4rchy said:

Player.java, onAction() -> if (isGM()) return;

Hello, I remember in an interlude server in which if you passed the mouse over the administrator it showed an effect similar to that of the doors, how could you put that

 

 

 

 

adm.png

Edited by tensador27

I don't think Interlude CharInfo has support for that, perhaps it could be done in another way but I'm not sure.

 

In Classic CharInfo you can hide the name.

13 hours ago, tensador27 said:

it works thanks sorry for another question but if I wanted to hide the name of the administrator it would be in that part onAction ?

 

 

Hello, I remember in an interlude server in which if you passed the mouse over the administrator it showed an effect similar to that of the doors, how could you put that

 

 

 

 

adm.png

U can just change it but i think is possible to cover it

  • Author

with setinvisible could the name be hidden?

 

 

hello I have a problem with the target issue it works but if the player is gm you can't target another player

 

 

		if (Config.PROTECT_TARGET_ADM_ENABLE)
		{
			if (isGM() != player.isGM())
			{
				player.sendPacket(ActionFailed.STATIC_PACKET);
				player.setTarget(null);
				return;
			}
		}

 

now it works fine only one gm can target another gm

 

 

		if (Config.PROTECT_TARGET_ADM_ENABLE)
		{
			if (isGM() && player.isGM() == false)
			{
				player.sendPacket(ActionFailed.STATIC_PACKET);
				return;
			}
		}

 

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.