SkBee icon indicating copy to clipboard operation
SkBee copied to clipboard

[SUGGESTION] Add config option to disable NBT Admin Warning

Open jared27906 opened this issue 1 year ago • 6 comments

What happened?

Uploading Screenshot 2024-05-12 124941.png…

Steps to reproduce

  1. Create a code
  2. Use NBTToItem Function
local function itemToNBT(i:itemtype) :: text:
	set {_nbt} to full nbt from {_i}
	return {_nbt}
	
local function NBTToitem(i:text) :: itemtype:
	set {_nbt} to nbt from {_i}
	set {_item} to nbt item from {_nbt}
	return {_item}
  1. This is how its used in my code, basically i open the gui, the items show work fine, although it does send the error, its annoying
                set {_list::*} to (yaml path list "" from "{@directory}loot.yml")
		set the lock status of the edited gui to true
		set {_allowed::*} to (integers from 10 to 16),(integers from 19 to 25),(integers from 28 to 34),(integers from 37 to 43)
		
		
		loop (page {_page} of {_list::*} with 28 lines):
			set {_id} to loop-value
			set {_cost} to (yaml value "%{_id}%.sell" from "{@directory}loot.yml")
			set {_chance} to (yaml value "%{_id}%.chance" from "{@directory}loot.yml")
			set {_nbt} to (yaml value "%{_id}%.nbt" from "{@directory}loot.yml")
			
			#Start Of Error
			
			set {_i} to NBTToitem({_nbt})
			if {_id} is set:
				add 1 to {_n}
				make gui {_allowed::%{_n}%} with {_i} with lore "","&a&lINFORMATION","&8&l▍ &cSell Price: &a%{_cost}%$","&8&l▍ &cDrop Chance: &6%{_chance}%%%","" #Works fine, although sends the error
				
			# End of Error

Expected behavior

Add a config in skbee disabling nbt error sent, or just help me resolve this error!

SkBee Version

3.5.0

Server Version

1.20.4

SkBee Info

[04:56:25 INFO]: --- [SkBee Loading Info] --- [04:56:25 INFO]: - [NBTAPI] Found Minecraft: v1_20_R3! Trying to find NMS support [04:56:25 INFO]: - [NBTAPI] NMS support 'MC1_20_R3' loaded! [04:56:25 INFO]: - NBT Elements successfully loaded [04:56:25 INFO]: - Text Component Elements successfully loaded [04:56:25 INFO]: - Advancement Elements successfully loaded [04:56:25 INFO]: - BossBar Elements successfully loaded [04:56:25 INFO]: - Bound Elements successfully loaded [04:56:25 INFO]: - Damage Source elements successfully loaded [04:56:25 INFO]: - Display Entity elements successfully loaded [04:56:25 INFO]: - Fishing elements successfully loaded [04:56:25 INFO]: - Game Event Elements successfully loaded [04:56:25 INFO]: - Particle Elements successfully loaded [04:56:25 INFO]: - RayTrace elements successfully loaded [04:56:25 INFO]: - Recipe Elements successfully loaded [04:56:25 INFO]: - Scoreboard Elements successfully loaded [04:56:25 INFO]: - Scoreboard Objective Elements successfully loaded [04:56:25 INFO]: - Statistic Elements successfully loaded [04:56:25 INFO]: - Structure Elements successfully loaded [04:56:25 INFO]: - Minecraft Tag elements successfully loaded [04:56:25 INFO]: - Team Elements successfully loaded [04:56:25 INFO]: - Tick Manager elements successfully loaded [04:56:25 INFO]: - Villager Elements successfully loaded [04:56:25 INFO]: - Virtual Furnace Elements disabled via config [04:56:25 INFO]: - World Border Elements successfully loaded [04:56:25 INFO]: - World Creator Elements successfully loaded [04:56:25 INFO]: - Chunk Generator Elements disabled via config [04:56:25 INFO]: - Plugin is up to date! [04:56:25 INFO]: - Checking for update failed! [04:56:25 INFO]: --- [Server Info] --- [04:56:25 INFO]: Server Version: git-Paper-496 (MC: 1.20.4) [04:56:25 INFO]: Skript Version: 2.8.5 [04:56:25 INFO]: Skript Addons: [04:56:25 INFO]: - skript-placeholders v1.6.0 [04:56:25 INFO]: - PermSk v2.0.0 [04:56:25 INFO]: - skript-gui v1.3 [04:56:25 INFO]: - DiSky v4.16.0 [04:56:25 INFO]: - skript-particle v1.2.0 [04:56:25 INFO]: - skript-yaml v1.5 [04:56:25 INFO]: - skript-reflect v2.4 [04:56:25 INFO]: - SkLogs v1.3 [04:56:25 INFO]: SkBee Version: 3.5.0 [04:56:25 INFO]: SkBee Website: https://github.com/ShaneBeee/SkBee

Additional Information

if i use old versions of skbee, it doesn't send any errors!

jared27906 avatar May 12 '24 04:05 jared27906