Skript: Display name expression don't work in functions

Created on 12 Apr 2019  路  6Comments  路  Source: SkriptLang/Skript

Skript 2.3.6
Paper build 616

Code:

function TestDisplay(p: player):
    set the display name of {_p} to "&cAdmin %{_p}%"
    broadcast "Display %{_p}%: %{_p}'s display name%"

Behaviour: http://prntscr.com/naxii8

bug needs-testing low

Most helpful comment

this is the 2000th issue

All 6 comments

this is the 2000th issue

I'd appreciate a confirmation from someone else + confirmation that it works fine outside of functions

I can confirm this works outside of a function

I ran these two:

!set display name of player to "test"
!send "Display: %display name of player%"

Which showed an output of "Display: test"
And when I chat it shows my display name as test.

I can also confirm it is not working in the function as ruddeTR stated

@Govindass i thought you meant 2000th issue of the same bug

I can't reproduce this isssue using Skript 2.3.6 on Paper 1.13.2 (build 600 currently)

I also cant reproduce this error, using Skript 2.5-beta4 and Paper version git-Paper-202
Closing.
If anyone still has issues with this, please let us know so we can re-open

Was this page helpful?
0 / 5 - 0 ratings