#help-development

1 messages · Page 1532 of 1

dapper steppe
#

@quaint mantlek sry

sullen dome
#
your code
#

but the yml looks okay tho

#
name: CreeperSpawn
version: 1.0
author: Jack
main: me.Jack.CreeperSpawn.Main
description: Spawns 10 creepers on player

commands:
  creepspawn:
    aliases: [cs]
    description: /cs spawns 10 creepers on player```
#

(for readability)

#

maybe change yaml description: /cs spawns 10 creepers on player
to

    description: '/cs spawns 10 creepers on player'```
dapper steppe
#

codeblock test

granite stirrup
#

i have intellij 2020

sullen dome
#

thats not a codeblock at all

sullen dome
dapper steppe
#

BIG BRAIN

granite stirrup
#

its the best version

dapper steppe
#

oh sry

#

BIG BRAIN

sullen dome
#

codeblocks are done like this:

your code

ivory sleet
#

```
your code

dapper steppe
#

oh i see

sullen dome
#

if you wanna flex

#

you can even use:

granite stirrup
#

jk

sullen dome
#

so it is colorful 🦆

dapper steppe
#

@sullen domejava

granite stirrup
#

class class {}

sullen dome
#

the java has to be on line 2

dapper steppe
#

i am gonna try the plugin now

sullen dome
#

for it to work

#

no nvm

sullen dome
granite stirrup
#
System.out.println("hello world");```
sullen dome
#

exactly

dapper steppe
#

ill report back in a bit

sullen dome
#

k

#

that's just soo confusing ahhh

dapper steppe
#

ive tried it, and it still doesn't work

sullen dome
#

is the error from the latest.log actually the error you sent in here? or did you get it from the console

dapper steppe
#

@sullen domewhat do you mean?

sullen dome
#

you showed us the error

#

you copied that from your console, or from the log-file directly

dapper steppe
#

I copied it from the log file directly

sullen dome
#

hmmm

#

i'd have to see at which line the error is.. so we need to see another class... do you have any other classes that could cause this?

dapper steppe
#

one sec

#

im checking

sullen dome
#

search in your code for smt like (Map) <something>

dapper steppe
#

should i check Main.java, or should i check CreeperCommand.java?

#

(im using eclipse IDE)

sullen dome
#

can you maybe use ?paste, and show whole both classes?

#

that doesnt matter at all

quaint mantle
#

how do i undo these commits, i wanna be even with Iridium-Development:master

dapper steppe
#

?paste

undone axleBOT
sullen dome
#

no idea of git

quaint mantle
ivory sleet
#

Believe you can revert it

granite stirrup
#

git reset --soft HEAD~1

quaint mantle
#

well is there a way to become even with the main repo

rigid otter
#

API missed YamlConfiguration.getMap()

dapper steppe
#

@sullen domewhere should i copy these classes from?

quaint mantle
#

i just want to reset my fork to be even with the main repo

sullen dome
#

from your ide

#

just the code

#

and paste it into:

#

?paste

undone axleBOT
granite stirrup
sullen dome
#

then click on save, and send the url in here

quaint mantle
#

doesnt do anything

dapper steppe
#

@sullen domei pasted the code into your pastebin

quaint mantle
#

i found those in a google search

granite stirrup
sullen dome
#

wait a sec, ill show you

granite stirrup
#

¯_(ツ)_/¯

dapper steppe
#

@sullen domedid you find anything yet?

sullen dome
#

small tutorial for my boy lol

#

and paste both of your classes's code into it

granite stirrup
dapper steppe
sullen dome
#

i did worse stuff tho

granite stirrup
#

that indentation

sullen dome
#

:/

dapper steppe
sullen dome
#

actually i dont leak mcp code

#

that was my code lol

granite stirrup
#

oh

#

i thought it was mcp

sullen dome
#

it is

granite stirrup
#

since ur where in mcp reborn

sullen dome
#

but not the class i had opened

granite stirrup
#

oh

#

wtf is that code windward

#

the indentation is all wrong

#

its really shitty

#

XD

sullen dome
dapper steppe
#

@granite stirrupthank you

sullen dome
#

xd

#

can you paste your command class as well?

#

thats probably where the error comes from

undone axleBOT
sullen dome
#

^

#
private static void createGiantSpawnEgg() {
        ItemStack item = new ItemStack(Material.ZOMBIE_SPAWN_EGG);
        SpawnEggMeta spawneggmeta = (SpawnEggMeta) item.getItemMeta();
        ItemMeta meta = item.getItemMeta();
        spawneggmeta.setSpawnedType(EntityType.GIANT);
        meta.setDisplayName(ChatColor.GREEN + "Giant Zombie");
        meta.addEnchant(Enchantment.LUCK, 1, false);
        meta.addItemFlags(ItemFlag.HIDE_ENCHANTS);
        ArrayList<String> lore = new ArrayList<>();
        lore.add(ChatColor.WHITE + "Spawns Giant Zombie!");
        lore.add("");
        //lore.add(TIER2);
        lore.add(UNFINISHED);
        meta.setLore(lore);
        item.setItemMeta(meta);
        item.setItemMeta(spawneggmeta);
        giantSpawnEgg = item;
}```
granite stirrup
#

i wish it did put it into a paste XD

sullen dome
#

made it quicker for you

dapper steppe
#

that is my command class

quiet hearth
sullen dome
#

oh wait that was your code? my bad

dapper steppe
#

its bad, but it'll do

sullen dome
#

it isn't the way? i'd thought you have to cast it like you'd cast DyeableArmor and stuff

dapper steppe
#

@sullen domewhat do you mean?

sullen dome
#

i meant to chewie

dapper steppe
#

oh sry

quiet hearth
#

like wdym

sullen dome
#

i don't really like answering to messages, because i hate to ping people

quiet hearth
#

oh idc i have sound off

sullen dome
#

i mean... don't you just cast it at all?

#

looks right to me

#

i'm actually confused rn... no idea why you get that error, ngl

dapper steppe
#

you talking to me?

sullen dome
#

yea

#

mabye someone different can help there

quiet hearth
#

ill try something different then get back

dapper steppe
#

ill go ask the same question on help-server, thanks anyways!

sullen dome
#

well, it's a development-related question. they'll lead you in here

dapper steppe
#

do you think anyone there could help me tho?

granite stirrup
#

i need help with coming up with a plugin idea...

sullen dome
#

idk if they could... but they probably won't ouside of here... because people are dicks :/

quaint mantle
#

ask the question

#

what is it

sullen dome
#

but well to be fair, it's a dedicated channel for dev

dapper steppe
#

@granite stirrupmake something that screams at you every time you craft something wring

sullen dome
#

he gets an error. and i got no clue whats the cause for it

quaint mantle
dapper steppe
#

i dare you

sullen dome
#

^

#

imagine has dev in his name.. so he obviously has knowledge

#

he probably can help

#

xd

dapper steppe
#

@quaint mantledo you think that you could help me with this?

quaint mantle
#

show code

hoary tiger
#

Hello, How would I move forward where they are looking?

sullen dome
#

uhh

granite stirrup
quaint mantle
#

i have knowledge

#

2 + 2 = 4

#

2 * 2 = 4

#

3 + 3 = 6

#

3 * 3 = 6

hoary tiger
#

o pog

dapper steppe
sullen dome
#

i know 10*10 = 100 :o

quaint mantle
sullen dome
#

thats all i know tho

hoary tiger
#

I know pi = 3.1415926535897932384

sullen dome
#

i dont even know what pi means

#

but yeah

#

i missed stuff

hoary tiger
#

62643383279502884197169

quaint mantle
#

3.141592653589793238 thats all i can remember

sullen dome
#

i mean, i know pi exists

#

but idk what it is at all

granite stirrup
#

theres so much numbers in pi

#

it goes on forever

hoary tiger
#

pi is the cercumfrance / radius of a circle

sullen dome
#

but today i knew what hypotenuse or smt is

#

so i'm bigbrain now

ivory sleet
#

I like pie

granite stirrup
#

apparently you only need like 20 digits of pi or something to figure out how to make a rocket

dapper steppe
#

i KnOw Pi

sullen dome
#

conclure

#

tell me something

hoary tiger
#

uhh wait sorry could someone answer the question above? I've been trying to do it for like 3 days now

sullen dome
#

what is the difference between cake and pie

#

because i dont know

ivory sleet
#

Stop

sullen dome
#

i want to know that

#

really!

granite stirrup
#

π

ivory sleet
#

No I can’t process

quaint mantle
#

@dapper steppe version?

sullen dome
#

xd

#

PLEASE MY DUD

dapper steppe
#

1.15.2

sullen dome
#

TELL ME

ivory sleet
#

I mean cake is cake and pie is pie

#

Difference

sullen dome
#

true

granite stirrup
sullen dome
#

lol

dapper steppe
#

isin't pie just dum cake

quaint mantle
sullen dome
#

then i guess we call pie Kuchen and cake Torte? idk

#

its weird

granite stirrup
undone axleBOT
granite stirrup
#

HOLLY

sullen dome
#

o my

#

how often

#

do i have to tell you guys

#

to use

#

?paste

undone axleBOT
quiet hearth
dapper steppe
#

in the log files?

sullen dome
#

i'd like if the bot would auto-ban people when they do such stuff multiple times

#

after getting warned

quaint mantle
dapper steppe
#

not to my knowledge

quiet hearth
sullen dome
#

idk if there's the possibility to change the plugin.yml while runtime tho

#

dont think so at all

granite stirrup
#

@quaint mantle is the only way to make a command while the server is running is using the commandmap?

quaint mantle
#

ye

#

or just add aliases to an existing command

#

walmart version tho ^

granite stirrup
#

what if your making something like skript

sullen dome
#

thats not really changing lol

granite stirrup
#

where u can register commands

quaint mantle
#

it uses commandmap

dapper steppe
#

@quaint mantleare there any other causes to why this would happen?

quaint mantle
#

no

granite stirrup
#

someone said not to use commandmap

#

before

quaint mantle
dapper steppe
#

@quaint mantleso you cant help me?

quaint mantle
#

nope

granite stirrup
dapper steppe
#

k thanks

quaint mantle
granite stirrup
quaint mantle
#

if they're predefined, then why?

granite stirrup
#

i didnt want to define them in plugin.yml

#

XD

#

nOw give me some plugin ideas

sullen dome
#

i actually made a Mod-Rendering-System for my Client. maybe create some system for anything spigot-related

#

that already is in 20k plugins out there

granite stirrup
#

make it send a packet for keys :) only when in focused

sullen dome
#

i mean.. when creating a mod, i just use this:
pretty cool

granite stirrup
#

are you faking the fps

sullen dome
#

one sec

#

you see the difference?

#

the dummy is the one that is rendered in the screen where you move the mods

granite stirrup
#

oh i couldnt see it

sullen dome
granite stirrup
#

are you making a hacked client

sullen dome
#

not really xd

granite stirrup
#

is it gonna be like the other clients then

#

xD

sullen dome
#

yeah

granite stirrup
#

so its just a shittier version?

sullen dome
#

but i dont have to pay for capes wings etc

#

:o

sullen dome
#

and i can make my own cosmetics lol

#

and mods

#

and stuff

#

and i'm not willing to badlion, viewing my system-files

granite stirrup
#

lol

sullen dome
#

so i can only win

granite stirrup
#

why dont u make it update with the actual fps?

sullen dome
#

and it's actually quite much fun, because there's no api or smt.

so imo i learn more java lol

#

wdym

granite stirrup
#

like in that red menu thing

#

with the mods

#

and shit

sullen dome
#

well

#

i think it's nicer than an always changing value.

#

just preference tho

granite stirrup
#

make it so u can enable/disable

#

:)

#

i dare you

sullen dome
#

i actually cannot distribute the client at all

#

so i don't need to make EVERYTHING configurable

granite stirrup
sullen dome
#

i don't know exactly. but i heard you are not allowed to distribute modified minecraft-code

#

i mean, i am allowed if i would create an installer and stuff, but lmao cmon

granite stirrup
#

no it says on the thing ⚠️ WARNING ⚠️: You CANNOT publish any code generated by this tool.

#

it doesnt say you cant publish the client jar

sullen dome
#

yea

#

the client jar contains the unobfuscated code

#

it doesn't obfuscate when building

#

one sec, i show you a comparison

quaint mantle
sullen dome
#

left one is original, right one my client

granite stirrup
quaint mantle
#

unless you want to end up losing a lawsuit that is

#

go for it then

granite stirrup
#

mojang doesnt even force the eula that much

sullen dome
#

yea

#

but still

#

you wanna risk?

quaint mantle
#

oh you bet they do when they find out about modified binaries

granite stirrup
#

but what if you dont use the mojang mapped version of mcp reborn?

sullen dome
#

well they probably won't if i didnt earn anything. officially, even all those mc-servers selling ranks are agains the eula

#

do they do anything against it?

#

they mostly dont even give a fuck when you have one of the biggest servers

quaint mantle
#

this is literally the one single reason why every modding platform builds patches on of the legit binary instead of just distributing it

granite stirrup
#

does forge do that?

quaint mantle
#

yes

#

you don't download the client, you download a little something that modifies the client

granite stirrup
#

but then why doesnt it take years like buildtools?

quaint mantle
#

it's like buildtools

quaint mantle
#

it uses a different decompiler idk

granite stirrup
#

it probs uses gradle to

#

and thats faster

sullen dome
#

for example servers who have ranks, with which you can join full servers > agains eula
ranks who gives you the ability to get more rare items than others who don't have the rank > against eula

granite stirrup
#

;-;

quaint mantle
#

uh nothing really to do with gradle

sullen dome
#

but the servers are still alive

#

because mojang gives a shit

sage swift
#

you mean doesnt

granite stirrup
sage swift
#

crate keys only

granite stirrup
#

ranks is custom

sullen dome
#

i'm sure it defines general advantages over other players

quaint mantle
#

not really

#

@sullen dome how did you do ur client thingy? did you like, decompile the client src and modify that or what?

sullen dome
#

i mean, if you have a rank, you can join full servers. if you join, someone without premium rank gets kicked for this player. do you really think this is eula-conform?

quaint mantle
#

literally the first thing you see when opening the eula page lmao

granite stirrup
#

idk i cant read it since i dont really want to put my security questions in

#

cuz lazy

quaint mantle
#

if you've made the "thing" you're providing, then you're good to go

sullen dome
#

now we have to define copies of the game

granite stirrup
quaint mantle
sullen dome
#

weird spoken, but kinda does

quaint mantle
#

You may not distribute any Modded Versions of our Game or software
Mods are okay to distribute; hacked versions or Modded Versions of the Game client or server software are not okay to distribute.

sullen dome
#

well yeah

#

there it comes to installers

quaint mantle
#

mhm

granite stirrup
#

¯_(ツ)_/¯

quaint mantle
#

things like buildtools or paperclip

sullen dome
#

with installers and stuff, it's somehow allowed

#

yea

granite stirrup
#

i cant read it rn cuz im to lazy to login

sullen dome
#

if it wouldn't badlion, lunar, etc wouldnt exist

quaint mantle
#

login..??

#

what??

granite stirrup
quaint mantle
#

"duh" no it does not lmao

sullen dome
#

lol

granite stirrup
#

it does

quaint mantle
#

anyway

granite stirrup
#

im not logged in

#

on the website

quaint mantle
#

neither am i

granite stirrup
#

its asking me to login

quaint mantle
#

¯_(ツ)_/¯

granite stirrup
#

when i go to it

proud basin
#

I feel like doing this ```java
public ItemStack[] pvpKit() {
ItemStack[] items = {
new ItemStack(Material.IRON_SWORD)
};
return items;
}

sullen dome
quaint mantle
quaint mantle
#

doesnt require me to login

granite stirrup
#

wtf its not asking me now

sullen dome
#

doesnt... as you see here

granite stirrup
#

bug

#

bug

proud basin
#

🧢

granite stirrup
#

im not capping

sullen dome
#

lol

granite stirrup
#

its a bug

#

i legit got asked to signin

proud basin
#

that's what they all say

sullen dome
#

yep

quaint mantle
#

lmao

granite stirrup
#

im not kidding

dusty herald
#

doesnt ask me either

sullen dome
#

of course

quaint mantle
#

anyway, it's irrelevant now

granite stirrup
#

IT FUCKING ASKED ME

quaint mantle
#

ghee

#

calm tf down

proud basin
#

excuses

sullen dome
#

yes it obvly did

#

xd

#

okay stop

proud basin
#

ok ok

#

keep this development

granite stirrup
#

yeah but im not kidding

#

xd

proud basin
sullen dome
#

if you say so :/

quaint mantle
#

If you make any content available on or through our Game, you agree to give us permission to use, copy, modify, adapt, distribute, and publicly display that content. This permission is irrevocable, and you also agree to let us permit other people to use, copy, modify, adapt, distribute, and publicly display your content

lol imagine if mojang asked modders of closed-source mods/plugins to open source everything

#

lulw

#

it could happen

granite stirrup
#

i need fucking plugin ideas please

#

dump them here

quaint mantle
#

pissing plugin

sullen dome
#

so wait a sec

#

wait wait wait

quaint mantle
#

hm?

sullen dome
#

if you distribute something like a client...

#

you give them perms to distribute/use/whatever it?

quaint mantle
#

yea

sullen dome
#

so you're actually allowed to tho

quaint mantle
#

?

sullen dome
#

i mean, if not this wouldnt make any sense

quaint mantle
#

???

proud basin
#

RealRivex what are you talking about

quaint mantle
#

they can take your content and use it themselves in the game

sullen dome
#

yea

quaint mantle
#

that does not mean you can distribute a client

granite stirrup
#

yeah it would?

quaint mantle
#

no?

sullen dome
#

why should they be allowed to use my private on-my-pc mod-code?

quaint mantle
#

you can distribute client/server mods/plugins/patches/addons/whatever

#

not a modified client/server

#

because it is not your creation anyway either

proud basin
#

Would all use Getter and Setters for kits?

sullen dome
#

If you make any content available on or through our Game

define any content. could be everything tho

granite stirrup
sullen dome
#

they don't really define it iirc

quaint mantle
#

your content

#

something they have not made

#

you didn't make the client itself, you made the modifications to the client

#

that's why you can distribute patches

sullen dome
#

yeah, and this client contains MY content. and if not with distributing, how would you make it available to otherse on or through the game?

quaint mantle
#

but not the client itself

hoary tiger
#

What can I put in the constructor EntityTypes<? extends EntitySilverfish> entitytypes

sullen dome
#

so wait a sec... if ...

quaint mantle
sullen dome
#

just and idea...

if i make an installer than injects it into the Minecraft-Code on installation, it's allowed?

quaint mantle
#

what do you think buildtools does lol

granite stirrup
sullen dome
#

thats greyzone movement at finest

#

ngl

#

how can that be allowed if it's strictly meant to inject/modify that code lmao. i mean.. it comes out with the same ending

#

love laws

quaint mantle
#

you are distributing your content

#

your content are said modifications

#

not the client itself

#

the client is not your content

#

the mods is

dusk flicker
#

Check out Paperclip if it's a server jar

quaint mantle
#

it is not

dusk flicker
#

Well then have fun lmao

quaint mantle
#

it contains a big fucking .patch file lol

#

that is applied to the vanilla jar

#

the patch file contains the modifications done to the server, it's not the server itself

granite stirrup
#

.patch is a git thing isnt it

quaint mantle
#

yeah

granite stirrup
#

yeah cuz i seen it in github app

#

which uses git

#

i think

#

like when u look at the changes in commits i think

quaint mantle
#

fun fact, in any commit on github, you can add .patch or .diff at the end of the url to look at the "raw" commit/diff

hardy swan
#

Cool kids uses git diff

torn oyster
#

question

#

has essentialsx been abandoned?

maiden thicket
#

no they have support for 1.16

#

and their github shows recent commits

digital plinth
#

can i change the texture that a projectile uses

#

like change the texture of a thrown snowball to the texture of a potateo

crystal eagle
#

Who can tell me the name of the pufferfish in version 1.12? I did not find it.

granite stirrup
#

1.12 didn't have pufferfish other than the item

quaint mantle
#

raw fish with id 3

#

as i said in general

#

and ye, its an item not an entity

quaint mantle
#

its not

#

they're just giving more people access

granite stirrup
#

U sure

quaint mantle
#

positive

granite stirrup
#

Idk

#

F I can't change about me on phone

quaint mantle
#

oof

granite stirrup
#

Eh but loads of people have like everyone

#

So that's why I thought it was out of beta

quaint mantle
#

I could be wrong but last I heard they were just expanding the range

#

meh, my alts have it now also, so maybe it is out

#

idk

granite stirrup
#

Idk I saw a YouTube vid saying everyone has it and my friend has said that to

hexed hatch
#

Everyone has it now

#

The little beta button is also gone

quaint mantle
#

hmm, yeah. apparently it was released a few hours ago

hexed hatch
#

About 12 hours ago

hybrid spoke
#

discord customization is out??

#

how do i do that

hexed hatch
#

Restart your client I guess? I went on the browser version and it was available there

hybrid spoke
#

i am on my phone

#

hm. just having an "above me" if i click on my profile but i cant change it >:(

hasty scaffold
#

Lana rhoades is hot

granite stirrup
#

Lol

quaint mantle
crisp citrus
#

quick question, whats the difference between Bukkit.broadcastMessage and java for (Player target : Bukkit.getOnlinePlayers()) { sendMessage(e.getPlayer(), target, msg); }

topaz moon
#

practically there is none I guess

weak mauve
#

one question

#

how can i move an item in a specific slot in a gui to player inventory after it close

unkempt peak
weak mauve
#

my items have NBT

#

thats seem broken

granite stirrup
weak mauve
#

with NBT items

unkempt peak
#

What do you mean?

granite stirrup
#

But it acts the same

topaz moon
weak mauve
#

and thats seem broken

unkempt peak
topaz moon
#

^

hazy rock
#

what are the main differences between spigot 1.16.5 and spigot 1.17?
i want to port my plugin to the latest version but i am not sure if itll break

weak mauve
#

one line is ok

weak mauve
#

ok

#

good

unkempt peak
#

Ok so i am trying to learn how to use MySQL and im using this guide
https://www.spigotmc.org/wiki/connecting-to-databases-mysql/
But i am getting java.lang.NoClassDefFoundError: com/mysql/cj/jdbc/MysqlDataSource I have this dependency in my maven <!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java --> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.24</version> </dependency>

sage swift
#

did you shade it

unkempt peak
#

?

sage swift
#

if not it expects the class there

weak mauve
#

shaded

unkempt peak
#

Sorry im new to using maven what is shaded

sage swift
weak mauve
#

burg

sage swift
#

basically what it does is include the classes in the plugin so that the plugin can use them

quasi flint
#

i personally dont use maven. dat bad gecko?

sage swift
#

since if you don't have them shaded, it will expect them (from either spigot or another plugin) at runtime

weak mauve
#

im making a custom craft table, and when i exit the gui, the item gone, is there anyway more efficent than get every item in the GUI slot and put it back to player inv?

#

except result slot anyways

quasi flint
#

i see hypixel skyblock

weak mauve
#

ye

#

dont ask

#

im just fixing GUIs

unkempt peak
weak mauve
#

holy

#

put that in a txt

quasi flint
#

pefform pom:validate

#

should check if its right. never worked with maven

unkempt peak
#

well it updated fine but im still getting the error

#

java.lang.NoClassDefFoundError: com/mysql/cj/jdbc/MysqlDataSource

quasi flint
#

have u shaded it

#

doesnt seem so

unkempt peak
#

What do i need to do to shade it?

quasi flint
unkempt peak
#

I copied the plugins thing what else do i need?

#

sorry im new to maven i dont know how this works

quasi flint
#

well

#

i am in school rn

#

maybe someone different can help

weak mauve
#

im making a custom craft table, and when i exit the gui, the item gone, is there anyway more efficent than get every item in the GUI slot and put it back to player inv?

jsut ask dont be argressive

quasi flint
#

first of all why ask again

weak mauve
#

i need help

quasi flint
#

snd without me thinking tol much rn, i dont thinkt there id

unkempt peak
weak mauve
#

the itemstackmethod doesn't seem efficent

topaz moon
#

it's not the same page

quasi flint
#

loop over every item slot

topaz moon
weak mauve
#

high ping players can dupe easily

quasi flint
#

put it into list

#

give it to him

weak mauve
quasi flint
#

well then good job

#

prob gheres s better solution

#

i cant think rn

topaz moon
#

You could prevent the dupe by comparing the inventories before and after

#

With the dupe prevention it's a pretty ok solution I guess

quasi flint
#

yea

quasi flint
rocky glacier
#

Guys i need quick help
Thats where the problem is:

public class Command {
}
apackage me.sat7.bustaMine.Commands;

    import java.util.*;
    import org.bukkit.command.*;
    import org.bukkit.entity.*;
    import org.bukkit.*;
    import me.sat7.bustaMine.*;

This is what it shows:

#

Starts w/Line 13

#

i dunno what to do why does it expect smth there

quaint mantle
#

Hello, how do I change the player's name? I've seen all the threads of spigot, bukkit, but almost all of them are recommended to use api or plugin and I haven't found an answer in GameProfile myself, profile#gameName exists but setName doesn't exist.

rocky glacier
#

changing players name in-game?

quaint mantle
#

like nick

round finch
#

is developing a spigot plugin on run time live possible?

hybrid spoke
#

i don't think so

unkempt peak
rocky glacier
quaint mantle
hybrid spoke
#

you would need a plugin which can code a plugin

rocky glacier
#

wait

quaint mantle
#

plugin codes plugin? xD

hybrid spoke
#

didn't meant you

round finch
#

i mean in an ide

quaint mantle
#

oka

hybrid spoke
hybrid spoke
#

first google result

quaint mantle
#

how did you find this?

#

I Couldn't find this

hybrid spoke
#

learn to google

quaint mantle
hybrid spoke
quaint mantle
#

omg lol

#

btw, thanks you

sage swift
#

wow i do not like the nms changes very much

quaint mantle
unkempt peak
sage swift
#

you dont know why or you dont know why not?

quaint mantle
#

I don't know why nms damage data and shutdown server

sage swift
quaint mantle
#

and how

sage swift
#

well yeah you can damage the server with the spigot api too lmao

#

it's just that nms is the base server code and a bit more dangerous in that sense

#

spigot is slower but gives you many safety precautions

topaz moon
round finch
#

i put it wrong channel

#

you could say it is a repost

unkempt peak
quaint mantle
round finch
#

but i wanted to hear more people about it

sage swift
#

let me show you an example of shading

#
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.6.1</version>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <executions>
                    <execution>
                        <id>shade</id>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <relocations>
                        <relocation>
                            <pattern>com.github.Redempt.Crunch</pattern>
                            <shadedPattern>Crunch</shadedPattern>
                        </relocation>
                    </relocations>
                </configuration>
            </plugin>
        </plugins>
    </build>```
#

this will take the classes under com.github.Redempt.Crunch and remap them to Crunch in the final jar

quaint mantle
sage swift
#

so youre not directly modifying player data

#

or nbt

#

i.e. the PDC api

#

each plugin has its own namespace

#

to prevent naming collisions

unkempt peak
sage swift
#

take the classes you need and remap them to something

#

start with the package name of the classes you need

#

just mysql, right?

unkempt peak
#

yes

#

this is the error java.lang.NoClassDefFoundError: com/mysql/cj/jdbc/MysqlDataSource

sage swift
#

so for pattern put mysql, and for shadedPattern you can put whatever you want the classes to be under in the final jar (not that it will make much of a difference)

#

so you can just put mysql again

unkempt peak
#

Ok

wet breach
sage swift
#

really? how so

#

it removes the PDC data?

wet breach
#

It should, PDC doesn't get saved into the NBT directly does it? o.O

sage swift
#

sure does

wet breach
#

then maybe not, but it should

#

otherwise you end up with over bloated files >>

unkempt peak
#

I am trying to fix the error

wet breach
#

you do know spigot has MySQL shaded in it already? o.O

opal juniper
unkempt peak
wet breach
#

Which guide?

sage swift
#

yeah as outdated as the rest of spigot lmao

unkempt peak
opal juniper
hybrid spoke
next crown
#

do you know any plugin to optimize minecraft server load

#

and optimize tps

sage swift
#

?optimize

#

nvm

quaint mantle
#

?optimize

wet breach
opal juniper
#

Optimise - Bukkit.shutDown()

sage swift
#

of course spigot doesnt have optimize shortcut lmao

sage swift
opal juniper
#

That’s a paper thing

sage swift
#

its suggesting shutdown

#

but not shutDown

opal juniper
#

Oh lmao

hybrid spoke
#

System.exit(0); dabby

wet breach
#

but yeah probably should use the updated driver though 😉

sage swift
wet breach
#

Not sure if it has been recently updated for the driver being shaded in

#

so you could check what spigot has shaded in first before adding more work on yourself lol

fiery inlet
#

Bukkit.getServer().spigot(). restart();

hybrid spoke
sage swift
#

halt > exit

#

for(;;);

unkempt peak
#

I did this and it did nothing

hybrid spoke
#

as frostalf already said, spigot contains mysql

unkempt peak
quasi flint
#

import the right shit i guess

sage swift
#

good guess!

unkempt peak
#

Yeah real helpful, have any idea where the shit might be located?

quasi flint
#

100 points to griffindor

hybrid spoke
unkempt peak
#

Ik but what dependecy do i use

wet breach
quasi flint
#

spigot

sage swift
#
        EnumInteractionResult result = player.d.a(player, world, nmsBlock, hand, 
                MovingObjectPositionBlock.a(new Vec3D(player.locX(), player.getHeadY(), player.locZ()), EnumDirection.a(evt.getBlockFace().toString().toLowerCase()),
                        new BlockPosition(location.getX(), location.getY(), location.getZ())));``` i love nms so much, especially when `playerInteractManager` turns into `d`!
quasi flint
#

tok

sage swift
#

no no no but look what it does

#

its worth it

hybrid spoke
#

i don't understand java

quasi flint
#

.d.a ;7

#

welp

quasi flint
sage swift
quasi flint
#

;D

sturdy patrol
#

neat 👌

#

don't say neat is a mod by vaskii, please >.>

quasi flint
#

noice

hexed hatch
hybrid spoke
sage swift
#

from the shulker? yeah

hybrid spoke
#

good but why do you need nms for that

sage swift
#

call fake interact so the placement of stuff like stairs slabs torches etc is correct

#

as if the player is placing it

#

otherwise i have to do many block-specific calculations for different kinds of blocks

sturdy patrol
#

so it works well even with worlguard and similar?

sage swift
#

yeah it essentially just fakes a block placed

sturdy patrol
#

that's so cool 👍

sage swift
#

technically it sets a block in the offhand and then forces the player to place it but we won't talk about that

ivory garnet
#

hi, how use a custom schedule bukkit ?

#

if i do Bukkit.getScheduler().scheduleSyncDelayedTask(Bukkit.getPluginManager().getPlugin("MYPLUGINNAME"), BukkitRunnable(() -> {

        @Override
        public void run() {
            player.sendMessage("hi");
            
        }
    }));  its a error
chrome beacon
#

And that is?

subtle kite
#

what are you even trying to do

wraith rapids
#

learn java

#

literally everything about that is wrong

ivory garnet
#

i would doing a schedule and in 10 secondes this schedule execute a code "player.sendMessage("hi")"

hybrid spoke
#

EDIT: nvm i cant specify on one error. simply everything is wrong

ivory garnet
#

ok so how can i do ?

opal juniper
#

What do you want to do?

#

Schedule a message every 10 seconds?

#

or a message in 10 seconds

ivory garnet
opal juniper
#

Right

topaz moon
#

Take a free java course. It will take some time but it's worth it on the long run

opal juniper
#

so as the others said just about everything is wrong

#

That is probs a good idea

#

?learnjava

undone axleBOT
topaz moon
#

Ohhh wow nice command. Good bot

opal juniper
#

but i am willing to explain this example

topaz moon
#

sololearn has an mobile app afaik

opal juniper
# ivory garnet its that
Bukkit.getScheduler()
// Returns the Bukkit scheduler ^^
.runTaskLater(
// Will schedule a task to be ran later
    plugin,
// This the instance of your plugin. This has been passed through the constructor
        () -> {
            player.sendMessage("Hi");
        }
// This is a lambda function. It cuts down on the Runnable code + is better in other ways
, 20*10);
// This is the delay in TICKS, so 20 tps * 10 seconds = 200 ticks
#

Obviously you can remove the comments, but that is to explain it

ivory garnet
#

thank you 👍

wraith rapids
#

🥄

opal juniper
#

🖕

ivory garnet
#

so i can replace 20*10 by 200 ?

opal juniper
#

yes

ivory garnet
opal juniper
#

that was for NNYa

ivory garnet
#

ok xD

wraith rapids
#

spoonfeeding is bad, m'kay

#

he now has a block of code and doesn't know how or why it works, despite your best efforts at commenting it

#

he will also probably come back in 0.35 milliseconds asking "how to get plugin"

#

you'll end up writing his entire plugin for him at this rate

topaz moon
#

tru

opal juniper
#

no - he will probs just plop in the
Bukkit.getPluginManager().getPlugin("MYPLUGINNAME")

chrome beacon
#

?spoon

undone axleBOT
#

Spoonfeed a newbie for a day and they'll come back with more questions. Teach them to find their own answers and you'll both be better off: you won't get stuck answering the easy questions and they'll be much more productive than before.

opal juniper
#

I GET IT

wraith rapids
#

spoonfeed more and I'll go TOTALEN KRIEG on you

opal juniper
#

ICH WERDE DICH FICKEN TÖTEN

#

lmao google translate is terrible

topaz moon
#

👀

ivory garnet
#

how can i cancel the schedule ?

opal juniper
#

it only runs once

#

200 ticks l8r

ivory garnet
#

yes but i would cancel this schedule if the player have a damage

topaz moon
ivory garnet
#

so i do public void EntityDamaged(EntityDamageEvent e) {
if(e.getEntity() instanceof Player) {
Player playerre = (Player) e.getEntity();
//cancel the schedule

wraith rapids
#

now write him a class with a uuid -> task map and all of the necessary code to make it run

topaz moon
#

But we probably can't write the code for you

opal juniper
ivory garnet
wraith rapids
#

first, you learn java, so you have an inkling of a clue of what you're doing and how to do things

#

then the responses we give here to your questions will be actually meaningful to you

#

basically, what you need to do is take the return value of the scheduler's run methods, which is a BukkitTask, store it in a map keyed by UUID or Player to associate it with a player, and in the damage event handler, retrieve the element corresponding to the damaged player, and if it exists, cancel it

#

however I'm willing to wager that literally none of this means anything to you

opal juniper
#

Can you get the Task from the id? i forget

wraith rapids
#

you can

#

i think? you can cancel it by the id, that's for sure

#

but, an int or a bukkit task, it doesn't matter

#

you need to store it anyway

hybrid spoke
#

#scheduleBlaBla returns an int with which you can cancel the task

opal juniper
wraith rapids
#

it returns an actual BukkitTask iirc

#

you chain it with getId to get the int

opal juniper
#

yep

wraith rapids
#

which is what most people do for whatever reason

hybrid spoke
#

nope

#

the schedule methods return int

wraith rapids
#

aren't the schedule methods deprecated

opal juniper
#

umm

hybrid spoke
#

runTasks returns BukkitTask

hybrid spoke
wraith rapids
#

brilliant

ivory garnet
opal juniper
#

i guess they assume it is more efficient to store int than the BukkitTask

wraith rapids
#

it usually isn't

#

to store an int you need to create a wrapper Integer object

hybrid spoke
# ivory garnet ok but how have this id ?

basically, what you need to do is take the return value of the scheduler's run methods, which is a BukkitTask, store it in a map keyed by UUID or Player to associate it with a player, and in the damage event handler, retrieve the element corresponding to the damaged player, and if it exists, cancel it

wraith rapids
#

which is an extra 12 bytes of object headers

#

plus the actual int itself

opal juniper
#

idk what BukkitTask actually represents though, it may be just the integer

wraith rapids
#

an object like BukkitTask is just a 4/8 byte reference

hybrid spoke
#

depends on what BukkitTask contains

wraith rapids
#

i'm not sure what it wraps over; could just be the int and the instance of the scheduler

hybrid spoke
#

but i guess it wouldn't matter since the extra resources used to store the BukkitTask IF THERE ARE ANY are so small that you can't even notice them

wraith rapids
#

well i mean, to store a reference type, you just need a reference

#

and collections only store reference types, generally

hybrid spoke
#

sure, but the object still exists

wraith rapids
#

yeah, but it's bound to exist anyway

hybrid spoke
#

and takes his place in the heap

wraith rapids
#

as it's probably used elsewhere in bukkit

#

so that object's footprint isn't attributable to you storing it

#

only the reference is

burnt current
#

Hello quick question:
Is it possible, if you want to use custom sculls, that you can somehow use your own created heads?
Thank you in advance

wraith rapids
#

and on the contrary, if you were to store the int in a collection, you'd need to wrap it in an Integer

hybrid spoke
wraith rapids
#

which would only exist just because you need to wrap it

hybrid spoke
#

but if not it will be thrown away afterwards if nothing refers to it anymore if the gc doesn't decide to go on vacation

wraith rapids
#

so that object's footprint is attributable to you storing it

opal juniper
wraith rapids
#

i'd believe that bukkit holds a ref to it until it either runs or gets cancelled

#

but either way, it won't use more resources than an Integer

hybrid spoke
#

^^

#

so in conclusion if bukkit holds the ref to the bukkittask somewhere in the background it would technically be better by storing the ref to the bukkittask

wraith rapids
#

if not, either goes

hybrid spoke
#

^

wraith rapids
#

but I also see no reason to jump between task and int and integer and back so I usually go with the BukkitTask ref

burnt current
wraith rapids
#

the texture needs to exist on mojang's servers

opal juniper
#

^^

burnt current
opal juniper
#

i use minecraftheads.com

wraith rapids
#

the texture, still, needs to exist on mojang's servers

#

you can't display arbitrary textures

hybrid spoke
#

set the skin for yourself and voíla it will be on the mojang servers

wraith rapids
#

what you do is you give the skull an URL that points at the texture on mojang's server

burnt current
#

oh oh ok

wraith rapids
#

you can make that happen by f.e changing your own skin to the texture you want

#

and then changing it back

#

old skins are retained on mojang's servers even after you stop using them

burnt current
#

okay

#

I'm not sure if this head exists on Minecraftheads. May I send a picture here in the chat to show you what kind of head I would like? Maybe you know a head that would look like this

opal juniper
#

ok

hybrid spoke
opal juniper
#

we can have a look

#

give the man a break

topaz moon
#

jeff is too kind

burnt current
#

something like this should be on the front of the head. But in red

rocky glacier
#

does any1 have a custom currency plugin "template" with placeholders to show player bal?

opal juniper
#

or does it have to be diagonal

opal juniper
wraith rapids
#

no we don't have premade plugins for you to copy

#

someone on the spigot forums might have your "template" but I wouldn't count on it

opal juniper
#

there is an astronaut

rocky glacier
burnt current
#

no... I replied to the wrong message .-. xD

#

So if I changed my skin now for that head, and then went back to my normal skin, would the head I need still be in the Minecraft database and I could use it?

opal juniper
#

yes

#

i think so

burnt current
#

and how could I then access the head?

opal juniper
#

im not sure

hardy swan
#

correct me if im wrong, but I think you can access old textures of a player's skin

wraith rapids
#

i don't think that is an astronaut

opal juniper
#

why not

topaz moon
#

Among us I guess

wraith rapids
#

AMOGUS

topaz moon
#

But these little fellas are in fact astronauts

hardy swan
#

that clearly isn't among us, it has no foot

wraith rapids
#

it'd be pretty difficult to put feet on a cube

opal juniper
#

^^

hardy swan
#

new theory: the shield of among us character isn't actually a shield or a mouth, it is the eye

topaz moon
wraith rapids
#

among us makes me want to holocaust 2.0

opal juniper
#

stop it

wraith rapids
#

it's so fucking annoying and it's everywhere

opal juniper
#

NNYa - have u updated ripcord

#

YOU CANT SAY THAT

wraith rapids
#

say what

opal juniper
#

NNYa - have u updated ripcord

wraith rapids
#

nah

#

still can't see replies

opal juniper
#

DO IT

#

NOW

hardy swan
wraith rapids
#

eh

#

maybe later

opal juniper
#

no

#

if i know you (and i dont really) you will procrastinate and not do it

wraith rapids
#

i'd have to like make backups and shit and ensure it doesn't nuke my data

#

too much effort

opal juniper
#

dafuq

#

why would it do that

wraith rapids
#

lots of software sucks

opal juniper
#

well, do that

#

now

wraith rapids
#

nah

#

i've something else to do

opal juniper
#

whats that huh

#

bet its not restarting ur pc

wraith rapids
#

it's not no

#

i'm going to build a giant cannon

#

to bomb the british with

opal juniper
#

what for planes

#

NONOONONONONONo

#

THAT IS ME

#

PLEASE NO

topaz moon
opal juniper
#

Just aim for ireland

wraith rapids
#

my WUNDERWAFFE cannon will lay waste to your cities

opal juniper
#

lmao

hardy swan
opal juniper
#

btw NNYa - i finished the translation plugin like last week

#

i hate async tho

#

i just find it stupid

wraith rapids
#

threading is a world of its own myeah

chrome beacon
wraith rapids
#

you'll get more used to it as you do more shit in a concurrent environment

#

but it will always be ass to some extent

hardy swan
#

#multithreadservers

opal juniper
#

You will be happy to know that your block of code made the cut

wraith rapids
#

lol

opal juniper
#

i did spread it out over lines tho

#

it hurt my brain otherwise

wraith rapids
#

use forEach instead of for on languageCodes 🤡

opal juniper
#

man

#

i did really mess it up there

hardy swan
#

.whenCompleted((result, e) -> {if (e != null) e.printStackTrace();}); 🙂

opal juniper
wraith rapids
#

yeah you probably want to do some exception handling

opal juniper
#

yeah

wraith rapids
#

i don't do that because it's for pussies

hardy swan
#

-.-

opal juniper
#

i mean - they will see when there is an error

#

cause it will be in their console

hardy swan
#

you cant see when there is error in cfs

hybrid spoke
#

ignore the error

hardy swan
#

cuz you know

opal juniper
#

nah

hybrid spoke
#

just go on

hardy swan
#

cf

wraith rapids
#

try catch ignore

topaz moon
#

embrace the error

opal juniper
#

i mean

hybrid spoke
#

bully the error

wraith rapids
#

cremate the error

opal juniper
#

let it live in the dark abyss of another thread, never to be truely accepted onto main

hardy swan
#

how to bully/cremate the error if you dunno if it is there

#

it is like

#

schrodinger cat

opal juniper
#

if it is that bad it will have to yell louder

hybrid spoke
#

punch into the future

wraith rapids
#

bad errors should be in all caps

hybrid spoke
#

name conventions >:(

opal juniper
#
Server:WARN - YOU MORON THERE IS AN ILLEGAL ARGUMENT EXCEPTION OVER HERE
opal juniper
wraith rapids
#

that's the spirit

hybrid spoke
#

Join.java doesn't seems so

#

Chat.java too

opal juniper
#

oh

#

lmao

#

yeah

hybrid spoke
#

PlayerInteract.java <--

#

and what else is there

opal juniper
#

i thought about changing the name but i couldn't find the refactor button

hybrid spoke
crude charm
#

Hello

opal juniper
#

how is that a misleading name

#

it literally interfaces with the api

hybrid spoke
#

so you could name everything XXXInterface then right?

opal juniper
#

YES I SHOULD HAVE

wraith rapids
#

have you tried the error logic in the main class

opal juniper
#

?

wraith rapids
#

the one that disables your plugin, in particular

#
 try {
            Class.forName("com.github.pemistahl.lingua.api.LanguageDetectorBuilder");
        }catch (ClassNotFoundException ignored) {
            getLogger().severe("______________________________________________");
            getLogger().severe("YOU DO NOT HAVE THE LANGUAGE LIBRARY AVAILABLE");
            getLogger().severe("You are Running: " + Bukkit.getVersion() + ", You must have <= 1.16.5");
            getLogger().severe("If you are running 1.16.5 you may need to update your build as you do not have the 'libraries' feature");
            getLogger().severe("______________________________________________");
            Bukkit.getPluginManager().disablePlugin(this);
            return;
        }
opal juniper
#

what bout it