#(stevoeinrad) Confirm Command Execution

151 messages · Page 1 of 1 (latest)

spice hamlet
#

hey there
quick question

Is it possible to disable this, and if HOW 🥺

remote arrowBOT
#

(stevoeinrad) Confirm Command Execution

remote arrowBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

simple nexus
#

A change in recent MC versions broke it, being worked on

spice hamlet
#

okay thanks, my players are kinda getting on my nerves, with saying its rly annoying

simple nexus
#

I'll see if I can maybe do a temporary patch until it's properly fixed

humble wyvern
#

you can create your own command i mean

spice hamlet
#

Would be higly higle appreciated ❤️

spice hamlet
humble wyvern
#

make it execute your command

#

!t elementtag.on_click

turbid dewBOT
# humble wyvern !t elementtag.on_click

Adds a click command to the element, which makes the element execute the input command when clicked.
To execute a command "/" should be used at the start. Prior to 1.19, leaving off the "/" would display the text as chat. This feature was removed as part of the 1.19 secure chat system.
For activating interact script chat triggers (!language Chat Triggers), you can use the command "/denizenclickable chat SOME MESSAGE HERE" (requires players have permission "denizen.clickable")
For that, in...

Group

text manipulation

Returns

ElementTag

Examples
- narrate "You can <element[click here].on_click[/help]> for help!"
- narrate "You can <element[click here].on_click[/denizenclickable chat hello]> to say hello to an NPC's interact script!"
humble wyvern
#

that way you shouldnt get those warnings afaik

spice hamlet
#

well thats not a "good" option, i have these in a 500+ scripts or so

spice hamlet
simple nexus
#

!logs

turbid dewBOT
# simple nexus !logs
Info: logs

Please post your full latest log file.

Background Info: One of the most helpful tools to identifying the source of a problem is your server logs file! Logs contain all sorts of important information like server and plugin versions, any error messages, and a lot more important information (More Info).

How To: Your log can be found in the logs folder within your server folder. The most recent log is a text file labeled latest.log. To get help using these logs, please open that file in a text editor and copy all of the text, then open https://paste.denizenscript.com/New/Log and paste the text into the box on the page. Then click "Submit" and copy the URL and paste that back into this channel.

Please do not upload the file to Discord or to other pastebin services, use the log pastebin linked above.

spice hamlet
simple nexus
turbid dewBOT
# simple nexus !logcheck https://paste.denizenscript.com/View/134915
Server Version

Paper version 1.21.8-6-782ce95 (MC: 1.21.8)

Plugin Version(s)

Citizens: 2.0.39-SNAPSHOT (build 3851) -- (Current build :white_check_mark:)
Denizen: 1.3.1-SNAPSHOT (build 7197-DEV) -- (Current build :white_check_mark:)
Depenizen: 2.1.1 (build 882) -- (Current build :white_check_mark:)
dDiscordBot: 0.7 (build 305) -- (Current build :white_check_mark:)

Checked For

@simple nexus

UUID Version

4 (:white_check_mark: Online)

Java Version

21.0.7 :white_check_mark:

Other Noteworthy Plugin(s)

WorldGuard: 7.0.14+2339-43997ec, ProtocolLib: 5.4.0-SNAPSHOT-753

Possibly Relevant Plugin(s)

ViaVersion: 5.4.2-SNAPSHOT - Mixed client vs server versions can sometimes cause packet-related issues.
HeadDatabase: 4.21.2 - HeadDatabase has been known to cause issues with skins.
CMI: 9.7.15.5 - CMI tends to mess with a large variety of server features and often gets in the way of issue debugging.
Multiverse-Core: 5.0.2 - Multi-world configuration plugins may affect NPCs in unexpected ways.

simple nexus
#

Can you make an mcve? it did fix the issue for me

#

!mcve

turbid dewBOT
# simple nexus !mcve
Info: mcve

Please create a Minimal, Complete, and Verifiable Example of the problem you're reporting.
Minimal: contains nothing other than the part that's broken (and bare minimum structure).
Complete: contains everything needed to demonstrate the issue.
Verifiable: Anybody should be able to throw it on their own server and see the problem happen for themselves, without any needed tinkering.

spice hamlet
#

sure

i use this script to open a Book when i click an Npc
in that i have an clickable where when i click it, it opens another book
but that clickable needs to be confirmed

#

and in that particulary version are all my npc's and quests on my server

#
thalgrim:
    type: assignment
    debug: false
    actions:
        on assignment:
        - trigger name:click state:true
        on click:
        - clickable save:1:
            - stop
        - if !<player.has_flag[quest.frostschmied]>:
            - define book "<&6><npc.name><&r>: <&8>*schnauft schwer, seine Stimme zittert leicht*<&nl><&nl>"
            - define book "<[book]><&8>Mein Amboss... der Frostschmieds Amboss. Ich ließ ihn einst in der Eisenspitze zurück – zu gefährlich war es dort geworden.<&nl><&nl>"
            - define book "<[book]><&6>Für mehr weiterblättern"
            - define book "<[book]>|<&8>Doch ohne ihn kann ich nichts beginnen. Das Feuer der Schmiede bleibt kalt, solange er fehlt.<&nl><&nl>"
            - define book "<[book]><element[<&2>Ich werde deinen Amboss finden].on_hover[<&7>*klick*].on_click[<entry[1].command>]><&nl><&nl>"
        - playsound <player> sound:ITEM_BOOK_PAGE_TURN volume:1 pitch:1
        - adjust <player> show_book:default_book[book_pages=<[book]>]
#

if u want to use the same param

spice hamlet
#

going to sleep now

spice hamlet
#

and also tried it with diffrent accounts
with and without mods
doesn't work

vale kestrel
#

aya-coolness-filter

spice hamlet
#

🤫 go work

simple nexus
vale kestrel
#

testing...

#

mh, what kind of permission could interfere with that?

steel kraken
#

run a luckperms check

#

/luckperms verbose record - replicate the issue then /luckperms paste

#

post the link back here and we can help you figure out

vale kestrel
#

so i started recording, stevo used the clickable, got the confirmation again, than i run paste

steel kraken
#

@spice hamlet did you set the config to allow clicking links in chat in your game?

spice hamlet
#

u mean that

#

the Prompt on Links?

steel kraken
#

yee

#

web links

simple nexus
steel kraken
#

What permission is inside the denizen group?

steel kraken
vale kestrel
#

all my players have the denizen.clickable permission

#

and yes, we both tested fully vanilla without mods

simple nexus
#

And same version? version can be important as these changes are recent

#

(If you use ViaVersion and the likes)

vale kestrel
#

i'm on 1.21.7, stevo tested .7 too

#

@spice hamlet

spice hamlet
#

we used both vanilla 1.21.7 without any mods

simple nexus
#

Well, there has to be some difference between your two cases - maybe both try on a clean local test server with just Denizen?

#

If it works there, then it's likely a problem with the server setup, if it still doesn't it's likely a problem with the client setup/Denizen

spice hamlet
#

well i dont got the know how to set something like this up and Ikuria ist at work, and got limited time until tmr

simple nexus
#

It's very simple,

#

!g local test server

simple nexus
#

But we can come back to this later if you want to, no worries

#

It's just a way to make a small empty server running locally on your computer, that way to can test stuff without anything else on your actual server interfering

spice hamlet
#

it did cost me some nerves but i got it to work
i installed everything besides Citiziens cause it costs something and i wont buy it for test reasons 😅

another trigger to open the book but it works

#

with vanilla and all my mods active

#

so it has to be somthing on the server

spice hamlet
simple nexus
vale kestrel
#

will test with minimal plugin setup later

#

at the moment i'm at work

simple nexus
#

Yeah no worries take your time - just both of you try on a clean server with no setup, so that we can know if the problem is caused by the setup on your actual server or not

#

Or well, whoever has the issue at least

spice hamlet
turbid dewBOT
simple nexus
#

Basically, does it
A. Only work for Ikuria (presumably because they have OP) and broken for everyone else
B. Only not work for you and works for everyone else

spice hamlet
#

not only that permissions, and every other important one^^

spice hamlet
simple nexus
#

Actually, question: are you getting the exact same unrecognized command popup as before, or is it a slightly different one about permissions?

spice hamlet
#

the exact same command confirmation screen as before

coral glenBOT
simple nexus
#

But is the message in the screen the same? Because Mojang has 2 possible messages there

spice hamlet
#

thats the one

simple nexus
#

Okay that's really weird actually, does the command show up if you try tab completing it in chat?

spice hamlet
#

and u can see in the first picture at the start its the same msg

simple nexus
#

(so like, type in /denizencli)

spice hamlet
#

doesnt the command generate first when i click the book in the npc

#

just tested it, no i cant type the actual command in chat

simple nexus
#

/denizenclickable always exists, the UUID you see there is what's generated

spice hamlet
#

cant use that, myb cause our Pl_hide plugin doesnt allow me to use the command

grim fiber
#

i thought you just fixed that in 1.21.8, aya?

simple nexus
#

So something else is hiding it

spice hamlet
#

we can test that when Ikuria is awake again

simple nexus
#

Yeah give that a go and let me know then, I kinda assumed it was the permissions popup, but if it's still the unknown command one then there might be something else hiding it.

#

Do you have access to add Denizen scripts? If so you could make a quick script to check what commands are being sent to the client probably

#

(I can link you the event)

#

But if not then just lmk once you're able to debug, no worries

spice hamlet
#

yeah i do have that

simple nexus
#

Ah, then can use

#

!e player receives commands

turbid dewBOT
# simple nexus !e player receives commands
Group

Player

Event Lines

player receives commands

Triggers

when the list of available server commands is sent to the player for tab completion.

Has Player

Always. - this adds switches flagged:<flag name> + permission:<node>, in addition to the <player> link.

Context

<context.commands> returns a ListTag of received commands.

Determine

ListTag to set the player's available commands. NOTE: It is not possible to add entries to the command list, only remove them.

simple nexus
#

Have two events with that, one at bukkit_priority:lowest and one at bukkit_priority:monitor

spice hamlet
#

like that

simple nexus
#

Then narrate the list of commands in them, and see if denizenclickable is there initially & getting removed

#

I'd probably put it in console cause that's easier to read, but yeah

#

And just see if

  1. denizenclickable is in the first one
  2. If it's getting removed and isn't in the second one
spice hamlet
#

in first and in second

#

in each

simple nexus
#

Well that's really weird o.O, I'll have to do some more testing once I'm on PC then, don't have any other ideas offhand

#

Actually, one small thing to check - what plugins are listed if you /paper dumplisteners org.bukkit.event.player.PlayerCommandSendEvent?

spice hamlet
#

can't use that command

#

so i use that, but nothing

simple nexus
#

As in, no output at all? Or no plugins are listed?

spice hamlet
#

thats what i get

simple nexus
#

Does /paper or /paper dumplisteners tab complete at all? Maybe you just don't have permissions

spice hamlet
#

doesnt let me tab complete^^

simple nexus
#

Well, not much else I can do from my phone - hopefully I'll have time to look into this tomorrow, and lmk here once you're able to debug this more with Ikuria

spice hamlet
#

sure will do that

kindred spindle
spice hamlet
#

nope still wont let me use it

#

tried it

vale kestrel
#
[09:55:20] [Render thread/INFO]: [CHAT] Listeners for org.bukkit.event.player.PlayerCommandSendEvent:
[09:55:20] [Render thread/INFO]: [CHAT] FastAsyncWorldEdit (com.sk89q.worldedit.bukkit.WorldEditListener)
[09:55:20] [Render thread/INFO]: [CHAT] CMI (com.Zrips.CMI.Modules.Alias.AliasTabCompListener_1_14_never)
[09:55:20] [Render thread/INFO]: [CHAT] Total listeners: 2
#

Stevo simply didn't have the permissions

steel kraken
#

but what permission

#

denizen.clickable?

vale kestrel
#

no, we already checked that, all players have that permission

#

but there is a proxy plugin, hiding the command, the command isnt inside tabcomplete, but still usable

#

will check that later with stevo (when he is back from sleep)

#

maybe that is the problem

#

or CMI, most of the time CMI is doing strange things and breaking other stuff

vale kestrel
#

will check without CMI

#

yep ^^

vale kestrel
#

okay, pl-hide was the problem, we only allow the command, not the tabcomplete for the players (because i want to hide the command) is there any way to update this to make it work without giving the player the command (denizenclickable) to see?

#

with the command visible, the thread-topic is resolved

simple nexus
#

No, the error screen itself says "unrecognized command" - it's because it's a command the client doesn't know

#

The point of the temporary patch I added to Denizen was let clients see the command so that it works in the meanwhile (they can't really do anything with it anyway) - eventually we'll have a different solution for clickables without that command, but this is the fix for now to avoid the confirmation screen

vale kestrel
#

i'm fine with the fix, thanks alot aya
if there is a better solution in the future, i will be happy to have that
keep up the good work and thanks for your help in this thread!!

heart

simple nexus
#

No problem :), glad we could fix it

icy birchBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@spice hamlet

spice hamlet
#

Thanks also from my side

#