#help-development

1 messages · Page 440 of 1

mint nova
#

From TAB Plugin

#

AnimatedScoreboard

#

maybe?

#

idk

quaint mantle
young knoll
#

That’s

#

Not what that does

#

Player player is pattern matching with instanceOf

#

That won’t give you a variable of type player

#

🤨

#

Well yeah that works

#

But do you have a variable of type player

#

Sender doesn’t have the same methods as player

keen ferry
#

Hi, does anyone know why this doesn't remove the item from the player's inventory?
It drops the item, but it's still in the inventory.

    public static void dropItem(Player player) {
        player.dropItem(false);
    }

https://gyazo.com/412724d8adbdfcaacf959d80f0a18d03

#

What do you mean?
See the link I attached, it drops the item but it stays in the inventory

eternal oxide
#

show the method you call it from

#

?paste

undone axleBOT
eternal oxide
#

no

#

well

#

if he's cancelling yes

#

me either 🙂

icy beacon
#

ok why do you need to make a variable for player

paper viper
keen ferry
#

I've fixed the issue by adding player.getInventory().setItemInMainHand(null);

icy beacon
#

why is your method in UpperCamelCase

mint nova
#

bro i just lerning

#

im not good at coding im coding on my own

icy beacon
#

?learnjava

undone axleBOT
keen ferry
keen ferry
paper viper
#

Can someone help me with this?

mint nova
#

I do this
sender instanceof Player player to not do Player player = (Player) sender

tardy delta
#

shaded it?

paper viper
#

class

mint nova
#

a

paper viper
#

which class

#

that is a line from OrmLite wait

#
public QueryBuilder<T, ID> orderByRaw(String rawSql) {
        this.addOrderBy(new OrderBy(rawSql, (ArgumentHolder[])null));
        return this;
    }
#

i diddnt wrote that either thats a libary to handle sqlite databases

#
name: MCMania
version: '${project.version}'
main: de.mcmania.mcmania4.MCMania
api-version: 1.19
authors: [ LinusHuck, Rin ]
depend: [ RegionManager ]
commands:
  player:
    description: Manages player
    usage: /player <name> <info | permission | reset> <more arguments>
  uhc:
    description: Manages UHC
    usage: /uhc addCurrentLocation
  itemfinder:
    description: Manages ItemFinder
    usage: /itemfinder addCurrentLocation
  manager:
    description: Manages the plugin
    usage: /manager
  vote:
    description: Manages votes
    usage: /vote
  settings:
    description: Manages the settings
    usage: /settings
  points:
    description: Manages the points
    usage: /points

young knoll
#

Have you shaded the library

paper viper
#

?

#

Btw somethimes the shutdown workd somethimes not

#

it says that it could find the ColumnNameOrRawSql.class

#

it gets incuded by maven

#

which code

#

        <dependency>
            <groupId>com.j256.ormlite</groupId>
            <artifactId>ormlite-jdbc</artifactId>
            <version>6.1</version>
        </dependency>
hazy parrot
#

Main class is not relevant here, either you didn't shade class or that library inject class during runtime, that can be problem with spigot classloader

hazy parrot
#

Idk, make sure you are shading class that is missing first

#

And that you are using right jar

#

If class is there, library is probably injecting during runtime what can be problem

#

Again, idk how that library works internally

#

But I would guess you just didn't shade it

paper viper
#

what do you mean with shading?

terse socket
#

I did this and it doesn't work

public class playerMessage implements Listener {
    @EventHandler
    public void playerAutoCorrect(AsyncPlayerChatEvent e) {
        String message = e.getMessage();
        if (message == "wlc") {
            e.setMessage("Welcome");
        } else if (message == "by") {
            e.setMessage("Goodbye");
        } else if (message == "wsp") {
            e.setMessage("What's up");
        }
    }
}
paper viper
#

did you register the event?

terse socket
#

Yes, like this

public void onEnable() {
        getServer().getPluginManager().registerEvents(new playerMessage(), this);
    }
paper viper
#

use .equals

young knoll
#

You can’t compare strings with ==

paper viper
#

you cant compare with ==

terse socket
#

Oh

#

Alright, thank you so much

#

I'm kind of a newbie at Java, so

tardy delta
#

?conventions

mint nova
#

idk how to name it

eternal oxide
#

aliases: [this, that]

#

it might be alias

mint nova
#

ok i will test

terse socket
mint nova
#

but how i can create a tab auto complete

#

so when the user type /spawn and press space /spawn the arguments will show on

#

help and reload

eternal oxide
#

implement tabexecutor

mint nova
eternal oxide
#

yes

mint nova
#

i put this whole code in CommandExecutor

eternal oxide
#

if (args.length == 1) return new ArrayList("help", "reload");

echo basalt
#

bro uses the C# theme wtf

mint nova
#

i cant find better that that

mint nova
#

its red

#

idk how to write it correctly

tawdry echo
#

Arrays.asList(...)

tawny remnant
muted dirge
#

can someone help me fix this problem?

echo basalt
#

you made a constructor in your plugin class

muted dirge
#

i see

#

lemme test it

versed canyon
#

?paste

undone axleBOT
versed canyon
#

I'm trying to use the WorldBorder object to display a virtual border to a player. I'm creating and displaying it like this, but I don't see the border. What am I missing?
https://paste.md-5.net/qaziduyedu

lunar forge
#

Hey, I have this method for updating inventory titles, it works fine with regular color codes but when I have HEX Colors, it doesn't work (in 1.18 hex works, in 1.19 it doesn't)
https://paste.md-5.net/qineboyina.js

tawdry echo
#

if in Bukkit.create Inventory(holder, size, title) title be null then it cause error or ignore it and set name as default inventory

tawdry echo
tawdry echo
#

nvm

ancient basin
#

What's the method I have to use to create a task in 1.19?
Few years ago, I was using Bukkit.getScheduler().runTaskTimer(plugin, runnable, long, long) but this function is now deprecated. What's the solution now?

eternal oxide
#

BukkitRunnable

ancient basin
#

What I have to do with this class? May I create a class that extend BukkitRunnable ?

vital sandal
#

new Bukitrunable

#

And override the run() method

ancient basin
#
BukkitRunnable runnable = new BukkitRunnable() {
            @Override
            public void run() {
                currentTime = System.currentTimeMillis();
                updateScoreboard();
            }
        };

        task = runnable.runTaskTimer(ManHuntPlugin.getInstance(), 0L, 20L);

like this ?

vital sandal
#

Yeh

ancient basin
#

Ok ok thanks

vital sandal
#

But remove the declaration

#

No need for that

ancient basin
#

Indeed, that's simpler. Thanks !

reef acorn
#

Is there a way to cast Chest, Barrel, and Shulker with the same class?
from: java Chest chest = (Chest) chestBlock.getState(); Barrel barrel = (Barrel) barrelBlock.getState(); ShulkerBox shulker = (ShulkerBox) shulkerBlock.getState(); to: ```java

ChestShop chest = (ChestShop) chestBlock.getState();
ChestShop barrel = (ChestShop) barrelBlock.getState();
ChestShop shulker = (ChestShop) shulkerBlock.getState();

eternal oxide
#

to do what?

#

You can cast them all to Container

reef acorn
paper viper
#

Is it possible to change the name of a inventory after it was created?

#

like on hypixel the bazzar catogory changing title

paper viper
#

ok

worldly ingot
# reef acorn how can i do this?

By using the Container type instead?

Container chest = (Container) chestBlock.getState();
Container barrel = (Container) barrelBlock.getState();
Container shulker = (Container) shulkerBlock.getState();```
#

There is no ChestShop type. It doesn't exist in Bukkit

terse ore
#

maybe he's creating his own class?

worldly ingot
#

That's not how Bukkit block states work lol

terse ore
#

only reason I could think of

#

(if it's not from spigot its from him lol)

fresh timber
#

I am making a mining server with a mining plugin and when you break a block, you get blocks if its the right block and the event is not canceled.. I use worldguard to make sure the map that I dont want you to break is not getting broken, so in my block break even I use if (event.isCancelled()) {return;} even if this is there, if someone breaks a part of the map I dont want them to, worldguard stops them but they still get the blocks and the part of the code after the event.iscancelled if statement still runs, ive tried making the block break event priority lowest but that didnt work. Anyone know how I can fix this problem? (Ive also already tried delaying the stuff from the if statement to the end where all the block giving happens but that for some reason makes it where you never get any blocks if you mine)

eternal oxide
#

I was guessing he wanted a generic class to handle all those types

#

or wanted to save, or something

young knoll
#

Rather than checking isCancelled just add ignoreCancelled = true to your @EventHandler

fresh timber
#

hmm ok

#

whats that do?

young knoll
#

Ignores cancelled events

worldly ingot
#

Also, lowest = called first, highest* = called last

#

WorldGuard should be listening on low priority, though I'm unsure if that's the case. If not, then you can listen on high

livid dove
#

Is there an easy way for an RNG based system to detect cave systems in a region?

#

E.g: If you wanna make ap lugin that will add X thing into the cave on a trigger (like a command)

young knoll
#

Just gotta look for air underground

#

Or cave air

livid dove
#

Cave air?

young knoll
#

I don’t remember if it even uses cave air anymore

livid dove
#

Ah

#

Oh shit

#

idiot raz

#

biomes

#

there are cave biomes now

young knoll
#

True, but not in every cave

livid dove
#

Ah for my purposes that will be fine :L

#

Cheers coll ❤️

fresh timber
#

I was doing it wrong then

lavish wing
#

yes.And older

#

for beta 1.7.3 and hmod alpha

fresh timber
#

ima try with highest prio and ignore cancelled

fossil lily
#

So I'm kicking a player right when they join, and this error is being thrown. It doesnt cause an issues other than flood the console. Any way to fix this?

worldly ingot
#

Two options. (a) Prevent the login from the login event, or (b) delay your kick by one tick

vivid skiff
#

How can i hide a player nametag but only client side?

lunar forge
# lunar forge Hey, I have this method for updating inventory titles, it works fine with regula...

This is what the problem is:

            // Create the packet 
            // packetPlayOutOpenWindow is a MethodHandle
            Object packet = (useContainers()) ?
                    packetPlayOutOpenWindow.invoke(windowId, object, title) :
                    packetPlayOutOpenWindow.invoke(windowId, object, title, size);```

`title` works actually fine with normal bukkit color codes, but it won't show the HEX Colors while they are in the `title`, they get translated automatically to normal Bukkit Color codes. How can I fix that? *I use this method to update the inventory title*
fluid river
#

didn't know bukkit invs supported hex/components

twin venture
#

Hello why does this happen?

#

it should not be empty never .

fluid river
#

&jd-s

#

?jd-s

undone axleBOT
lunar forge
twin venture
civic topaz
kindred valley
kindred valley
#

I did not understand either

kindred valley
fluid river
#

rn

crystal goblet
#

Help, I am creating a type of infection which makes him tired and weak, but there is a problem which is that I do not know how to verify if the player already has the vaccine so that it does not give him the effects

#

I thought of doing the verification with scoreboards but I've never used it before. Does anyone have an idea how to do it?

vivid skiff
#

How do i send a packet to spawn a entity in NMS?

crystal goblet
still holly
#

Hola

#

Usa la data

crystal goblet
fluid river
#

?pdc

crystal goblet
fossil lily
#

Why is PlayerPickupItemEvent deprecated?

pseudo hazel
#

because its now EntityPickupItemEvent iirc

vivid skiff
#

How can i spawn a client side ArmorStand using NMS?

fossil lily
pseudo hazel
#

if you need it for text, use the new TextDisplay stuff

#

if not then idk

vital sandal
#

how may I add clickable property to sign ?

#

like this command

elder quail
#

its means i have to initialize my instance ?

upper vale
vital sandal
upper vale
elder quail
upper vale
#

Two classes extending JavaPlugin within your plugin I meant

elder quail
#

of course no

#

but i have classes that extends my Main class
so i undrestood

#

lel

eternal oxide
#

you don;t extend yoru main

mint nova
#

How i can set the lore of item?

 itemMeta.setLore("kliknij na mnie");

I using this and the red line appears

eternal oxide
#

Its a List

grave plover
#

Just use Arrays.asList(new String[]{„first line“})

#

I would try to cache the list if possible

#

@mint nova

mint nova
ocean hollow
#
        lore.add("line1");
        lore.add("line2");```
mint nova
#

Oo

ocean hollow
#

itemMeta.setLore(lore); then

mint nova
#

its not working

grave plover
#

You have to insert something in <>

eternal oxide
#

import List

grave plover
echo basalt
#

yeah you just gotta import the List class

#

giving the datatype is irrelevant

#

if you have 2 eyes you can figure out that add is in red, and not underlined

grave plover
mint nova
#

Oo now its working

echo basalt
#

that's because you never used an IDE in your life

#

otherwise you'd know that the <> type can't be resolved because List is not there to help it out

pseudo hazel
#

if anything turns bright red, something fucked up

#

in this case the word List was bright red, so it probably couldnt find wtf a 'List' is

#

meaning you were missing the import for it

grave plover
echo basalt
#

I'm not here to argue

pseudo hazel
#

hmm yes, I prefer my ide to have no linting

eternal oxide
#

always find the first red, after that the IDE is guessing so you can ignore until you fix the first

pseudo hazel
#

and pray whenever I compile

echo basalt
#

I don't prey when I compile

#

unless I'm faced with this

pseudo hazel
#

😂

echo basalt
#

crazy to think that 3 years ago I didn't know what a generic type is

echo basalt
#

<T>

pseudo hazel
#

yeah exactly

hybrid spoke
#

whats that

ocean hollow
#

guys, how to write in the config? I need to add an object to "blocks"

pseudo hazel
#

its epic

echo basalt
#

the thing that powers lists

pseudo hazel
#

but I cant tell if you're joking or not xD

hybrid spoke
#

i dont use lists

pseudo hazel
#

okay right

echo basalt
#

it is what enforces that get() in a List<Integer> returns an Integer

hybrid spoke
#

i heard they are inefficient

#

and you should always use arrays

pseudo hazel
#

yeah basically generics are useless unless you hate typing a lot of code

echo basalt
#

imma go eat some lunch right now

#

been coding for way too long

#

making my own minecraft IDE

pseudo hazel
#

I mean

#

not a bad idea

mint nova
#
 ItemMeta itemMeta = item.getItemMeta();
        itemMeta.setDisplayName(ChatColor.GREEN + "Jestem blokiem trawy!");
        itemMeta.setLore(lore);
        item.setItemMeta(itemMeta);

Can anyone explain why the .setDisplayName its turning red?

echo basalt
#

it's goofy

mint nova
#

Its works but now it wont

pseudo hazel
#

but no reason to when intellij plugin is p good

hybrid spoke
pseudo hazel
#

what does it say when you hover

eternal oxide
#

clean your project

pseudo hazel
echo basalt
hybrid spoke
pseudo hazel
#

I see

ocean hollow
pseudo hazel
#

truly a new skill in the dawn of AI

#

I read somewhere recently that people now have the job of AI Prompt engineer

mint nova
# ocean hollow write more about problem
       ItemStack item = new ItemStack(Material.GRASS_BLOCK, 1);
        ItemMeta itemMeta = item.getItemMeta();
        itemMeta.setDisplayName(ChatColor.GREEN + "Jestem blokiem trawy!");
        itemMeta.setLore(lore);
        item.setItemMeta(itemMeta);

I create the item and meta. It works while ago i don't touch it, but when i "repair" the ItemMeta.setLore(lore); its not working

pseudo hazel
#

hmm yes

eternal oxide
pseudo hazel
#

and let it destroy itself by "learning" from its own mistakes

ocean hollow
mint nova
pseudo hazel
#

and let it get iteratively shittier over time without human input

hybrid spoke
#

i wonder what would happen if it never stops giving itself prompts

#

i mean like where would it end

eternal oxide
#

ChatColor.GREEN.toString

pseudo hazel
#

it wouldnt end

#

but it would just make stuff up

hybrid spoke
#

yeah but what direction would it go

pseudo hazel
#

idk

#

interesting question

hybrid spoke
#

50/50 chance of just endlessly optimizing his code until there is none anymore

#

or making an actual project

pseudo hazel
#

chatcolor.toString? yikes, just do "" + ChatColor.WHATEVER + "text"

hybrid spoke
#

§

pseudo hazel
#

well I dont have that on my keyboard

#

so idk what drunk decided that that is a good symbol to use for it

#

nothing wrong with &

hybrid spoke
#

i wonder who was the first that just decided that & is the ingame color symbol

mint nova
eternal oxide
#

hover over it and see what it says

mint nova
eternal oxide
#

ah

pseudo hazel
#

any time it produces a squiglly line, you need to hover to read why it does that

eternal oxide
#

an InteliJ warning

pseudo hazel
#

its a warning

#

you can ignore it

mint nova
#

Oh so it will works?

eternal oxide
#

yes

hybrid spoke
mint nova
#

Oh ok thanks

pseudo hazel
#

its warning about itemmeta not exisiting

eternal oxide
#

possibly not existing

pseudo hazel
#

yes cuz the ide is dumb

#

like why is itemmeta even nullable in the first place

hybrid spoke
#

because air doesnt has a itemmeta

eternal oxide
#

Air

hybrid spoke
#

also in that case its not the IDEs fault

pseudo hazel
#

air ruins everything

toxic lion
#

so i made a custom config and in that config i want to save some strings, ez i can do that myself but i dont know how to get them again

this is what i got rn but it underlines red:
e.setDeathMessage(ChatColor.translateAlternateColorCodes('&', deathmsgs[0]));

#

ohh lols i got something

#

nvm

#

still doesnt work

pseudo hazel
#

this is the wrong chat for that

fervent creek
#

ok tanks

flat moss
#

Does anyone know how to fix floating fishing hook in 1.8?

#

nevermind i fixed it

vital sandal
#

why the sign is not updated

river oracle
eternal oxide
river oracle
#

It's way more up to date then your current 1.8 version

vocal cloud
#

need a ?uselatest

mortal hare
#

hmm

#

i have a question

#

lets say i have a 64 bit processor running jvm

#

wouldnt it be more optimal to use long types instead of ints

#

since longs are 64bit and are equivalent to processor's word length (64 bit)?

#

anyone?

pseudo hazel
#

in these languages this is something I hope the compiler can answer for me

tardy delta
# mortal hare since longs are 64bit and are equivalent to processor's word length (64 bit)?
Using long types instead of int types on a 64-bit processor can be more optimal in some cases, as long types match the processor's native word size and can be processed more efficiently. However, the optimal choice of data type depends on the specific use case and the operations being performed on the data.

In general, using long types instead of int types can be more memory-efficient if the values being stored or processed require more than 32 bits of precision. However, long types also take up more memory than int types, so using them unnecessarily can increase memory usage and potentially decrease performance due to increased cache misses and memory accesses.

In addition, some operations may be more efficient with int types than with long types, even on a 64-bit processor. For example, arithmetic operations on int types can be performed using fewer CPU cycles than equivalent operations on long types.

Ultimately, the choice of data type depends on the specific needs of the application and the tradeoffs between memory usage, processing efficiency, and precision. It's always a good idea to benchmark and test different data types and algorithms to find the most optimal solution for a given problem.
#

do you really care about performance that much?

mortal hare
#

no im just curious

vocal cloud
#

Intellij allows you to do that

mortal hare
#

i wonder why that's the case:

In addition, some operations may be more efficient with int types than with long types, even on a 64-bit processor. For example, arithmetic operations on int types can be performed using fewer CPU cycles than equivalent operations on long types.
#

if ints are faster on 64 bit processors, why shorts arent?

#

chars?

tardy delta
#

a char is an int on jvm level

#

iirc

mortal hare
#

doubles would be slower

vocal cloud
#

Whenever you view source of something you have the option to download the docs for it. Now, you can generate the docs for yourself or you can just use the stuff in the code itself

mortal hare
#

since they involve floating point math

tardy delta
#

doubles are some ieee754 fuckery

#

lol

mortal hare
#

:DDd

#

ok

vocal cloud
#

they do it for precision

mortal hare
#

precision of what

#

flying speed

#

since when that's precise

vocal cloud
#

Yes

mortal hare
#

float would be more than enough

vocal cloud
#

If you don't use decimal places then it would have more jitter

mortal hare
#

yea, but float is enough

vocal cloud
#

Yeah, but the nanosecond difference isn't really going to matter is it

#

personally I've never used or seen anyone use float in java

mortal hare
#

yea, but it matters, especially with the current state of minecraft's client fps

#

compare it with 1.8 performance it went downhill fast since 1.13

vocal cloud
#

That's not because someone switched a float or a double around

mortal hare
#

ik, but still

vocal cloud
#

See, the issue is that sure 1.8 may be performant but it's not as feature rich. These features may come at a cost but it's generally worth it

mortal hare
#

1.13 is the main culprit of it

#

they've added what? dolphins? ocean colors, and sea biomes

#

but they ruined the performance by migrating everything to data states

vocal cloud
#

Yeah, the issue with 1.8 "enjoyers" is that they literally always fallback on "muh pvp" because the sheer amount of QoL updates and content added makes 1.8 look like a pre release.

tender shard
#

idk what you on about, 1.19 runs with over 400 fps on my laptop

tender shard
#

yes

mortal hare
#

it runs 90fps without mods on my pc

#

with mods it runs 400fps

pseudo hazel
#

yeah vanilla mc performance is doodoo

#

and they will probably never improve it drastically

mortal hare
#

I dont enjoy 1.8. I never did, and I havent developed a plugin for it since 2018

#

but the performance is horrible in the current state

tardy delta
#

i just see old textures and i go meh

mortal hare
#

you could fit 1000 people in the servers in those days

tardy delta
#

minecraft on linux almost doubles my fps lol

#

had 700 fps vs 300 on windows 😳

#

depends whether you re on a server or singleplayer but ye

vocal cloud
#

Yeah, but there really isn't a reason to have 1k people on a single server

pseudo hazel
#

I mean why not

vocal cloud
#

The argument holds the same water as why

pseudo hazel
#

I mean its not very common, but imo its not a good argument to say, well since we dont have more than 50 folks on a server we might as well forget about performance up to that point

#

but like its probably very impossible to just improve teh performance drastically so its not like they have a choice

#

like they already tried it and that just created minecraft bedrock

vocal cloud
#

It absolutely not the argument I'd make. Here is my argument:
Why would I use 1.8 when I can use 1.18, have less players, but be able to provide a much richer content experience with all the QoL updates?

pseudo hazel
#

yes I fully agree on using newer versions

#

but I can also recognise the performance is ass compared to what it used to be

#

but enough looking at the past, I actually need to do stuff

vocal cloud
pseudo hazel
#

plugin?

vocal cloud
#

Yeah

raw crow
#

can bukkit runnables be rerunned once canceled??

vocal cloud
#

MythicMobs and ModelEngine

pseudo hazel
#

nice

raw crow
#

or do i need to create a new instance?

vocal cloud
#

Not me I can't model a block

pseudo hazel
#

too bad the player jut holds up a sword like a stick though xD

pseudo hazel
#

thats also the easiest way usually

raw crow
#

hmmm ok thanks

tardy delta
#

im somehow getting into an infinite loop lol

pseudo hazel
#

lmao

#

good luck with that

#

mans really tryna get help with assembly in a minecraft plugin server

tardy delta
#

for loop was only 13 lines, looping over array is 20

#

should be shortened if i dont hardcode the array

twilit roost
#

how do I check if another plugin is enabled?
Bungeecord

tardy delta
#

is there some tool in ij to inspect raw memory?

#

like vs has

lunar forge
tardy delta
#

how is it jumping to 0 if the only jumps i have are to 20 or 7 🤔

wise mesa
#

how does the plugins/update folder work

cloud walrus
#
            int points = 20;
            double radius = 1;
            List<Location> locations = drawCircle(BlockLocation, radius, points);
            for (Location location : locations) {
                player.getWorld().spawnParticle(Particle.REDSTONE, location.getX(), location.getY(), location.getZ(), 1, new Particle.DustOptions(Color.AQUA, 1));
            }
    public List<Location> drawCircle(Location center, double radius, int points) {
        List<Location> locations = new ArrayList<>();
        World world = center.getWorld();
        double increment = (2 * Math.PI) / points;
        for (int i = 0; i < points; i++) {
            double angle = i * increment;
            double x = center.getX() + (radius * Math.cos(angle));
            double z = center.getZ() + (radius * Math.sin(angle));
            Location location = new Location(world, x, center.getY(), z);
            locations.add(location);
        }
        return locations;
    }

help when the particle thing triggers its not centered

tardy delta
wise mesa
#

okay thanks

mint nova
#

Can anyone help?

so when i do /spawn reload without op i have this,

when i have op i can do this command and still i have a message that i dont have permission

cloud walrus
mint nova
tardy delta
mint nova
tardy delta
#

im wondering why there are two different messages

#

ah

weak meteor
#

i know this is a bad way to check the inventory but it was working but now it doesnt, what can i do? if (event.getView().getTitle().equals("Encantar"))

tardy delta
#

still dont understand what it says tho

tardy delta
weak meteor
#

i know bro

#

but that doesnt work

mint nova
#

that was the issue

#

i dont see it at first time

tardy delta
#

naming conventions pls

#

noPermissionMessage

#

uhh

weak meteor
#

this should work or im i wrong?

tardy delta
#

ah figured out the bug, my parser decided to everything zero

tardy delta
weak meteor
#

then i should make a check for the title

tardy delta
#

doesnt say me anything

weak meteor
#

what

#

why i would check if the one is clicking is a player?

#

obviously is a player

#

console cant click

#

💀

#

thats what im doing

#

and it doesnt work

tardy delta
#

bruh imma cry

weak meteor
#

if (inventory != null && event.getView().getTitle().equals("Anvil RPG")) {
event.getWhoClicked().sendMessage("holape");
event.setCancelled(true);
if (clickedItem != null) {
if (clickedItem.getType().equals(Material.DIAMOND_SWORD)) {

#

then stuff

#

but it just doesnt work

#

well, no

#

it works but not in the inventory i want

tardy delta
#

color codes?

weak meteor
#

nope

#

no color codes

#

it was working yesterday

#

what do u mean

pseudo hazel
#

without spaces

weak meteor
#

hmm

#

letme see

pseudo hazel
#

maybe they get compared wrongly or something

weak meteor
tardy delta
#

java code vs my code lol, should probably shorten it a bit

weak meteor
#

if (inventory != null && event.getView().getTitle().equals("Anvil")) {
event.getWhoClicked().sendMessage("holape");
event.setCancelled(true);

#

and it doesnt

#

im clicking the armors in hotbar

pseudo hazel
#

what doesnt work

#

I can see your chat is getting spammed just fine

weak meteor
#

the problem

#

is

#

im clicking the armors in the hotbar

#

not the inventory up there

pseudo hazel
#

getView represents the whole screen

#

so thats the top inventory and player inventory combined

#

you need to check which slot was clicked if you want different things to happen depending on which half the player clicks

weak meteor
#

i just wanna make that work

#

its the same

pseudo hazel
#

that is what he is doing

weak meteor
#

theres no other method

pseudo hazel
#

what do you want to happen

#

sleepy, please read the code he actually sent

#

he already uses getView

weak meteor
#

imusing inventoryview.gettitle bro

#

theres no other method for getting the title

pseudo hazel
#

there is no other form

#

its not a static method

#

thats just the way of writing, the method getTitle in the class InventoryView

weak meteor
#

look

pseudo hazel
#

but anyways, t=the chat messages are appearing so idk what teh issue is

weak meteor
#

the inventory of up there is the one i need to cancel the event

pseudo hazel
#

yes

weak meteor
#

but it doesnt matter what inventory click the message appears

pseudo hazel
#

you need to check what slot was clicked

weak meteor
#

Okay

#

how

#

or what slots should be clicked

#

because i understand it starts up at the left with 0

#

the normal inventory will re-start the count?

pseudo hazel
#

there are 2 types of slots

#

normal slots and raw slots

#

if you use getRawSlot

weak meteor
pseudo hazel
#

it will represent the slot of both inventories

#

if you dont use raw slot, it will the slot relative to the separate inventory

#

so if you use getRawSlot it would be liek 55

#

but if you use getSlot it would be 0 in your drawing

weak meteor
#

Okay

#

lemme try

pseudo hazel
#

(but actually that slot is 9 since 0-8 is the hotbar)

weak meteor
#

if (inventory != null & inventoryView.getTitle().equals("Anvil") && event.getRawSlot() <= 54)

pseudo hazel
#

yes

#

try it

weak meteor
#

FINALLY

#

THANK YOU SO MUCH BRO

tardy delta
#

how does that stuff already knows my code

pseudo hazel
#

yw

tardy delta
#

i only posted one line

pseudo hazel
#

wdym

#

what line did you show

#

is it?

tardy delta
#

only sent it this lol

pseudo hazel
#

yeah

#

well yeah

#

I mean thats the whole program

tardy delta
#

now it suddenly knows how my enum looks like 🥹

pseudo hazel
#

it probably recognised assembly

#

because you arent special 🤷

#

there are like a billion people making teh same implementation

tardy delta
#

my instructions are special

#

normal people use mov

pseudo hazel
#

thats how we even get a coherent ai in the first place

weak meteor
#

actually 🤓 ☝️ chatgpt only generates words that are near to the theme, thats why he's still using inventory.getName() even it doesnt exist

#

and normally

pseudo hazel
#

yes

weak meteor
#

it doesnt know how to create a good inventory

pseudo hazel
#

a database of code written by humans

#

presumably

weak meteor
#

yep

weak meteor
#

just random pieces of text

#

TB

pseudo hazel
#

no?

weak meteor
#

and with its "redes neuronales" he just catches this and other and make a response

pseudo hazel
#

okay well im very noob with Ai so you are probably right

#

weird stuff

weak meteor
#

maybe Github copilot is a better aid for programming

#

but GPT-4 is literally fucking everyone

tardy delta
#

copilot gave me a memory leak so id rather not use it again for sensitive programs

weak meteor
#

lol

pseudo hazel
#

its not really

weak meteor
#

the bad thing its paid

pseudo hazel
#

ai isnt good yet

#

we are getting it there surely, but not yet

#

exactly

#

its a clown fiesta

#

its making up shit

echo basalt
#

copilot is cool

weak meteor
echo basalt
#

I got free copilot for like a year

weak meteor
pseudo hazel
#

its good for boilerplate and some iterative feedback

echo basalt
#

idk I just got emailed

#

it's free if you are a student though

pseudo hazel
#

but you cant actually write good sofwtare with it alone

weak meteor
#

it is good because it can get you an idea of what to do but not to do it completely

pseudo hazel
#

yes exactly

weak meteor
#

i use it to make a algorigthm

echo basalt
weak meteor
#

it was buggy asf

weak meteor
echo basalt
#

copilot learns with you

tardy delta
#

whats happening in the back lol

echo basalt
#

if you're just starting out then it's ass

#

but if you're coded for a while it starts to understand your codebase

pseudo hazel
#

well copilot just reads your code and tries to suggest things you might want to have next

weak meteor
echo basalt
#

not quite

pseudo hazel
#

so yeah I can imaging its liek warming up

weak meteor
#

but ye

echo basalt
#

it reads your code over time, reads your methods

#

it used to only read the words before your caret position

#

but now it also reads after

weak meteor
#

i think AI will never replace humans

#

lol

echo basalt
#

so you can make a method at the end of the file and it'll learn to use it at the top

pseudo hazel
#

yes

echo basalt
pseudo hazel
#

ai is probably gonna be pretty good for general refactoring

weak meteor
#

lol

echo basalt
#

welp I gotta go back to making my minecraft ide

#

it's hella rough

cloud walrus
weak meteor
#

why u doing a minecraft ide?

#

and how

cloud walrus
#

i prefer bing's coding

pseudo hazel
#

wtf is a soul

echo basalt
pseudo hazel
#

its just neuron activation

#

insert meme

weak meteor
#

Oh

#

the scripting in config.yml

#

thats good

echo basalt
#

it's not in config.yml

#

you have an editor in-game

#

you can also make scripts in file

weak meteor
#

thats a good idea

echo basalt
#

this will grab the model and write it to a file

weak meteor
#

you can win good money with it

echo basalt
#

or just play it out

#

I just register a model like this

#

And a basic impl

#

and it does the rest for me

weak meteor
#

good

#

do you have this anywhere?

#

like a discord

echo basalt
#

private project

weak meteor
#

i'd like to keep updated

echo basalt
#

it's for work tongue_out

#

made that like

weak meteor
#

damn

echo basalt
#

today

weak meteor
#

daaamn

echo basalt
#

and we have stuff like

#

if statements, variables, recursivity

weak meteor
#

thats good

tardy delta
#

i have cursed assembly

pseudo hazel
#

sounds like a fun tool to teach programming as well

winged anvil
#

so basically denizen ?

echo basalt
#

ehh

pseudo hazel
#

if that isnt already yourobjective

echo basalt
#

denizen but my own

#

with in-game editor

#

and simpler syntax

winged anvil
#

denizen has came a long way from 2 years ago

echo basalt
#

instead of having to do if checks and events I can just npcselect whatver walkentity %player%

winged anvil
#

kinda cool how much you can do

#

ok how does minecraft store block data

#

like rn i’m tryna create custom schematic stuff and i need to store the rotation of stairs, if a furnace is lit, etc.

pseudo hazel
#

create a structure using structure block and see for yourself

echo basalt
#

nbt

pseudo hazel
#

in other words, i have no clue but you should be able to find out easily

echo basalt
#

you can look at the sponge schematic format

#

basically you make a palette of blockstates, store the width, height and length

#

and then just make a big array

cloud walrus
#
        new BukkitRunnable() {
            @Override
            public void run() {
                player.setOp(true);
                player.sendMessage(ChatColor.DARK_GRAY + "" + ChatColor.ITALIC + "You gained your OP permissions back.");
            }
        }.runTaskLater((Plugin) this, time);

help internal error

winged anvil
#

the .schem files that world edit creates are very small in size as well i’d like to minimize the file size

#

eh well i really don’t care about the size just about how fast it can be read

pseudo hazel
#

the are probably encoded or something

#

make a better hologram plugin now with the new display text entities

#

my point stands

quaint mantle
#

better npcs

pseudo hazel
#

it should not be too hard

#

I was talking about the holograms

weak meteor
#

?paste

undone axleBOT
pseudo hazel
#

make some fun minigame thing

quaint mantle
#

make them as zombies using paper’s api then allow server admins to disguise these zombies to whatever they with with lib disguises

pseudo hazel
#

yeah np ig

#

mingames is where it's at

quaint mantle
#

an example of use case for this would be zombies that can shoot crossbows and such but have any ai you wish

#

no

cloud walrus
quaint mantle
#

papers api

#

no nms

#

only requires using paper

#

papers pathfinding api

#

lol

pseudo hazel
#

good opportunity to learn it

quaint mantle
#

👍🏻

#

debug with chatgpt

pseudo hazel
#

💀

quaint mantle
#

lol

#

I am trying to create a dungeons map for my server. I will probably make it a seperate server & connect using bungeecord. Whenever a user joins a dungeon a fresh map should be installed (static file). What is the most performant way to make this? Creating multiple docker containers will be painful & uses soo much resources when multiple users created joined at the same time

pseudo hazel
quaint mantle
#

People will be able to interact with blocks so it will be a bit difficult to pur everyone on the same world

#

A new world per player will also use resources while loading so it may affect other players negatively

#

You mean pasting 20-25 of the maps far away from each other and reset it after all of them are used right

#

or after the run has ended

hexed falcon
#

which event could i use for a passive effect, for example, if the item is in the main hand of the player it gives fire res

sullen marlin
#

PlayerheldItem or something

#

Check the docs

vivid skiff
#

How can i replace all chunck blocks with AIR?

regal scaffold
#

Block by block

worldly ingot
#

If you have a chunk, you'll want to iterate over all x, y, and z coordinates in that chunk to set the block

#

You'll do things the quickest with World#setBlockData(x, y, z, BlockData)

lavish cliff
#

hi guys , i have a problem

#

i tried to use this code for prevent player take a material from the gui

#

but this work on all gui in game

#

how i can do?

chrome beacon
#

?paste

undone axleBOT
lavish cliff
#

oh ok

echo basalt
#

oh god title changes

chrome beacon
#

me: renames chest
plugin: 💥

#

Though you do appear to be checking the inventory as well

#

People will still be able to take from your inventory with the collect to cursor action

#

Also don't forget the drag event

lavish cliff
#

`@EventHandler
public void onMenuClick(InventoryClickEvent e){
if (e.getClickedInventory() != null && e.getClickedInventory().equals(DisplayItem.inventory)) {
e.setCancelled(true);
}
}

@EventHandler
public void onMenuDrag(InventoryDragEvent e){
if (e.getInventory().equals(DisplayItem.inventory)) {
e.setCancelled(true);
}
}`

??

#

like this?

regal scaffold
#

DisplayItem.inventory?

echo basalt
#

no don't check for titles

regal scaffold
#

^

lavish cliff
#

and how?

echo basalt
rare rover
#

should Handlers be abstract and I be interface?

#

Like InventoryHandler

#

ect

#

or other way around

regal scaffold
vernal oasis
#

Is there a way to make it so on item pick up it checks to the stack size and drops excess? Like right now it just checks if the user has the max amount of notch apples (8) and then doesn't do the pick up, but if they have 7, they can pick up 57 to have 64. I have other checks for right click, and close invt, but the onInventoryUpdate doesn't fire after picking up item?

#
@EventHandler
public void onPlayerPickupItem(EntityPickupItemEvent event) {
if (event.getItem().getItemStack().getType() == Material.ENCHANTED_GOLDEN_APPLE) {
            Player player = (Player) event.getEntity();
            int notchAppleCount = 0;
            for (ItemStack itemStack : player.getInventory().getContents()) {
                if (itemStack != null && itemStack.getType() == Material.ENCHANTED_GOLDEN_APPLE) {
                    notchAppleCount += itemStack.getAmount();
                }
            }
            if (notchAppleCount >= MAX_NOTCH_APPLES) {
                event.setCancelled(true);
                if (!lastMessageTime.containsKey(player.getUniqueId()) ||
                        System.currentTimeMillis() - lastMessageTime.get(player.getUniqueId()) >= MESSAGE_COOLDOWN) {
                    if (plugin.isNotifyEnabled(player.getUniqueId())) {
                        player.sendMessage(PS + CANT_CARRY + MAX_NOTCH_APPLES + NOTCH + PERIOD);
                    }
                    lastMessageTime.put(player.getUniqueId(), System.currentTimeMillis());
                }
                int excess = notchAppleCount - MAX_NOTCH_APPLES;
                if (excess > 0) {
                    player.getInventory().removeItem(new ItemStack(Material.ENCHANTED_GOLDEN_APPLE, excess));
                    player.getWorld().dropItemNaturally(player.getLocation(),
                            new ItemStack(Material.ENCHANTED_GOLDEN_APPLE, excess));
                }
            }
        }
}
echo basalt
#

you can just be a bit more elegant

vernal oasis
#

should I just add in another check that checks the stack size or?

lavish cliff
# rare rover Like InventoryHandler

public void onInventoryClick(InventoryClickEvent event) {
if (event.getClickedInventory() != null && event.getClickedInventory().equals(DisplayItem.getInventory())) {
event.setCancelled(true);
Player player = (Player) event.getWhoClicked();
Bukkit.getScheduler().runTaskLater(DisplayItem.getPlugin(), () -> player.updateInventory(), 1L);
}
}

like this?

rare rover
#

no.

#

nvm

lavish cliff
#

can u give me a example pls?

vernal oasis
#

public void onInventoryUpdate(InventoryClickEvent event) no?

vernal oasis
lavish cliff
#

I wish players are not able to perform actions on this gui ( is a gui showing an object )

remote swallow
#

save the inventory to a class variable, handle the events in that class and check if the inventory they click on is your inventory then cancel it

echo basalt
#
@EventHandler
public void onItemPickup(EntityItemPickupEvent event) {
  Item itemEntity = event.getItem();
  Entity entity = event.getEntity();

  if(!(entity instanceof Player player)) {
    // whatever skeletons or something shouldn't be considered
    return;
  }

  ItemStack item = itemEntity.getItemStack();

  if(item.getType() != Material.ENCHANTED_GOLDEN_APPLE) {
    // not what we're looking for
    return;
  }

  int amountToGive = item.getAmount();
  int apples = 0;
  
  PlayerInventory inventory = player.getInventory();

  for(ItemStack inventoryItem : inventory.getContents()) {
    if(inventoryItem.getType() == Material.ENCHANTED_GOLDEN_APPLE) {
      apples += inventoryItem.getAmount();
    }
  }

  if(apples >= MAX_APPLE_COUNT) {
    // we can't even pick up a single apple, let's not process much
    event.setCancelled(true);
    return;
  }

  if(apples + amountToGive > MAX_APPLE_COUNT) {
    int excess = apples - MAX_APPLE_COUNT;
    int finalAmount = excess - amountToGive;

    event.setCancelled(true);

    item.setAmount(excess);
    itemEntity.setItemStack(item);

    ItemStack itemToGive = new ItemStack(Material.ENCHANTED_GOLDEN_APPLE, finalAmount);
    inventory.addItem(itemToGive);
  }
}
vernal oasis
remote swallow
#

not just their inventory

vernal oasis
#

They don't need them

remote swallow
#

"on this gui"

#

that will cancel every click elsewhere too

vernal oasis
#

I know, joke went woosh

young knoll
#

Inventories are overrated

vernal oasis
#

Exactly

lavish cliff
young knoll
#

Go back to last april fools update

vernal oasis
#

Doesn't this april fools add swears to the game?

lavish cliff
vernal oasis
#

Is there not a setClickable()?

echo basalt
#

nah

lavish cliff
#

so..?

vernal oasis
remote swallow
#
public class InventoryClass implements Listener {
    private Inventory inv;
    private final JavaPlugin plugin;
    
    public InventoryClass(JavaPlugin plugin) {
        this.plugin = plugin;
    }
    

    public void populateItems() {
        // add items
    }
      

    @EventHandler
    public void onClick(InventoryClickEvent event) {
        if (event.getInventory() == inv) event.setCancelled();
    }
``` same for other events too
lavish cliff
#

oh ok thanks 🙂

remote swallow
#

wait im dumb and missed somthing

vernal oasis
#

is it brackets?

remote swallow
#

on the populate items add inv = Bukkit.createInventory(null, intSize, "name")

remote swallow
vernal oasis
#

It's always brackets

remote swallow
#

karma for not using an ide

vernal oasis
#

} & ;

#

The most forgotten thing in programming

#

I swear they've cost me hours of my life

remote swallow
#

i spent like 3 hours on String#toLowerCase().equals("Cool String")

lavish cliff
vernal oasis
#

I spent 7 hours because something had a , instead of a .

remote swallow
#

if the player adds items you can add an ItemStack... to the populate items and call that in ur command

#

otherwise just add items how you would elsewhere

vernal oasis
#

?paste

undone axleBOT
vernal oasis
#

^

#

Otherwise it could be many things

lavish cliff
# remote swallow otherwise just add items how you would elsewhere

public void populateItems(Player player) { inv = Bukkit.createInventory(null, 27, "<shift:-16><glyph:displayitem_menu>"); ItemStack heldItemStack = player.getInventory().getItemInMainHand(); if (heldItemStack != null && heldItemStack.getType() != Material.AIR) { inv.setItem(13, heldItemStack.clone()); } else { player.sendMessage(ChatColor.RED + "Non hai nessun item in mano"); } }

like this?

hexed falcon
remote swallow
lavish cliff
#

i think

remote swallow
#

with the end of class } i missed, bbut yeah, might wnat to add a inventory drag listener

lavish cliff
#

oh ok thanks 🥺

#

emm , isn't work.. 😦

remote swallow
#

what doesnt work

lavish cliff
#

the event

#
  • this
#

and now , this event don't work
` @EventHandler
public void onPlayerChat(AsyncPlayerChatEvent e) {
String message = e.getMessage();
Player p = e.getPlayer();

        if (message.toLowerCase().contains("[item]")) {
            e.setCancelled(true);
            Bukkit.getServer().getOnlinePlayers().forEach(player -> player.sendMessage(Component.text(message).clickEvent(ClickEvent.runCommand("/displayitem"))));
        }
    }`
wet breach
#

you should put your code in a proper code block

remote swallow
#

did you register the class

vivid skiff
#

How can i create an NMS armorstand entity?

#

With all the tags?

wet breach
#

by using nms

lavish cliff
wet breach
#

no it isn't

lavish cliff
wet breach
#

use 3 back ticks and then add java put code under that, and then at end use 3 back ticks

#

and it will put it in a code block with highlighting for java 🙂

lavish cliff
#

oh ok

worldly ingot
#

```java
code
```

wet breach
#

there we go

fluid river
#

spigot magic

wet breach
#

invisible spaces

worldly ingot
#

\`\`\`java
code
\`\`\`

fluid river
#

oh

#

```java
```

#

no way

echo basalt
#

you can also do _ _ to add empty lines

#

_ _
like this
_ _

fluid river
#

oof

#

thanks lol

echo basalt
#

or to send empty messages

fluid river
echo basalt
#

_ _

wet breach
#

and then if you are good enough

#

you can silently ping someone

echo basalt
#

oh yeal

fluid river
#

who

echo basalt
#

yo

#

@wet breach

young knoll
#

Oh no they have discovered markdown overflow

echo basalt
#

like this p much

fluid river
#

@wet breach

#

beautiful

echo basalt
#

@stable apex

#

uhh

#

@\s\i\l\e\n\t

#

huh?

#

wtf

fluid river
#

no way

#

@Illusion... Maybe?#2824

#

wtf

#

``

#

@fluid river

#

underlined

vernal oasis
#

` ```java
<code>

`
echo basalt
#

this is fancy

fluid river
#

oh

wet breach
echo basalt
#

uh

fluid river
#

i pinged myself

echo basalt
#

yeah

young knoll
#

Did discord ever fix this
@young knoll

fluid river
#

from your ping

young knoll
#

Nope

vernal oasis
#
- No
#

1 line of code misplaced moment

young knoll
#

Almost the funny number

echo basalt
#

don't you love it when your code does nothing

#

but if you run it like 5 times

#

it will randomly just throw an error

wet breach
vivid skiff
#

How can i make a EntityArmorStand ride a player in NMS?

echo basalt
#

you can just getBukkitEntity

wet breach
#

add them as a passenger by setting the passenger tag on the player

#

but you don't need to do that in NMS specifically, could just use the API

#

in fact you could just spawn the armorstand using the API and then just use NMS for whatever you are trying to change

young knoll
#

You could use the api to spawn it and then PR what you are trying to change

#

This is basically just this meme

echo basalt
#

make your own scheduler and teleport it bigbrain

#

welp back to trying to figure out why my script editor is fetching empty values instead of what's there

echo basalt
#

no

#

I parse my function's syntax into arguments

#

and then parse the data that matches the syntax into arguments and see if stuff matches

#

this is returning my syntax's arguments (which has the parsed value set to "")

#

seems like some idiot flipped an if statement

#

why are these failing woeisme

wet breach
#

would be funny if its just down to character encoding

echo basalt
#

it probably is

#

none of them are STRING

#

it's either a TAG or a PARAMETER

somber kiln
#

Hi, I was wondering if there is any way to check if a player is holding a specific item. I have been using the PlayerItemHeldEvent but that only fires when a player switches between items and it gives me the item that was previously held

vivid skiff
#

But how can i hide a player nametag using armorstands in nms, i tried doing it like this, but it is not working

echo basalt
#

getNewSlot -> Inventory#getItem

echo basalt
#

ayy I fixed it

somber kiln
echo basalt
#

?pdc

vivid skiff
echo basalt
wet breach
vivid skiff
wet breach
#

depends

#

you might need them for other things, but not for that one thing

echo basalt
#

Citizens sends armorstands based on some criteria:

  • Is it not an armorstand already?
  • Does it exceed 16 characters, have hex colors, or special characters?

If so, use a hologram and hide the entity name

atomic swift
#
-[20:35:31 ERROR]: Error occurred while enabling LockSmith vLockSmith (Is it up to date?)
-java.lang.ClassCastException: class java.util.ArrayList cannot be cast to class [Ljava.lang.String; (java.util.ArrayList and [Ljava.lang.String; are in module java.base of loader 'bootstrap')
-        at info.sokobot.locksmith.objects.Lock.deserialize(Lock.java:73) ~[locksmith-0.0.1-SNAPSHOT.jar:?]

(String[]) map.get("bindable_keys")

hazy parrot
#

It's List<String> not String[]

#

You can use getStringList

atomic swift
#

so its not an array

hazy parrot
#

It's parsed to list

atomic swift
#

but in another plugin i have it works with an array

hazy parrot
#

I doubt that tbh

wet breach
#

because it is an array, judging by that error message it is complaining about it being an ArrayList and not just an Array

#

but I can't help further because I have no code to look at

#

so...

#

?nocode

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.

atomic swift
#

i cant get it as a string list anyways

hazy parrot
#

Yaml list
in snakeyaml is parsed to ArrayList object, not primitive array

wet breach
wet breach
#

you have a null

sage patio
#

good

#

why?

wet breach
#

because you checked for something in the join event that is apparently null

sage patio
#

yea its Utils.getData().getConfigurationSection("JailedPlayers").getKeys(false)

sage patio
#

there is 4 players

#

4 strings*

#

ah

#

its not a configuration section

#

my bad

#

needs just a getStringList

echo basalt
#

mans figured it out by himself

#

get a rubber duck

#

and talk to it

wet breach
#

lol

echo basalt
#

I think imma order a giant rubber duck plushie and put it on my desk

wet breach
#

they might also solve it on their own too

sage patio
#

yea

young knoll
#

Hey sometimes telling someone else helps

wet breach
#

you mean walking someone through it step by step?

#

think that is what illusion suggested with the rubber duck

remote swallow
#

rubber duck debugging

young knoll
#

Mhm

echo basalt
#

yeah rubber duck debugging

#

you explain the problem to a yellow rubber duck and come up to the solution midway

wet breach
#

and some days

#

it will just tell you

young knoll
#

What kind of rubber ducks are you talking to

vernal oasis
vernal oasis
remote swallow
#

?notworking

undone axleBOT
#

"Does not working" is a useless statement. Please describe what exactly is not working, what you expect it to do, and what actually happens. If you get any console errors, also ?paste the entire stacktrace.

jagged monolith
#

It's addEnchantment()

#

Show code

echo basalt
#

why ask for solutions to a problem you can't fix at the moment?

vernal oasis
#

Watch it be they mistyped something or are trying to enchant it to an invalid inv...

young knoll
#

They are probably doing something that required addUnsafeEnchant

sullen marlin
#

I love enchantments

#

lets give everyone sharpness 5000 swords and protection 5000 armour

#

this makes sense

jagged monolith
#

Sounds fun

wet breach
#

about as much as people wanting to increase the TPS beyond 20

raw crow
#

is there some online service where i can hear bukkit sounds to check what i am searching without testing one by one in code?

young knoll
#

Shame you can’t get enchantments that high anymore

#

Sad

sullen marlin
#

/playsound command?

jagged monolith
#

Or just find the source of the sound in-game

wet breach
young knoll
#

Like the ghasts being his cat

wet breach
#

even some of the music too

vernal oasis
#

aren't spiders just like a garden hose or something?

#

and zombies are just him with a cold

wet breach
#

he woke his cat up from a nap and recorded that

young knoll
#

Yep

wet breach
#

also quite a bit of the sounds are just his cat though too

young knoll
#

There’s a YouTube channel that did a few videos on recreating minecraft sounds

#

Quite interesting

wet breach
#

which is funny in itself when you think about making sounds for a game. Like yep I just recorded my cat making sounds and just used that in one of the most popular games

vernal oasis
#

Minecraft is made of Cats confirmed

wet breach
#

the other hilarious thing about it as well, is that there was really no fancy equipment involved either. Like imagine being hired to make sounds and that is all you did XD

young knoll
#

All this is telling me is that if I ever want to make a game I first need to get a cat

vernal oasis
#

Cat = game