#(ifrantic) Bug with npc using -o commands
72 messages · Page 1 of 1 (latest)
(ifrantic) Bug with npc using -o commands
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.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>
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.
well, none of this should be using -o anyway lol
all of those should be server commands
They are using an npc to use commands
-o i thought gives them the ability to use server commands
Commands run as console by default
this is the most secure way to run, and you should use it whenever possible
-o ops the player for the command, then removes their op
that typically is fine, but should be avoided if possible
!logcheck
Incorrect upload of log reuploaded to pastebin at https://paste.denizenscript.com/View/112404
Paper version git-Paper-82 (MC: 1.20.1)-- (Outdated build, behind by 1... Current build is 83)
Citizens v2.0.32-SNAPSHOT (build 3169) -- (Current build :white_check_mark:)
Denizen v1.2.7-SNAPSHOT (build 1793-REL) -- (Current build :white_check_mark:)
@tropic prism
4 (:white_check_mark: Online)
18.0.2.1 :warning: - Only Java versions 17, 16, and 8 are fully supported
WorldGuard v7.0.9-beta1+2249-223b80c, ProtocolLib v5.1.0-SNAPSHOT-660
PerWorldPlugins v1.4.1 - :warning: Messing with basic plugin core functionality can lead to unexpected issues.
GadgetsMenu v5.8.4 - GadgetsMenu has been linked to compatibility issues with Citizens.
TAB v4.0.4-SNAPSHOT - This plugin adds Below_Name scoreboards to NPCs.
Multiverse-Core v4.3.2-SNAPSHOT-b870 - Multi-world configuration plugins may affect NPCs in unexpected ways.
FastAsyncWorldEdit v2.6.5-SNAPSHOT-522;a680c7c - This plugin has been known to break the plugin load order on many servers, due to usage of the 'loadbefore' directive in its 'plugin.yml'.
GSit v1.4.9 - 'Sit on other players' or 'sit on mobs' plugins sometimes allow players to sit on NPCs.
[15:16:00] [Server thread/WARN]: Caused by: java.lang.ClassNotFoundException: com.denizenscript.denizen.objects.ItemTag :warning: Log contains error messages.
So what should i set my commands too?
If they don't have the -o it never works does it
just remove the -o lol
and it will still work......
again, it'll run as console by default
I doubt it, but i'm not 100% sure
ok i will try and get back to you in 5 minutes
alaina issued server command: /broadcast &bPlayers have extracted from the Node! BlueFountain Node is usable Again
[Essentials]: alaina was denied access to command.
WARN
16:06:25
[Citizens]: Task #205762 for Citizens v2.0.32-SNAPSHOT (build 3169) generated an exception
Console
16:06:25
java.lang.NullPointerException: Cannot invoke "org.bukkit.permissions.PermissionAttachment.remove()" because "attachment" is null
at net.citizensnpcs.trait.CommandTrait$1.lambda$runCommand$2(CommandTrait.java:339) ~[Citizens-2.0.32-b3169.jar:?]
at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.20.1.jar:git-Paper-82]
at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:480) ~[paper-1.20.1.jar:git-Paper-82]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1480) ~[paper-1.20.1.jar:git-Paper-82]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:447) ~[paper-1.20.1.jar:git-Paper-82]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1394) ~[paper-1.20.1.jar:git-Paper-82]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1171) ~[paper-1.20.1.jar:git-Paper-82]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:318) ~[paper-1.20.1.jar:git-Paper-82]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
Now they can't even use it.....
Found out it matters for -o it appears
or just this npc
These are my npc's
Remove the -o on my npc's caused them all to be like you don't have permission
The one i just sent is my restored version back to the -o on the npc's
I'm so confused right now
If -o is used, it will execute as-op, meaning the player will be treated temporarily as if they were a server operator (unless you have a plugin that doesn't respect op, or a protection plugin that disables op). Be warned that -o can have side effects or performance problems.
So should i set both these to false or something
That way it won't check anything is that why it's executing commands as a player
you should never edit this file directly at all
as i said, just remove the -o in the in-game editor
leave it without either flag
both of those will be true, but you don't do that manually
how do you edit it in the game?
i only know how to update the file?
Also when i removed player and op from true to false the npc command executed as it should
But the commands i was typing i never put -p
On any npc
So i don't understand why it did that
/npc command add --delay 12080t --gcooldown 12600t setblock 160 23 1185 air
^ this is acting as player
This is what i typed.....
It says something like Aliana issued this command does not have permissions
When i go to the npc and i look at it it says -p
Anyone able to do a quick voice chat with me to help me out
Might make a bit sense and quicker to just talk really quickly i catch on fast
Ok i have found that i had to set both to false
But apparently i was doing this wrong from the beginning
If i want someone to do a command say /shop
obviously it needs to do that as the player
But how do i set those to do player
I don't have knowlege of those being player ones
Issue is that when i crate the NPC i do not specifiy if i want it to be -p(player executed) or -o(op executed)
If i leave the command without it seems to be ok.
However i can't explain why some will be player turned on. i have no answer for that.
i edited the file manually as i don't know how to edit the command in game
@north anvil
Thread was closed either automatically by timeout or by the Discord manual close button. If closing was intentional, please use </resolved:1028673926114594866> or </invalid:1028673926898909185>.