#help-development

1 messages · Page 517 of 1

eternal oxide
#

Then again I come from times it took hours to compile code.

tender shard
#

anyway, only reason why I try out gradle is just to learn how it works

eternal oxide
#

I'd like to know how it feels to take heroin. Never going to do it though 😉

tender shard
#

have you not watched trainspotting lol

#

my ex bf was heroin addicted

eternal oxide
#

I've known a few.

tender shard
#

a few what lol

eternal oxide
#

addicts

tender shard
#

oh yeah me too

#

I am only addicted to alcohol and tobacco

#

that's bad enough already haha

#

better don't let me try heroin

eternal oxide
#

yeah wife ended up in a real bad way from booze. Leached all teh calcium from her bones.

tender shard
#

damn yeah alcohol is nasty, and especially dangerous cause you can buy it like everywhere

#

I got my next appointment for detox on may 30th, after that I'll do long term therapy and hopefully, never drink again then lol

eternal oxide
#

I stopped drinking when I started driving, so 40 (ish) years ago

tender shard
#

damn how old are you

#

I thought you were like my age or sth

eternal oxide
#

I was born in the 60's 🙂

tender shard
#

damn, didnt know

eternal oxide
#

a proper Granddad.

tender shard
#

I know a woman who became a grandma at age 36

opal juniper
#

that takes some dedication

eternal oxide
#

I was a dad at 22

tender shard
tender shard
remote swallow
#

at a push you can have 5 generations living at one

#

once

opal juniper
#

alex, i couldn't imagine you being a parent

tender shard
#

me neither

remote swallow
#

icl but same

tender shard
#

I can hardly handle my own life

#

at least I am not broke haha

#

that's the only thing I managed

eternal oxide
tender shard
opal juniper
#

sounds like it comes from experience... or just generally wise

eternal oxide
#

I'd not be too certain about hat

tender shard
#

but I get the idea that this can happen to hetero people

#

I was an accident too I think haha

eternal oxide
#

I've known a few only attracted to men end up in bed with women after a night out

tender shard
#

my parents always tell me "you were planned" but they only got me when they were 40, I am 100% sure i was an accident lol

tender shard
opal juniper
#

somewhat normal

tender shard
#

from what I learnt in biology, once you turn 40 it's like "last chance" to get kids

#

at least for the woman

eternal oxide
#

yep it is

#

often too late at 40

remote swallow
#

you dont save it

tender shard
#

you never save the config

#

configfile.save(...)

remote swallow
#

configFile.save(nameConfig)

mortal hare
#

man what a monstrosity

eternal oxide
#

also you don;t need to get parent

mortal hare
eternal oxide
#

you can mkdirs() on the file and it will only create folders

tender shard
tardy delta
tender shard
#

if you mkdirs() the file, it'll create a folder called "myfile.yml", iirc

eternal oxide
#

nameconfig.getParentFile().mkdirs(); only needs to be nameconfig.mkdirs();

tender shard
#

are you sure about that?

eternal oxide
#

only if it has no extension, I believe

tardy delta
#

what assembly is that tho? doesnt look like x86

eternal oxide
#

has to be to be a folder

mortal hare
tardy delta
#

ah simd 🥺 imma not touch that

tender shard
#

I am like 90% sure that mkdirs() creates a folder called exactly like that, so I'd only mkdirs() the parent

mortal hare
#

basically you can perform the same operation on 4 single precision floats at the same time

eternal oxide
#

ignore me then 🙂

tender shard
#

I might be wrong

mortal hare
#

its not that hard, but you need to get used to

eternal oxide
#

I can test, sec

tender shard
#

there are only 2 reasons in 2023 to use assembly:

  1. you make over 500k € per year doing it
  2. you are only using it to learn new things
#

for everything else, just use an actual language

mortal hare
#

I mean this type of assembly is useful, it allows you to process data 4x times faster than regular

#

and its not utilised much by the compilers, since compiler devs dont know how to implement those into compilers properly yet

tardy delta
#

wdym (Is a directory)

remote swallow
#

its a folder not a file

eternal oxide
mortal hare
#

basically instead of you multiplying let say value each by one, you can use

movaps xmm0, memory128bits
mulps xmm0, xmm0

would instantly return you 4 squared numbers at once without any performance drop (basically free 4 multiplications for one's price)

tardy delta
#

nameconfig.getParentFile().mkdirs(); whats wrong with nameconfig.mkdirs()?

remote swallow
#

that creates a folder from what elarl just said

#

try with the getParentFile().mkdirs()

tardy delta
#

💀

mortal hare
#

have you guys heard the news

#

mineplex is closed forever

remote swallow
#

yeah

tardy delta
#

im not watching minecraft news sorry

mortal hare
#

rip

sullen canyon
mortal hare
#

it was pretty much dead, but there were players who played it

sullen canyon
#

damn

mortal hare
#

the most interesting thing about it that they've closed it without announcing anything to the public officially

#

discord mod literally made a statement

#

that the mineplex is being closed lol

thick cloud
#

Does anyone know a library to create custom entity name tags with armorstands?

#

a bit, but mostly to give entities a name that you can see from far away, and not just when close

eternal oxide
#

you could raytrace and draw as close as you wanted

thick cloud
#

and if possible compatible with 1.8 (please don't hate me)

eternal oxide
#

not different

thick cloud
#

Last time I checked players and armorstands you can see their names from far

#

and for entities you have to get close to them

tender shard
#

HAVE YOU TRIED TURNING IT OFF AND ON AGAIN

#

YOU JUST LOAD THE FILE AGAIN

eternal oxide
#

shh

tender shard
#

LIKE, THE SAME WAY HOW YOU ORIGINALLY LOADED IT

#

DONT WORRY HAHA

tardy delta
#

@mortal hare that code you sent, is it opensource?

#

could use some inspiration

tender shard
#

WHY IS EVERYONE WHISPERING IN THIS CHAT

#

CAN YOU GUYS PLEASE TALK A BIT LOUDER

tardy delta
#

no

remote swallow
#

WHAT

tender shard
mortal hare
#

sure, use it for whatever you need it for, idc

remote swallow
#

HE SAID SOMETHING BUT IDK WHAT

tender shard
#

HUH

#

FOURTEEN DID YOU SAY STH

tardy delta
mortal hare
#

here

#

it generates pythagorean triples via brute force

#

3^2 + 4^2 = 5^2

tardy delta
#

oh i thought there was more

mortal hare
#

nope

#

it needs visual c++ compiler tho

#

but it could be easily converted to gcc assembly logic

#

and you dont primarily need inline assembly to use SIMD instructions

#

there are premade internal intrinsics that lets you access the instructions like in assembly but in more c/c++ like form

tardy delta
#

hmm

mortal hare
#

actually it is discouraged to use inline assembly for that

#

since it removes the portability

#

of any sorts

#

im just practising so I do use that

#

for the time being

#

I actually started to look SIMD just because Purpur or Paper started to encourage people to enable experimental java SIMD support flag to get some performance gains in some areas of the native minecraft server code

tardy delta
#

oh thats a thing

#

i heard you could use a simd based vector with the jdk.incubator.Vector or smth

tender shard
#

just create a new one

mortal hare
#

yea

tender shard
#

new YamlConfiguration()

mortal hare
#

Single instruction multiple data

#

These are machine level instructions that allows you to process multiple data at the same clock cycle

#

4 multiplications, divisions, additions at the one's cost

#

it could easily boost performance of an application if those instructions are used correctly

#

lets say you need to raytrace something

#

with SIMD operations you can calculate multiple rays at the same time

quaint mantle
#

Cool

humble tulip
#

But would java be able to automatically optimize it?

mortal hare
#

what I know that even compilers struggle to use those instructions

#

due to how is it to hard to convert code to support those instructions with performance gains

tardy delta
#

i mean converting bytecode to simd would probably go brr

#

you already have an intermediary presentation

mortal hare
#

for example text editors like sublime text iirc uses SIMD operations to convert text encoding fast in real time

quaint mantle
mortal hare
#

its mostly used in algorithms where smaller decoupled units are being calculated intensively at big costs

#

well according to the internet JRE 17 supports it

tardy delta
#

dont talk about the picture

mortal hare
#

but --add-modules=jdk.incubator.vector you need to add this when compiling your code

tardy delta
#

uhu

remote swallow
#

you can do that on startup of the jar

mortal hare
#

this seems like a good tutorial on that

eternal night
#

Pufferfish uses that in some places I think

mortal hare
#

there are really some performance gains from these types of operations

#

lets say i have to do operations on 1 million elements

#

floats

eternal night
#

Yea just, not really a lot of places in the server code to apply

tender shard
mortal hare
#

i could cut iterations by 4x times

eternal night
#

SIMD

tender shard
#

AH OKAY

eternal night
#

vector api is finalised in 21

mortal hare
#

1 million iterations would turn into 250 000 operations with SIMD

eternal night
#

so we will see if mojang makes use of if

tardy delta
#

pufferfish being another spigot fork?

eternal night
#

yea

tender shard
eternal night
#

well paper

tardy delta
#

people aint really original with their names

tardy delta
#

alex how did you call nms again?

tender shard
#

slughorn

remote swallow
#

slughorn

tender shard
#

lmao

mortal hare
#

longhorn

tardy delta
remote swallow
#

nm & s - @young knoll

tender shard
#

it's the potions teacher in harry potter 6 IIRC

#

after snape got sniped

tardy delta
#

oh wauw

mortal hare
#

google translate freaks out for my language

young knoll
#

It's a word now

tender shard
#

ofc, it translates to "minecraft internals but not API"

#

it's a common word in spanish, german, and english. idk about other languages

mortal hare
tender shard
#

no, why would there? every command only has one executor

young knoll
#

I assume they want to override the command from another plugin

tardy delta
#

hacky way: depend on the plugin

young knoll
#

Meh

#

I have my own hacky way

tardy delta
#

or commandmap stuff ig

remote swallow
#

load the commands in a scheduler#runTask

tender shard
#

AND THEN SET THE EXECUTOR

young knoll
#
@EventHandler
    public void onCommand(PlayerCommandPreprocessEvent event) {
        if (event.getMessage().equalsIgnoreCase("/plugins") || event.getMessage().equalsIgnoreCase("/pl")) {
            event.setMessage("/plugingui:plugins");
        }
    }
remote swallow
#

huh

#

thats smart

#

do you block bukkit:pl and bukkit:plugins

tender shard
#
PLUGIN ANOTHERPLUGIN = BUKKIT.GETPLUGINMANAGER().GETPLUGIN("WORLDEDIT");
ANOTHERPLUGIN.GETCOMMAND("/WAND").SETEXECUTOR(MYOWNEXECUTOR);
young knoll
#

Yeah you could do that too

remote swallow
#

that still requires a softDepend

young knoll
#

Assuming you know all the plugins that add a given command

remote swallow
#

so you have no reason

tender shard
tender shard
#

ONE TICK LATER, ALL PLUGINS ARE LOADED

mortal hare
#

you

tardy delta
remote swallow
tender shard
quaint mantle
remote swallow
#

yeah?

#

for (Plugin plugin : Bukkit.getPluginManager().getPlugins() {
    for (String command : plugin.getDescription().getCommands().keySet()) {
        plugin.getCommand(command).setExecutor(new MyCommandHandler(this));
    }
}
tender shard
#

OH WAIT

quaint mantle
#

If the plugin makes a command extending BukkitCommand since a lot of popular plugins do it.

tender shard
#

ARE YOU TRYING TO OVERRIDE BUKKIT COMMANDS?

#

THERE IS NO BUKKITCOMMAND CLASS

tardy delta
#

plugincommand

tender shard
tender shard
#

it is obviously meant for internal use only and plugins should NEVER extend it

tender shard
tardy delta
#

tell that 20% of the command frameworks

tender shard
tribal quarry
#

caps 🔥

tardy delta
#

i have no clue about aikar

tender shard
#

NO, CAPSLOCK IS FOR NOOBS. REAL CHADS JUST HOLD DOWN SHIFT

tender shard
tardy delta
#

ik

tribal quarry
#

the only cmd api i tried use was mojang's brigadier, and i used it with the help of my friend, it was real cancer

#

i've never tried acf tho

tender shard
#

BRIGADIER MAKES YOU WANNA SUICIDE, EVERYONE KNOWS THAT

#

ACF >

tardy delta
#

brigadier looks trash

quaint mantle
#

da hell is mojang brigadier

tribal quarry
#

||jk||

#

is that illegal gif?

tribal quarry
mortal hare
#

brigadier is not that bad

tribal quarry
#

ok, i think that gif silenced the chat lmao holy crap 💀

mortal hare
#

bukkit command api that wraps around it is

tribal quarry
edgy crystal
#

com.mojang:authlib:pom:1.5.25 failed to transfer from https://maven.gamestrike.de/mvn/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of schrand-repo has elapsed or updates are forced. Original error: Could not transfer artifact com.mojang:authlib:pom:1.5.25 from/to schrand-repo (https://maven.gamestrike.de/mvn/): transfer failed for https://maven.gamestrike.de/mvn/com/mojang/authlib/1.5.25/authlib-1.5.25.pom

            <groupId>com.mojang</groupId>
            <artifactId>authlib</artifactId>
            <version>1.5.25</version>
            <scope>provided</scope>
        </dependency>```'
any answers? :?
tender shard
#

erm i mean

#

ITS MOJANGS OWN COMMAND FRAMEWORK

tender shard
edgy crystal
#

i used his

quaint mantle
#

So why is worse?

tender shard
# edgy crystal i used his

add the repo too

<repositories>
        <repository>
            <id>minecraft-repo</id>
            <url>https://libraries.minecraft.net/</url>
        </repository>
</repositories>
#

after that, run mvn clean package -U and it should work

edgy crystal
tender shard
#

youre welcome

#

or is it just me and epic who have these issues

orchid gazelle
#

Would do if I was on my pc

torn shuttle
#

ah yes hardcoding elements

#

don't you guys love the sludge element?

edgy crystal
#
        String url = "https://textures.minecraft.net/texture/" + texture;
        short neuesubid = (short) subid;
        ItemStack itemStack = new ItemStack(Material.PLAYER_HEAD, anzahl, neuesubid);

        GameProfile gameProfile = new GameProfile(UUID.randomUUID(), null);
        gameProfile.getProperties().put("textures", new Property("textures", getBase64TextureValue(texture)));

        try {
            SkullMeta skullMeta = (SkullMeta) itemStack.getItemMeta();
            Field profileField = skullMeta.getClass().getDeclaredField("profile");
            profileField.setAccessible(true);
            profileField.set(skullMeta, gameProfile);
            itemStack.setItemMeta(skullMeta);
        } catch (NoSuchFieldException | IllegalAccessException e) {
            e.printStackTrace();
        }

        ItemMeta itemMeta = itemStack.getItemMeta();
        itemMeta.setDisplayName(displayname);
        if (lore != null) {
            itemMeta.setLore(Collections.singletonList(lore));
        }
        itemStack.setItemMeta(itemMeta);

        return itemStack;
    }

    private static String getBase64TextureValue(String texture) {
        String base64 = Base64.getEncoder().encodeToString(("{\"textures\":{\"SKIN\":{\"url\":\"" + texture + "\"}}}").getBytes());
        return base64;
    }```

My dear Friends, i the returnvalue of this code should be a textured - head. but it returns an player head.

Version: 1.16.5
Anyone knows whats the problem with my code? Thanks
edgy crystal
#

thank you

mortal hare
mortal hare
#

skins work different on offline mode servers

onyx fjord
#

i dont think u still need reflection to do textured heads

remote swallow
#

you dont

#

but on 1.16.5 you do

eternal oxide
#

PlayerProfile

#

you do nothing with url

#

is the texture you pass actually a valid texture?

edgy crystal
quaint mantle
#

whats the easiest way to make a second nametag for players just make a armor stand that moves with the player?

onyx fjord
#

broken base64 if thats even base64

eternal oxide
#

This is a valid texture "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYTlmMTFjMGQ0OTdmMjI3MDg5Y2JmNjE0NjAxMTA5Y2FmNjE1NDUzOTQwZWY1ZjY0ZWJiMTc3OTU3ZTRmYTZlNSJ9fX0="

onyx fjord
warm mica
#

was ein highperformer

edgy crystal
#

😛

onyx fjord
#

1 letter away

quaint mantle
edgy crystal
#

so idk, thats my code

    {
        short neuesubid = (short)subid;
        ItemStack i = new ItemStack(Material.PLAYER_HEAD, anzahl, neuesubid);
        SkullMeta meta = (SkullMeta) i.getItemMeta();
        GameProfile gameProfile = new GameProfile(UUID.randomUUID(), "");
        PropertyMap propertyMap = gameProfile.getProperties();
        propertyMap.put("textures", new Property("textures", texture));

        try {
            Field profileField = meta.getClass().getDeclaredField("profile");
            profileField.setAccessible(true);
            profileField.set(meta, gameProfile);
            profileField.setAccessible(false);
        } catch (NoSuchFieldException | IllegalAccessException ex) {
            ex.printStackTrace();
        }
        i.setItemMeta(meta);

        ItemMeta m = i.getItemMeta();
        m.setDisplayName(displayname);
        if (lore != null) {
            m.setLore(Collections.singletonList(lore));
        }
        i.setItemMeta(m);

        return i;
    }```

```inv.setItem(44, ItemManager.createCustomHead("4ef356ad2aa7b1678aecb88290e5fa5a3427e5e456ff42fb515690c67517b8", 1, 0, "§atest", null));
            inv.setItem(43, ItemManager.createCustomHead("https://textures.minecraft.net/texture/4ef356ad2aa7b1678aecb88290e5fa5a3427e5e456ff42fb515690c67517b8", 1, 0, "§atest", null));```
#

the results are normal skins, not the skins i wanted

eternal oxide
#

?paste

undone axleBOT
eternal oxide
remote swallow
#

public static ItemStack createCustomHead(String texture, String displayName, String Lore) {
    ItemStack stack = new ItemStack(Material.PLAYER_HEAD);
    SkullMeta skullMeta = (SkullMeta) stack.getItemMeta();
    GameProfile gameProfile = new GameProfile(UUID.randomUUID(), "");
    PropertyMap propertyMap = gameProfile.getProperties();
    propertyMap.put("textures", new Property("textures", texture));

    try {
       Field profileField = meta.getClass().getDeclaredField("profile");
       profileField.setAccessible(true);
       profileField.set(meta, gameProfile);
       profileField.setAccessible(false);
     } catch (NoSuchFieldException | IllegalAccessException ex) {
       ex.printStackTrace();
     }

    skullMeta.setDisplayName(displayName);
    if (lore != null) skullMeta.setLore(List.of(lore));
    
    stack.setItemMeta(skullMeta);

    return stack;
}
#

getkeys(false)

edgy crystal
hearty zenith
#

I have citizens plugin in it's files all npc locations are saved and in files of command npc the npc's commands are saved and I can see it still in the server I can't see the npc

#

Any idea why?

#

Are there any dependencies of citizens?

echo basalt
edgy crystal
# eternal oxide Working heads <https://paste.md-5.net/usemanajaj.java>

working great as i said, but i have one question because of the encoded value.
mine is "NGVmMzU2YWQyYWE3YjE2NzhhZWNiODgyOTBlNWZhNWEzNDI3ZTVlNDU2ZmY0MmZiNTE1NjkwYzY3NTE3Yjg="

String encodedTexture = new String(encodedBytes);
System.out.println(encodedTexture);```

to encode this: 4ef356ad2aa7b1678aecb88290e5fa5a3427e5e456ff42fb515690c67517b8

am i wrong?
remote swallow
#

yeah, NGVmMzU2YWQyYWE3YjE2NzhhZWNiODgyOTBlNWZhNWEzNDI3ZTVlNDU2ZmY0MmZiNTE1NjkwYzY3NTE3Yjg= is the texture you should pass

eternal oxide
#

the above base64 is already encoded

#

teh second thing you posted is just a texture key

edgy crystal
eternal oxide
#

that is a texture key, probably to access mojang

#

but not a full address

edgy crystal
severe oracle
#

Hi, I am writing a plugin that adds some weapons. Is it possible to disable first-person item change animation(the one where the item goes up) when customModelData and NBT change.

warm mica
remote swallow
#

they're using 1.16

warm mica
#

Oh

eternal oxide
#

https://textures.minecraft.net/texture/4ef356ad2aa7b1678aecb88290e5fa5a3427e5e456ff42fb515690c67517b8

edgy crystal
#

yes

#

i need it for heads

#

player heads

eternal oxide
#

you can;t apply any texture you choose. it has to be in a head/skin format

edgy crystal
#

alright

#

is there a website to get a skin from these textures?

remote swallow
#

heads db

edgy crystal
#

value

remote swallow
#

just need to grab the texture from the bottom

edgy crystal
#

?

#

ahhh

remote swallow
edgy crystal
#

so i do i need the value?

edgy crystal
remote swallow
#

iirc its the minecraft url

eternal oxide
#

minecraft-url if you want it already decoded

#

if you decode you use the one above which is base64

#

value

edgy crystal
#

ah alright, i used to use the value and not the url. thank you very much @remote swallow & @eternal oxide

humble tulip
#

Let's say I fork a project, make some changes and I'd like to keep my fork up to date whennew changes are made to the project

#

How would i be able to do such a thing?

indigo iron
#

how does one find who crafted the item during CraftItemEvent

river oracle
#

?jd-s

undone axleBOT
remote swallow
#

getWhoClicked() and cast it

river oracle
#

Yeah

quaint mantle
#

because i feel like thats not very performance friendly

opal juniper
#

or the new display entity

agile anvil
grim oak
#

Hey how could i apply a custom texture for a gui in my plugin

tardy delta
#

custommodeldata and resourcepacks

pseudo hazel
#

you create a custom font in your resource pack

agile anvil
pseudo hazel
#

and use a random font character to assign a texture to

#

and then in your inventory title use that character

#

its not super trivial

#

cuz its not the intended use for fonts xD

grim oak
pseudo hazel
#

no

grim oak
#

oh

tardy delta
#

its on the itemmeta

agile anvil
#

You have to use fonts, but once you're into it, it's really ok to achieve (and satisfying)

grim oak
#

im confused im hearing 2 different things

pseudo hazel
#

forteen doesnt understand your question

#

thats all

grim oak
#

oh

remote swallow
#

fourteen they want a custom GUI background texture not an item texture

pseudo hazel
#

he thinks you are talking about custom items

grim oak
#

So each slot would need its own texture?

pseudo hazel
#

yes thats cannot be done use custommodel data

grim oak
pseudo hazel
#

only using fonts

#

no

#

you assign a single character to the inventory title

#

which will contain the entire texture of the inventory

grim oak
#

If someone else makes me the texture would it be quick and easy to apply. Is there a guide online?

pseudo hazel
#

probably

#

and yes, once you have it set up its as easy as making a regular resourcepack

grim oak
#

ok ty

remote swallow
agile anvil
pseudo hazel
#

watch this

#

then you will be good

hard socket
#

how can I fix jars image?

#

this happened after I installed java 17 and restarted my pc

remote swallow
#

that is the jar image

#

its duke

hard socket
#

no

#

I had the coffee thing

opal juniper
#

install a different jdk

#

yeah, oracle is the coffee thing iirc

#

the other ones are duke and i avoid them

rough ibex
#

you can just set a custom icon to any .jar

hard socket
chrome beacon
#

Just let it be duke

#

The icon doesn't matter

opal juniper
#

it does

#

cmon

hard socket
#

yeah

#

this one is weird

#

I like the old one

opal juniper
#

its just different tbh

hard socket
#

yh

chrome beacon
hard socket
#

is there a way to fix it?

chrome beacon
#

Install oracle jdk

hard socket
#

1.8?

chrome beacon
#

Or change the icon in windows

opal juniper
#

any

hard socket
#

but I have jdk 8 do I install it?

chrome beacon
#

If it's already installed tell windows to use it as default program for jar files

hard socket
#

how?

chrome beacon
#

Right click then properties

#

You should be able to change it to your oracle jdk there

rough ibex
#

all this over an icon bruh

hard socket
#

alr thx so much

chrome beacon
worn tundra
agile anvil
#

Your site is genius bro

grim oak
green falcon
#

what happens when the mob AI navigator gets a destination thats very far away (and has to load chunks in between)? does it actually resolve or just freak out

silk light
#

Hello, I am trying to code a plugin with intellij idea, And after importing the 1.18.2 spigot.jar the dependancys im using are grey and say "Can not resolve"

eternal oxide
#

?bootstrap

undone axleBOT
#

Bootstrap Jar
The main spigot-1.18.jar is now a bootstrap jar which contains all libraries. You cannot directly depend on this jar. You should depend on Spigot/Spigot-API/target/spigot-api-1.18-R0.1-SNAPSHOT-shaded.jar, or the entire contents of the bundler directory from your server, or use a dependency manager such as Maven or Gradle to handle this automatically.

Please read the release notes for further information: https://www.spigotmc.org/threads/9-years-of-spigotmc-spigot-bungeecord-1-18-1-18-1-release.534760/#post-4305163

lament sequoia
#

does anyone have the base code of the enchantment smite?

alpine cairn
#

I have an outdated plugin that disables itself on startup. Someone here told me I could try deleting logging code to fix it but I am not sure how to move code from a decompiler to an IDE and build it.

sullen marlin
#

What's the error

agile anvil
#

Bet it's a malware

tribal quarry
fossil lily
#

you can get malware by running a project in an IDE

#

is I think what they're talking about

sullen marlin
#

How did you all jump to malware lol

#

Are we talking about the same thing

fossil lily
#

¯_(ツ)_/¯

fossil lily
agile anvil
#

Nah, but I've seen so much error on startup due to a logging class because it was pinging a suspicious IP that wasn't responding to send log to

fossil lily
#

i dont think that makes any sense

agile anvil
#

That phrase is very long, I should go to bed lmao

sullen marlin
#

True, that's why we need the error

rotund ravine
#

Bet it’s malware /s

alpine cairn
fossil lily
rotund ravine
#

Could be many things

sullen marlin
#

Maybe the Dev just wanted to force updates ¯_(ツ)_/¯

mystic monolith
#

is there a way that i could check for if there are any values for a given scoreboard objective?

rotund ravine
#

Yes.

alpine cairn
mystic monolith
alpine cairn
#

@sullen marlin

agile anvil
#

What's the error @alpine cairn ?

alpine cairn
agile anvil
#

Mb

alpine cairn
#

All good

fossil lily
#

oh I see history

alpine cairn
#

I was told if I could make it stop disabling itself it could work even though it is outdated

fossil lily
#

yea it doesnt have to do with version

alpine cairn
#

Not sure how else I would fix it

fossil lily
#

its a file not found issue, I mean it could be a lot of things as MD said

#

md_5 = markdown 5?

alpine cairn
fossil lily
alpine cairn
#

What actually makes a plugin not work on newer version?

fossil lily
#

That has nothing to do with version

alpine cairn
#

Hmm

#

You said that error message could be a lot of things. Could you point me in the right direction for what kinds of things I should look for?

fossil lily
#

This wont be easy unless you do

alpine cairn
fossil lily
#

Check what file is missing and what its looking for

chrome beacon
#

Use recaf and remove the update checker

alpine cairn
#

Thank you

fossil lily
agile anvil
#

Or emulate the given API 💀💀💀💀

chrome beacon
agile anvil
fossil lily
chrome beacon
#

No it's doing an update check

#

And the web server isn't responding correctly

fossil lily
#

I guess that would make sense

#

Can a FileNotFound be thrown then though?

chrome beacon
#

If you try to read a file from a url

alpine cairn
#

The update checker can be set to false in the config but it still sends the same error

fossil lily
#

interesting, I would expect an end of stream error

chrome beacon
#

🤷‍♂️

fossil lily
#

¯_(ツ)_/¯

sullen marlin
#

Ok so basically you just need to make a new plugin, copy that plugins decompiled code in, remove the logging, fix any other errors, and recompile

#

Which step is causing issues

fossil lily
#

e z

mystic monolith
#

is there a way that i could check for if there are any values for a given scoreboard objective?

agile anvil
#

&version=1.6&nms=v1_19_R2&port=25565&property_ip=&players=11
Doesn't it trigger you? That's so strange to send that kind of info

sullen marlin
#

?jd-s

undone axleBOT
hazy parrot
sullen marlin
#

Search objective, what are you having issues with

fossil lily
chrome beacon
#

Which is why I want the jar

sullen marlin
#

Most likely just some dev logging too much

chrome beacon
#

I want to see what it does

fossil lily
agile anvil
#

Home made bstats I guess 🥲

sullen marlin
agile anvil
#

"as you can see, 82% of the servers use the 25565 port"

fossil lily
#

assuming this was already suggested

chrome beacon
alpine cairn
#

Yeah that was the first thing I tried

fossil lily
#

kk

chrome beacon
#

Send the jar in my dms

sullen marlin
#

Just download it bro

#

Linked above

fossil lily
#

lol

alpine cairn
sullen marlin
fossil lily
#

unless its something pretending to be that 👀

chrome beacon
#

No I want to check the exact jar

sullen marlin
#

Start by checking the plugin jar lol

alpine cairn
#

Can I use filebin to send it?

chrome beacon
#

I just want to check if it's another variant of the update checker malware

alpine cairn
#

The what now

chrome beacon
alpine cairn
sullen marlin
#

You could answer your question by looking at the public jar to start lol

alpine cairn
#

I think I wasn't able to take it directly from winrar

fossil lily
#

so weird lol

alpine cairn
#

Yeah

#

I am using the new one btw

chrome beacon
alpine cairn
#

First you can tell me it's not malware

chrome beacon
#

Doesn't look like it

slim wigeon
#

How do I load these configs@echo off title Combine type Wooden.yml>config.yml type Stone.yml>>config.yml type Redstone.yml>>config.yml type WoolCarpet.yml>>config.ymlSource: Combine.bat

sullen marlin
#

You're really paranoid olivo

fossil lily
#

using an online decompiler xd

chrome beacon
#

Better safe than sorry

sullen marlin
#

What's validKey(), maybe you can trick it

#

Without changing code

fossil lily
#

for key ^^

agile anvil
#

Gosh

fossil lily
rough ibex
#

what a complex ID validation scheme

sullen marlin
#

What a strange plugin

rough ibex
#

I don't think we'll crack this one boys

fossil lily
#

lmao

sullen marlin
#

Seems like it's DRM, maybe they wanted to make it paid

#

Could try an older version

mystic monolith
# sullen marlin Search objective, what are you having issues with

@sullen marlin how could i do an if statement that checks for if there are values assigned to an objective, this is what i have currently:

 Score coins = Sidebarmenu.getScore("Your Coins: " + ChatColor.GOLD + coin);
if (coins.getScoreboard().getEntries().isEmpty()) {
                    coins.setScore(15);
                }

For context: This is supposed to create a "menu" on the sidebar that says how many coins you have (and other numbers too in the future), by using fake players. The problem is that once the amount of coins changes, it adds the new amount as another player because its slightly different. So I want to check when the player joins if they don't already have a coins counter then add it, i also have the code to remove the outdated amount somewhere else. How could I check if there are players on the objective with a score?
This is the closest i could get, ik as of now it checks for if there are any objectives in the scoreboard

slim wigeon
agile anvil
#

What system do you use for coins ? Is it vault or do you just have a variable per player ?

#

And is your goal only to display "Your coins: " on the sidebar ?

alpine cairn
sullen marlin
#

Look at the methods in scoreboard I'm sure it should be explanatory

alpine cairn
#

So the best solution would be to make a new plugin and use this one as a reference I guess?

sullen marlin
#

Sure

#

Or just clone it and rip out all the weird tracking code

alpine cairn
#

I'm kind of shocked that I couldn't find an up to date plugin to get players unstuck from regions

sullen marlin
#

I can't imagine the plugin is very complex either way

agile anvil
sullen marlin
#

No

#

But also who knows what that plugin does

agile anvil
alpine cairn
mystic monolith
fossil lily
alpine cairn
#

Right if you walk into a claim and fall into a hole you are stuck

mystic monolith
agile anvil
#

Yeah I meant the "worldguard stuck thing" (which I thought was managed by wg)

fossil lily
alpine cairn
#

That only gets you out of block you are suffocating in

#

Teleports you to the surface

mystic monolith
agile anvil
fossil lily
alpine cairn
#

You would think

#

It's seems like a necessity

agile anvil
alpine cairn
#

I guess most server just have /spawn or /home

mystic monolith
agile anvil
mystic monolith
fossil lily
mystic monolith
agile anvil
mystic monolith
#

trying to create something similar to hypixel

#

yes

agile anvil
#

Ok

#

Then did you read what md5 sent? The javadoc for Scoreboard?

mystic monolith
# mystic monolith yes

i assumed i could use fake players to actually put the text and as part of the name for each player would be their value for that objective to display it

mystic monolith
agile anvil
fossil lily
#

intellij indexing 💀

agile anvil
#

I think even in Minecraft vanilla with commands it's easier to do it

fossil lily
#

it is

#

cmonnn

agile anvil
fossil lily
remote swallow
warm mica
#

I usually wait like 10s for it to index

fossil lily
warm mica
#

Don't worry, I was just showing off

fossil lily
#

lemme reopen this now

#

6 seconds

#

:D

#

also look at dis new splash screen

warm mica
#

Oh that looks really nice

#

Is that a beta

fossil lily
#

yea

#

actually its Early Access Program 🤓

warm mica
#

Can't imagine to even still use eclipse nowadays

fossil lily
#

yea lol

agile anvil
fossil lily
#

💀 where do you work I will track them down

agile anvil
#

Eclipse 2017

hazy parrot
#

why would anyone force you to use specific ide

agile anvil
#

I work in defense

#

The tools are...

fossil lily
agile anvil
#

Old

#

But safe

hazy parrot
#

💀

fossil lily
#

bet you cant defend against me coming and yelling at them

agile anvil
fossil lily
#

merge the project into your fork

hazy parrot
agile anvil
fossil lily
agile anvil
#

Bro they don't even agreed on using docker

#

💀

#

Oh, and java above 8 is yet forbidden

fossil lily
#

omg

#

why

#

its safe

#

get over it

agile anvil
#

I know

#

It's less safe to use java 8

#

But

fossil lily
#

YES

agile anvil
#

You can't really change things like that

#

It's hard and has a huge inertia

fossil lily
#

t r y

agile anvil
#

We always try to push to update everything... 🤣

#

Imagine, you want a cool library like guava for instance

#

You would think, let's download it using maven

#

No no no, you can't do that

#
  1. The PC doesn't have access to internet
fossil lily
#

ima hack into the mainframe

fossil lily
agile anvil
#

Ahha

#

I have to download the lib on a safe PC, scan the usb (key locked) stick on a malware checker

#

And then import it on my computer

sullen marlin
#

Please don't leak state secrets to the discord

drowsy helm
#

thats what they want you to do

#

rebel against society

remote swallow
agile anvil
remote swallow
#

what do you do in defense that needs java tho

sullen marlin
#

The Nukes run java

novel pendant
#

Is there a good way of dealing damage to players outside of a world border? I've been using setDamageAmount() and setDamageBuffer(), but regardless of that players can still run free without taking damage. Any recommendations since those methods seem to not work in my case? I dont have any listeners for general damage cancelling so the issue wouldnt be related to that

agile anvil
flat lark
worldly ingot
#

I know this is possibly a stupid question but I have to ask

#

Did you replace VERSION with the correct version?

flat lark
worldly ingot
#

1.0 - 1.7 it seems

flat lark
#

Thank you. I did said it said 1.7 on github but was not sure if it was going to work cause usually it has a diff version number.

worldly ingot
#

If you're unsure, best thing to do is go to the repository link and you can usually just browse it like a regular ole file structure

#

You'll see all what versions are available

flat lark
#

I actually did I saw the main source code lol.

worldly ingot
#

Sorry, Maven repository link. Not the GitHub one ;p

#

The one I linked above

flat lark
#

Yep I am referring to that lol.

worldly ingot
remote swallow
flat lark
#

It seems I'm having an issue. At build with it. Is it suppose to also build a InvUI jar too

worldly ingot
#

No it won't build a separate .jar. If you're shading it, it will be included in the final .jar (and you'll see a -shaded artifact in the target directory). If it's a standalone library, you may just have to have it installed on the server and it should just work

flat lark
tribal quarry
#

Nikocado avocado

#

🥑

weak meteor
fossil lily
undone axleBOT
fossil lily
#

show entire build file

weak meteor
#

dont worry

#

im going to download it

#

and put it

#

on

#

libs

#

folder

#

just figured that out

tall saffron
#

How can i make a tablisT?

weak meteor
#

Also there's tutorials for that

#

I think Kody Simpson has one

weak meteor
fossil lily
weak meteor
#

so..?

#

its my first time with gradle

fossil lily
#

those are the only repos you need

static jungle
#

Can someone tell me how to config combatlogx to where you can make it to where you can place blocks/break while your in combat

restive mango
#

Anyone know if there is any additional documentation on runTaskTimerAsynchronously out there? For example:

Can it become unaligned with the server's tickrate? For example, if the server is ticking every 50ms, and the asynchronous task takes 55ms, will runTaskTimerAsynchronously run once, then wait 45ms for the next main thread tick before running again itself? So the 'server' would count 3 ticks as having passed, while a counter in runTaskTimerAsynchronously would count only 2?

fossil lily
rare rover
#

kotlin being goofy

#

how fix

#
plugins {
    kotlin("jvm") version "1.8.20"
    application
}

group = "me.outspending"
version = "1.0-SNAPSHOT"

repositories {
    mavenCentral()
    maven {
        name = "papermc-repo"
        url = uri("https://repo.papermc.io/repository/maven-public/")
    }
    maven {
        name = "sonatype"
        url = uri("https://oss.sonatype.org/content/groups/public/")
    }
}

dependencies {
    implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1")
    compileOnly("io.papermc.paper:paper-api:1.17-R0.1-SNAPSHOT")
}

kotlin {
    jvmToolchain(11)
}```
sullen marlin
#

Sir this is Spigot

restive mango
#

wait

#

md_5

#

thats the name of a repository i use

#

ur this guy

rare rover
#

so yes lol

restive mango
#

crazy

orchid gazelle
#

Also, don't use Kotlin

rare rover
#

why not

#

i've mostly used java

lucid gazelle
#

hey, im working on a custom spawners plugin, and i change the spawner types by CreatureSpawner#setCreatureTypeByName()

the spawners work fine normally when the player is opped, but when deop players place it, its an empty spawner (or a pig spawner if server is 1.17.1)

BlockState spawnerState = event.getBlockPlaced().getState();
                spawnerState.setCreatureTypeByName(event.getItemInHand().getItemMeta().getPersistentDataContainer().get(new NamespacedKey(PluginMain.getInstance(), "CreatureType"), PersistentDataType.STRING));

spawnerState.update(true);```

this is what im using to force set the creature type under BlockPlaceEvent, but it still doesn't work

and the "CreatureType" key is set in the BlockBreakEvent
```java
spawnerItemMeta.getPersistentDataContainer().set(new NamespacedKey(PluginMain.getInstance(), "CreatureType"), PersistentDataType.STRING, spawnerState.getCreatureTypeName());
static ingot
#

It's possible that you have to use the scheduler to delay it by a tick, since you're attempting to modify the block state on its placement.

unique sable
#

So i am making a runnable

to support "plugin" in this code, I have private Plugin plugin
But the code doesnt seem to work in the game, and provides a null exception


                        Bukkit.getScheduler().runTaskLater(plugin, new Runnable() {
                            @Override
                            public void run() {
                                player.sendTitle(ChatColor.LIGHT_PURPLE + "New Mine Levels Unlocked!", ChatColor.GOLD + "H-S", 10, 70, 20);
                                player.playSound(player, Sound.UI_TOAST_CHALLENGE_COMPLETE, 1f, 1f);
                            }
                        }, 200L);```
smoky anchor
#

What variable is causing the NPE ?

unique sable
#

the "plugin" variable

smoky anchor
#

Is it being set before you create the task ?

unique sable
#

uh yes, the private Plugin plugin comes at the very start of the java class, while the task in later on in the code

smoky anchor
#

ye but do you have plugin = ...; somewhere ?

#

From some constructor or something

unique sable
#

I do not

static ingot
#

usually you'd get that value from a constructor

unique sable
#

ah I see, ill try that, I did not know that. Thanks for telling me that!

smoky anchor
#

I recommend

#

?learnjava

undone axleBOT
static ingot
#

np. look up "dependency injection" if you're still confused

icy beacon
#

?di

undone axleBOT
static ingot
#

oh cool. idk all the shortcut commands

icy beacon
#

?cc list in #bot-commands

eternal oxide
#

cooldown for what?

grim oak
#

U mean a library?

eternal oxide
#

only way is permanent storage

#

PDC or file

smoky anchor
#

?pdc

smoky anchor
#

If it is per player I say PDC
If not then some file

#

it is 1.14+

eternal oxide
#

yep

#

then good luck

#

save to file in onDisable, load in onEnable

#

not in config. in it's own file

#

depends, in this case, if they are not short cooldowns it shoudl be fine

#

quickly changing data is not good stored in files

obsidian plinth
#

if im feeding 2 into this it should output 1 right bc of floor

        int limit = (int) Math.floor(safeTeam.getSize() * 0.85);

smoky anchor
#

Are you just stating what that code does ?

hazy parrot
#

No

#

Floor rounds to lower

#

If you put 2,it will be 2

eternal oxide
#

no he multiplies by 0.85, so output will be 1

hazy parrot
#

I understood if 2 is put inside of method params?

eternal oxide
#

yes, 2 * 0.85 = 1.7, floored = 1

hazy parrot
#

floor(2)

smoky anchor
eternal oxide
#

you missed the bit on teh next line (still in the () )

#

safeTeam.getSize() * 0.85

#

I see your misunderstanding, you are thinking he was saying if he replaced safeTeam.getSize() * 0.85 with 2

hazy parrot
#

Yeah

eternal oxide
#

If that were his meaning then yes 2 is the result

#

I think he meant the size was 2

smoky anchor
#

I mean I can't blame Goksi, the "question" is really not that well constructed

eternal oxide
#

I've seen discussions go for hours in here debating what a question meant.

obsidian plinth
#

so if safeTeam.getSize() is 2 limit will be 1 right bc math

#

im just trying to make sure lol

#

so 2 * 0.85 = 1.7

smoky anchor
#

you could easily test this in JShell for example

obsidian plinth
#

effort

#

its 7am i havent slept

tender shard
#

you can still sleep tomorrow

obsidian plinth
#

Yea

#

at least all i have to do now is add placeholders than i think its done

worn tundra
#

this was genius

sage patio
#

any plugin for testing my plugins faster? (automatic reloading, except BileTools)

tardy delta
#

its called the plugins/update folder and /reload

hoary wing
#

i made a plugin that can spawn animated particle effects, like a simulation from blender, but because all particles take a while to fade away its always quite fuzzy, is there a way using packets or something to remove existing particles so that the image is more clear

eternal oxide
#

no

lost matrix
#

particles are fire and forget. You tell the client that a particle spawns somewhere and
from then on its the clients responsibility

hoary wing
#

and you cant set the lifespan when spawning i presume

smoky anchor
#

not possible sadly
we don't have full control over particles sadly

hoary wing
#

well i know 1 way but its not practical, you can manipulate the duration of redstone particles by setting the size but then you would need millions of particles to make something meaningfull and minecraft can only render about 16k

severe oracle
#

Hi, is there good resource to learn NMS?

smoky anchor
#

wait maybe
edit: not what I expected the command to give

#

?nms

chrome beacon
#

You need to be decent at Java or you will get lost quite quickly

keen anchor
smoky anchor
#

You clone the whole repo and then checkout to the commit 447e4c7

keen anchor
quiet ice
#

should be straightforward

keen anchor
#

like so?

quiet ice
#

Use git checkout instead of git switch

#

git switch is for branches

#

But yeah

#

(honestly I am not sure why git switch exists)

keen anchor
#

It worked. Thanks!

dim adder
#

Hello, could anyone tell me, if theres a method to give a player knockback (without npc)

smoky anchor
#

entity.setVelocity

dim adder
quaint mantle
#

Can anyone help my get past the hoops of the first stage? I just need to see a project with a place to write the code

river oracle
#

There should be good resourced

quaint mantle
#

that would work but if only someone who already knew how to do it in like 2 minutes, could teach me

smoky anchor
#

I think you could do it faster then to wait for someone to answer further

#

If you have IntelliJ it has in-built support for Maven
You can create an empty maven project with it I'm sure

quaint mantle
#

i have to direct you to general chat

#

someone gave me their tutorial but there was a step that wasnt properly acknowledged

#

scroll up a few

smoky anchor
#

Look I am currently at work, I'll be off in 2-3 hours
If you still need help at that time feel free to DM me
I'll do my best to try to help you set up the environment

chrome beacon
#

That would explain why none of the tutorials work

#

Since they're for the regular one not the new experimental UI

quaint mantle
#

I have started over like 5 times, re-installing everything.

#

jk more like 2

chrome beacon
#

Could you show your Intellij looks?

hushed pawn
#

Hello, i want to convert 1.12 world to 1.8
There is some blocks that don't exist in 1.8 (4k x 3k area) and i want to replace them, do anyone know how to do that large replacement? or maybe can give some advice to code it

chrome beacon
#

There are file format changes between versions

hushed pawn
#

If i replace few types of blocks everything will be okay

#

I checked everything

chrome beacon
#

I would expect more file changes than that but ok

hushed pawn
#

I have tools for them, not existent blocks type is the only problem

smoky anchor
#

I would suggest world-edit.
If MCEdit works for 1.12.2 that might be a bit better.

hushed pawn
chrome beacon
#

💀

smoky anchor
#

MCEdit should work
If not then AWE - AsyncWorldEdit ?

chrome beacon
#

Time to write C++ for maximum speed

chrome beacon
smoky anchor
#

Aren't they essentially the same now ?

chrome beacon
smoky anchor
#

ye but they do the same thing right

fossil lily
#

WineSpigot is a fork of Spigot and it very paid, but very good

#

you are

young knoll
#

Yo wait we have BeerSpigot and WineSpigot

#

Incredible

fossil lily
smoky anchor
#

Where is WeedSpigot 🤔

young knoll
#

Probably exists

smoky anchor
#

Google gave me 5 fucking results
FIVE
I doubt it

fossil lily
#

guys guys guys

#

hot take but the new intellij UI is amazing

pseudo hazel
#

how is that a hot take

fossil lily
#

maybe its a cold take

ivory sleet
#

what even changed? :o

#

oh

#

oo

fossil lily
#

leaking my name

ivory sleet
#

mye

fossil lily
#

but yes

ivory sleet
#

pretty nice

proper notch
#

Yh I've liked the new UI since the start apart from the bugginess. I still sometimes don't understand the behaviour of the run GUI

fossil lily
#

wdym

proper notch
#

I don't understand what run config it displays as primary

fossil lily
#

it displays last used

proper notch
#

Ok I guess it's just buggy for me then

fossil lily
#

including what happened in task menu

proper notch
#

It regulary doesn't change for me

fossil lily
#

i dont really use it

#

but if I double click shadowJar it sets to shadowjar

proper notch
#

Ahh I click the run button so ig that doesn't update it. interesting

fossil lily
proper notch
#

😢

#

ngl i didn't realise u could even click it to set it to primary 💀

#

I've just been going into the dropdown every time (unless I'm just restarting the task)

sinful kiln
#

Hey there,
I'm creating an Asynchronous event however the event might be called synchronous sometimes which bukkit doesn't like.
What would be the best solution to fix this issue?

Most calls for the event are asynchronous and this event is a contribution to spigot
(The location where the event is called might be called synchronous or asynchronous which is my problem right now)

worldly ingot
#

Pass in whether or not it's synchronous in the constructor

#
public MyEvent(boolean async) {
    super(async);
}```
sinful kiln
#

So even though the event is supposed to be asynchronous I'm always changing if it actually is asynchronous or not?

#

The only time that the event is called synchronous is if someone uses a specific vanilla command

worldly ingot
#

Yes, that's fine. See AsyncPlayerChatEvent. It too is sometimes fired synchronously

sinful kiln
#

I see, okay thanks for the quick answer!

worldly ingot
#

Copy the Javadocs from the APCE. Keep it consistent. So long as it says that it can be fired sync and it should be checked

sinful kiln
#

new AsyncStructureGenerateEvent(!Bukkit.isPrimaryThread(),
So like this for example?

worldly ingot
#

Yeah or if there's some other way to distinguish whether or not it's synchronous

sinful kiln
#

Is every generation call that is done on the WorldServer itself synchronous?
If so then I can do it based on that

worldly ingot
#

Not sure. I tend to avoid any world code lol

#

Shit's scary

sinful kiln
#

That's true, I didn't find that issue until now x)

#

And its been about 3 months now since the PR started

rough basin
#

How to know the difference between clicking and holding the mouse, which happens about once every 0.2 seconds?

hazy parrot
#

i dont think there is way for you to determine if player is holding mouse

#

of course, aside from if he is breaking block

quiet ice
#

Does anyone know how I can run the sign MOJO only if a gpg keyname is set?

fossil lily
#

😢 eclipse

quiet ice
dark harness
#

Is it possible to send playsound with bungeecord packet?

worldly ingot
quaint mantle
#

I have a question. I want to change the version of my plugin (from 1.12 to 1.8) how to do it? I am using IntelliJ IDEA. I can send you a code if you need it

remote swallow
#

does it use nms

quiet ice
#

just change the version used in the pom.xml and fix all compile errors

remote swallow
worldly ingot
#

Well, maybe

remote swallow
#

1.12 is pre material changes

#

so

worldly ingot
#

Downgrading. Could be using API introduced in 1.9+

remote swallow
#

oh im blidn

worldly ingot
#

Sound enums were changed in 1.9

remote swallow
#

it says 1.12 to 1.8

worldly ingot
#

Yes

remote swallow
#

not 1.8 to 1/12

worldly ingot
#

Yes

remote swallow
#

yeah do what geol said

quiet ice
#

though chances are there are things that cannot be done only through bukkit (at least not without thinking with tricks)

worldly ingot
#

Dude you even lose the particle API in 1.8 lol

#

That was added in 1.9

fossil lily
#

10 year old version moment

quaint mantle
#
Could not find artifact org.spigotmc:spigot-api:pom:1.8.8-R0.1-Snapshot in spigotmc-repo (https://hub.spigotmc.org/nexus/content/repositories/snapshots/)
``` sorry i didnt know what i need to do it is my first time 🤷
worldly ingot
#

SNAPSHOT should be capitalized. I'm fairly certain casing matters

fossil lily
#

🤔

#

possible

#

?paste

undone axleBOT
quaint mantle
fossil lily
quaint mantle
fossil lily
remote swallow
#

it has spigot api

#

isnt needed

fossil lily
#

oh

remote swallow
#

reload maven

quaint mantle
#

I reloaded and it seems to work

quiet ice
quaint mantle
#

when i changed the version in my java file some lines are underlined in red and i have these errors

#

oh

#

i cant send screen

quiet ice
#

Fix these errors then

quaint mantle
#

i dont know how?

#

for example: "cannot resolve symbol 'javaPlugin' :3

quiet ice
#

?paste Send pom

undone axleBOT
quaint mantle
#

i dont know what is that XD

quaint mantle
quiet ice
#

porting plugins can be quite the task

quaint mantle
#

but ok

quiet ice
#

Yes but the pom is at the source

quaint mantle
#

oo okay

quaint mantle
quiet ice
#

okay that is actually correct. Refresh the maven project (however you do that in IJ) and if that doesn't work dump the IDE caches, reopen the IDE and pray that it works now

quaint mantle
#

i reloaded ij and i think this working XD

ivory sleet
#

I was considering this, but would appreciate a second opinion,
im walking down a file tree, and my intention is to copy each file and directory from directory A to directory B, I'm also going to delete all files and directories from directory A.

  1. Do I delete each file after copying it?
  2. Do I walk down the file tree again and delete all files after copying the entire file tree?
quiet ice
#

Why not move the files?

eternal oxide
#

Depends on the possibility of errors

#

and size

ivory sleet
eternal oxide
#

if not too big I'd probably copy all then delete so you don;t get partial data in each if it errors

ivory sleet
#

ah okay

quiet ice
#

Copy & Delete tends to be a bit slower than moving since moving is a direct FS operation (and usually only involves rewriting headers)