#help-development

1 messages · Page 1661 of 1

crude charm
#

they would explain how to use it

quaint mantle
#

p a b l o

crude charm
#

1s

quaint mantle
#

if(pablo){
vibe();
}

crude charm
#

they do

#

there is so much here

#

you dont need me to spoonfeed you links

#

1s

#

try this

        <dependency>
            <groupId>net.sf.proguard</groupId>
            <artifactId>proguard-base</artifactId>
            <version>4.10</version>
            <scope>runtime</scope>
        </dependency>

source: https://stackoverflow.com/questions/31326430/how-to-generate-an-obfuscated-jar-file-for-a-maven-project

#

Do you have an example?

#

packets, its not a build in method. Never seen something like this.

quaint mantle
#

nope

#

just use education edition heads

#

;)

crude charm
#

but they aint in java edition?

#

they are edu edition

lyric grove
#

I don’t see why spigot / mojang would patch it, it’s not really a big issue, and could be great for servers e.g. for transparent head cosmetics

#

Oh rip

junior moss
#

hi. im new here. my server has not been working right. it loads up right but whenever anybody tries to log in it says "you have been idle for to long" any ideas?

quaint mantle
#

*pretty sure its in ticks

#

lmao

round python
#

how do I look at the source code

#

mc

#

basically im trying to make it so that dolphins are tameable and rideable

#

but I kinda need to look at the dolphin class

#

oh

#

I see

#

how do you guys make plugins without looking at the source?

#

or do you just do it this way

unkempt peak
#

Hey so i am trying to change the skin of an entityplayer in 1.16 and for some reason i can't get it to update. Unless i am missing something i should be able to set the properties field of the GameProfile with the new skin right? here's how i tried to do that https://paste.md-5.net/usiguyasev.cpp. there are no errors but it is not changing the skin. Can somone help?

And just so you know ik that the SkinData is not the issue because that works when spawning in the entity just not for updating it and i have this method for changing the name and it works fine https://paste.md-5.net/yeqawunepa.cpp

round python
#

so how would I look at the dolphin entity class using spigot API

#

ohh I got it

unkempt peak
#

what version do you need the source for?

round python
#

1.17

#

.1

#

1.17.1

unkempt peak
#

what is the full classpath?

#

i have source code for 1.17 and 1.16

round python
#

full classpath?

unkempt peak
#

like the path for the class

#

where is it at?

round python
#

how do I find that out

unkempt peak
#

check the import

#

what does it say?

round python
#

import of what

unkempt peak
#

dolphin

round python
#

its just an interface for some reason

unkempt peak
#

wait nvm

#

yeah that's not nms

#

its an interface of WaterMob

#

what do you need the source for?

#

yeah

#

you shouldn't need nms for that

quaint mantle
#

How do I send messages in sequences after an interaction?

#

Example:

#

Click, show message one

#

Click, show message two

#

Click, show message three

unkempt peak
#

just use a list

#

yeah

#

click > show next item on list

quaint mantle
#

yes

unkempt peak
#

dont need a command just use an event

#

what are they clicking on to show the message?

quaint mantle
#

Example:
interact mob click 1 : send "Hello 1"
interact mob click 2: send "Hello 2"
interact mob click 3: send "Hello 4"

#

in sequence

unkempt peak
#

yes

quaint mantle
#

and return for one.

unkempt peak
#

check if they click the mob and display next thing on the list

quaint mantle
#

The message in sequence is canilized after the click.

unkempt peak
#

!docs

#

?docs

#

idk

unkempt peak
#

lol

quaint mantle
unkempt peak
#

what is the issue?

quaint mantle
unkempt peak
#

and???

#

what is wrong with them

#

what is your problem

quaint mantle
#

and I don't know how to do this.

unkempt peak
#

ok

#

iterate through a list when they click the mob or whatever event your using

#

event > get next index on list > send message in list

#

I think an indexed list would be easier to use for a beginner

#

@quaint mantle if you still cant understand this please learn some basic java before attempting to code plugins. this is a very easy problem that only needs a basic understanding of java to do

#

Ok but still. im not saying take a expert java course just watch a couple of tutorials and learn the basics

#

Trust me it will make things so much easier

#

I had the same mindset at first and i kept running into simple issues like this. Once i took the time to actually learn and understand what i was coding it made everything 10x easier

#

i mean i learned off YouTube and google and there's nothing wrong with that if you actually do it

#

nice

#

js or java apps?

#

or just general java

#

cool

warm galleon
#

Did 1.17.1 remove packets or something

unkempt peak
#

no?

warm galleon
#

theres a new class to import and there is no getHandle.playerConnection

unkempt peak
#

yes its renamed

warm galleon
#

to some obfusicated stuff?

#

damn

unkempt peak
#

i think its b if i remember correctly

warm galleon
#

ok

#

thanks

#

yeah b returns A PlayerConnection

#

wont let me compile bc of it not finding the field

unkempt peak
warm galleon
#

yea

#

DUDE WHY

unkempt peak
#

??

warm galleon
#

Particles are ALSO OBFUSICATED

#

how tf do i know what BubblesPop is now

unkempt peak
#

yeah... everything is in 1.17

#

its really annoying

warm galleon
#

ae???

unkempt peak
#

no idea lol

#

ig experiment and find out

inland scaffold
#
public class HealCommand implements CommandExecutor{
    public boolean isInt(String str) {
        try {
            Integer.parseInt(str);
            return true;
            
        } catch( NumberFormatException e) {
            return false;
        }
    }
    @Override
    public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {

        Player player = (Player) sender;
        
        if (player.hasPermission("niksplugin.heal")) {
            if(isInt(args[0])) {
                
                player.setHealth(args[0]);
                player.sendMessage(ChatColor.RED + player.getName() + " was succsesfully healed!");
            }
            
        }
        
        
        
        return false;
        
    }

}


how come player.setHealth(args[0]);
is underlined in eclipse?!

eternal oxide
#

because there is no setHealth(String)

unkempt peak
#

You need to parse it

quaint mantle
eternal oxide
#

well yes

#

Read teh Javadocs. Its a double

unkempt peak
#

How do i get the BlockPositon of a player? im trying to teleport an entityplayer and it says this The method teleportTo(WorldServer, BlockPosition) in the type Entity is not applicable for the arguments (WorldServer, Location)

eternal oxide
#

BlockPosition is Craft not API

unkempt peak
#

i couldn't find a getLocation or getPostion method for entityPlayer

eternal oxide
#

so probably some getHandler method or something

quaint mantle
#

i guess either way

#

im pretty sure its deprecated

eternal oxide
#

RegionCoordinates regionCoords = RegionCoordinates.fromLocation(blockLocation);

#

at least thats what Google says it used to be

unkempt peak
#

this seems to work but i can't pass in pitch and yaw
new BlockPosition(player.getLocation().getX(), player.getLocation().getY(), player.getLocation().getZ())

eternal oxide
#

those are location

#

not a BlockPosition

unkempt peak
#

the teleportTo is asking for a BlockPostion

eternal oxide
#

Yes, BlockPosition takes 3 values.

#

Is there a reason you are not using teh API teleport?

unkempt peak
#

because it is an npc

eternal oxide
#

ah

unkempt peak
#

and not a real player

#

how does setHeadRotation work? there is only 1 float

#

i think i need to tp and set yaw/pitch seperatly

eternal oxide
#

No clue I avoid non API

unkempt peak
#

nvm i can just get the players HeadRotation

eternal oxide
#

Yes as teh TP only takes a BlockPosition

unkempt peak
#

now its saying i cant cast craftplayer to entityplayer

eternal oxide
#

entityPlayer is NMS

unkempt peak
#

ik

#

how can i get an EntityPlayer from a Player

eternal oxide
#

getBukkitEntity (googlesays)

unkempt peak
#

Thats the other way around

#

i need to get an EntityPlayer of a player

eternal oxide
#

used to be EntityPlayer entityPlayer = (EntityPlayer) ((CraftPlayer) player).getHandle();

vale ember
eternal oxide
#

are you sure you want that level of power?

#

your max flight time is 1 to 129

#

max allowed is 128

#

however thats 2 minutes

vale ember
#

power is flighttime?

eternal oxide
#

yes, each point = half a second

prime reef
#

Question: how can I reset the HoverEvent/ClickEvent when building formatted messages?

eternal oxide
#

0 - 128

vale ember
eternal oxide
#

your current random picks a number between 1 to 129

#

yes

#

you add +1

#

so you are picking 1 to 129

#

0 to 128 +1

vale ember
#

still not working

eternal oxide
#

set it to a fixed value for testing

#

does teh firework fly for the specified time?

vale ember
#

can i set power to float (e.g 0.5)?

eternal oxide
#

no

#

half second increments

vale ember
#

with power 1 it works but only little particle instead of explosion what i am doing wrong?

eternal oxide
#

you are creating it with a random type so its going to be different each time

vale ember
#

its same like this

eternal oxide
#

try putting the type earlier in the build cycle? Only a guess as I've not used fireworks

vale ember
#

nothing changed

eternal oxide
#

no clue then

#

If you are getting the same type every time, put yoru new Random outside your method

vale ember
#

i fixed it i forgot to call method .addEffect

prime reef
#

I'll ask again: hoverevent and click event don't go away if they're set to null in the next .append. how can I make them change?

#

because right now, I'm having an issue where the entire line of text has the same hover/click event as the first button, except for the second button.

#

the second button works properly but it goes straight back to its bullshit at the next component

eternal oxide
#

did you create them all in one or did you use the ComponentBuilder to string them together?

prime reef
#

the latter

#
 BaseComponent[] topDivider = new ComponentBuilder().append(partialDivider)
                .append(prevButton)
                .append(partialDivider).event((HoverEvent) null).event((ClickEvent) null)
                .append(openingBracket).color(secondaryColor)
                .append(String.format("%s / %s", pageNumber + 1, collection.size() / itemsPerPage)).color(primaryColor)
                .append(closingBracket).color(secondaryColor)
                .append(partialDivider)
                .append(nextButton).event((HoverEvent) null).event((ClickEvent) null)
                .append(partialDivider).create();
        BaseComponent[] titleDivider = textDivider((topDivider.length - title.length()) / 2);
        BaseComponent[] titleComponent = new ComponentBuilder().append(titleDivider)
                .append(title).color(primaryColor)
                .append(titleDivider).create();
        BaseComponent[] bottomDivider = textDivider(topDivider.length);```
#

you can ignore the variable names

eternal oxide
#

casting null? You can;t cast null

prime reef
#

compiler freaks out if you don't

eternal oxide
#

null is literally nothing, it can not be cast. That should not even compile

lofty laurel
#

how would i make a command where for example i do /discord and a message says "click here to join our discord" how would i make that message clickable so it can forward the link to them?

prime reef
#

there are two .event methods

#

that absolutely compiles lmao

eternal oxide
#

I'm very suprised

prime reef
#

the compiler doesn't understand which .event() method to point to if you don't explicitly indicate the type of the parameter

#

that is how compilers work.

eternal oxide
#

google says you can cast null it seems, but it will be a null reference

prime reef
#

correct

#

the null reference is fine - I'm just struggling to reset things

#

maybe i'll try an empty hover/click event

chrome beacon
#

Since that's a builder why are you setting the hover and click event if you don't want them. I'd expect default to be null

prime reef
#

the buttons in particular

#
public static BaseComponent[] textButton(String buttonText, String hoverText, String commandString, ChatColor textColor) {
        return new ComponentBuilder(openingBracket).color(secondaryColor)
                .append(buttonText).color(textColor)
                .event(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new Text(hoverText)))
                .event(new ClickEvent(ClickEvent.Action.RUN_COMMAND, commandString))
                .append(closingBracket).color(secondaryColor)
                .create();
    }```
#

anyway setting up click/hover events that do absolutely nothing worked

#

this only shows up over the arrow now, as it should

#
    private static final ClickEvent CLICK_NONE = new ClickEvent(ClickEvent.Action.RUN_COMMAND, "");
    private static final HoverEvent HOVER_NONE = new HoverEvent(HoverEvent.Action.SHOW_TEXT, new Text(""));```
#

replaced null with these, for reference

vale ember
#

how to send BlockAction packet via ProtocolLib? (i googled but didnt found)

lofty laurel
#

figured it out

eternal oxide
#

use a builder to chain (ComponentBuilder)

lucid bane
#

hi, i have a question
BukkitRunnable task = new BukkitRunnable() {~~};
task.runTaskLater(plugin, 60);

if i go
task.cancel();
in 3 seconds, a task cancel properly?

hybrid spoke
#

but yeah, if you cancel a task, the task will get cancelled

lucid bane
#

thx

opal juniper
#

easy way to listen to every event?

ivory sleet
#

Yeah sort of

#

You can inject an EventExecutor into every HandlerList or something iirc

#

Quite the hacky thing

hybrid spoke
#

you could go the easiest and listen to every event yourself

#

HandlerList::getHandlerLists() gives you all possible events you can listen for. Then just create your own RegisteredListener instance (which can be just one, for all events).
https://www.spigotmc.org/threads/listen-to-all-events.222306/

opal juniper
#

epic

#

then i can just cancel as many as possible

#

or do something rather Troll

hybrid spoke
#

yeah break minecraft

tidal skiff
#

can anyone help? spigot is seeing my plugin but its not executing anything at all in it

opal juniper
#

well did it enable

tidal skiff
#

not even Bukkit.broadcastMessage("ender boots active!"); in the onEnable()

opal juniper
#

look for an error in the console

#

most likely a plugin.yml issue

tidal skiff
#

oh there is an error

#

its this:
public static void init(){
createEnderBoots();
}

#

that shouldnt be causing any errors

tidal skiff
#

it breaks without static

opal juniper
#

static abuse incoming

tidal skiff
#

Non-static method 'createEnderBoots()' cannot be referenced from a static context

opal juniper
#

?paste can you paste ur main class

undone axleBOT
tidal skiff
opal juniper
#

and ItemManager

tidal skiff
#

oh wait

#

wtf

#

sr.shape(" yu76yuh"

#

why tf is that there

opal juniper
#

yeah i was gonna say

tidal skiff
#

oh right my cat jumped on my desk LOL

opal juniper
#

but it should have broadcasted before it got to that

#

xD

tidal skiff
#

yeah

opal juniper
#

you don’t need to make your main class final

#

that’s probs not the issue

tidal skiff
#

it says shaped recipe must be rectangular but it is

#

java.lang.IllegalArgumentException: Crafting recipes must be rectangular

opal juniper
#

umm well see if there is an error now

#

oh

#

idk

#

i’m not familiar with crafting

tidal skiff
#

gah

#

um? it fixed? its still not broadcasting tho

#

ok well im not complaining

hybrid spoke
tidal skiff
#

what does teleport(); accept?

#

im trying to give it x y and z but its not agreeing with me

#

like teleport(locX, locY, locZ);

#

nvm

#

reading the docs takes you far kid

quiet ice
tidal skiff
#

how would i randomly teleport a player like an enderman teleports?

#

within like 30 blocks

quiet ice
#

enderman teleports are pretty non-random actually

eternal oxide
#

pick a random direction, random distance, then getHighestYAt

lethal hawk
#

anyone know any good open source projects for multiplayer servers using bungeecord and spigot i can take a look at to study

tidal skiff
#

ty

quiet ice
#

Well, the thing is that endermans cannot teleport to inaccesible terrain and such stuff. I believe mojang just sets the movement speed to very high numbers for a small amount of time

iron condor
#

Hey I need to save an inventory after a player made changes to it, tired on clicked event but it fires before the changes

#

and waiting one tick after a click can break things

eternal oxide
#

why do you think waiting a tick would break it?

iron condor
#

becuase it does

#

a long story

eternal oxide
#

Then you are doing something wrong

lethal hawk
#

can anyone point me towards some good tutorials for making multiplayer servers like hypixel and mineplex with bungeecord and spigot

#

i think ive learnt spigot and am currently learning bungeecord rn, but i cant understand how to really put the two together to make a functional server

wary harness
#

@lethal hawk honestly u are in wrong movie then

quiet ice
#

Bungee is an aging standard, many move to velocity nowadays

grim ice
tidal skiff
#

LOL

#

nah its a different kind of ender boot @grim ice

compact cape
#
[ERROR] Failed to execute goal on project AGMEnchants: Could not resolve dependencies for project me.ashenguard:AGMEnchants:jar:5.0: Could not find artifact org.spigotmc:spigot:jar:1.17.1-R0.1-SNAPSHOT in spigotmc-repo (https://hub.spigotmc.org/nexus/content/repositories/snapshots/) -> [Help 1]

I keep getting this when I try to build on https://jitpack.io/#xyz.agmdev/AGMEnchants
You can see the code at https://git.agmdev.xyz/AGMEnchants

#

Any suggestion why this keep happening?

eternal oxide
#

You are depending on spigot not spigot-api so you must run BuildTools

quiet ice
#

not sure you can do that with jitpack

#

Best is to isolate your API so you can still bind to it without depending on spigot

upbeat sky
#

Hey, I'm trying to build my plugin using maven for the first time. My console says I've built the plugin for java 16 but I've selected 1.8 in Project Structure and I've changed version in pom.xml. Anyone knows how to fix?

#
[12:16:24 ERROR]: Could not load 'plugins/AresLobbyPlugin-1.0.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: nl/naimverboom/areslobbyplugin/AresLobby has been compiled by a more recent version of the Java Runtime (class file version 60.0), this version of the Java Runtime only recognizes class file versions up to 52.0
eternal oxide
#

you are trying to run it on java 8 but built on 16

upbeat sky
#

I know, thats the issue

eternal oxide
#

then run your server on 16

upbeat sky
#

I've changed from java 16 to 8

#

No, I'm running an older version

eternal oxide
#

what MC version?

upbeat sky
#

1.12.2

eternal oxide
#

then set a source/target in your pom

upbeat sky
#

I have

eternal oxide
#

clearly not correctly

upbeat sky
#
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
            <version>r05</version>
        </dependency>
        <dependency>
            <groupId>org.spigotmc</groupId>
            <artifactId>spigot-api</artifactId>
            <version>1.12.2-R0.1-SNAPSHOT</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>

    <properties>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
    </properties>```
#

Seems fine to me?

eternal oxide
#

looks ok

upbeat sky
#

Restarting my server multiple times seems to have fixed it, weird

eternal oxide
#

did you try to update your jar with the server still running?

upbeat sky
#

no, i restarted it

eternal oxide
#

restarted? did you stop it before putting a new jar on

upbeat sky
#

yeah

shadow skiff
#

Piling onto my issue from yesterday, with the bots thing, So I did a AsyncPlayerPreLoginEvent like LMBishop told me to, but now it just kicks any player that tries to join the server

package me.Teric7.Nameban;

import org.bukkit.Bukkit;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.AsyncPlayerPreLoginEvent;
import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.java.JavaPlugin;

public class Nameban extends JavaPlugin implements Listener {
  public void onEnable() {
    saveDefaultConfig();
    Bukkit.getPluginManager().registerEvents(this, (Plugin)this);
  }
  
  @EventHandler
  public void onLogin(AsyncPlayerPreLoginEvent event) {
    boolean containsBanned = false;
    for (String s : getConfig().getStringList("banned-words")) {
      if (event.getName().toLowerCase().contains(s.toLowerCase()))
        containsBanned = true; 
    } 
    if (containsBanned)
      System.out.println("§aThis player should've been banned!");
    event.disallow(AsyncPlayerPreLoginEvent.Result.KICK_BANNED, "§4§lGet outta mah server bot!");
      System.out.println("§4According to the code, bots have been banned");
    
  }
}

compact cape
chrome beacon
shadow skiff
#
banned-words:
   - McDown
   - McDown_
   - McDown_pw
   - McDown_pw_
chrome beacon
#

So why are you looping that

#

I don't see a reason

shadow skiff
#

true

eternal oxide
compact cape
chrome beacon
shadow skiff
chrome beacon
#

Show new code

#

?paste

undone axleBOT
iron condor
lost matrix
iron condor
#

within

lost matrix
#

Usually thats not possible. What are the circumstances?

lost matrix
maiden briar
#

Is it normal that IntelliJ uses 2GB of RAM, even if I am not running any test server?

lost matrix
maiden briar
#

How do you mean spare?

ivory sleet
#

tvhee r u using gradle or maven?

maiden briar
#

Maven

ivory sleet
#

Alright that might take some additional ram occasionally

grim ice
#

my intellij uses 700mb even tho im sort of in ab ig project rn

maiden briar
#

Ok never knew that

grim ice
#

big*

maiden briar
#

Yes I had that also before, but it now uses 2GB

grim ice
#

it starts using more as u make more projects

#

delete some stuff or reinstall intellij

maiden briar
#

And I only have 8GB, and also want to run minecraft

maiden briar
#

Reinstall might be a good idea

hybrid spoke
#

invalidate your cache

grim ice
#

for me i close intellij and open mc again

maiden briar
#

Already did

grim ice
#

or just hire beta testers liek i did B)

lost matrix
grim ice
maiden briar
#

2 minecraft instances

grim ice
#

:D

maiden briar
#

Yes I know that

grim ice
#

so i dont use my laptop resources :D

maiden briar
#

The only server you can upload custom plugins

grim ice
#

im just so big brain man

#

jk

maiden briar
#

Ok good idea, let's use that

lost matrix
#

You can turn view distance down and run your clients with 512Mb each

grim ice
grim ice
#

is that even possible

maiden briar
#

Yes, ran it with 1GB, and view distance is 7

grim ice
#

WTF

#

HOW

#

CAN MC EVEN RUN WITH 1GB LMFAO

hybrid spoke
#

so it crashes my computer

grim ice
#

its also a good way to know if ur plugin is fine or not

#

as ur limited by 1gb raam server

maiden briar
#

1gb will instantly crash the server

grim ice
#

if it doesnt run in it then ur plugin has some bad shit in it

#

no

#

if ur plugin doesnt run on a 1gb ram server

#

u have smth wrong

maiden briar
#

No the server doesn't boot up in 1gb

grim ice
#

thats my opinion ig

grim ice
#

bro wtf u saying

maiden briar
#

I get OutOfMemoryException if Paper is trying to load the world in 1gb

grim ice
#

i have like 5 servers running on 1gb ram

#

well thats smth with ur pc idk

#

for me

#

even with local servers

#

1gb ram is enough

grim ice
maiden briar
#

I don't know what the issue causes

lost matrix
grim ice
#

even if u run 10 copies of my plugin im working on rn

#

it shouldnt crash

grim ice
#

i run servers easily on 1gb

#

dunno bout yall

#

get gud

maiden briar
silver shuttle
#

Anybody knows a library that can be used to put graphs that change dynamically on maps?

grim ice
lost matrix
# grim ice uh no

Yes. Ive build dockers for 1.12, 1.13 and 1.16.
Allocating 256Mb for the os and at least 1700Mb for minecraft.
1 Gb is a stretch unless you have a custom server jar.

grim ice
#

if u cant run ur plugin in server.pro u probably shouldnt release that plugin

maiden briar
#

Yes, ok

lost matrix
grim ice
#

smie

#

smile

silver shuttle
grim ice
#

do u think mc can run on 750mb or smth LOL

#

I wanna actually test that

silver shuttle
#

no i dont think so

#

lemme test

#

with optifine?

hybrid spoke
grim ice
#

yes

grim ice
hybrid spoke
#

what if my plugin is intended to crash the server

grim ice
#

ur thing is leaking memory or just running so poorly

lost matrix
hybrid spoke
#

as a stresstest

#

huh?!?!

grim ice
maiden briar
#

At server.pro my plugin (and the server) loads in 12 seconds

grim ice
hybrid spoke
grim ice
#

it costs like 3$ for the botss

#

which is forbiden maybe

silver shuttle
#

on hypixel

grim ice
#

woah

#

lmfao

#

it depends on ur other stuff tho

#

ram isnt everything

lost matrix
silver shuttle
#

yeah, ram speed matters and then GPU memory

#

I always just throw 8 gigs onto my fabric vanilla pack with OptiFine lol

grim ice
#

yeah thats bad

silver shuttle
#

for no reason whatsoever 😂

grim ice
#

ur wasting memory

silver shuttle
#

except 64 chunks viewing distance

grim ice
#

btw this isnt healthy for ur pc iirc @silver shuttle

silver shuttle
#

why wouldn't it?

grim ice
#

idk ur using too much resources for no reason at all

#

that will probably shorten your pc shit life

silver shuttle
#

Na it won't, it just claims that amount of ram on the process start, it doesnt write 8 gigs all the time

#

also RAM doesn't have that short of a r/w cycles as SSD's have

#

what really is killing my pc is this MySQL server I am running -.-

lost matrix
next stratus
#

hey, i was getting some help with my plugin yesterday but it seems to be duplicating the items still. I can't work out if I'm doing something wrong or what. I have code setting the item on cursor to null but it still duplicates the items :/

next stratus
#

I'm trying to destroy the item dropped onto the other itemstack but the stack of which was dropped onto stays

silver shuttle
next stratus
#

Currently if I drop the item onto the other it duplicates the target item

silver shuttle
#

How do I migrate an ArrayList of Strings to an ArrayList of Integers?

hybrid spoke
hybrid spoke
silver shuttle
#

cool cool

hybrid spoke
lost matrix
grim ice
upbeat sky
#

Hey guys, is there a way to get the client version of the player?

next stratus
#

I don't think you got it ;p

#

It was a joke sayin' to ask. Anyhow you could use packets or something?

upbeat sky
#

ow wow im dumb, i get it now haha

hybrid spoke
#

make a survey

next stratus
#

Does InventoryDragEvent even work on a players inventory? It's not firing at all for me

next stratus
#

I've moved multiple items in my inventory and no messages? and no errors

hybrid spoke
#

so debug

#

make sure you registered it

#

annotated it with EventHandler

#

etc etc

next stratus
#

Oh the drag event is only fired in the crafting tables and such i think

#

yeah it is

unreal quartz
next stratus
#

i'll try that, I didn't think this'd be so complex 🥲

next stratus
unreal quartz
#

are you sure it is actually duplicated and not your client bugging out

next stratus
#

how could i test that?

unreal quartz
#

try and do something with one of the "duplicates"

lean gull
#

does anyone have a good tutorial on teams?

unreal quartz
#

microsoft teams?

lean gull
#

like chat ranks, suffixes, tab stuff

#

player nametags

unreal quartz
#

?google

undone axleBOT
lean gull
#

i did

#

oh and options like collision, friendly fire

unreal quartz
#

well the javadoc has all of that

lean gull
lean gull
#

ok but how do i make teams, how do i set the team's options

unreal quartz
#

that is how you set the teams options

lean gull
#

line of code for that?

unreal quartz
#

you need a scoreboard to make teams against

lean gull
#

wdym against

unreal quartz
#

if you can't interpret the javadoc then maybe you should learn the language first

lean gull
#

anddd blocked

unreal quartz
#

yikes

#

i cannot help somebody unwilling to learn the language

lean gull
#

got tired of people telling me to learn 24/7, this is how i learn

unreal quartz
#

?learnjava

undone axleBOT
unreal quartz
#

nobody will help you here

#

i imagine you'll just get clowned out of paper as well

eternal oxide
#

I doubt he'd make it in the door to paper

next stratus
#

What code was used here by the way?

chrome beacon
#

This I'm guessing

silver shuttle
next stratus
#

I'll try this again, see how this works

silver shuttle
#

lol

next stratus
#

yeah, it doesn't work

#

is there a bug with 1.17 then?

lost matrix
lost matrix
next stratus
#

yeah I know but I'm using the exact same code to the dot and nothing

lost matrix
next stratus
#

yep

#

it duplicated the emerald

chrome beacon
#

?paste your class

undone axleBOT
next stratus
lost matrix
#

Then you have another listener that screws up the first one.
Set the priority of this listener to HIGH.

next stratus
#

I'll test the priority 2s

ancient plank
#

black hole eyesblur

next stratus
#

👀

#

and it won't work again

lost matrix
next stratus
#

I can't work out what though

#

There's legit nothing else using this event

#

I don't know where I'm going wrong at this point, I've checked the code multiple times also

lost matrix
#

Do you have any other plugins installed?

next stratus
#

I do i could remove them?

lost matrix
#

Always test your plugin in a clean environment.

next stratus
#

I'm in a clean environment and it does the same thing I don't know what's going on at this point

#

alright, it's not duplicating but it's not destroying it hm
edit: it duplicated 🙂

tardy delta
#

cant i use lambda for Bukkit.getScheduler().scheduleSyncRepeatingTask

hybrid spoke
#

what if you need to cancel it BEFORE

#

that doesnt makes sense but the most errors doesnt make sense

next stratus
#

I could give you the exact code for the listener?

hybrid spoke
#

you could provide your exact code and a video of what is happening

#

so we dont have to imagine what happens ourself

maiden briar
#

I want to remove the world of the server and regenerate a complete new one, is it safe to do this in onEnable ?

severe marsh
#

How can I log certain in-game events on discord using webhooks?

eternal oxide
#

onLoad is safer

maiden briar
#

It is the main world

#

Ok

eternal oxide
#

then no

maiden briar
#

Ok thank you

tardy delta
#

?paste

undone axleBOT
tardy delta
eternal oxide
#

The second as the first will always start with var = 0

tardy delta
#

yea true

maiden briar
#

Bukkit.getPluginManager().disablePlugin(); does not work in onLoad()

tardy delta
#

onEnable?

maiden briar
#

I mean, I do things with the world (recreate it), but if the world name is null I want to disable the plugin

#

And I do this stuff in onLoad

eternal oxide
maiden briar
#

Then just adding it as fist in onEnable?

eternal oxide
#

if you want to prevent it loading on some condition in onLoad, you set a bool error, then check that bool in onEnable

maiden briar
#

Ok good idea, thanks

eternal oxide
#

also do not call unload in onEnable

#

throw an exception

maiden briar
#

Ok, but does that stop the plugin?

eternal oxide
#

yes

maiden briar
#

Because I don't want to spam the console with an exception, I'd better use 1 line

eternal oxide
#

I'd not guarantee how unload calledc in onEnable for itself would behave

maiden briar
#

Ok, then we'll test it

eternal oxide
#

probably quite unreliably

maiden briar
#

[ERROR] .... Error occurred while enabling Plugin v1.0.0 (Is it up to date?) java.lang.IllegalStateException: zip file closed

#

It indeed does not work, how can we do it else?

eternal oxide
#

throw an exception

maiden briar
#

Ok

eternal oxide
#

your plugin will show up red in the list then

maiden briar
#

Yes exactly, because it did not load

#

I will throw RuntimeException then

#

Ok, but still much console spam

eternal oxide
#

if you want to eliminate all spam, schedule a task to run 1 tick after onEnable to unload your plugin

regal lake
#

I need some help with a custom placeholder.
My code looks like this: https://paste.md-5.net/ihegoyilun.java
The Problem is that the placeholder don't work e.g. /papi parse me %amethyst_golem_active% prints %amethyst_golem_active%.
In the console i can see that the extension was registered [PlaceholderAPI] Successfully registered expansion: amethyst_golem.
Also the method onRequest will not be called...
Any ideas ?

tardy delta
#

would it be a good way to spawn particles (like trails) async?

maiden briar
#

I want to make Multiverse-Core load before my plugin, how can I specify that in the plugin.yml? Because if I add it to loadbefore it will FIRST load my plugin and then Multiverse

tardy delta
#

soft depend

sacred ice
tardy delta
#

server side

maiden briar
#

Ok, but if Multiverse is not present, will my plugin still load?

tardy delta
#

yes

maiden briar
#

Ok thx

tardy delta
#

thats the difference between soft depend and depend

maiden briar
#

Ok never knew that, good to know

sacred ice
#

if it would be client sided it wouldn't matter so much, if its server sided idk

maiden briar
#

Bukkit.getWorld() returns null (AFTER it is loaded with Multiverse (Preparing start region for dimension minecraft:lobby), if I put in "lobby" it returns null

tardy delta
#

try restart the server i had that before

maiden briar
#

Ok

tardy delta
#

not sure if that ll work

maiden briar
#

Nope does not fix

#

Oh I see, it returns as "" if i get it from the config

quaint mantle
#

Hello, I have a problem with my inventory
It has to do with the fact that if I have root privileges, I have the saved items after my death

sullen dome
maiden briar
#

I know

sullen dome
#

and afaik, you need to load the world manually

maiden briar
#

I see the problem, I split the location "" and not " ", so solved

sullen dome
#

ah

maiden briar
#

Still thanks for trying to help

sullen dome
#

i remember having to use new WorldCreator("lobby").createWorld(); to load a world in, is that still a thing?

severe zenith
#

hey, what reasons can it have that i dont see the scoreboard?

sullen dome
#

your plugin needs to show it to player's individually

severe zenith
#

yeah ik: Player.setScoreboard(Scoreboard)

#

i did

sullen dome
#

what does your sb look like (code)

maiden briar
#

Then you did not add any score

#

And did you set DisplaySlot.SIDEBAR?

#

To your main objective

rigid hazel
#

How can I detect a block, but not from the location? I need to know this, because if I check for example if a block in a certain chunk or a certain location breaks, the OnBreakEvent don't get triggered, because the chunk was unloaded.
Please ask questions to this question, if you have some.

severe zenith
maiden briar
#

Np

#

I struggled one day with this, and also forgot those things

rigid hazel
rigid hazel
tardy delta
#

for some reason these folders are there, cant i replace them?

rigid hazel
#

Or is this plugin from you?

tardy delta
#

yes

#

idk why but there are two packages or something

rigid hazel
#

Then just drag and drop them like you want

#

Just make sure you clear the package before package it again.

rigid hazel
tardy delta
#

i cant drag it

rigid hazel
#

Why not?

#

Any markings or text?

tardy delta
#

no

rigid hazel
#

Perhaps Conclure know

sullen dome
rigid hazel
ivory sleet
#

But yeah that looks cursed

sullen dome
rigid hazel
sullen dome
#

you cannot cancel an event that doesn't get called

#

obv

rigid hazel
#

Right.

#

But why the event just get called when the chunk is fresh loaded?

sullen dome
#

no idea

rigid hazel
#

Is this a bug?

sullen dome
#

dont know

rigid hazel
#

Ah wait @sullen dome

sullen dome
#

yea?

#

dont need to ping me

rigid hazel
#

Sorry.

#

This is the code. i debugged a bit

#
[15:54:45 INFO]: [CCRP] Triggered event
[15:54:45 INFO]: [CCRP] Material is Gold or Beacon
[15:54:45 INFO]: [CCRP] Guilds they exist
[15:54:45 INFO]: [CCRP] Guild owns chunks
[15:54:45 INFO]: [CCRP] Current Owner: def07ab3-b6db-4355-b4d2-6c101be04c78
[15:54:45 INFO]: [CCRP] Guild owns chunks
[15:54:46 INFO]: [CCRP] Current Owner: e7cda1a7-5884-48b5-bd31-521f50bc8ad3
tardy delta
#

thats alot of else ifs

rigid hazel
sullen dome
#

no, else and if's

rigid hazel
#

Äh. Sorry

tardy delta
#

well uhh

rigid hazel
#

I edited it.

sullen dome
#

what's your issue now?

tardy delta
#

german 🙂

sullen dome
#

german

rigid hazel
#

No. German

tardy delta
#

guten tag

sullen dome
#

hallo

tardy delta
#

🥰

sullen dome
#

gang gang

rigid hazel
#

Guten Tag.

sullen dome
#

heiße*
but both are working

rigid hazel
tardy delta
#

ich bin eine hund

#

uuh

sullen dome
#

ein*

tardy delta
#

idk my german sucks

lost matrix
#

Was wird das denn hier? Invasion?

sullen dome
#

xd

#

Rein da

tardy delta
#

ja genau

sullen dome
rigid hazel
lost matrix
# silver shuttle lol

Ok im close. Ive written an algorithm that can scale any data set to an arbitrarily small horizonal and vertical quantization interval.
The last image is 128x128

next stratus
#

Hey @lost matrix sorry for ping I might have found the issue after all this time 🥲

next stratus
#

Guess what event doesn't fire in creative mode...

#

OFC IT WAS.

lost matrix
#

Yes there is an CreativeInventoryEvent because item handling in creative is client authoriatative.

next stratus
#

Ah... thank you so much for helping though!

#

I thought it all did the same thing 🥲

rigid hazel
#

Hello. Anyone know, where I can find the symbols you can use in spigot TextComponents?

tardy delta
#

is returning in an event the same as event.setCancelled(true) ?

lost matrix
rigid hazel
next stratus
#

Lemme just...Scream.

tardy delta
#

owh i got it

rigid hazel
next stratus
#

but yeah thank you so much for helping all that time

lost matrix
# rigid hazel Can you send <@!220605553368498176>?

You would have to go through the unicode table and test each one out.
Here are some that i know will work:

☮ ✿ ✈ ♋ ☠ ☯ ♥ ✌ ✖ ☢ ☣ ☤ ❤ ❥ ❦ ❧ ♡ ✗ ✘ ♒ Ω ♦ ♠ ♥ ♣ ♢ ♤ ♡ ♧ ✦ ♔ ♕ ♚ ♛ ★ ☆ ✮ ✯ ☾ ☽ ☼ ☀ ☁ ☂ ☃ ☺ ♪ ♫ ♬ ✄ ✂ ✆ ✉ ∞ ♂ ♀ ☿ ▲ ▼ ₪ ✓ ✔ ✕ ☥ ☦ ☧ ☨ ☩ ☪ ☫


☬ ☭ ™ © ® ℗ ¿¡ № ∃ ⊥ ∀ ☹ ∞ ⌘ 文 ⑂ ஜ ๏ ت ツ ッ シ Ü ⅟ ½ ⅓ ¾ ⅔ ⅕ ⅖ ⅗ ⅘ ⅙ ⅚ ⅛ ⅜ ⅝ ⅞ Ⅰ Ⅱ Ⅲ Ⅳ Ⅴ Ⅵ Ⅶ Ⅷ Ⅸ Ⅹ Ⅺ Ⅻ ⅰ ⅱ ⅲ ⅳ ⅴ ⅵ ⅶ ⅷ ⅸ ⅹ ➀ ➁ ➂ ➃ ➄ ➅ ➆ ➇ ➈ ➉ ➊ ➋ ➌ ➍ ➎ ➏ ➐ ➑ ➒ ➓ ⓐ ⓑ ⓒ ⓓ ⓔ ⓕ ⓖ ⓗ ⓘ ⓙ ⓚ ⓛ ⓜ ⓝ ⓞ ⓟ ⓠ ⓡ ⓢ ⓣ ⓤ ⓥ ⓦ ⓧ ⓨ ⓩ ☚ ☛ ☜ ☝ ☞ ☟ ✙ ✚ ✛ ✜ ✝ ✞ ✠ ❂ ⋆ ✢ ✣ ✤ ✥ ✦ ✩ ✪ ✫ ✬ ✭ ✮ ✯ ✰ ★ ✱ ✲ ✳ ✴ ✵ ✶ ✷ ✸ ✹ ✺ ✻ ✼ ❄ ❅ ❆ ❇ ❈ ❉ ❊ ❋ ╰☆╮ ✡ ❂ -‘๑’- ✽ ✾ ✿ ❀ ❁ ❃ ❋ ♪ ♫ ♩ ♬ ♭ ♮ ♯ ° ø ⊙ ☉ ❣ ✉ ✍ ✎ ✏ ✐ ☑ ☐ ☒ ␟ ␘ ❢ ➟ ➡ ➢ ➣ ➤ ➥ ➦ ➧ ➨ ➚ ➘ ➙ ➛ ➜ ➝ ➞ ➸ ♐ ➲ ➳ ➳ ➴ ➵ ➶ ➷ ➸ ➹ ➺ ➻ ➼ ➽ ← ↑ → ↓ ↔ ↕ ↖ ↗ ↘ ↙
lost matrix
rigid hazel
#

Wow. I believe in german developers. xD

tardy delta
#

?paste

undone axleBOT
tardy delta
lost matrix
#

Spigot has a method to vanish a player from someones sight and also a method to check one player can see the other.

lost matrix
#

Wait it does

tardy delta
#

the last part

lost matrix
#

Yeah. Its a bit convoluted

tardy delta
#

but do you mean player.hideplayer for that vanish thing?

lost matrix
#

Yes

tardy delta
#

yea my vanish method does that and more things

silver shuttle
lofty laurel
#

how could i broadcast a random message from a json file every 5 minutes? i haven't really found anything online

tardy delta
#

create a runnable

#

the json part i dunno

silver shuttle
#

and use TextComponents

severe zenith
#

hey, this throws an IllegalArgumentException:

#
                player.spawnParticle(Particle.REDSTONE, x, y, z, 1);
#

how to prevent this?

maiden briar
#

Then we need to know the message

#

Probably you need to wrap this in a Bukkit.getScheduler.run or Bukkit.getScheduler.runTask

#

Or run it 1 tick later

severe zenith
#

Caused by: java.lang.IllegalArgumentException: Particle REDSTONE requires data, null provided

paper viper
#

but its illegalargument

#

not async issue

maiden briar
#

Ok

severe zenith
#

what data to provide ?

severe zenith
#

thx

quaint mantle
silver shuttle
#

because it is just better?

quaint mantle
#

Nope

grim ice
#

1.2.0 best

silver shuttle
#

Why not have it run on a seperate thread? If the server is run on very bad storage then it could result in a slow access time if he only reads the file then

quaint mantle
#

Load the message from the file -> start task

#

theres no lag in doing this on the main thread

hybrid spoke
#

IO operations should always be done async

quaint mantle
#

are you not loading the file from onenable? lmao

hybrid spoke
#

to read from the file you are opening and closing it again

#

and get the contents of it

#

what is called an IO operation

quaint mantle
#

the sky is blue

#

name one plugin who loads their configs on startup asynchronously

hybrid spoke
#

and if you are changing the values in it you will have to load it again and cant cache the values to never have to open the file again

quaint mantle
#

then change the string async

hybrid spoke
quaint mantle
#

😩 Store the set

#

idk why you wanna read the file again instead of cacheing it

hybrid spoke
#

this conversation seems useless

quaint mantle
#

ok

hybrid spoke
quaint mantle
#

When did OP say they were gonna do any of this

cold field
#

Hum guys, does anyone know why if I shift with zero fill >>> on a byte var, java fill with 1? (The byte var value is 0xF0)

paper viper
#

Their original question is confusing

heavy mason
#

Async does not always mean its faster

paper viper
#

are they trying to cache the file every 5 minutes just in case if the user adds something, and take random of that?

#

or do they mean they load it all at startup

#

and every 5 minutes they choose a random message from that structure

#

the latter makes more sense

paper viper
heavy mason
#

Ah ah

paper viper
#

And also, this is personal opinion but I rather use CompletableFuture

#

because I feel like its useless to use the schedualer unless you need to do something with ticks (for async operations)

#

After all, you can specify which Executors to use which gives you far more control

cold field
#

Why that?

paper viper
#

Not sure. All I know is that during bitshifts the byte is promoted to an int

#

and you must cast it back

lost matrix
paper viper
#

that would make sense

cold field
#

Oh, wow

#

ty

grim ice
#

um guys

#

is using sender to send messages after checking if sender is instance of player fine

#

or do i have to make a player object

lost matrix
tardy delta
#

if (sender instanceof Player) PLayer p = (Player) sender;

regal lake
#

I registered a custom pluginchannel called bb:placeholders and i get the following debug info in the client log:

[17:06:09] [Render thread/WARN]: Unknown custom packed identifier: bb:placeholders

Is that a normal warning or can i prevent that warning somehow ?

quiet ice
#

It is a normal warning considering the circumstances yes

#

if you want to send data to the bungee but not to the client then you used the wrong channel to what I am aware

kindred valley
#

Hey im working on a spigot plugin i want to make a event that let me clamp a player. I made an item named hancluffs and if someone clicks right with handcluffs to someone else that player will be clamped and he cant move. How can i do that.

#

i can make the cant move part

#

but i dont know how to rightClick etc.

quiet ice
#

PlayerInteractAtEntityEvent will be what you are searching for

#

sorry, I do not speak 200 lines per sentence

kindred valley
#

i used PlayerInteractEvent, are they same?

quiet ice
#

no

#

Well, you could have the same functionallity via raytracing, but please don't do that

lost matrix
quiet ice
#

To prevent movement you could just set movement speed to 0. Of course the client could hack it, but ¯_(ツ)_/¯

kindred valley
#

please explain it like you are explaining it to a beginner

tardy delta
#

i'm looking for the particle enum

gaunt saffron
#

i need some help with VS-Code and well, convention

#

cant post pics, rip

quiet ice
#

that being said, PlayerInteractAtEntityEvent has a limited range

quiet ice
gaunt saffron
#
[INFO] Using property: package = com.thechemicalworkshop
Confirm properties configuration:
groupId: com.thechemicalworkshop
artifactId: demo
version: 1.0-SNAPSHOT
package: com.thechemicalworkshop

what's the convention? what should i pick for what

lost matrix
gaunt saffron
#

and also tells me maven project created

#

add to workspace, open or do nothing?

#

also where do i change from bukkit/spigot to bungee...

kindred valley
#

how to equal entity to a target object

quiet ice
kindred valley
#

wow thats confusing

quiet ice
#

but the null check will be redundant for PlayerInteractAtEntityEvent, so disregard that

lost matrix
kindred valley
#

yes

quiet ice
#

basically, for everything but primitives, singletons (like enums) or other rare cases, you are going to use #equals()

kindred valley
#

exactly

gaunt saffron
lost matrix
gaunt saffron
kindred valley
#

yes

#

i dont know the references

gaunt saffron
#

i use the tutorial on spigot page..

quiet ice
kindred valley
#

sorry

quiet ice
#

ent instanceof Player

gaunt saffron
quiet ice
#

usecase:

if (entity instanceof Player) {
    // variable "entity" is an instance of Player
}
quiet ice
undone axleBOT
gaunt saffron
quiet ice
#

what the hell

kindred valley
#

what do i need to import

lost matrix
# kindred valley sorry
  @EventHandler
  public void onInteract(final PlayerInteractAtEntityEvent event) {
    final Entity clickedEntity = event.getRightClicked();
    if (clickedEntity instanceof Player) { // This is an instanceof check
      Player clickedPlayer = (Player) clickedEntity; // This is a cast
      // Go on from here
    }
  }

But you should probably learn the java basics before going into spigot.
Spigot can be quite confusing for a beginner.,

quiet ice
lost matrix
grim ice
#
       if (args.length >= 2) {
            if (!args[0].equalsIgnoreCase("chat")) return true;
            StringBuilder sb = new StringBuilder();
            for(int i = 0; i < args.length; i++) {
                if (i > 0) sb.append(" ");
                sb.append(args[i]);
            }
            String result = sb.toString().replaceFirst("@", "");
            player.chat("@" + result);
            return true;
        }```
What would this do? I wrote it but i wanna know if i did something obviously wrong
lost matrix
#

<maven.compiler.source>1.7</maven.compiler.source> -> lol

quiet ice
silver shuttle
#

@lost matrix While you are working on the plotter for the graph map you are doing, does it take y values as absolute or relative?
Because I am trying to have a mini overview of the graphs in a GUI and need to somehow get a relatively stable looking graph with just 5 items as height, but can't figure out how to do it so that it looks relatively good

gaunt saffron
grim ice
#

VS CODE?

#

BRO

#

WTF

#

ARE YOU FUCKING KIDDING ME

gaunt saffron
#

no im not gonna switch IDE

grim ice
#

YOURE USING A TEXT EDITOR TO MAKE PLUGINS??

gaunt saffron
#

already had this conv

grim ice
#

ITS NOT EVEN AN IDE BRO

#

ITS A TEXT EDITORRRRR

quiet ice
gaunt saffron
#

nopt gonna use eclipse

grim ice
#

bro

#

use intellij

gaunt saffron
#

can i get help for vscode?

silver shuttle
grim ice
#

aebwfaewuffaewuofewaueawubaefwbaegwbuoegbgewbogeabwgweabgbgewbowaegbgewawegab

silver shuttle
gaunt saffron
#

why?

grim ice
quiet ice
#

The IDE doesn't matter

silver shuttle
#

thats why xD

grim ice
#

its a text editor

lost matrix
kindred valley
gaunt saffron
#

idc, i have been using it for too many years

silver shuttle
grim ice
#

lol ok

#

then dont get help, easy

#

sry if im toxic btw im just triggered

gaunt saffron
#

the only reason im getting into java, is because it got too expensive to ask someone every time 😂

lost matrix
quiet ice
#

It is not eclipse-specific, even without using eclipse it will still work

silver shuttle
kindred valley
quiet ice
#

Sure, it helps to use eclipse, but the basics (i. e. adding the spigot dependency to the pom) still apply without eclipse

lost matrix
gaunt saffron
#

couldn't i create the project in whatever crappy IDE you recommend, and continue editing on vscode?

gaunt saffron
#

does at least compiling work there, also, can i change the compile directorie...

quiet ice
#

no need to use another IDE

#

You are missing the spigot depends, that's all

gaunt saffron
#
   <dependencies>
       <dependency>
           <groupId>org.spigotmc</groupId>
           <artifactId>spigot-api</artifactId>
           <version>1.16.5-R0.1-SNAPSHOT</version><!--change this value depending on the version or use LATEST-->
           <type>jar</type>
           <scope>provided</scope>
       </dependency>
   </dependencies>

lemme add this

quiet ice
#
  • the repository declaration
gaunt saffron
cold field
#

Is there a packet size limit in mc?

gaunt saffron
#

now i gotta map a virtual drive somehow...

lost matrix
silver shuttle
#

must be

lost matrix
cold field
#

Mh, ok ty. Do you know the exact numbers?

silver shuttle
#

@lost matrix We have to postpone it, just remembered i have a meeting now

#

feel free to pm me tho

cold field
#

or both

kindred valley
#

if (player.getItemInHand().getType() == Material.ARROW) can i make the second argument as custom item?

cold field
#

I assume both

lost matrix
grim ice
#

not really

#

Most versions do not have pdc

#

and there are many professionals that code in 1.8

lost matrix
grim ice
#

flawed statement

kindred valley
grim ice
#

many people like 1.8.9

stone sinew
grim ice
#

you can't just say no body should use them and people will stop

lost matrix
grim ice
#

there are many clients and mods for older versions, while modern versions are mostly used for the Survival / Adventure part of the game

#

older versions are for pvp

lost matrix
#

You can use them but then dont expect the community to help you. I dont support broken old versions so i dont mention them in the first place.

stone sinew
#

Old versions are usually used for optimization/lack of bloat features

grim ice
#

that's also wrong

#

we're not the whole community

#

**most **people will help regardless of what version you're using

#

but you have a point, older versions are broken and shouldn't be used

lost matrix
# stone sinew Old versions are usually used for optimization/lack of bloat features

You can do that if you actually know what you are doing. If you know how to fork spigot and know how to fix the many bugs that occur in older versions
and have the manpower to maintain and update your custom version then you can argue for using older versions.
Everyone else should use the newest version or suffer with the consequences.

cold field
#

lol

grim ice
#

well

#

too bad

lost matrix
grim ice
#

the biggest servers use older versions, only survival based servers are using newer ones

lost matrix
#

If you keep programming in 1.8 and get more advanced you will see how lackluster this old piece of software is and how it limits your creativity.

grim ice
#

they cause unnecessary fps drops with a disgusting pvp style

grim ice
#

it depends on what the request is

tardy delta
lost matrix
grim ice
#

true

lost matrix
warm mirage
#

how do i use a variable from one event in another event

undone axleBOT
tardy delta
grim ice
#

thats the most annoying answer you can get here

#

| Ask other questions here

#

you can ask java questions here as well

tardy delta
#

thats why i hate nms 🥺

grim ice
#

Just answer him if you know the answer, if you don't then simply don't reply

ivory sleet
grim ice
#

other wise "?learnjava" is pointless, he must've already saw that answer before

lost matrix
# tardy delta

Ah i see. There you need to provide the NMS particle.
But why would you ever want to send a Particle via packets? That is literally what spigot is doing. There is no reason to ever do that with packets.

kindred valley
ivory sleet
#

That’s not sure

grim ice
#

if he did and is still here, then he knows what he's doing

grim ice
ivory sleet
#

Don’t make such assumptions

grim ice
#

And do you actually think he will go and learn java in the middle of his project?

ivory sleet
#

Thing is you should really only use this channel as a last resort and there is by guarantee a lot of material covering how to pass data around.

grim ice
#

Help him, then tell him to learn java when he finishes what hes doing

gaunt saffron
#
[19:21:38 ERROR]: Could not load 'plugins\demo-1.0-SNAPSHOT.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: Cannot find main class `com.thechemicalworkshop'
        at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:73) ~[patched_1.17.1.jar:git-Paper-85]
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:153) ~[patched_1.17.1.jar:git-Paper-85]
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:414) ~[patched_1.17.1.jar:git-Paper-85]
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:322) ~[patched_1.17.1.jar:git-Paper-85]
        at org.bukkit.craftbukkit.v1_17_R1.CraftServer.loadPlugins(CraftServer.java:393) ~[patched_1.17.1.jar:git-Paper-85]
        at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:276) ~[patched_1.17.1.jar:git-Paper-85]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1126) ~[patched_1.17.1.jar:git-Paper-85]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316) ~[patched_1.17.1.jar:git-Paper-85]
        at java.lang.Thread.run(Thread.java:831) [?:?]
Caused by: java.lang.ClassNotFoundException: com.thechemicalworkshop
        at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:146) ~[patched_1.17.1.jar:git-Paper-85]
        at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:103) ~[patched_1.17.1.jar:git-Paper-85]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:519) ~[?:?]
        at java.lang.Class.forName0(Native Method) ~[?:?]
        at java.lang.Class.forName(Class.java:466) ~[?:?]
        at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:71) ~[patched_1.17.1.jar:git-Paper-85]
        ... 8 more

well, it compiled without errors...

grim ice
#

should is a powerful word

warm mirage
#

i've used some of those links

ivory sleet
#

Yea it’s a powerful word that’s why I used it

lost matrix
grim ice
kindred valley
ivory sleet
#

Being able to teach yourself is among the most important things when it comes to programming just like other things

#

It is not

grim ice
#

you can use this channel whenever you like

gaunt saffron