#help-development

1 messages · Page 726 of 1

halcyon hemlock
#

sometimes intellij bugs out and creates copy

shadow night
#

I've never had that happen to me

echo basalt
#

Join Game -> Player Info -> Player abilities -> Spawn Position -> Position and Look -> Entity metadata

#

This is how limbo handles it

shadow night
#

Who said that J is pronounced like "Jay"

#

IJ is like Ay-Jay, right?

echo basalt
#

something like that

#

J is Jota here

halcyon hemlock
#

the big packet?

echo basalt
#

this packet you fool

halcyon hemlock
#

yea yea

shadow night
echo basalt
halcyon hemlock
#

wtf is a demension codec

shadow night
echo basalt
#

it's a fun nbt tag

#

That Limbo loads from a 7k line json file lmfao

halcyon hemlock
halcyon hemlock
#

let me see how long it takes to read that in rust

echo basalt
halcyon hemlock
#

must send the entire codec?

#

what if I only want to send 1

echo basalt
#

you're fine to just send 1 dimension

#

with like 1 biome

halcyon hemlock
#

let me just try like that

magic raptor
halcyon hemlock
echo basalt
#

limbo has a parser that does shit

magic raptor
halcyon hemlock
#

i make a codec:

struct DimensionCodec {
    dimensions: DimensionType,
    biome: Biome,
}

struct DimensionType {
    type_: String,
    value: Vec<Dimension>,
}
#

like this?

echo basalt
#

it's an nbt compound

halcyon hemlock
#

yeah

#

theres some parser library in rust

#

but how are the aligned

#

what is inside of what

echo basalt
#

that's what the json defines

halcyon hemlock
#

let me look into that then

halcyon hemlock
#

channel pipeline is for the packets from what i know

magic raptor
#

yep, i use it

#

but there is no sense, it's not working only with 1.20

echo basalt
magic raptor
#

alr on latest

halcyon hemlock
#

what version is it for though

echo basalt
#

1.17

eternal night
#

you cannot really

#

at least not with javas reflection API

#

oh

#

well instance checks yyou can obviously do

#

you cannot really extend a class with plain reflections api

lilac dagger
#

Class.forName().isAssignableFrom(packet)

#

@quaint mantle

#

Bukkit.getServer().getClass().getPackageName substring 23 i think?

halcyon hemlock
#

convert what into

#

channel reader?

halcyon hemlock
# echo basalt 1.17

sorry for pinging once more, but there are 2 seperate fields. one for "Dimension Codec" and one for "Dimension". whats the difference?

odd pier
#

good ways to create custom block and detect that is custom block?
just need database?

halcyon hemlock
#

I've made this dimension codec successfully, but what is the dimension?

Compound({"minecraft:dimension_type": List([Compound({"name": String("minecraft:overworld"), "id": Int(0), "element": Compound({"bed_works": Byte(1), "logical_height": Int(256), "height": Int(256), "natural": Byte(1), "has_skylight": Byte(1), "min_y": Int(0), "effects": String("minecraft:overworld"), "respawn_anchor_works": Byte(0), "coordinate_scale": Float(1.0), "piglin_safe": Byte(0), "has_ceiling": Byte(0), "ultrawarm": Byte(0), "infiniburn": String("minecraft:infiniburn_overworld"), "has_raids": Byte(1), "ambient_light": Float(0.0)})})]), "minecraft:worldgen/biome": List([Compound({"name": String("minecraft:plains"), "id": Int(1), "element": Compound({"depth": Float(0.125), "scale": Float(0.05), "downfall": Float(0.4), "category": String("plains"), "temperature": Float(0.8), "effects": Compound({"mood_sound": Compound({"block_search_extent": Int(8), "sound": String("minecraft:ambient.cave"), "offset": Float(2.0), "tick_delay": Int(6000)}), "sky_color": Int(7907327), "fog_color": Int(12638463), "water_color": Int(4159204), "water_fog_color": Int(329011)}), "precipitation": String("rain")})})])})
odd pier
#

?

#

yes

#

dittonut

halcyon hemlock
#

is your name the donut

#

oh

odd pier
#

nope

#

ditto

lilac dagger
#

public static final String VERSION = Bukkit.getServer().getClass().getPackage().getName().substring(23);

lilac dagger
#

i use this one

halcyon hemlock
#

and if you want to save, yes probably database

#

or maybe block persistent data containers, (if they exist)

young knoll
#

?blockpdc

undone axleBOT
odd pier
#

oh

lilac dagger
#

the same thing as yours

halcyon hemlock
#

nms version probably

odd pier
#

ok

#

thx

#

is this good idea?
set custom name of hopper to "Conveyor"
...
if customname of hopper is "Conveyor" then ...

young knoll
#

What if a player renames it

zealous osprey
#

why not use pdc instead?

odd pier
#

but my custom block needs iron ingot x3, but hopper needs more

#

then this is good idea?

odd pier
young knoll
#

Easy != good

proven jay
#

@echo basalt

tender shard
#

every opne could just rename the item

#

you should NEVER have to check any inentory's name

echo basalt
#

I pray you aren't using a new simpleboard every time you tick

lilac dagger
#

i just use equals on inventories

#

and on modern versions of spigot == works as well

upper hazel
#

worldguard api have entry to region event?

#

or i shold check playerMove

smoky oak
#

Does CraftEvent#getRecipe()#getResult return a copy, the itemStack in the actual recipe, or the item stack that's a result of the current crafting? I want to apply a nbt tag to make it unstackable

young knoll
#

You should use the PrepareCraftEvent and set it then

#

via getInventory.getResult

smoky oak
#

thanks

young knoll
#

As for if that is a mirror or a copy

#

idk

#

Imma guess copy since there is a setResult

smoky oak
#

other question

#

custom recipes require a 'exact' input (for custom items as input)

#

can i still flag the PDC in ItemMeta somehow without bricking the recipes, or do i need to do a check when an item is inserted into the crafting inventory?

young knoll
#

exact means PDC must match too

smoky oak
#

darn

young knoll
#

You would need to use PrepareItemCraftEvent to check if the item is what you want

smoky oak
#

k thx

tardy glacier
#

hello, I have a problem with the custom crates plugin, when I try to receive a key, it tells me that it has arrived, but nevertheless I have nothing in my inventory, could you help me? Thank you

young knoll
smoky oak
#

im assuming i have to also change it on craft

#

but which itemStack?

young knoll
#

Could try that

smoky oak
#

no like, if i overwrite the recipe result, would that trigger for each item, or only once?

#

like shift crafting

young knoll
#

I think it would be for the entire stack

#

idk I never really worked with the craft event

odd pier
#

idk this

#

i think if do like this then the method can be good method

on rename hopper:
  if new name of hopper is "conveyor":
    cancel event
glad prawn
#

ayo Skript

odd pier
#

not skript

#

lol

quiet ice
lost matrix
#

No idea what this is about but you should use the pdc to detect custom objects

young knoll
#

Sensical != Fast

young knoll
odd pier
#

i think the text can run in skript lol

#

(not intented. just english text to explain my idea)

lost matrix
#

You should always make a strict separation between UI and backend.
Dont use user-visible properties in your codes functionality.

#

And the name of a TileEntity is a user visible property

worldly ingot
#

Especially when it comes to a property that not only a user can see, but also one that a user can change. You can change inventory names in an anvil

young knoll
#

yup

#

Don't be like slimefun

proven jay
#

I might be doing this lol

young knoll
#

🙃

proven jay
#

I need a scoreboard per player

quaint mantle
#

Is it safe holding/storing Player interface as a field?

echo basalt
#

not really

#

for events it's fine

young knoll
#

As long as you make sure to clean it up on disconnect

echo basalt
#

but not in collections

echo basalt
ivory sleet
young knoll
#

^

quaint mantle
#

What if I store it in a decorator?

young knoll
#

Or just store UUID

#

Really depends on usage

quaint mantle
#

Fine

#

Thanks

late fossil
#

How can i disable the activation of Sculk sensors and shriekers

remote swallow
quaint mantle
#

And with entities?

young knoll
#

Same idea

remote swallow
#

entities are different though

remote swallow
#

because they get poofed when unloaded iirc

young knoll
#

Yes but if you hold the refrence it won't be GCed

#

Just like players

#

You can check if the refrence still actually points to an entity with isValid

late fossil
quaint mantle
#

I previously did check if entity was valid and if not just removed it from the Map

young knoll
#

Yeah that's an option

quaint mantle
#

And with Players just removed them from Map on PlayerQuitEvent

#

Is it safe this way?

young knoll
#

Also should be safe

quaint mantle
#

Thank god 😄, cannot describe the nerves I just dealt with. I thought I had to redo all my projects 😪

young knoll
#

I mean I make no guarentee

#

But it should be fine

echo basalt
#

IdentityHashMap when

gilded granite
#

?export

#

?exporttoserver

remote swallow
#

If you’re using maven for your Spigot plugins (which you should do), it’s easy to make maven automatically save your plugin’s .jar in your plugins folder. There’s two ways of doing this: 1. The lazy way (not recommended) If you only work alone on one computer, you can just directly declare the output location in...

halcyon hemlock
#

next is join game packet?

echo basalt
#

Already told you the order

halcyon hemlock
#

Join Game -> Player Info -> Player abilities -> Spawn Position -> Position and Look -> Entity metadata

halcyon hemlock
echo basalt
#

P sure it's just namespaced keys

halcyon hemlock
#

do I write the array as bytes in the reader

echo basalt
#

Look at how nms encodes it

halcyon hemlock
#

for now imma try just array as joined bytes

smoky oak
#

attacking from this distance causes neither a EntityDamageByEntity nor a PlayerInteractEvent. Does anyone know why?

muted anvil
#

Hey, I have a question, how could I link a CustomWorld with a CustomNether ?

smoky oak
halcyon hemlock
echo basalt
#

Your nbt codec is fucked

halcyon hemlock
echo basalt
#

Wrong phase probably

smoky oak
#

can someone explain which event this might be

young knoll
#

PlayerEvent doesn't have a handler list

#

So you can't listen to it

smoky oak
#

well yea thats what i realized

#

but that doesnt help me here

halcyon hemlock
errant urchin
#

Hi, how can I get the NBTTagCompound of an entity?

remote swallow
#

why would you need that

errant urchin
#

I would like to put that in a spawner

#
public static void setEntityDataInSpawnerItem(org.bukkit.inventory.ItemStack spawnerItem, org.bukkit.entity.Entity entity) {


        net.minecraft.world.item.ItemStack nmsSpawnerItem = CraftItemStack.asNMSCopy(spawnerItem);

        //store the EntityData in the nmsitem...

        ItemStack updatedSpawnerItem = CraftItemStack.asBukkitCopy(nmsSpawnerItem);
        spawnerItem.setItemMeta(updatedSpawnerItem.getItemMeta());

    }```
I have this for now and I don't know if it's okay
smoky oak
#

Is there a list of all events that can fire when pressing left click?

#

or other option: is there a way to see all events that have been triggered?

#

@echo basalt dont u work a lot with events?

echo basalt
#

I'm being a mechanic with my dad rn

smoky oak
#

ah

quaint mantle
#

yooooooooooooooooooooooooooooooooooooooooo

#

had a question

#

so

smoky oak
#

?ask

undone axleBOT
#

If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply. Make sure you use the right channel regarding the topic of your question. Create a thread in case the channel is already in use!

quaint mantle
#

I got a command so its defined as

            if (commandArg.equals("generatefloorent")) {
#

does that count as a sub command

#

or just the main command

errant urchin
quaint mantle
#

?paste

undone axleBOT
quaint mantle
#

heres the example

#

is that a sub command or?

echo basalt
#

Today's not the day

quaint mantle
#

what did I do

smoky oak
#

it separates it

echo basalt
#

Just ping me with your targeted questions and I'll do my best to answer

#

When I have the time

#

In like 3 hours

smoky oak
#

but I'd just do each command in a separate class

smoky oak
quaint mantle
#

o so

quaint mantle
#

will I need to register those 2 as different commands in the main class as well as in plugin.yml?

quaint mantle
quaint mantle
#

so

#

need to register both of the commands in

  • Main
  • plugin.yml
#

got it

smoky oak
#

not in main if you use one executor

quaint mantle
smoky oak
#

but if you do it in two classes

#

however

#

you need to register each /<command> you want to trigger

#

thats how its possible to do shortcut commands, it's not hardcoded in plugin.yml, though having them there certainly helps

echo basalt
errant urchin
#

ok

smoky oak
#

well then @echo basalt why do attacks barely outside player attack range not trigger as an PlayerInteractEvent

#

its like 1 pixel or smth

echo basalt
#

Prob a spigot check

quaint mantle
echo basalt
#

The attack noise is clientsided

smoky oak
#

its not about the attack

#

theres no event fired

echo basalt
#

Yeah so

smoky oak
#

i need to run logic when a player clicks

#

if i dont get either a PlayerInteractEvent nor a EntityDamageByEntity event

#

i cant do that

quaint mantle
#

mr moterius

echo basalt
#

PlayerArmSwingEvent

young knoll
#

Paper event detected

#

Destory

quaint mantle
#

example

smoky oak
#

ah what i meant is

#

if you register command /a in your plugin, and in the comand handler check if command /b is run

#

it will never call it because it only listens to /a

#

so you need to register the handler to /b

#

which is why it's a good idea to just make separate handlers

#

its already listened to separately anyways

quaint mantle
#

dang

#

sounds like rocket science

solid cargo
#

is it possible to make a new kind of itemstack class (eg Weapon) (then extend it ItemStack) and then do

Weapon someWeapon = new Weapon(item);
someWeapon.setRequiredMana(10);```
note this is pseudo code... so is this possible?
and then to add it to inventory do` player.addInventory(someWeapon);`
young knoll
#

Don't extend ItemStack

solid cargo
#

well then another way i thought of is to just

// do bunch of lore and/or PDC shit
}```
river oracle
#

Extending item stack I'd a NoNo

#

Bunch of pdc shit :3

solid cargo
#

alright

tender shard
smoky oak
#

oh hi alex

#

can u take a look at my issue?

tender shard
#

what is your issue=

smoky oak
tender shard
#

you'Ll probably have to listen to incoming packets

young knoll
#

You can also just try the animation event

tender shard
#

oh right

#

I never heard of that

#

PlayerAnimationEvent

smoky oak
#

pretty sure thats paper?

tender shard
#

no

smoky oak
#

huh its not

tender shard
upper hazel
#

what better itemStack.isSimular(ItemStack) or equals

young knoll
#

isSimilar ignores stack size

#

That's the only difference

smoky oak
#

alright, ill check that out and return when it doesnt work

upper hazel
#

oh ok

tender shard
#

lol just almost accidentally committed this

smoky oak
#

Yall were right, thanks for the help

#

quick question

#

if i fire an attack twice in the same tick, are both counted, or only one?

tender shard
#

no clue

smoky oak
#

damn

#

the problem is that i dont know if the attack already happened

#

the event fires always, so sometimes when i want and sometimes when i dont

onyx fjord
#

or more verbose equalsIgnoreStackSize

smoky oak
#

like @tender shard here's context
I'm messing around with attack reach. I thought about just using the animation as anchor point, and cancelling the EntityDamageByEntityEvent, but i cannot distinguish between a normal attack and an attack called by the plugin in it

#

actually

#

about schedulers

#

do they run before/after events under guarantee?

echo basalt
#

I'm home for a lil bit

smoky oak
#

cuz i could just keep a static list of players/tick i already iterated over and just stop if i find a player that alrady been iterated over, then clear the list between the event phases

tender shard
#

this should properly show the subclass' name right?

lilac dagger
#

yes

quaint mantle
#

Isnt subclass is a parent class?

shadow night
#

what

tender shard
#

what

remote swallow
#

super is parent

tender shard
#

I have a bunch of classes (Unit, Pair, Triplet, etc) and that method is declared in Unit, as Pair and Triplet extend that.

So I want the message to properly say "This PAIR (and not this Unit) is immutable"

#

hence I just do this.getClass().getSimplename8)

quaint mantle
#

so I was thinking of making a command, a main command which really doe not have any use for the time being, and a sub command followed by it would that work?

commands:
  generate:
    description: Generates a basic floor with an entrance.
    usage: /generate basic_floor entrance
    aliases: [basic_floor, entrance]```
upper hazel
#

were fuck i can find dependency worldguard api for 1.12.2

#

6.2.2 not found

vital ridge
#
[22:07:03 WARN]: Caused by: java.lang.NoClassDefFoundError: javafx/util/Pair

[22:07:03 WARN]:        at com.nux.meteoritehubpvp.item.items.PvPSword.<init>(PvPSword.java:44)

[22:07:03 WARN]:        at com.nux.meteoritehubpvp.commands.PvPCommand.pvpTopCommand(PvPCommand.java:19)

[22:07:03 WARN]:        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)

[22:07:03 WARN]:        ... 20 more

[22:07:03 WARN]: Caused by: java.lang.ClassNotFoundException: javafx.util.Pair

[22:07:03 WARN]:        at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)

[22:07:03 WARN]:        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101)

[22:07:03 WARN]:        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86)

[22:07:03 WARN]:        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)

[22:07:03 WARN]:        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)

[22:07:03 WARN]:        ... 23 more
#

Getting this error, could it be due to my java version?

#

Sorry for copying it here lol, thought its a bit smaller

worldly ingot
#

No, there's just no JavaFX present in the standard JDK

#

You can't use that Pair class

vital ridge
#

So in what JDK is it present?

worldly ingot
#

Not JavaFX lol

#

Java has no Pair class

vital ridge
#

I enabled that and now everything works.

robust helm
#
public BlockBreakListener(JavaPlugin plugin) {
        loadUnbreakableBlocks();

        ProtocolManager manager = ProtocolLibrary.getProtocolManager();
        manager.addPacketListener(new PacketAdapter(plugin, ListenerPriority.NORMAL, PacketType.Play.Server.BLOCK_BREAK_ANIMATION) {
            @Override
            public void onPacketSending(PacketEvent event) {
                Bukkit.broadcastMessage("sending packet");
            }

            @Override
            public void onPacketReceiving(PacketEvent event) {
                Bukkit.broadcastMessage("receiving packet");
            }
        });
    }

When using this, nothing happens. When using the same but listening to PacketType.Play.Client.CHAT everything works.
Im trying to cancel the block break animation(only for some materials, so adventure doesnt work; maybe with interactEvent to set gamemode back to survival it could work)

muted anvil
#

How to recreate the world "world" with another seed while ingame ?

lilac dagger
#

not actually, getClass gets overritten by the top class

#

the one that's at the end of inheritance

upper hazel
#

who use wg api 1.12.2

reef peak
#

Hi

#

I'm getting issues with compiling an open source plugin (Gradle)

#

I tried from Intellij, it did not work

#

🤷‍♂️

chrome beacon
reef peak
#

I have java 19 *

#

its using java 1.8

chrome beacon
#

Use Java 17

reef peak
#

I'm a newbie on this, sorry

#

ok let me check

#

the problem is the same

chrome beacon
#

Looks like its still using Java 8

#

Check your Java home environmental variable

reef peak
#

mh

#

Well well well

upper hazel
#

who know what worldguard version use for 1.12.2 for dependency
wth with this? i not found 6.2
minimum version this 7.0.0
but 7.0.0 not for 1.12.2

upper hazel
#

oh

#

worldguard-lagacy

#

not bukkit

robust helm
#

yup

upper hazel
#

oh documintation lies me

#

thenks

robust helm
#

np

reef peak
#

still getting the same issue even by updating java

#

and defining variable

upper hazel
#

but not instance

robust helm
#

and then casting it to WorldGuardPlugin

upper hazel
#

oh

#

how

#

this

#

work

#

pluginManager get plugin

#

not class

#

WorldguardPlugin not give class

robust helm
robust helm
#
WorldGuardPlugin wgp = (WorldGuardPlugin) Bukkit.getPluginManager().getPlugin("WorldGuard");
upper hazel
#

this not give instance

#

yes

#

but

#

WorldguardPlugin not give class

#

instance

upper hazel
#

oh wait

#

this is instance

#

i have metods

#

lol

glad prawn
#

💀💀

onyx fjord
#

it is indeed

#

be sure to add it to depend

upper hazel
#

I thought "Plugin" was something else

#

thenks

upper hazel
#

hey how i can "find onLoad metod" in worldguard api for registry flag

#

i mean where did they even get it from?

chrome beacon
#

You need the mining fatigue effect

robust helm
#

like the code where i coded it with adventure mode

orchid tide
#

hi. does anybody have any experience with tiktok api to get data like likes, shares and so on? if yes, i could use some help. i have to make a plugin with tiktok api to get data of a certain video for example and check the data. any ideas or tips?

quaint mantle
#

Is there detailed documentation over the EntityPlayer class? (package net.minecraft.server.level) 1.18.2 craftbukkit

robust helm
#

tysm

eternal oxide
#

net.minecraft is not CraftBukkit and no there is no documentation

#

?mappings other than

undone axleBOT
quaint mantle
#

@eternal oxide

chrome beacon
#

That's still Mojangs code

#

A screenshot of the package layout won't change that

young knoll
#

yes

lilac dagger
#

yes

#

but in modern versions

chrome beacon
lilac dagger
#

ah yes yea

winter flower
#

I'm trying to create an NPC the way I used to do it was:

// String name
// Location location

MinecraftServer server = ((CraftServer) Bukkit.getServer()).getServer();
WorldServer world = ((CraftWorld) location.getWorld()).getHandle();

GameProfile profile = new GameProfile(UUID.randomUUID(), name);
EntityPlayer player = new EntityPlayer(server, world, profile, new PlayerInteractManager(world));

But I migrated to 1.20 and I'm having trouble implmeneting this code:

  1. The player variable doesn't have a .setLocation(Location) method.
  2. the PlayerInteractManager(world) doesn't take a CraftWorld anymore it takes an EntityPlayer
kind hatch
#

?paste exists just so you know

undone axleBOT
winter flower
smoky oak
#

Can i make a EntityRayTrace not go through blocks, or do i need to do two ray traces and compare exact hit positions for which one is closer?

agile hollow
#

how can i async / loop block for remove it after 5 seconds?

eternal oxide
#

entity or block

smoky oak
#

sooo the player, and i cant filter that with a normal trace

#

oh its missing the collisionmode isnt it

young knoll
#

You can definitely filter entities

slender elbow
#

many arguments

eternal oxide
#

or use rayTraceBlocks, if you only want teh first block

winter flower
undone axleBOT
smoky oak
#

alright different problem, i have multiple events that can fire in the same tick, can i somehow sync them so that only the first one fired goes through?

#

*per player

untold mauve
#

hey! I am trying to create custom blocks using mushroom blocks, problem is that all instances of the block have the same block particles as the first custom block registered (stone). how could this be fixed?

I have already tried setting the particle texture in the model json file but that didn't work

winter flower
# kind hatch ?mappings

Not really sure what I should be doing here, I opened it and saw that it does infact not include .setLocation and the PlayerInteractManager does infact need an EntityPlayer and that still doesn't help me actually get the NPC, if you can help me with that i'd appreciate it

remote swallow
#

are we in nms era

gilded granite
#

in that why i cant pickup items ```java
@EventHandler
public void respawn(PlayerDeathEvent event) {
event.setKeepInventory(true);
event.setKeepLevel(true);
final Player player = event.getEntity().getPlayer();
event.getEntity().getPlayer().spigot().respawn();
player.setGameMode(GameMode.SPECTATOR);
player.setCanPickupItems(true);

    new BukkitRunnable() {
        int count = 5;

        @Override
        public void run() {
            if (count == 0) {
                player.setGameMode(GameMode.SURVIVAL);
                player.spigot().respawn();
                player.sendTitle(ChatColor.GOLD + "Respawned!", null);
                player.setHealth(player.getMaxHealth());

                cancel();
            } else {
                player.sendTitle(ChatColor.RED + "Respawning in "+ count + "...",null);
                count--;
            }
        }
    }.runTaskTimer(Thehunt.getPlugin(Thehunt.class), 0L, 20L);

    event.setDeathMessage("");
}```
#

any1?

sharp ingot
#

https://paste.md-5.net/kehaciwace.cs
This code does not work at all as we defined it, and when we right-click on the item, it is deleted and the code is not executed, but when there is another slot, the code works and comes to slot 8 and puts an item, but when I click again, it is deleted.

thorn saffron
#
package com.customplayercommand;

import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;

public final class CustomPlayerCommand extends JavaPlugin implements CommandExecutor{

    @Override
    public void onEnable() {
    }

    @Override
    public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
        if (cmd.getName().equalsIgnoreCase("createcommand")) {
            if (sender instanceof Player) {
                Player player = (Player) sender;
                player.sendMessage("Hello you should create command");
                String pcommand = args[0];
                getCommand(pcommand).setExecutor(new CustomPlayerCommand());
                if (cmd.getName().equalsIgnoreCase(pcommand)){
                    player.sendMessage("OMG THIS IS WORKING");
                }
                }
            }
        return true;
    }
        @Override
        public void onDisable () {
    }
}

Why is it not working?

#

(I know i'm bad dev, i'm just small spigotmc dev)

gilded granite
#

First never use commands in main class

kind hatch
#

You didn't register your command.

weak meteor
#

there's any other scoreboard api apart from Fastboard?

tender shard
thorn saffron
winter flower
remote swallow
#
compileJava.options.encoding = "UTF-8"
compileTestJava.options.encoding = "UTF-8"
kind hatch
thorn saffron
#

wdym

thorn saffron
#

the plugin not adding

remote swallow
tender shard
#

yes

remote swallow
#

oh

#

idk what that would be

tender shard
#

the same

#

the syntax is correct

#

it just doesnt work in buildSrc scripts

kind hatch
undone axleBOT
winter flower
#

Read this, not sure what I'm supposed to do, I found a version that uses ServerPlayer for 1.20 I tried it and that isn't even something I can import? Not really sure what I'm supposed to do here I'd like explanations thank you

winter flower
eternal oxide
#

?nms

gilded granite
#

why the player.setCanPickupItems isnt working

winter flower
# eternal oxide ?nms

Already have it installed, that's how I got most of my other classes like EntityPlayer but the solution I found that fits for 1.20 uses that ServerPlayer which I couldn't find

kind hatch
gilded granite
#

u need mojang mapping for ServerPlayer ig

eternal oxide
#

ServerPlayer has been in since around 1.16

remote swallow
winter flower
#

Which is weird like I said because I don't have it for some reason.

remote swallow
#

you probably have mojmaps

winter flower
#
<dependency>
            <groupId>org.spigotmc</groupId>
            <artifactId>spigot</artifactId>
            <version>1.20.1-R0.1-SNAPSHOT</version>
            <scope>provided</scope>
            <classifier>remapped-mojang</classifier>
        </dependency>
sullen marlin
#

other way round

remote swallow
#

yeah you have mojmaps

remote swallow
eternal oxide
#

ServerPlayer is mojmaps

winter flower
#

Explain?

tender shard
#

it only suggests me these but no compileJava lol

#

although I do use the java-library plugin

remote swallow
sullen marlin
#

EntityPlayer is spigot, ServerPlayer is mojang

gilded granite
#

im using java @EventHandler public void forceItemPickup(PlayerRespawnEvent e) { Player p = e.getPlayer(); p.setCanPickupItems(true); Boolean bool = p.getCanPickupItems(); Bukkit.getLogger().info(String.valueOf(bool)); } and its always printing false

tender shard
eternal oxide
#

that

remote swallow
winter flower
kind hatch
kind hatch
remote swallow
#

cast to craft player and call getHandle

winter flower
#

gotcha, thank you alot

tender shard
remote swallow
#

ah

#

its on the view now

tender shard
#

inventoryview#gettitle

kind hatch
#

InventoryView#getTitle()

remote swallow
#

and you shouldnt check its ur inv by title

quaint mantle
tender shard
#

yeah why do you even need the title?

kind hatch
#

Also what epic said

remote swallow
kind hatch
#

Compare instances, not names.

lilac dagger
#

exactly 😄

sharp ingot
#

https://paste.md-5.net/kehaciwace.cs
This code does not work at all as we defined it, and when we right-click on the item, it is deleted and the code is not executed, but when there is another slot, the code works and comes to slot 8 and puts an item, but when I click again, it is deleted.

#

Help meeeeeeeee

gilded granite
#

in that any1 know why its always false ```java
@EventHandler (priority = EventPriority.MONITOR)
public void respawn(PlayerDeathEvent event) {
event.setKeepInventory(true);
event.setKeepLevel(true);
final Player player = event.getEntity().getPlayer();
event.getEntity().getPlayer().spigot().respawn();
player.setGameMode(GameMode.SPECTATOR);

    new BukkitRunnable() {
        int count = 5;

        @Override
        public void run() {
            Boolean bool = player.getCanPickupItems();
            Bukkit.getLogger().info(String.valueOf(bool));
            player.setCanPickupItems(true);
            if (count == 0) {
                player.setGameMode(GameMode.SURVIVAL);
                player.spigot().respawn();
                player.sendTitle(ChatColor.GOLD + "Respawned!", null);
                player.setHealth(player.getMaxHealth());

                cancel();
            } else {
                player.sendTitle(ChatColor.RED + "Respawning in " + count + "...", null);
                count--;
            }
        }
    }.runTaskTimer(Thehunt.getPlugin(Thehunt.class), 0L, 20L);

    event.setDeathMessage("");
}```
kind hatch
#

Are lambda streams autocloseable?

gilded granite
sharp ingot
#

https://paste.md-5.net/kehaciwace.cs
This code does not work at all as we defined it, and when we right-click on the item, it is deleted and the code is not executed, but when there is another slot, the code works and comes to slot 8 and puts an item, but when I click again, it is deleted.

tender shard
#

I just used \u00A7 instead of '§' now

gilded granite
#

i cant fucking set the canPickupItem to true

#

In anyways

sullen marlin
#

[07:13:21] [Server thread/INFO]: true

#

worksforme

gilded granite
#

my code?

#

Its not workinng

sharp ingot
#

https://paste.md-5.net/kehaciwace.cs
This code does not work at all as we defined it, and when we right-click on the item, it is deleted and the code is not executed, but when there is another slot, the code works and comes to slot 8 and puts an item, but when I click again, it is deleted.

sullen marlin
#

yep, the move event code above

gilded granite
#

idk why tf

sharp ingot
glad prawn
lilac dagger
#

maybe move the log past set?

glad prawn
#

ah k nvm

tranquil breach
sullen marlin
#

maybe another plugin is setting it to something else

#

what /version ?

gilded granite
#

1.8.8

sullen marlin
#

?1.8

undone axleBOT
tranquil breach
#

khob karan ina

gilded granite
#

I have no other plugins

tranquil breach
#

modele

#

nmifahman

glad prawn
#

bro

tranquil breach
#

😂

sharp ingot
#

https://paste.md-5.net/kehaciwace.cs
This code does not work at all as we defined it, and when we right-click on the item, it is deleted and the code is not executed, but when there is another slot, the code works and comes to slot 8 and puts an item, but when I click again, it is deleted.

gilded granite
sullen marlin
#

I just tested it in 1.20.2 and it worked fine

#

so shrug

remote swallow
#

¯_(ツ)_/¯

sullen marlin
#
[07:13:20] [Server thread/INFO]: true
[07:13:20] [Server thread/INFO]: true
[07:13:20] [Server thread/INFO]: true
[07:13:20] [Server thread/INFO]: true
[07:13:20] [Server thread/INFO]: true
[07:13:21] [Server thread/INFO]: true
[07:13:21] [Server thread/INFO]: true
[07:13:21] [Server thread/INFO]: true
[07:13:21] [Server thread/INFO]: true
[07:13:21] [Server thread/INFO]: true
[07:13:22] [Server thread/INFO]: true
[07:13:22] [Server thread/INFO]: true
[07:13:22] [Server thread/INFO]: true
[07:13:22] [Server thread/INFO]: true
[07:13:22] [Server thread/INFO]: true
[07:13:22] [Server thread/INFO]: true
[07:13:22] [Server thread/INFO]: true
[07:13:22] [Server thread/INFO]: true
[07:13:22] [Server thread/INFO]: true
[07:13:22] [Server thread/INFO]: true
[07:13:22] [Server thread/INFO]: true
[07:13:22] [Server thread/INFO]: true
kind hatch
#

¯_(ツ)_/¯

#

Late to the draw. 😦

tranquil breach
sullen marlin
#

?whereami

sharp ingot
#

https://paste.md-5.net/kehaciwace.cs
This code does not work at all as we defined it, and when we right-click on the item, it is deleted and the code is not executed, but when there is another slot, the code works and comes to slot 8 and puts an item, but when I click again, it is deleted.
plugin ver : 1.8.8

sullen marlin
#

I dont know protocollib sorry

#

is the packet being sent

#

maybe its a different packet

kind hatch
#

Isn't there Player#stopSound()?

sharp ingot
#

xd

tranquil breach
sharp ingot
#

https://paste.md-5.net/kehaciwace.cs
This code does not work at all as we defined it, and when we right-click on the item, it is deleted and the code is not executed, but when there is another slot, the code works and comes to slot 8 and puts an item, but when I click again, it is deleted.
paper xd 😂

sullen marlin
#

stopSound isnt what you want, but setSilent(true) might be

gilded granite
#

how can i remove player colliding in 1.20

kind hatch
gilded granite
#

ok thx

lilac dagger
#

yes

kind hatch
#

I thought #setSilent() was the equivelent of the silent nbt tag for mobs? That wouldn't remove other sounds like block steps or UI sounds or what not.

kind hatch
lilac dagger
#

inv click/interact setSilent

#

death set silent false

tranquil breach
#

?whereami

sharp ingot
tender shard
sullen marlin
kind hatch
#

Ask jeb_

#

He knows

tranquil breach
gilded granite
#

is this good ```java
@EventHandler
public void disableCollide(EntitySpawnEvent e) {
if(e.getEntity() instanceof LivingEntity){
((LivingEntity) e.getEntity()).setCollidable(false);
}

}```
glad prawn
#

bro still dont know how to calc? 💀

lilac dagger
gilded granite
#

how to fix that

#

bukkit.getEntities?

glad prawn
#

Lol why need a lib, its simple 😦

lilac dagger
#

and as well on spawn

glad prawn
gilded granite
# lilac dagger do it on chunkload

now good ```java
@EventHandler
public void again(ChunkLoadEvent e ) {
LivingEntity living = (LivingEntity) e.getWorld().getLivingEntities();

    living.setCollidable(false);
}```
sullen marlin
#

no thats not how loops work

gilded granite
#

me?

sullen marlin
#

yes

gilded granite
#

should i do a for each or idk?

#

yes

quaint mantle
#

"Entities"

gilded granite
#

yes

gilded granite
#

@EventHandler
public void onChunkLoad(ChunkLoadEvent e) {
e.getWorld().getLivingEntities().forEach(livingEntity -> livingEntity.setCollidable(true));
}

#

?

sullen marlin
#

seems good

gilded granite
#

okie nice

lilac dagger
#

yeah but it'll do it everytime a chunks loads for all the world

gilded granite
#

so?

lilac dagger
#

i'm pretty sure the chunk had a get entities method

gilded granite
#

not good?

gilded granite
lilac dagger
#

just instance them

gilded granite
#

Inconvertible types; cannot cast 'org.bukkit.entity.Entity[]' to 'org.bukkit.entity.LivingEntity

ivory sleet
#

hows ur code looking

lilac dagger
#

@EventHandler
public void onChunkLoad(ChunkLoadEvent event) {
for (Entity entity : event.getChunk().getEntities()) {
if (entity instanceof LivingEntity livingEntity) {
livingEntity.setCollidable(false);
}
}
}

chrome beacon
#

Java 17

#

Update shade plugin

tender shard
#

update maven-shade-plugin to 3.5.1

tranquil breach
#

https://paste.md-5.net/kehaciwace.cs
This code does not work at all as we defined it, and when we right-click on the item, it is deleted and the code is not executed, but when there is another slot, the code works and comes to slot 8 and puts an item, but when I click again, it is deleted.
plugins version: 1.8.8-R0.1-SNAPSHOT

sharp ingot
#

.

tender shard
#

or just press F2 to jump to the next error lol

sharp ingot
#

https://paste.md-5.net/kehaciwace.cs
This code does not work at all as we defined it, and when we right-click on the item, it is deleted and the code is not executed, but when there is another slot, the code works and comes to slot 8 and puts an item, but when I click again, it is deleted.
plugins version: 1.8.8-R0.1-SNAPSHOT

tender shard
quaint mantle
#

1.8 is old af

sharp ingot
#

ok

sharp ingot
#

جنده

tranquil breach
#

این میشه گیییییی

cinder abyss
#

Hello, what are net.minecraft.server.level.ClientInformation and net.minecraft.server.network.CommonListenerCookie in nms 1.20.2 please? and how to use ClientInformation when creating a new instance of ServerPlayer and how to useCommonListenerCookie when doing this:java serverplayer.connection = new ServerGamePacketListenerImpl(herobrine.server, new Connection(PacketFlow.CLIENTBOUND), serverplayer, CommonListenerCookie here... );

tender shard
#

ClientInformation contains the client settings, like which view distance they chose

tender shard
sharp ingot
#

https://paste.md-5.net/kehaciwace.cs
This code does not work at all as we defined it, and when we right-click on the item, it is deleted and the code is not executed, but when there is another slot, the code works and comes to slot 8 and puts an item, but when I click again, it is deleted.
plugins version: 1.8.8-R0.1-SNAPSHOT

cinder abyss
kind hatch
#

MariaDB has it's own driver, but MariaDB is compatible with MySQL so the driver should work just fine.

tender shard
#

trust me, nobody is going to answer at all if you just keep spamming the same message

remote swallow
tender shard
#

XAMPP

#

maybe you should obey the rules and stop talking in random languages @vagrant stratus

cinder abyss
tender shard
#

yes but you can also choose to only start mysql

#

is it not on maven central?

remote swallow
#

dont you use cockroach db

tender shard
#

the always-forgotten libraries feature lets you use anything from maven central w/o shading it

remote swallow
#

alex is gay, yes

tender shard
#

are we discussing my sexuality here again?

young knoll
glad prawn
#

if just get exp then use my method lol, simple af

sharp ingot
tranquil breach
#

omggggg

tranquil breach
#

ok bruh

remote swallow
#

whats wrong with being gay

tranquil breach
sharp ingot
#

1 - Decreasing population , .............................

tender shard
#

can you guys move the discussion abuot my sexual preferences into #general pls

remote swallow
tranquil breach
lilac dagger
#

yee

remote swallow
tender shard
#

oh that's hand.y I'd still use xampp, that way you'd also instantly get a phpmyadmin too

echo basalt
#

everybody gangsta until I'm low on time

lilac dagger
#

i forgot my password to my mysql server

#

😦

echo basalt
#

where's the ppl that were pinging me 5x for nms help

tranquil breach
tender shard
lilac dagger
#

not sure

echo basalt
#

what ver

lilac dagger
#

i'm on windows

#

it's for local testing

#

i just tried

#

it still asks for password

lilac dagger
#

i'll do a clean install maybe

#

or that

echo basalt
#

wallah

cinder abyss
#

Hello, how can I get logs of the bungeecord console ?

tender shard
#

if bungeecord also uses log4j like spigot does, then this tutorial should be 100% applicable https://blog.jeff-media.com/how-to-read-or-block-spigots-console-output/

Spigot uses Log4j to log console output, hence making it easy to listen to incoming console messages, or to block certain console messages from appearing. Prequisities You need to have Log4J on your classpath. We simply add the dependency to our pom.xml using the provided scope, as Spigot already contains those classes on runtime: Create...

cinder abyss
tender shard
#

what does it use?

cinder abyss
tender shard
#

wdym? does it just throw messages at System.out?

cinder abyss
#

slf4j

tender shard
#

then idk

dense blaze
#

How can I check if there is a nearby active conduit nearby and what its power is even if the player is not in water?

cinder abyss
#

for him to see what dependencies there is

remote swallow
#

bungeecord doesnt contain mc code

#

its fine to share on discord

tender shard
#

what the hell did past me want to tell current me with this

#

what the hell is BC

dry hazel
#

binary compatibility maybe?

tender shard
#

oh that makes sense, I recently bookmarked something about creating bridge methods to avoid this

#

lmao thanks

#

also what kind of shitty quick fix is this

#

YES, my public method is not used anywhere. It's because it's a library, meant for others to use. Okay, I get it, IJ doesn't understand. But how is changing the visibility to private or anything FIX THIS METHOD NOT BEING USED

glad prawn
#

suppress warnings unused 💀

cinder abyss
tender shard
#

idk why but my classes look cursed

tender shard
cinder abyss
tender shard
#

?xy

undone axleBOT
cinder abyss
#

I want to set the fogColor of a biome

#

I use nms 1.17.1

tender shard
tender shard
#

where exactly does it require you to pass in the int[]from above?

cinder abyss
#

maybe this code is correct?

tender shard
#

no, you're casting an int[] to an int

tender shard
#

from what I see, the private static "a" field is just like a map that maps arbitrary numbers to an actual color

#

there is probably 0 reason to ever touch it, hence it's private

cinder abyss
#

okay thanks

#

I'll use this then

tender shard
cinder abyss
winter flower
#

Currently trying to get a ServerLevel:

ServerLevel world = ((CraftWorld) location.getWorld()).getHandle();

Getting an error tho: https://paste.md-5.net/ivurifawuq.bash

The dependencies:

<dependency>
  <groupId>org.spigotmc</groupId>
  <artifactId>spigot</artifactId>
  <version>1.20.1-R0.1-SNAPSHOT</version>
  <scope>provided</scope>
  <classifier>remapped-mojang</classifier>
</dependency>
cinder abyss
cinder abyss
tender shard
#

follow this guide please ^

winter flower
winter flower
#

Still encountering the issue tho

tender shard
#

did you add the whole specialsource plugin?

cinder abyss
#

or the pom.xml config ?

winter flower
#

Yes, I'll recheck tho one second

tender shard
#

If yes, did you change the version accordingly to 1.20.1 everywhere?

winter flower
#

Yup

#

Let me check just one second

tender shard
#

And if yes, did you compile using maven or Build ARtifacts?

#

you probably used build artifacts, rendering your whole pom useless

#

maybe I should mention that in my blog post

#

I assumed it's basic knowledge that if using maven, you must use maven to compile

winter flower
#

I did do infact everything you said, it was a single typo in the pom.xml tho

tender shard
#

ah ok so you got it fixed?

winter flower
#

Not particularly now my pom.xml is having an error

tender shard
#

?paste your whole pom

winter flower
#
<artifactId>specialsource-maven-plugin</artifactId>
                <version>1.2.2</version>
undone axleBOT
winter flower
#

The versions are updated in the actual pom.xml ^

tender shard
#

here's your issue

#

If you’re using maven for your Spigot plugins (which you should do), it’s easy to make maven automatically save your plugin’s .jar in your plugins folder. There’s two ways of doing this: 1. The lazy way (not recommended) If you only work alone on one computer, you can just directly declare the output location in...

#

do NOT change the output location in the maven-shade-plugin

#

and also, do NOT disable dependencyReducedPom

#

Many people who are using the maven-shade-plugin commonly set to false for reasons beyond my grasp. This is generally a bad idea, as it can lead to problems if you’re writing a library, and has absolutely no advantages. Here’s a rule of thumbs: If your project shades dependencies, it should create a dependency-reduced-pom.xml. The...

winter flower
#

Ah

tender shard
#

read both of these please, then adjust your pom, then report back pls

winter flower
#

Alright, thank you.

tender shard
#

np

#

TL;DR: Change the output location in maven-jar-plugin, and NOT in maven-shade-plugin

dense geyser
#

how can I create an instance of PlayerTextures? I for some reason can't find my buildtools folder to locate it's origin

remote swallow
#

that seems like a cb class

#

ah its a cb impl class

dense geyser
remote swallow
#

pretty much yoou cant, it probably gets created with the player instance

dense geyser
#

then whats the point of Bukkit.createPlayerProfile :/

winter flower
remote swallow
#

it probably gets created with it

dense geyser
#

oh

remote swallow
#

if anything setTextures is to set it from another profile

tender shard
#

the message complains about "ServerLevel" which is a mojang mapped class

#

in spigot it would be called WorldServer

dense geyser
#

oh yeah haha, thanks

winter flower
tender shard
#

but the server needs the "obfuscated" .jar

remote swallow
#

are you using reflection or something

tender shard
#

please stop your server. delete your .jar from the plugins folder.
Now in IntelliJ; run "mvn package" again and be sure that you did check the "export-to-test-server" profile before doing so

#

then start the server again

remote swallow
#

i didnt even see the profile

winter flower
#

So the new thing I'd do here is just deleting the .jar and stopping the server

tender shard
remote swallow
winter flower
#

Yup

remote swallow
#

yeah stop server, delete jar, start server

winter flower
#

Alright

remote swallow
#

re-package before starting too

winter flower
#

Alright

tender shard
#

looks like you still got the old .jar there so it decides to load the old .jar as the new one might have a different name

#

that's my guess

#

btw for commons-io, you can set the scope to "provided" as spigot should already contain it

winter flower
#

Oh alright

tender shard
#

but yeah other than that, your pom looks fine to me

winter flower
#

Everything works now thanks alot, sorry to bother!

tender shard
#

great! you're welcome

#

now do you want to learn how to do NMS that works across versions? 😛

#

Hi there! Today I’m going to explain how to setup a multi-module project using maven to support different NMS versions. Important notes about this tutorial: Every step will have detailled screenshots using IntelliJ. I explicitly chose not to include everything as copy/pastable source code, but normal screenshots (you can click on them to show th...

remote swallow
#

make a gradle one

#

that doesnt use buildSrc

winter flower
tender shard
#

buildSrc is actually the only thing I like about gradle

remote swallow
#

over the top for ur average plugin

tender shard
#

not really, I even use it for my PAPI replacer

#

if your build.gradle ever exceeds like 50 lines, you're doing something very very wrong

remote swallow
#

doesnt use version catalog 2/10

tender shard
#

version catalog?

remote swallow
#

one sec

tender shard
#

I'm always happy to learn new things

#

but I haven't read anything about that in the official docs

remote swallow
#

its inside default gradle as libs.versions.toml, but theres a plugin to make it yaml

tender shard
#

i dont really see any improvements by doing it like that

remote swallow
quaint mantle
#

soo like having this issue

[Server thread/WARN]: java.io.FileNotFoundException: BloodRoom_c.schematic (No such file or directory)```
well the file is in the plugin floder but still I get this error do 
```java
                schematicMap.put("Spawn", "/plugins/pluginname/spawn_c.schematic");

do I try this?

remote swallow
#

its better for changing versions and stuff bc it would all be central in 1 file

quaint mantle
#

hi epic

remote swallow
#

instead of spread across about many

tender shard
#

btw this is the longest build.gradle I ever wrote - only 42 lines

remote swallow
#

none exceed 50 in my current project

#

that does use nms

undone axleBOT
#

It’s hard to answer a programming question without code
Oh no! You ran into a problem. But no worries, people are willing to help, but first they need to see your code. This is because otherwise, they would be providing help based on guesses instead of concrete knowledge. Whether it be a compile error, runtime error, or an unexpected output, I'm sure that if you were to provide code, you'd receive a quick solution.

quaint mantle
#

oh

remote swallow
#

and are you saving it

quaint mantle
#

nope

#

its not in the thing

remote swallow
#

wheres it coming from then

quaint mantle
#

I upload it later

#

like

#

ye

tender shard
remote swallow
#

well the line of code you sent and the error have 2 different names so start at that

quaint mantle
#

oh

#

that was just for an example

#
                        File schematicFile = new File(pluginFolder, schematicFileName);
#

do I

remote swallow
#

check it exists first

quaint mantle
#
            File schematic = new File("plugins/RemakeHypixelSkyblock/private_island.schematic");
remote swallow
#

no

quaint mantle
#

o

remote swallow
#

how you do it is fine

quaint mantle
#

alr

#

how do I check if it exists or not

glad prawn
#

file.exists()

remote swallow
#

as long as plugins folder is JavaPlugin#getDataFolder

echo basalt
#

paintomato hey look another shitty hypixel skyblock clone

#

FileUtils.copyBuiltInResources(this, getFile());
and fuck off

sullen marlin
#

O o

winter flower
#

Lmao bro didn't hold back for 2 seconds

tender shard
#

HAST DU ETWAS ZEIT FÜR MICH

#

maven be like when compiling a 28 subprojects project

worldly ingot
#

He was very upset with his answer

remote swallow
#

when do we get purge day

#

we, to to a point, just insult people who come for help

tender shard
#

yeah fuck you choco

#

you probably asked something once right?

#

fuck yuo for that

#

real chads only answer questions here, and if we have actual questions, we go to r/benzodiazepines and wonder why nobody knows the answer there

remote swallow
#

alex stop doing drugs

tender shard
#

dude I got them prescribed by some random doc from croatia

remote swallow
#

i dont care

#

stop

tender shard
#

yeah as I announced many times, I got this appointment at this anxiety clinic next thursday

#

if all goes well, I'll be a patient there in 8 weeks and then can live without any meds

#

but until then, let me take my prescribed meds lol

remote swallow
#

are you taking ur laptop

remote swallow
tender shard
remote swallow
#

how much

tender shard
#

2 rocks

#

you in?

remote swallow
#

ill do 1

tender shard
#

ok

remote swallow
#

bc i have to transport it to you

tender shard
#

yeah it's fair ig

#

so once the rock is here, I'll give you my m2

#

which I btw benchmarked with cinebench and it ranked #8

remote swallow
#

full .m2?

tender shard
#

m2 max 30 gpu cores 12 cpu cores 18 neural engine cores, 1024gb storage and 64gb ram

#

resolution is 3456x2234

#

on 16 inches

#

there's only one better version that has 38 gpu cores but that wasn't worth it because it had a waiting time for like 4 weeks

#

it compiles spigot 1.20.1 --remapped within 30 seconds

#

does anyone know if I can disable this IJ feature that shows javadocs as text?

#

it's annoying to have to click the "edit" button everytime I wanna edit them

#

taling about this

#

the hotkey mentioned only toggles it for the selected method, not for all

#

I got a gradle module that only exists for the package-info.java files, but the plugin complains about no classes being found - any way to fix this?

> Task :javadoc:javadoc FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.3/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
80 actionable tasks: 42 executed, 38 up-to-date
error: No public or protected classes found to document.
1 error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':javadoc:javadoc'.
> Javadoc generation failed. Generated Javadoc options file (useful for troubleshooting): 'C:\Users\mfnal\IdeaProjects\cesspool\modules\javadoc\build\tmp\javadoc\javadoc.options'

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 17s
02:27:04: Execution finished 'build'.
tender shard
odd pier
#

?

#

?help

#

oh

#

sorry

tender shard
#

what do you need help with @odd pier

odd pier
#

bot command like ?nocode

#

using custom gui without custom font(define fonts in default.json) is safe? i think users can use it, but idk

#

just add "do not use custom fonts" in rule?

slender elbow
#

a package without classes does not really exist

#

it isn't a package per se

remote swallow
#

Emily

slender elbow
#

hi

remote swallow
#

No paper 1.20.2 (meganind)

slender elbow
#

we are workng on it 😭

#

and by we i mean everyone except me

remote swallow
#

Even aikar!?

slender elbow
#

I, n-no

dark jolt
#

Anyone know how I can go about deleting advancements fully then remaking them with whats in a config file

#

I got the creating part down but I can't figure out how to recreate them like delete them fully then create them

halcyon hemlock
#

Imma try on rtx 4090 i9 13900kf

vale cradle
#

Is there any way (preferrably through the Spigot/Paper API) to attract a mob to you?

tender shard
#

I doubt your rtx 4090 does any difference lol

tender shard
#

TemptGoal

halcyon hemlock
#

ill let you know in a bit

vale knoll
#

How can I put text in a text display with 2 different colors? I am trying this:

 textDisplay.setText(ChatColor.of("#008EA1") + newRole + ChatColor.WHITE + "(" + prevRole + ")");

where newRole and prevRole are just strings. If prevRole is "Imp" and newRole is "Monk", I would expect to see "Monk(Imp)", but instead I see "(MonkImp)".

topaz cape
#

is it possible to hide the player from himself only? like to look invisible for himself (i want the player to stay visible for others)

#

if yes im probably guessing some invis potion packet with nms

#

no?

halcyon hemlock
#

maybe entity destroy packet

#

or maybe invis potion for just the player himself

#

entity destroy might kill the player actually

topaz cape
#

it doesn't kill the player. it just unloads everything even the world

near mason
#

does PlayerToggleFlightEvent.isFlying returns if player was flying before the event or after the event?

lost matrix
near mason
#

ok thank you

winter flower
#

Trying to make a recipe where the items required to receive the recipe must be a specific amount not just 1 but it doesn't work it only works if the amount is 1 unlike what the code says 32:

ShapedRecipe recipe = new ShapedRecipe(key, GetItem());

recipe.shape("EEE", "EEE", "EEE");
recipe.setIngredient('E', new RecipeChoice.ExactChoice(new ItemStack(Material.WHEAT_SEEDS, 32)));
lost matrix
upper hazel
#

<dependency>
<groupId>com.sk89q.worldguard</groupId>
<artifactId>worldguard-legacy</artifactId>
<version>6.2</version>
<scope>provided</scope>
</dependency> - in this artifactId not exists vector class

#

what i can use

zealous osprey
#

?askgoodquestion
What is your problem?

undone axleBOT
zealous osprey
#

And if there is an error, please provide a part of the error

upper hazel
#

dependency for 1.12.2 worldguard api not exists

#

so I use it via artifactID

#

worldguard-lagacy

#

but

#

he not found vector class

zealous osprey
upper hazel
#

this is the problem for 1.12.2 it doesn’t exist

#

not found

#

so i use worldguard-lagacy

#

not worldguard-bukkit

#

java: cannot access com.sk89q.worldedit.Vector
class file for com.sk89q.worldedit.Vector not found

lilac dagger
#

why would WE have their own vector class?

upper hazel
zealous osprey
#

that is worldedit, is that included in worldguard?

upper hazel
#

i think shold

#

should

zealous osprey
#

Because it doesn't show me that

#

yeah, if I just depend on WG it doesn't allow me to use WE api

upper hazel
#

usually when connecting dependencies, worldedit is also included in dapandancy

zealous osprey
upper hazel
#

Or is it necessary in this case separately?

upper hazel
#

wait, is it really necessary to add worldedit to the dependency? It’s just that I didn’t add it before and everything worked great (when worldguard-bukkit) but now it can’t find