#help-archived

1 messages ยท Page 31 of 1

wanton delta
#

it should be on your desktop tho

#

spigot-1.15.2

silk gate
#

oh he left

placid owl
#

yeah there is a spigot folder on my desktop

wanton delta
#

as long as you didnt get any errors

subtle blade
#

What's the buildtools.log look like?

#

?paste

worldly heathBOT
wanton delta
#

spigot folder got nothin

placid owl
#

i can post the log in a second

#

i have the server on a computer that is not this one

#

i pasted it at the link

subtle blade
#

Save and re-send the link

placid owl
#

seems there was an error, whoops

#

wont let me save

subtle blade
#

Ctrl + S?

placid owl
#

yeah

#

something went wrong

subtle blade
placid owl
wanton delta
#

so

#

use git

#

not cmd

placid owl
#

i did

wanton delta
#

its saying you used cmd.exe

placid owl
#

ok

#

should i go delete stuff

wanton delta
#

no you shuold be fine

placid owl
#

okay

wanton delta
#

when you right click you should see something like "open git bash here"

#

or open up git bash your self and navigate to your desktop

placid owl
#

yeah

#

im going to run gitbash as admin for extra measure

#

then cd desktop

#

where the buildtools jar is

#

what is the command again to run the jar ?

wanton delta
#

java -jar BuildTools.jar --rev latest

placid owl
#

i didnt use the --rev modifier last time

#

but i just did it

wanton delta
#

shouldnt matter

#

--rev latest is default

#

i jsut add it in there

placid owl
#

yeah

#

should i paste the log

wanton delta
#

only if it doesnt work

placid owl
#

got an exception in thread main

#

seems it couldnt find my advancement.java ?

wanton delta
#

?paste

worldly heathBOT
placid owl
#

but before that it says build success

worldly heathBOT
subtle blade
#

CafeBabe u gud? lol

#

Oh, right, "Not" CafeBabe

wanton delta
#

i put it in twice

#

and it warned me for spamming

subtle blade
#

Oh you deleted it lol

wanton delta
#

i didnt

subtle blade
wanton delta
#

whoever deletes messages did lol

#

i must say its a little bit too strict lol

subtle blade
#

'twas the bot

placid owl
#

thanks for all your help btw

wanton delta
#

BUILD SUCCESS doesnt mean success btw, lol

placid owl
#

ok

wanton delta
#

youll know it works when u have three bits of text saying where the things are

#

at this point

#

i would delete everything

#

put buildtools in its own folder

#

(with nothing else)

#

and run it again

#

with git

placid owl
#

okay so one caveat

#

is that I had a vanilla minecraft server running before

#

and im trying to convert

#

to spigot

wanton delta
#

should be fine

placid owl
#

so should i delete the minecraft server stuff too? i already have a back up of the world

wanton delta
#

nope

#

youre good

placid owl
#

minecraft server was hosted on desktop aswell

wanton delta
#

as long its not legacy

#

it doesnt matter where it was hosted

placid owl
#

i wouldnt know if it is legacy

wanton delta
#

legacy means before 1.13

placid owl
#

then no

wanton delta
#

i say put buildtools in its own folder because its quite finicky

subtle blade
#

^ definitely this

wanton delta
#

one time it just stopped working in the directory i had it originally

#

i moved it somewhere else

#

perfect

subtle blade
#

Create a folder on your desktop (or wherever, really. A path without spaces preferably)

placid owl
#

okay

#

so there is a folder called minecraftserverstorage on my desktop

subtle blade
#

I keep mine on my desktop because I work with it frequently for PRs and whatnot, but it's fine in your documents if you don't want to see it

placid owl
#

it has everything for my vanilla server there and i backed up my world data already

subtle blade
#

You'll use it often to build new versions / updates

wanton delta
#

just put buildtools in its own empty folder

subtle blade
#

Should have its own dedicated folder

wanton delta
#

nothing else

subtle blade
#

I literally have one called BuildTools lol

wanton delta
#

i have several lol

placid owl
#

it also had a jar file from bukkit that i thought was the right one, renamed to spigot then i made a script to run it and it turned out to be the same server

wanton delta
#

cuz it just breaks sometimes lmao

placid owl
#

just giving you the rundown

jovial trout
#

getMetaData returns a List, does that imply if i call setMetaData twice on the same key will it just add the second value to a list?

subtle blade
jovial trout
wanton delta
#

wow big man got a folder called Repositories

subtle blade
#

i would never consider kotlin ๐Ÿ˜ฆ

jovial trout
#

scala*

wanton delta
placid owl
#

okay so now

subtle blade
#

Oh that's even worse!

placid owl
#

im going to go into a folder where my media is on the desktop

#

and create a folder called buildtools

#

then put the buildtools jar in there and run it with git

wanton delta
#

ya do it

#

u wont ๐Ÿ˜ก

#

when i found out scala and kotlin were just bootleg java

#

i was instantly turned off

jovial trout
#
for(CustomEnchantment e: Main.customEnchantments) {
    if(event.getBow().getEnchantments().containsKey(e)) {
        event.getProjectile().setMetaData("myKey", new FixedMetadataValue(Main.getInstance(), e))
#

happier? lol

wanton delta
#

๐Ÿ˜

jovial trout
#

im just trying to see if getMetadata will have a list of e or if each subsequent call will overwrite the previous call

silk gate
#

a

#

static abuse sir

jovial trout
#

hush now

placid owl
#

i really just want to surprise my friends with a bloodmoon plugin they arent expecting

jovial trout
#

ignore the static abuse

wanton delta
#

@placid owl just as a fair warning any vanilla farms/mechanics might break in the process of upgrading.

jovial trout
#

i have Main as a companion object/class pair

#

uwu

wanton delta
#

most are fine

#

some are not

placid owl
#

break as in

wanton delta
#

they just wont work on spigot

jovial trout
#

not work

placid owl
#

like redstone farms

wanton delta
#

uh depends on what you mean by that

#

for example

placid owl
#

like we just have farms

#

where we grow what

#

wheat

#

and make the animals frick

wanton delta
#

i mean like iron farms etc

placid owl
#

we want to build those

wanton delta
#

most are fine, but some use mechanics that arent in spigot

placid owl
#

does that mean we cant on spigot ?

wanton delta
#

depends

#

youll have to test them yourself

placid owl
#

gotcha

#

but everything works on bukkit right

wanton delta
#

no

placid owl
#

so not everything works on each type of non vanilla server

jovial trout
#

but yeah my question still stands:

for(CustomEnchantment e: Main.customEnchantments) {
    if(event.getBow().getEnchantments().containsKey(e)) {
        event.getProjectile().setMetaData("myKey", new FixedMetadataValue(Main.getInstance(), e))```
will getMetadata have a list of e or will each subsequent call overwrite the previous call?
wanton delta
#

correct

#

once again

#

most things will

#

but as you get more complicated

#

youll have to test before building them

placid owl
#

understood

#

we are just amateur players who want to remain connected

#

we have one guy who aspires to build those redstone things but he is just the one guy

wanton delta
#

@jovial trout im jsut gonna tell u flat out that i wont be able to help you, i have no clue wahts goin on

#

i have 0 experience

jovial trout
#

somebody will

placid owl
#

pogchamp

wanton delta
#

yep

#

just wanna make sure you dont think im ignoring

#

because i would help if i could :P

placid owl
#

after it all finishes

#

i just have to drag and drop server properties

#

and world right

wanton delta
#

you just have to replace whatever minecraft jar you have

#

with spigot

#

well not even that

#

just put the spigot jar in the same folder as your current server jar

placid owl
#

yeah

wanton delta
#

and run the spigot jar just like you would with minecraft

placid owl
#

so if i use a start server notepad script

wanton delta
#

nothing needs to be replaced

placid owl
#

i would change jar file name to the spigot one

wanton delta
#

correct

placid owl
#

got it

#

how exactly does spigot increase performance on CPU

wanton delta
#

that is something i dont really have an answer to

placid owl
#

hoping it will decrease cpu temps on my laptop and therefore prevent it from throttling my chip

#

is there a way to tell the script, similar to how we use the Xmx argument in it

#

is there a way to tell it to use video memory to render the server

wanton delta
#

there are other server jars you could use that promise optimizations that are (according to them) way better than spigot

#

but im not gonna say what those are

#

becuase this is spigot

placid owl
#

i dont trust them

#

ive been around spigot for ages

#

and ive seen bukkit forums since i was a kid, using hamachi method before open to lan came about

wanton delta
#

server does not render anything

lusty vortex
#

Which version you running?

#

1.15?

wanton delta
#

latest

#

the way servers handle entities and such is via packets

#

packets are pieces of info sent to the client

#

and the client interprets these packets

#

what we as plugin developers can do is send packets that have faulty information that trick the client into seeing things that really arent there server side

#

but add a really cool effect

#

e.i. i can send 1 client 2,000,000,000 particles that only affects that one client

#

but the server doenst process them or even know it exists

#

but i just crashed the client

lusty vortex
#

@placid owl You remember the pre-spigot craftbukkit fork?

placid owl
#

yeah i was around when there wasnt a fork

wanton delta
#

ah yes i remember

placid owl
#

i was so confused when catching up on all this

lusty vortex
#

Craftbukkit++

#

๐Ÿ˜ฎ

wanton delta
#

CraftBukkit was its own thing

#

i forget what happened tbh all i remember is some dmca idk

placid owl
#

got the success message

wanton delta
#

\o/

placid owl
#

it's up there in my memories

#

along with grooveshark

#

and how you could use the cydia jailbreak exploit to offline music from grooveshark

#

then they got shut down :(

wanton delta
#

do people still jailbreak their phones anymore

#

it used to be pretty popular

placid owl
#

idk i havent checked

#

i was going to research the jailbreaking scene

wanton delta
#

oh yep its still a thing

placid owl
#

yeah i know

#

but it stagnated after iphone 5 or 6 so i stopped paying attention

#

but now there may be new capabilities making it worthwhile to get the latest iphone

#

i remember having iphone 3GS jailbroken, and seeing so many posts about how not to upgrade to latest iOS, and that you should use tinyumbrella to downgrade, and feeling so relieved after i realized i had the backup in tinyumbrella

#

then my friend showed me an HTC phone and it was gg, I hopped on a HTC One M8 and never looked back, now im rocking the Pixel 3XL but feeling left out of an ingroup as I am 23 and so much of my generations culture revolves around blue messages, facetiming and whatnot

lusty vortex
#

I haven't jailbroken a phone in years

#

Don't really need to these days

wanton delta
#

yep i had original pixel, preordered it and everything

#

didnt last me more than 2 years

#

switched to iphone

placid owl
#

so now I just move spigot 1.15.2 jar to my original vanilla server folder ?

wanton delta
#

yep

nova mural
#

and change your start file to account for the different jar

placid owl
#

do i delete the other server jar file

wanton delta
#

dont have to

placid owl
#

or should i keep it for a rainy day

wanton delta
#

personal preference

#

i would say keep it

placid owl
#

yeah so if an update happens and cant figure out

#

i just use the old server jar

wanton delta
#

its a pretty big jar, and redownloading it can be a pain

placid owl
#

if i run with nogui

#

the cmd window stays open and acts like console right

wanton delta
#

yea

placid owl
#

all right, booted the script up

#

wait that took way longer than before

#

average load time was 15 seconds on old script

wanton delta
#

it cuold be some first time conversions it has to do

#

since it was vanilla its gonna rearrange some things to match what spigot likes

placid owl
#

gotcha

#

can i install the plugin i have now too

wanton delta
#

in the plugins/ folder yes

placid owl
#

what is plugins metrics

#

i dont drop the plugin jar in there right

wanton delta
#

nope

placid owl
#

and do i git bash the plug in jar or just drop the jar in there

night solstice
#

Is there a buycraft api to get how much a certain player has spent on your server?

wanton delta
#

just gotta put the jar in the plugins folder

#

simple as that :)

#

and then you have two options

#

restart server

#

or /reload command

#

(preferably the former)

velvet halo
#

/restart

#

^ do dis one

wanton delta
#

sorry im spamming links

#

but those all give useful info

placid owl
#

i already stopped the server

#

should i start it again

wanton delta
#

go for it

night solstice
#

thanks!

placid owl
#

then drop the plugin jar

frigid ember
#

Anybody wanna call and help a bit with a Hub?

#

I'm 60% done with it just need small help

wanton delta
#

and @night solstice youll notice when using player lookup, youll find there is a purchaseTotals list

#

im assuming you know how to request an HTTP response with a header

night solstice
#

Yeah ive done it before with another api a while ago, ill have to refresh on that.

wanton delta
#

i find http requests to be one of the most satisfying things :P

placid owl
#

wait should i start server though before installing plug in

wanton delta
#

after

night solstice
#
/user/{user}");
HttpURLConnection con = (HttpURLConnection) url.openConnection();
con.setRequestMethod("GET");``` something like this? then i need a header for the secret key @wanton delta
placid owl
#

so installed the plugin

#

and started the server

#

but the commands didnt work

#

so i restarted the server

#

and the script hasnt popped back up yet

#

do i just start the script myself ?

golden vault
#

ya if the start script does not match the one in the spigot.yml the /restart command will not work and you will have to start it yourself

placid owl
#

should i fix that or

golden vault
#

if you want to be able to use the restart command, otherwise its not that important

placid owl
#

gotcha

#

so the plugin commands dont work still

#

just says no console command yet stay tuned

#

how do i know if it is working if i cant show the amount of time before next bloodmoon ?

golden vault
#

try the command in game

#

that message may just be telling you the command does not work in console

placid owl
#

how do i make sure my players cant use that command

golden vault
#

it depends on how the plugin is setup, you may need to assign a permission for users to use it or deny a permission to not be able to use it, it could also be ops only already, (i don't even know what plugin you are referring to)

golden vault
#

do you have the * perm?

placid owl
#

idk what that means

golden vault
#

do you have a permissions plugin?

placid owl
#

do i have to install that

#

i had a vanilla server then converted to spigot

golden vault
#

so all you have is spigot and bloodmoon?

placid owl
#

yeah

#

i just put my ign in the ops notepad file tho

golden vault
#

then you are op

placid owl
#

if flying is disabled in properties

#

i wont be able to as op

#

right

golden vault
#

as op you could

placid owl
#

i dont want to accidentally fly

golden vault
#

ops can do anything

placid owl
#

yeah i dont want to be able to fly

golden vault
#

most anything anyway

#

unless you have a fly plugin you wont be able to fly unless you are in creative

placid owl
#

wait this site says "bloodmoon.bloodmoon" allows usage of the bloodmoon command

#

wait i found the config file for the plug in

#

wow

golden vault
#

without a permissions plugin those permissions are basically useless. they will apply however the plugin developer defined them, whether they are for ops or not. If you want more control you need a permissins plugin so you can add those permissions to the specific groups of players that you want to

placid owl
#

im dumb

wind swan
#

Does anyone know if it's possible to check if the vanilla datapack is enabled via a plugin?

placid owl
#

@golden vault so if i install luckperms for example, i will be able to assign permissions for who is allowed to use the commands associated with my bloodmoon plugin and every plugin introduced going forward ?

golden vault
#

yep

buoyant path
#

Can someone help me with setting up a local MySQL server

#

im really confused and i need it so i can actually work on my plugin

placid owl
#

okay do i need to really worry about TPS? server console rarely reports that it is running ticks behind but should i get ahead of this and implement a plugin that doesnt track all entities to reduce TPS?

buoyant path
#

Yes

golden vault
#

adding plugins will not really help your tps it just adds overhead

#

if you are already running behind your hardware is insufficient. however the message can be ignored if it is just during startup and doesn't continue and the tps drop is not noticeable

keen moth
#

^ Also, make sure you've tweaked your settings in bukkit.yml, spigot.yml and server.properties. There are optimization guides on Spigot you can look up ๐Ÿ™‚ Do this before attempting to add any kind of 'Lag Reducer' because often times, they do quite the opposite of that.

golden vault
#

^

placid owl
#

even if i am running a spigot server

#

i should tweak bukkit.yml?

golden vault
#

spigot contains bukkit

#

(yes)

frigid ember
#

@golden vault y got a minute?

golden vault
#

maybe

#

your time is up

#

lol

frigid ember
#

๐Ÿ˜„

#

I was wondering how to make a void generated world

#

like without making a whole new, i have a huge HUB

#

instead of Copy/Paste can i maybe generate it as a VOID

fierce tinsel
#

can someone help me with essentials

golden vault
#

no idea i have not messed with world generation

frigid ember
#

and any recommendations for hub except the Tab/Scoreboard/Server Compass,etc..?

little crater
frigid ember
#

@little crater Yeah i am using it

#

i don't know how to do it

#

when i try import it doesn't work

little crater
#

Follow the instructions. You have to set the generator in bukkit.yml (or if you use multiverse, it's configs)

frigid ember
#

i set the generator

#

p.getWorld().spawnParticle(Particle.FLAME, particleLocation, 3); is spawning a particle with a force that is shooting them away from my player. How do I spawn particles with no force?

placid owl
#

thanks for all the help @golden vault @wanton delta !

golden vault
#

np

keen moth
#

@frigid ember iirc, set it to 0

frigid ember
#

That 3 is the count though?

wicked sage
#

has anyone ever seen this stacktrace before? I was adding stuff to a plugin from spigotmc which i decompiled and edited some of the inner workings

frigid ember
#

@little crater

wicked sage
#
20.04 20:12:25 [Server] INFO Caused by: java.lang.LinkageError: loader constraint violation: when resolving method "me.bournedev.commands.CmdHelpPage.<init>(Lorg/bukkit/command/CommandSender;Lme/bournedev/Core;[Ljava/lang/String;)V" the class loader (instance of org/bukkit/plugin/java/PluginClassLoader) of the current class, me/bournedev/commands/CmdRoot, and the class loader (instance of org/bukkit/plugin/java/PluginClassLoader) for the method's defining class, me/bournedev/commands/CmdHelpPage, have different Class objects for the type me/bournedev/Core used in the signature
keen moth
#

Don't use stuff like plugman or reloads

#

Restart your server entirely

wicked sage
#

ffs

#

my server owner

wanton delta
#

Does dissallowing friendly fire allow arrows to go tbrow teammates?

wicked sage
keen moth
#

That's exactly what causes issues lol

wicked sage
#

i've never used plugman in my life

keen moth
#

Should never be used in production

frigid ember
#

use plugman reload pluginname

keen moth
#

Bruh

golden vault
#

no, either use the plugin's reload command or restart, especially if you are having problems

#

if the plugin does not have reload command then it was likely not designed to be reloaded

wanton delta
#

Ah it seems

#

When i try this on vanilla

wicked sage
#

well

#

thanks for calling out my server owner

golden vault
#

any time

#

lol

wicked sage
#

blaming my decompiling skills

keen moth
#

Maybe add a built-in reload command if possible?

wicked sage
#

nah this was the first test

#

like he put the plugin into the plugins folder

#

and just turned it on usnig plugman

#

i spent like 5 days decompiling it

#

and he's like

#

iT DoeSnT wORk

keen moth
#

5 days? ๐Ÿค”

silk gate
#

this is why you ask for a latest.log

#

you read it

#

you see plugman

#

you tell them uninstall it right now

wicked sage
#

@keen moth it was an obfuscated plugin and i was adding a feature ๐Ÿ˜”

keen moth
#

use BaseComponent::setColor instead of adding colors into the text itself manually

wicked sage
#

alright

keen moth
wicked sage
#

thanks

gritty mulch
wanton delta
#

What kind of machine

radiant pollen
#

@gritty mulch check memory usage and network usage as well.

gritty mulch
#

i think it spikes, hecne the reason /tps doesnt pick it up

radiant pollen
#

is there a way to add special characters to item lore, text components, etc?

vagrant widget
#

Yeah

radiant pollen
#

I want to retexture the null, eof, etc characters to add more symbols since they should never actually show up and be rendered anyway, right?

buoyant path
#

[00:47:21 WARN]: com.mysql.jdbc.PacketTooBigException: Packet for query is too large (5526600 > 1048576). You can change this value on the server by setting the max_allowed_packet' variable.

#

how do i fix this??...

gritty mulch
#

Is there any faster way to generate a world with the worldborder plugin? It dose 100 chunks every 3-4 seconds and it takes forever.

frigid ember
#

Hi can someone help me I have a blast pickaxe plugin breaking blocks in a radious of 3x3 it is also breaking blocks outside bedrock is there any way to prevent this?!

dusky herald
#

Faster way to generate a world? Get a faster server?

#

Or just wait for it to finish on its own.

velvet halo
#

@buoyant path The PacketTooBigException tells you, or make your queries less intensive.

buoyant path
#

its just me connecting to the server lol

frigid ember
#

Why, when I run the command, is the enchanting inventory not opening?

public boolean onCommand(CommandSender sender, Command command, String s, String[] args) {

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

      p.openEnchanting(null, true);

      return true;
    }

    sender.sendMessage("You must be a player to use this command!");
    return true;
  }
#

I can confirm my command is registered as it outputs the "You must be a player to use this command!" when trying to use the command from console

radiant pollen
#

@frigid ember I would assign the result of p.openEnchanting(null, true); to a value and check what it returns. It could be returning null which means there's a problem elsewhere.

#

Also, the method returns an InventoryView which can be opened manually. You could try p.openInventory(p.openEnchanting(null, true)); Based one what the documentation says, you shouldn't have to do that but it doesn't hurt to try.

frigid ember
#

Alright I'll try

#

It isn't null.

radiant pollen
#

Can you paste the full code again?

frigid ember
#
package io.github.aimorris.VirtualEnchant;

import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;

public class CommandHandler implements CommandExecutor {

  public boolean onCommand(CommandSender sender, Command command, String s, String[] args) {

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

      p.openEnchanting(null, true);

      return true;
    }

    sender.sendMessage("You must be a player to use this command!");
    return true;
  }
}
radiant pollen
#

Honestly I have no idea then. What you had originally, based on what the documentation says, should be working if it's not returning null.

#

Do you have any inventory listeners that could be cancelling it?

frigid ember
#

Nope

#

Literally only just started this plugin, this was my first command/listener/anything.

thorny ledge
#

Check when illegalargumentexception is thrown in the java docs.

#

Iโ€™m not at a computer but thatโ€™s your first step

#

I'm at a computer now

frigid ember
#

openInventory apparently never throws an IllegalArgumentException

velvet halo
#

I found a nice way to serialize data to and from a file but I need to know if I am doing it the right way just because it works doesn't always mean its great

#
public class JsonStorage{

    public static void write(File file, Object object) {
        Gson gson = new GsonBuilder().setPrettyPrinting().create();
        try (BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(file, false))) {
            gson.toJson(object, bufferedWriter);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public static <C> C read(File file, Class<C> clazz) {
        C c = null;
        Gson gson = new GsonBuilder().setPrettyPrinting().create();
        try (BufferedReader bufferedReader = new BufferedReader(new FileReader(file))){
            c = gson.fromJson(bufferedReader, clazz);
        } catch (IOException e) {
            e.printStackTrace();
        }
        return c;
    }
}
#

Any suggestions on how to improve it?

frigid ember
#

I'm utterly confused with this enchanting thing...

thorny ledge
#

Okay so you got the exception because you tried to open the Crafting 4x4 thing in ur inventory

frigid ember
#

??

#

btw, I just made some progress. If I change null to a location of an enchantment table, it works.

thorny ledge
#

So you figured it out?

frigid ember
#

No

#

I need it to not have to have a real enchantment table

thorny ledge
#

Well that's not how the method works

#

I haven't touched inventory objects much, but perhaps define a new enchantInventory objet

frigid ember
#

Alright

thorny ledge
#

Maybe look for a method that returns an inventory object called getEnchantInventory or something

#

I think will be your best bet

frigid ember
#
Inventory inv = Bukkit.createInventory(p, InventoryType.ENCHANTING);
p.openInventory(inv);

opens an inventory, but doesn't let the player actually enchant their items (like javadocs said would happen). Is there a way to get this functioning like a normal enchanting table?

thorny ledge
#

Sure, create a listener that does it

frigid ember
#

Erm

#

What do you mean?

vale slate
#

Well there is a enchant event or whatever it is called

velvet halo
#

player.openEnchanting(location, force);

frigid ember
#

I tried that

#

Didn't work

velvet halo
#

You set the location to null

thorny ledge
#

Null implies player location

frigid ember
#

I also tried p.getLocation()

velvet halo
#

hmm

thorny ledge
#

Openinventory doesnt make one

#

it just opens one if theres one nearby

frigid ember
#

Besides, I need to be able to set the enchanting table level anyway

thorny ledge
#

This was my thought

#

make a listener that listens for when itemstacks are put into the slots

#

then when they are add functionality

vale slate
#

This openEnchanting method seems to have a common bug since it has been introduced, it's messed up in every new update

thorny ledge
#

If the method isn't working properly just use NMS it looked pretty easy to do in the forums and you just have to figure out what obfuscated methods to use and i imagine its just getters and setters

#

Might even be up to date if you want to be spoonfed

frigid ember
#

It isn't

#

Tried.

thorny ledge
#

Mk what didnt work

frigid ember
#

well

#

EnchantmentContainer no longer exists, EntityPlayer no longer exists, PacketPlayOutOpenWindow no longer exists, CraftPlayer no longer exists, etc.

thorny ledge
#

I'm assuming you have NMS as a depency in your build.gradle or however you are getting the package to your project

#

lmao

#

What do you use for project dependencies

frigid ember
#

Maven

thorny ledge
#

Those classes arent available for use by default xD

frigid ember
#

oh

#

am dumb

thorny ledge
#

dependencies {
compileOnly 'org.spigotmc:spigot-api:1.15.2-R0.1-SNAPSHOT'}

#

That would be regular spigot

#

api

frigid ember
#

Is that with gradle or something

thorny ledge
#

ya

#
dependencies {
    compileOnly "org.spigotmc:spigot:1.15.1-R0.1-SNAPSHOT"
}
frigid ember
#

hmm

thorny ledge
#

this one is nms

#

weird icon i didnt mean to include here

frigid ember
#

I've got a hacky solution

#

Instead of bothering with nms

#

just create an enchant table at some location and then open it...

thorny ledge
#

its 1:30 am so ima head to bed in a min

vale slate
#

bye

#

I need to change this name, I had it forever

thorny ledge
#

You're just asking for bugs if you do that lol

#

and do it lol

frigid ember
#

i think i'm gonna just do this stupid hacky solution lol

thorny ledge
#

aight ima head out pce. You can always ask one of the pros for information about the spigot api as there is probably a clean way to do this assuming openEnchant method thingy actually works as it should and i bet you can just make a subclass of enchantable

frigid ember
#

build a level 30 enchanting rig down in the void, delete it on close.

thorny ledge
#

The table has to be near the player xD

frigid ember
#

reallllyyy?

pearl pawn
#

guys i have seen a plugin on bukkit, can i recode it adding some features? wont be posted. (using plugin source code)

#

reallllyyy?
@frigid ember no i don't think so

#

there is no check of the radious

#
  • you're just opening an inventory
#

not a nearby inventory

vale slate
#

if the license fits

#

what it should

thorny ledge
#

@Spleed the method opens a nearby inventory if you're refering to openendchant whatever method

#

you know what i mean

#

night all

vale slate
#

bye

pearl pawn
#

for me its 10AM lol

vale slate
#

yeah 10:30 for me

pearl pawn
#

for me its 10:22AM

thorny ledge
#

Also spleed if itโ€™s open source you can pretty much do whatever you want assuming thereโ€™s no license or anything

pearl pawn
#

so for you now is 20/04?

thorny ledge
#

Itโ€™s the 21 for me

#

1:30 am

pearl pawn
#

so you are going into the 22

thorny ledge
#

No Itโ€™s morning lol

pearl pawn
#

oh

thorny ledge
#

Itโ€™s 1:30 am the 21

vale slate
#

keep on topic

pearl pawn
#

ok

#

help me

thorny ledge
#

With ?

velvet halo
#

Its 8:32pm 21st

vale slate
#

well has the plugin a license

frigid ember
#

Is it really worth making a mini games server any more? I was thinking about making one but a will it really get players and B will it be able to pay for its self or even make profit? Tag me when replying to this thanks!

pearl pawn
#

well has the plugin a license
@vale slate idk lol i just need it for me

frigid ember
#

I went over 200 blocks away from the enchanting table and it still worked

thorny ledge
#

Ihusk what happens at noon? Maybe I can get some good stock prices buys xD

pearl pawn
#

Is it really worth making a mini games server any more? I was thinking about making one but a will it really get players and B will it be able to pay for its self or even make profit? Tag me when replying to this thanks!
@frigid ember no

frigid ember
#

Why not

vale slate
#

@vale slate idk lol i just need it for me
@pearl pawn If it has a license it could restrict the use of it

frigid ember
#

@pearl pawn But why

thorny ledge
#

Spleed I mean youโ€™re fine to do whatever with open source stuff usually but read the license if you wanna be safe itโ€™ll probably say you canโ€™t make money off of it

#

Aim then you got your solution gz

pearl pawn
#

@pearl pawn If it has a license it could restrict the use of it
@vale slate tought i could edit without any problem if that was for personal use

vale slate
#

You can't legal if the license forbids that

thorny ledge
#

Itโ€™s not really a big deal if you are just taking it and doing personal stuff with it

#

Just donโ€™t publish it

#

Assuming itโ€™s open source

vale slate
#

but, no plaintiff, no judge

thorny ledge
#

Whoโ€™s going to get you in trouble for playing around with an open source plugin? Lmao

#

They wouldnโ€™t make it open source

#

If they didnโ€™t want people downloading the source code

#

Even then you can just decompile

pearl pawn
#

its just for me

vale slate
#

I think the problem is not present if you don't republish it

thorny ledge
#

License is likely just for making money

pearl pawn
#

its just for me i won't publish it

#

lol

thorny ledge
#

Off of someone elseโ€™s work

#

Yeah youโ€™re fine xD

pearl pawn
#

yeah so i am having some issues while starting it

vale slate
#

And if you would use it on a public server

pearl pawn
#

its a private server

#

a vanilla private server for friends

thorny ledge
#

Youโ€™re fine lol

vale slate
#

finally somebody removes this damn autocompletion

thorny ledge
#

Uh context? Whatโ€™s wrong w it?

vale slate
#

I literally hate it

thorny ledge
#

I assume you have protocollib

pearl pawn
#

i'll now give you the error

#

I assume you have protocollib
@thorny ledge yes

thorny ledge
#

Whatโ€™s the error?

pearl pawn
#
java.lang.NullPointerException: null
    at me.alexmc.AntiCommandTab.onEnable(AntiCommandTab.java:38) ~[?:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[spigot.jar:git-Spigot-800b93f-8160e29]
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:352) [spigot.jar:git-Spigot-800b93f-8160e29]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:417) [spigot.jar:git-Spigot-800b93f-8160e29]
    at org.bukkit.craftbukkit.v1_15_R1.CraftServer.enablePlugin(CraftServer.java:462) [spigot.jar:git-Spigot-800b93f-8160e29]
    at org.bukkit.craftbukkit.v1_15_R1.CraftServer.enablePlugins(CraftServer.java:376) [spigot.jar:git-Spigot-800b93f-8160e29]
    at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:457) [spigot.jar:git-Spigot-800b93f-8160e29]
    at net.minecraft.server.v1_15_R1.DedicatedServer.init(DedicatedServer.java:267) [spigot.jar:git-Spigot-800b93f-8160e29]
    at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:784) [spigot.jar:git-Spigot-800b93f-8160e29]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_241]```
vale slate
#

good old NullPointer

bronze marten
#

null

#

๐Ÿฅฐ

thorny ledge
#

Whatโ€™s line 38 in your ide?

#

We all love Npe lol

pearl pawn
#

Packetadaptor

vale slate
#

a little more specific

thorny ledge
#

xD

pearl pawn
#

wait let me check better xd

#

im doing a plugin during lessons lol

thorny ledge
#

If youโ€™re learning for the first time Iโ€™d highly suggest avoiding protocol lib related stuff lol

#

Itโ€™s rather advanced

pure pasture
#

Hi

vale slate
#

yes it is

thorny ledge
#

IMO a lot of NMS stuff is easier than it

pearl pawn
#

public void onPacketReceiving(final PacketEvent event) {

pure pasture
#

Why is it final?

pearl pawn
#

removed an explicit array

thorny ledge
#

Can you post the entire method and put a comment where line 38 is though?

vale slate
#

he/she already did that

pure pasture
#

Can somebody help me with my problem?

frigid ember
#

no

vale slate
#

one at a time

pure pasture
#

Ok xD

frigid ember
#

ok mum

pearl pawn
#

that fucked up entire identation

pure pasture
#

Did you put @Override above the onEnable method?

vale slate
#

well, a Method head can't throw a exception

thorny ledge
#

^

pearl pawn
#

so how could i fix this issue?

thorny ledge
#

Need to know what is throwing the NPE

bronze marten
#

@Override does nothing

vale slate
#

it's a marker yes

pearl pawn
#

i do not have @ovveride

pure pasture
#

You need it dont you?

vale slate
#

it's bad coding practice to not use it, but it is removed at compile so

bronze marten
#

Its only for you to see at compile time hey does this method actually override somethign, but once compiled its useless

pure pasture
#

Oh ok

#

Lol didn't know that

vale slate
#

it is a relatively new thing in Java it was introduced in java 8

frigid ember
#

arent we up to java 13 :/

bronze marten
#

15 even

#

14 is released

#

15 in preview

vale slate
#

well most applications are Java 8

#

*still

pearl pawn
#

so guys how do i get who's throwing Null

frigid ember
#

yeah because LoNg TeRm SuPpOrT

bronze marten
#

so guys how do i get who's throwing Null
@pearl pawn debug, add print statements or sth

vale slate
#

so guys how do i get who's throwing Null
@pearl pawn So lets learn how to read a stacktrace

pearl pawn
#

@pearl pawn So lets learn how to read a stacktrace
@vale slate i know how to read the error

#

but i don't know how to fix the error

vale slate
#

Well we can't help you without knowing what the line 38 is in your source

#

a Methodhead can't throw a exception

pearl pawn
#

i told you lol i sent you the hastebin page with an # who says down here

thorny ledge
#

Npe happens usually when you try using an object before it is instanciated

bronze marten
#

Rerun the code, might be that you changed it after you put it on your server

vale slate
#

yes

bronze marten
#

Maybe it points to your old version of ur code

vale slate
#

because the line you gave us is not able to throw any exception, as no action is made

pearl pawn
#

i always clean and then install

vale slate
#

this line cannot be the cause

thorny ledge
#

Hold on

frigid ember
#

Is this your AntiCommandTab.java?

thorny ledge
#

Always a possibility that the compiler reads that huge ugly block as one line

#

Because of how lovely protocollib is

pearl pawn
#

Is this your AntiCommandTab.java?
@frigid ember im just making a recode for me

#

adding like more configurable things

frigid ember
#

What class have you sent a screenshot of.

thorny ledge
#

He meant is the class name AntiCommandTab lol

pearl pawn
#

yes

vale slate
#

well that could be luke

#

try to add Sysouts with numbers in them after every line in the nested method

#

an run it again

pearl pawn
thorny ledge
#

@Spleed do me a favor and throw a console println in between 38 and 39 and show me the stack trace

pearl pawn
#

ok

thorny ledge
#

Oh

vale slate
#

this is easy now

thorny ledge
#

Lmao

vale slate
#

Lmaoooo

thorny ledge
#

Whereโ€™d the NPE go?

vale slate
#

well it is still there

#

but now we know why

sand oxide
#

No field type

vale slate
#

There is no field in that class you could reflect

pearl pawn
#

protocollib is not even loading

frigid ember
#

i'm looking for an anticheat that doesn't just alert the staff but can also ban if passed enough checks. any ideas? i have a low budget

pearl pawn
#

AAC does that

thorny ledge
#

Army I like Spartan

frigid ember
#

doesn't AAC have alot of false flags?

pure pasture
#

Spartan omg

sand oxide
#

No field type in Map in EnemProtocol

pure pasture
#

Spartan and AAC are both really bad

frigid ember
#

@pure pasture any suggestions?

pure pasture
#

Code your own?

thorny ledge
#

Spartan kinda doesnโ€™t flag enough but at least you donโ€™t have rubber banding like most anti cheats and itโ€™s relatively cheap

#

No lol

frigid ember
#

@pure pasture sadly, i would if i knew enough. i only know simple java.

#

learning programming takes alot of time, and i don't really have alot of that.

pearl pawn
pure pasture
#

ok than maybe an anti cheat is a bit too ambitious if your just starting out i see

pearl pawn
#

nice now is 37 lol

frigid ember
#

i'm trying to learn simple plugins, but nothing large.

vale slate
#

Coding a anticheat is one of the most complex and advanced things you could do

frigid ember
#

^^

thorny ledge
#

^

lofty otter
#

if (player.isCheating) { ban(player) }

frigid ember
#

so there are no good alternatives?

lofty otter
#

there done

pearl pawn
pure pasture
#

Nice

silk bane
#

as it happens most anticheats have test servers so you could try them out on those

thorny ledge
#

Spleed

pure pasture
#

Love this anticheat @lofty otter

pearl pawn
#

Spleed
@thorny ledge what

thorny ledge
#

Youโ€™re getting NPE because protocollib isnโ€™t even enabled lol

pearl pawn
#

YEAH i told you

pure pasture
#

Did you try removing it?

pearl pawn
#

but idk why is not working

thorny ledge
#

It probably is not a compatible version xD

vale slate
#

Show your plugin yml

pearl pawn
#

its 1.15.2

pure pasture
#

Your does your plugin not run without it?

#

ProtocolLib might not be up to date

pearl pawn
thorny ledge
#

Your code obviously wonโ€™t work since it uses a plugin that isnโ€™t initiated

#

lol

#

You forgot something

vale slate
#

You need to put a depend in there

#

and a loadafter

thorny ledge
#

^

#

I forget the syntax so google it

native frost
#

Quick question: Does anyone know what event is triggered when you exit riding an armor stand? EntityDismountEvent and VehicleExitEvent both don't fire

pearl pawn
silk bane
#

@native frost i bet playertogglesneakevent works

#

(no guarantees)

pure pasture
#

Yeah it should

native frost
#

Alright thx

thorny ledge
#

Using ProtocolLib
To use the library, first add ProtocolLib.jar to your Java build path. Then, add ProtocolLib as a dependency (or soft-dependency, if you can live without it) to your plugin.yml file: Code:

depend: [ProtocolLib]

#

From bukkit^

vale slate
#

^

pearl pawn
#

even tho IntelliJ suggest another way ( with the spigot addon on intellij )

thorny ledge
#

Iโ€™m sure both work

pearl pawn
#

i'll test both

#

and the load after how do i do it?

vale slate
#

I always use the syntax from the wiki

pearl pawn
#

i set it to Postworld?

vale slate
#

it is included in depend by now

keen compass
#

if you are making an anti-cheat that relies on checking packets, would highly recommend that it not be part of the server otherwise if you get enough players your anti-cheat will cause network slow downs

pearl pawn
#

if you are making an anti-cheat that relies on checking packets, would highly recommend that it not be part of the server otherwise if you get enough players your anti-cheat will cause network slow downs
@keen compass its an AntiCommandTab

frigid ember
#

what

naive stratus
#

Forgot to disable a plugin im working on, that's growing glowstones at ground level, on my server before going to bed last night ๐Ÿ˜† https://imgur.com/a/bEhgMkk

thorny ledge
#

xD

native frost
#

Surprisingly, even PlayerToggleSneakEvent doesn't fire when exiting an armor stand. Is this a bug?

vale slate
#

well, I created a new Entity and I forgot to destroy it after a drop so I got a fountain

thorny ledge
#

Do you guys think itโ€™s worth making a mini guide for NMS villager NBT tag manipulation?

vale slate
#

meh I created a complete lib for this annoying stuff, but I think it would be helpful

thorny ledge
#

I was thinking it could be helpful for people who are good enough at java but havenโ€™t learned enough about the source code

#

It would be specific and short, but well explained

pearl pawn
#

that would be a cool project

#

OMG that worked

#

how do you english people remember to type I instead of i

thorny ledge
#

Glad to hear. And itโ€™s autocorrect

pearl pawn
#

now let's see if commands do work

thorny ledge
keen moth
#

make โ€œspecial priceโ€ string a constant

thorny ledge
#

That Iโ€™d likely use in it. I want to spread the best practices and conventions on to less experienced programmers

#

Is it not declared as a final object ?

radiant pollen
#

You re-declare it each time the method is called.

keen moth
#

Yea but thatโ€™s not a constant lol

#

i mean a class level variable that persists through all instances of that class

thorny ledge
#

Iโ€™m not sure Iโ€™m following you. A constant in java is generally defined as a final keyword

#

Enumerator?

keen moth
#

Not necessarily. final means it canโ€™t be re assigned.

radiant pollen
#

It should be defined in the class and static.

keen moth
#

final is a part of what a constant is

thorny ledge
#

Iโ€™m aware of that, and that it can be muted if it is possible

keen moth
#

private static final String EXAMPLE = โ€œhello worldโ€;

#

thatโ€™s a constant

radiant pollen
#

With your current code, it's not a constant because it only exists while in the scope of that method.

thorny ledge
#

Ah, so the fact it doesnโ€™t get instanciated is crucial and is only accessible within its respective scope

keen moth
#

itโ€™s instantiated once despite how many instances of that class are instantiated

radiant pollen
#

You'll always have memory allocated for it rather than just allocating memory while in that method call, but if you have multiple instances of that class it'll save memory.

vale slate
#

A constant in Java must be static final, so far the official documentation

keen moth
#

whether itโ€™s private or public is up to you. depends on the scope of accessibility you need

thorny ledge
#

Let me phrase what I said, I meant it always exists (within the program) and therefore wasnโ€™t instanciated if you will.

#

I really appreciate the feedback. I did not know this

vale slate
#

It's not phrased correctly but yes

thorny ledge
#

I assumed final was Javaโ€™s constant

vale slate
#

no there are differences

thorny ledge
#

Even though itโ€™s mutable

vale slate
#

as Java has the const key also

#

but thats really advanced Java

thorny ledge
#

It bring the object stored

#

I see what youโ€™re saying. Only in my third term lol

dusky herald
#

Final? If you do something like public final Object myObject = new Object(); then it will just reference that object and not any other one later on. But you can still change variables inside of it.

frigid ember
#

Guys, I've got something to show you.

#

It's really efficient code.

thorny ledge
#

Which is why Iโ€™m refraining to making a guide until I have a strong understanding of java

frigid ember
#

I must say I'm very proud.

vale slate
#

reeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

thorny ledge
#

hurls

#

Do some math and make that cleaner xD

frigid ember
#

math wasnt working

#

so i gave up

thorny ledge
#

Lol

radiant pollen
#

@frigid ember Could you at least do getWorld() only once? :[

thorny ledge
#

Whatโ€™s the length of a crafting table?

radiant pollen
#

at the VERY least

thorny ledge
#

^

frigid ember
#

lol

radiant pollen
#

ALSO WAIT A MINUTE

thorny ledge
#

Uh oh

#

Someoneโ€™s in trouble

radiant pollen
#

add() changes the current location.

pearl pawn
#

thank you all guys โค๏ธ thanks for the help

radiant pollen
#

So you keep changing the same location...

frigid ember
#

yes

radiant pollen
#

So is that math correct?

frigid ember
#

thats what I wanted

vale slate
#

This is what I would let fail so hard in a review

radiant pollen
#

I don't feel like looking at the numbers, just wanted to make sure you knew.

frigid ember
#

wait

thorny ledge
#

No problem @Spleed glad itโ€™s working ๐Ÿ™‚

radiant pollen
#

so you're not always doing add() from the original location

#

the adds stack

frigid ember
#

loc.add changes the value of loc?

#

FUCK

radiant pollen
#

yes

#

afaik

thorny ledge
#

Lmaooo

frigid ember
#

Who here has experience with making maven dependencies with jitpack.io, i am coming across problems

#

now is when I cry.

#

putting them on jitpacks repo

silk gate
#

yes java is pass by fuck you

radiant pollen
#

@frigid ember loc.clone().add() instead.

frigid ember
#

Who here has experience with making maven dependencies with jitpack.io? i am coming across problems

#

help me

radiant pollen
#

?ask

worldly heathBOT
#

If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply.

radiant pollen
#

Also you just asked it... give someone a moment to type a response.

#

like damn

keen moth
#

Clone is not cheap. Use getRelative or similar

radiant pollen
#

Oh true.

frigid ember
#

Who here has experience with making maven dependencies with jitpack.io? i am coming across problems
@frigid ember no one?

radiant pollen
#

?ask

worldly heathBOT
#

If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply.

radiant pollen
#

Just ask your question

dusky herald
#

I'm guessing it's a no, I've never even heard of jitpack

frigid ember
#

my old 1.0.0 and 1.0.1 releases work

#

i posted 2 releases

vale slate
#

I'm out if it comes to jitpack

frigid ember
#

since yesterday

#

they don't work

silk gate
#

descriptive

dusky herald
#

Then make them work

frigid ember
#

Wait how do I getRelative?

#

how?

#

@dusky herald ?

#

Maven just says it could not find the artifact

dusky herald
#

Then your artifact link is fucked up

frigid ember
dusky herald
#

Go look for the link on the jitpack page and make the artifact I'd correct?

frigid ember
#

just 1.0.0 and 1.0.1 work

dusky herald
#

And fix your pom.xml

frigid ember
#

?

#

1.0.2 works too(a release I deleted)

#

it still works

#

so its confusing

dusky herald
#

If Maven says it cant find the artifact, then your artifact id you used is broke

pearl pawn
#

I must say I'm very proud.
@frigid ember im making a plugin about enchanting in survival games, if you chose a specific kit and you use an item an full enchantment table will drop to you with particles as a falling sand and then place like a meteor

frigid ember
#

wait

#

no

#

maven says Cannot resolve com.github.purpdev:PacketEvents:1.0.4

pearl pawn
#

after 3 uses of enchant it will explode

frigid ember
#

so it cannot be resolved

vale slate
#

I think you should ask on another forum

frigid ember
#

which

#

i researched

#

jetpack doesn't have a forum

#

jit*

#

or a discord server

vale slate
#

a forum for maven for example

frigid ember
#

send me one

#

@dusky herald do you know or no

#

sorry for pings if u dislik eit

dusky herald
#

I dont know

vale slate
dusky herald
#

I mean, if I were you then I would retrace my steps

#

And figure out where you broke it

keen moth
#

are you using intellij?

frigid ember
#

yes

#

my old releases work

#

but newer don't

keen moth
#

try File -> Invalidate Caches/Restart

frigid ember
#

So like

#

I'm just gonna leave my hardcoding in like that as a "maybe will change later"

#

because maths is too hard

#

invalidate?

#

invalidate and restart?

keen moth
#

yea

frigid ember
#

ok

keen moth
#

the button should say โ€œInvalidate Caches/Restartโ€

frigid ember
#

btw thanks for answering, im a big fan of u

#

ur a real g man

#

after clicking the button

#

it asks another menu

#

uhm, does anyone know why it's lagging swimming up in water?

#

i clicked invalidate and restart

#

may viaverisons have caused that?

#

1.13.2+

keen moth
#

what happens after that

frigid ember
#

๐Ÿ˜ฎ

keen moth
#

send a ss if you can, iโ€™m not on pc

frigid ember
#

who

#

who

keen moth
#

jit pack issue

frigid ember
#

dms?

vale slate
#

somebody, one at a time, what is the problem with that, I don't come to a service point in a store and crash a conversation

frigid ember
#

who knows how to enable auto import on the LATEST version of intellij

#

i cant seem to see the option anymore

bronze marten
#

wdym auto import

#

is it disabled for you then?

frigid ember
#

yea

#

it shwos some small icon

#

and i must click it, so much diff from old intellij versions

bronze marten
#

the bulb?

frigid ember
#

i think so

#

i almost missed it the first time i updated

#

and was so confused

#

i want it automatically

bronze marten
#

but as you type, doesnt it underline it and say hey import this class?

long badge
#

Hello, I am trying to make custom trade villagers, which work fine for the most part except that a bug in Spigot seems to prevent the deals from happening when the villager is supposed to buy from the player a custom lore item (he can sell it with no issue though). The only way for the trade to work is to use a give command to get said custom lore item and trade it right away, without tempering with it (like restacking, ...) which makes it impossible to create a custom paper currency to use as rewards for dungeons. Does anyone know about a workaround or a plugin that would allow an alternative ?

frigid ember
#

no

#

i mean auto import in maven

#

not in java

#

sorry if i didn't specify

frigid ember
#

who knows auto import setting in intellij for maven

#

in latest version

#

of intellij

#

I think they changed stuff

#

anyone?

vale slate
#

I'm a oldschool eclipse user so no, sorry

frigid ember
#

ok

neat orbit
#

anybody help me find a good spigot /wild plugin for 1.15.2? all i need is command /wild ๐Ÿ˜ฆ

bronze marten
#

mbe search for it xd

neat orbit
#

i did

#

all are shoutouts or too big

rain cloud
#

hmm

#

Anybody help me find a good /vote plugin for 1.8 to 1.12 ..

#

In bungee server

vernal spruce
#

buddy.. you need to give up on 1.8 alrdy

#

less and less people bother rn to make compatibility for 1.8

#

think what happens with 1.16 release

vale slate
#

even forge dropped 1.8 by now

long badge
#

Anyone would know something about my custom lore object, villager trading issue ?

vernal spruce
#

Well on topic @rain cloud found this

#

but sadly he no longers offers support for it

blazing owl
#

How i can get offline player statistic ?

OfflinePlayer#getStatistic(...) //does not have
#

I need to transfer player statistics to the database once

vale slate
#

it's no that easy

vernal spruce
#

getStatistic(Statistic.Type)

blazing owl
#

@vernal spruce -_-

#

OfflinePlayer

#

not Player

vale slate
#

Offline player was dropped, wasn't it

#

oh it's there again

#

nvm

blazing owl
#

What version is it

#

Im on 1.12.2

vernal spruce
#

Can't you getplayer from the offlineplayer?

#

and use that to get statistic?

blazing owl
#

If the player is offline?

vale slate
#

It'll return null if the player isn't online

blazing owl
#

Player is online player

#

on server

vernal spruce
#

Well seems its dropped unlucky

vale slate
#

You need to get the servers stats folder

#

there is a json file named by the uuid of every player that was online at some point

blazing owl
#

Well, then I can just see it in the world folder

vale slate
#

yes

pure pasture
#

Guys im programming an own gamemode at the moment and I have a method that prevents players from pickung up certain items in their inventory.
It works but when I switch worlds it doesnt work anymore.

vernal spruce
#

post some code

#

on how are you stopping the event

pure pasture
vale slate
#

@blazing owl
new File(Bukkit.getWorld("Whatever name").getWorldFolder(), "stats");
should be the right folder

#

Trixone, could you format that, my eyes are bleeding

pure pasture
#

?

#

What do you mean?

arctic cloud
#

me when I steal code from 19 different sources and paste it together

vale slate
#

The brackets are a mess

#

I'm away for a bit now, sry

pure pasture
#

me when I steal code from 19 different sources and paste it together
@arctic cloud Thanks great help xD

arctic cloud
#

put your code here

#

do you even triple `

pure pasture
#

I never posted any code in Discord I dont really how it works xD

#

know how it works*

arctic cloud
#

do a triple ` then type java

#

then paste the code thentriple `

pure pasture
#
@EventHandler
    public void onClick(InventoryClickEvent e) {
     final Player p = (Player) e.getWhoClicked();
     if (e.getClickedInventory() == null) {} else {
      if (e.getCurrentItem() == null || e.getCurrentItem().getType() == Material.AIR) {
       return;
      } else {

       if (e.getCurrentItem().getItemMeta().getDisplayName().equalsIgnoreCase("ยง6SkyWorld Menu")) {
        e.setCancelled(true);
        p.updateInventory();
       }
      }
     }
    }```
#

ohhh hnice

arctic cloud
#

stonks