#help-development

1 messages · Page 442 of 1

onyx fjord
#

i set it to 0 ms (on lower res you wanna increase it tho)

ivory sleet
#

Or APPLE (:

green prism
tender shard
#

thx

green prism
#

ty

ivory sleet
#

Anyway why avoid mongo?

#

Is it just temporary data over multiple nodes/servers?

tender shard
ivory sleet
#

Yummy stuff

green prism
# ivory sleet Anyway why avoid mongo?

No I mean, I try to avoid loading all the data for each player inside redis when starting the server.
By doing so I load them time by time at their login when needed

ivory sleet
#

Ah yeah

#

Well for player data

#

Thats good

green prism
#

🙂

ivory sleet
#

But why use redis here?

green prism
#

I was asked so

ivory sleet
#

Oh okay lol

green prism
#

I don't know lmao

#

It's useless here

#

I could use Caffeine and MongoDB directly

ivory sleet
#

U just went with it?

#

Ye

#

Well for player data

#

Where entries last a login session

#

A simple ConcurrentHashMap is fine

#

I reckon

#

Maybe just a HashMap

#

Depends on how u work with it

green prism
#

yeah, maybe a ConcurrentHM would be the best idea

ivory sleet
#

Yeah

#

Well, its mainly to support concurrent updates

young knoll
#

How about Int2ObjectLinkedOpenHashmap

ivory sleet
#

Well I use it to make my data transfers a little bit less thread safety heavy

golden turret
#

is it happening with you?

#

wsl

tawdry echo
#

how can block worldchange or using portals

hasty prawn
#

PlayerTeleportEvent iirc

icy beacon
#

why the fuck is it that throwing items out of the inventory (like in the attachment), the slot for InventoryClickEvent is -999????

#

find that in the documentation i dare you

echo basalt
#

That's the only documentation I need

icy beacon
#

😭

#

can you link it btw

#

gotta trust wikivg more than the spigot docs these days

#

what a horrible world we live in

echo basalt
#

Looks like ass on mobile

young knoll
#

-999 is just what Mojang uses to indicate outside the window

#

Yay magic

daring lark
#

how could i loop thorugh chunks around player?

terse ore
#

Get chunk x and z

#

Then do

#

For (int loopX = x-1; loopX<x+1; loopX++)

#

And do the same for z in a linked loop

#

Sorry I'm on phone

dusty totem
#

Is there a way to force name on compiling Spigot by BuildTools?
I've seen only --output-dir flag/parameter but it is only for directory.

dusty totem
#

I'm using ansible

tender shard
#

I am sure that ansible is able to rename files

dusty totem
#

yes it can

steep scroll
#

I am trying to learn how to make a mini game plugin I do not know where to start.

tender shard
#

have you made "normal" plugins before?

steep scroll
#

I have

#

I want to start with a common game tnt tag

tender shard
#

minigames usually consist of a game manager, that keeps track of each game's current "phase", e.g. waiting for players, started/running, finished, etc.
Then you usually have a loop / scheduler that checks the current game's states, does the logic for that phase, and/or switches to the next phase

tawny remnant
halcyon mica
#

Is there a way to get a parsed bukkit.yml object on the server?

#

Or will I have to parse it myself

young knoll
#

It’s a yml file so I assume you can just load it like any other

daring lark
#
entitiesToStack = plugin.getConfig().getStringList("entities-to-stack").stream()
                 .map(EntityType::valueOf)
                 .collect(Collectors.toList());
         Logger.log("entity: " + entitiesToStack);```
Why my list is empty?
#
entities-to-stack:
  -SHEEP
  -COW
  -CHICKEN
  -PIG
  -RABBIT``` config
pseudo hazel
pseudo hazel
daring lark
#
[19:43:11 INFO]: [LOG] []```
pseudo hazel
#

maybe replace the - with _ in entities-to-stack

daring lark
#

i doesn't matter for yml

pseudo hazel
#

how are you saving it?

daring lark
#

it's default config

tender shard
#

you are missing spaces between - and the word

#

it must look like this:

#

without the space, it's basically the same as this:

daring lark
tardy delta
#

hell ye reminds me of alex

tender shard
#

ah yeah, my CrashLib

#

I prefer putAddress(0,0) though

tardy delta
#

putInt(0, 0) for the win

#

im wondering how much memory leaks i already have

#

i always clean up my allocated memory so ig zero 👉👈🥲

#

shortened my code a bit

zenith crescent
#

Anyone know what this error is when trying to build buildtools 1.19.3?

        at org.spigotmc.builder.Builder.runProcess0(Builder.java:1055)
        at org.spigotmc.builder.Builder.runProcess(Builder.java:986)
        at org.spigotmc.builder.Builder.runMaven0(Builder.java:955)
        at org.spigotmc.builder.Builder.runMavenInstall(Builder.java:914)
        at org.spigotmc.builder.Builder.main(Builder.java:523)
        at org.spigotmc.builder.Bootstrap.main(Bootstrap.java:27)
ocean hollow
#

it loads before the world loads. i set in plugin.yml: load: STARTUP

but still the problem doesn't change.

young knoll
#

Where are you trying to read it

ocean hollow
#

onEnable()

young knoll
#

Worlds should all be loaded in onEnable on load: POSTWORLD

#

I don't think they are with load: STARTUP

#

Unless this is a custom world from another plugin

ocean hollow
ocean hollow
#

POSTWORLD by default and doesn't work with it either

young knoll
#

Is it one of the default worlds

ocean hollow
#

yes

young knoll
#

Weird, should work fine with postworld then

ocean hollow
young knoll
#

?paste the code

undone axleBOT
ocean hollow
rough drift
#

Changing player name above their head using nms

humble tulip
#

config is loaded when plugin is loaded

#

if your plugin loads before the worlds are loaded

#

well you can't deserialize the location cuz the world isnt loaded yet

ocean hollow
#

yeah, but what to do?

#

or no solution?

humble tulip
#
  1. don't store it in the default config
#
  1. don't load the plugin on startup
ocean hollow
#

ok

#

i`ll try

chrome beacon
#

?paste

undone axleBOT
eternal oxide
#

config is only loaded when you first access it

#

do NOT assign the config to a Field or that counts as an access

tawdry echo
#

how to create text that activate link

young knoll
#

Start with the field unassigned and assign it in onEnable

#

If you must use a field

chrome beacon
tawdry echo
ocean hollow
#

how to get itemStack list from config?

mint nova
#

Hello i have question about format in config.yml

How this config (image) can i turn into a message? in one or 3 (player.sendMessage)

young knoll
#

Use getStringList to get it as a list

mint nova
#

I know how to do 1 line but multiple idk

young knoll
#

Then loop the list and sendMessage each entry

mint nova
#

Ok

#

And another question

#

how i can create a placeholders?

#

in other class/files or anywhere

quaint mantle
#

message.replace("%placeholder%", <value>)

#

or use placeholderapi

young knoll
#

Just using replace is fine for a single value

#

If you have a bunch you probably want something else

quaint mantle
#

why is digitalocean still charging me

#

bruh

#

i thought reserved IPs deleted with my droplets

ocean hollow
worldly ingot
#

No but you can getList() in which all objects inside should be ItemStacks

#

It's a List<?> (which is basically just a List<Object>) and you can cast the values

worldly ingot
#

Yeah, cast it

#

ItemStack itemStack = (ItemStack) list.get(j);

#

I'd recommend doing an instanceof check if you want to be absolutely certain, but the cast will be safe so long as that - ==: org.bukkit.inventory.ItemStack is in the config entry

ocean hollow
#

What if it reproduces null?

worldly ingot
#

Then it will just be a null ItemStack instance

#

Would be the same as doing ItemStack itemStack = (ItemStack) null; which is valid

ocean hollow
#

wow, it worked! thanks! suffered all day. thanks to everyone who helped!

mint nova
#

i cant do another string for this

ocean hollow
#

.size()?

#

getStringList("test").size()

mint nova
#

o thanks bro

quaint mantle
#

or is there context im missing

weak meteor
#

should map.size(); work for getting the lenght of a map?

quaint mantle
#

i dont see why it wouldnt

weak meteor
#

i'd rather to not make a client

#

bc of that

#

but

#

i think a cat should be enough for the png

#

damn

tawdry echo
mint nova
#

i cant figure out

tawdry echo
#

you can make util class that join list as one string with new line option

chrome beacon
terse ore
#
for (String messageLine : plugin.getConfig().getStringList("test")) {
  player.sendMessage(messageLine)
)


#

this @mint nova?

mint nova
#

wait i will test it

willow widget
#

i am getting a NoDefClassFound error while on runtime or something like that, but im using maven and when fixing imports it works perfectly fine, what am i doing wrong? :'c

wise mesa
#

releasing a plugin for the first time in years and I fogot how to go about doing it

#

lmao

weak meteor
#

Which method is not deprecapted for getDurability?

#

Now it is on ItemMeta?

worldly ingot
#

Yeah it's a part of NBT, and therefore ItemMeta

#

Damageable, specifically

#
Damageable damageable = (Damageable) itemStack.getItemMeta();
damageable.setDamage(50); // Subtracts 50 damage from the durability
itemStack.setItemMeta(damageable);```
#

Just be sure you're importing org.bukkit.inventory.meta.Damageable, not org.bukkit.entity.Damageable

young knoll
#

💀

willow widget
# young knoll Send the error
java.lang.NoClassDefFoundError: org/apache/ftpserver/ftplet/FtpException
        at net.milkbowl.plugin.Main.onEnable(Main.java:50) ~[?:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[spigot-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:342) ~[spigot-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:480) ~[spigot-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.craftbukkit.v1_19_R1.CraftServer.enablePlugin(CraftServer.java:525) ~[spigot-1.19.2-R0.1-SNAPSHOT.jar:3610-Spigot-6198b5a-19df23a]
        at org.bukkit.craftbukkit.v1_19_R1.CraftServer.enablePlugins(CraftServer.java:439) ~[spigot-1.19.2-R0.1-SNAPSHOT.jar:3610-Spigot-6198b5a-19df23a]
        at net.minecraft.server.dedicated.DedicatedServer.e(DedicatedServer.java:225) ~[spigot-1.19.2-R0.1-SNAPSHOT.jar:3610-Spigot-6198b5a-19df23a]
        at net.minecraft.server.MinecraftServer.v(MinecraftServer.java:968) ~[spigot-1.19.2-R0.1-SNAPSHOT.jar:3610-Spigot-6198b5a-19df23a]
        at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:293) ~[spigot-1.19.2-R0.1-SNAPSHOT.jar:3610-Spigot-6198b5a-19df23a]
        at java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: java.lang.ClassNotFoundException: org.apache.ftpserver.ftplet.FtpException
        at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:147) ~[spigot-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:99) ~[spigot-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:521) ~[?:?]
        ... 10 more
#

i feel like its some thing with the import but i cant understand why Intellij takes the imports just fine

young knoll
#

You like didn't shade the library

mint nova
#

Can anyone help?

I dont know the issue, when i delete this

 private final WiadomoscPlugin plugin;

    public WiadomoscReload(WiadomoscPlugin plugin) {
        this.plugin = plugin;
    }

It will work, but i need that plugin thing, to reload config

young knoll
#

Also why are you using net.milkbowl as your package

willow widget
willow widget
terse ore
#

one question guys

willow widget
#

And already have my code in there so i dont want to bother rn about moving it

terse ore
#

what does static do in this case

young knoll
#

look up the maven shade plugin

prisma sedge
#

that's a good question

young knoll
#

static { } blocks are run as soon as the class is loaded

terse ore
#

oki ty

chrome beacon
young knoll
#

Which happens the fire time it's referenced

willow widget
terse ore
#

good resource for mysql x Java?

prisma sedge
#

What's the differences between spigot and paper? like the important ones

tardy delta
#

this is giving me ideas

tardy delta
prisma sedge
#

nice i guess

tardy delta
#

heehee

chrome beacon
terse ore
tardy delta
terse ore
#

k thx it's blurred for me

chrome beacon
willow widget
#

just added the dependency

mint nova
#

but thanks

#

for helping me

chrome beacon
willow widget
chrome beacon
#

Yes

raw crow
#

hello, I am having some problems with scoreboards (i never was good at this)

i wanna put a marker at TAB (scoreboard objective display slot "list"), which must be at this format: PlayerName [killCount-deathCount], for example: FarRed [15-3]

but i don't know how to do it

chrome beacon
#

And replace the values

willow widget
#

🤡 i left them in xd

#

yeah

#

ty

chrome beacon
#

Keep the :

willow widget
#

yup yup

#

i just messed the <> xd

#

i noticed because my console gave an error solving libraries lol

raw crow
wise mesa
#

ok so I just made a tool which automatically downloads the latest build of a jenkins job on server startup, i'd love to know what you guys think

eternal oxide
#

instanceof BlockInventoryHolder

#

it includes container

fallow violet
#

can i ask nms related stuff?

wise mesa
#

?asl

fallow violet
#

?ask

undone axleBOT
#

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. Make sure you use the right channel regarding the topic of your question. Create a thread in case the channel is already in use!

wise mesa
#

shit

fallow violet
#

xd

wise mesa
#

keyboard buggin

fallow violet
#

soooo
How can i manipulate a IBlockData so taht i place a specific Material but only for the client

        CraftBlock craftBlock = (CraftBlock) player.getLocation().getBlock();
        CraftBlockData craftBlockData = (CraftBlockData) craftBlock.getBlockData();

        // Place Block
        playerConnection.sendPacket(new PacketPlayOutBlockChange(
                new BlockPosition(
                        player.getLocation().getX(),
                        player.getLocation().getY(),
                        player.getLocation().getZ()
                ),
                craftBlockData.getState() // Manipulate the Material
        ));
young knoll
#

Why not use Player.sendBlockChange

eternal oxide
#

send a fake block change

fallow violet
young knoll
#

Yes

fallow violet
#

but how i manipulate the blockdata there?

eternal oxide
#

?jd-s your best friend is the search

undone axleBOT
fallow violet
#

damn it

young knoll
#

Same way you manipulate any block data on spigot

fallow violet
#

damn i already knew how im just idiot potato

terse ore
#

I am making an sqlite database

#

but I need to store a location

#

Currently I have created a table with attributes x, y, z, yaw, pitch and world

#

should I do it like this or compact it into a string?

young knoll
#

Doing it this way allows proper queries

#

That’s what relational databases are designed fo

terse ore
#

okok

hallow quiver
#

Does anyone know a plugin, command or datapack that allows any enchants to be combined with anything. What I mean if, I want to make it so if you find a golden sword with sharp 3, you can combine it at an anvil with an iron sword and transfer the sharp 3 over similar to how it would work on the same tier of sword.

Another example would be, you get an enchant magma cream with fire aspect, and if you've got a sword, you can put it onto the sword simular to if it was a weapon if the same tier. Thanks

wise mesa
#

this channel is kinda more about making plugins than helping with them 😄

#

we'd be happy to walk you through making it though

hallow quiver
#

Sorry, i've spent all day asking around and got redirected here

wise mesa
#

no worries

hallow quiver
#

i'm very novice when it comes to java

#

Didn't know if one already existed

wise mesa
#

well that's fair why make it twice

hallow quiver
wise mesa
#

what object is that

#

if your screenshot was like a little bigger it would help a lot

#

well minecraft is not a player is it 😅

#

gotta get the player object

raw crow
#

are you using paper? if yes, you can do that:

LegacyComponentSerializer serializer = LegacyComponentSerializer.legacySection();
Component componentMessage = serializer.desserialize("Hi, this is a message");
player.sendMessage(componentMessage);
wise mesa
#

oh bruh

raw crow
#

well, i just anwered his question, sorry

wise mesa
#

i assumed you were using spigot

#

idk how to do it in the client

#

you probably have to get the chat window somehow

#

and append a message

fallow violet
wise mesa
#

that's my guess

#

because there's only 1 player on a client

wise mesa
#

if you ask something about paper you get the second one

#

i mean its a little annoying

#

but if you have a paper questions just use their discord

fallow violet
#

true but just let me the moment

wise mesa
#

...

#

don't we do that too

#

?1.8

undone axleBOT
warm mica
#

they kicked me from their discord because i said that they shouldn't push server breaking changes, i am not kidding

wise mesa
#

does it work?

#

good luck

warm mica
#

and at the end they kicked me

wise mesa
#

ErrorWatch or whatever its called is sweet

#

in vscode

young knoll
#

Would be kind of nice

#

Especially when hovering just doesn’t want to work sometimes

wise mesa
#

nice when im doing rust development at least

young knoll
#

Wouldn’t be great on long lines though

raw crow
wise mesa
#

i feel like it would just look nasty in java because java errors are already nasty

wise mesa
fallen fjord
#

how do I save a string of text in a player?

quaint mantle
#

or something

#

nope

#

api bad

young knoll
#

You forgot a key

quaint mantle
#

yeah

#

im too rust like nowadays

#

i forgot the api

#

i used to have the entire spigot api memorized

young knoll
#

You might say you’re

#

Rusty

quaint mantle
#

lmao i like it

terse ore
#

?paste

undone axleBOT
terse ore
#

what could I do to fix this

young knoll
#

Shade hikaricp

terse ore
#

I have added it to my build.gradle and intellij recoginises it

young knoll
#

Or use the libraries feature

quaint mantle
#

send build.gradle

terse ore
#

sure 1 sec

fallen fjord
#

like "abc":"yes"

young knoll
#

?pdc

wise mesa
#

?help

undone axleBOT
#
CafeBabe Help Menu
*Red V3*
**__Admin:__**

selfrole Add or remove a selfrole from yourself.

**__Cleanup:__**

cleanup Base command for deleting messages.

**__Core:__**

embedset Commands for toggling embeds on or off.
info Shows info about CafeBabe.
licenseinfo Get info about Red's licenses.
mydata Commands which interact with the data CafeBabe has about...
set Commands for changing CafeBabe's settings.
uptime Shows CafeBabe's uptime.

**__Downloader:__**

findcog Find which cog a command comes from.

**__Mod:__**

names Show previous names and nicknames of a member.
userinfo Show information about a member.

**__ModLog:__**

listcases List cases for the specified member.
reason Specify a reason for a modlog case.

**__Permissions:__**

permissions Command permission management tools.

wise mesa
#

?info

undone axleBOT
quaint mantle
#

How can I add colors to tab complete?

eternal oxide
#

not with Spigot api

quaint mantle
#

Is there a way i can make items not have a name? like not an invisable character

young knoll
#

No

fallen fjord
#

you can just do " " right?

#

or maybe ChatColor.translateAlternateColorCodes('&', "&a")

weak kayak
#

or whatever color

#

that line just decodes &a

#

there's really no need for translateAlternateColorCodes

#

that line is supposed to be the full name of the item, right?

#

it doesn't matter what color it is if that is the case

#

it will be invisible

#

or am i missing context?

quaint mantle
#

okay another question is there an easy way to just fill up the rest of a gui with a certain item (glass panes) as a background

#

thers some slots that are supposed to have different items

#

just most of it is glass

weak kayak
quaint mantle
#

oh okay ig that works thx

weak kayak
#

no prob

zinc lintel
#

anyone knows what i do wrong?

winged anvil
#

show SpawnListeners

weak kayak
#

is SpawnListeners implementing Listener?

quaint mantle
#

yh thats probally the mistake

#

happend to me a ton of times

zinc lintel
#

here you go this is the full spawnlisteners code

winged anvil
#

wrong Listener import

#

import the org.bukkit one

quaint mantle
#

yep

zinc lintel
#

what do i put there instead?

weak kayak
#

org.bukkit.event.Listener is the correct one

quaint mantle
#

import org.bukkit.event.Listener;

zinc lintel
#

like this?

weak kayak
#

yes

quaint mantle
#

yes

zinc lintel
#

that did it thx

weak kayak
#

no prob

zinc lintel
#

how do i add Color to reactions from my plugin?

quaint mantle
#

color codes

#

§c is red for example

zinc lintel
#

so in here just put &cthere is no spawn set?

raw crow
# fallen fjord or maybe ```ChatColor.translateAlternateColorCodes('&', "&a")```

i think this could be a useful code for when someone want to use the literal character & instead of a color:

public static String parseColorMessage(String message) {
    StringBuilder formattedMessage = new StringBuilder();
    boolean escapeNext = false;
    for(int i = 0; i < message.length(); i++) {
        char c = message.charAt(i);
        if(c == '\\') {
            escapeNext = true;
            continue;
        }
        if(escapeNext) {
            formattedMessage.append(c == '&' ? c : '\\');
        } else {
            formattedMessage.append(c == '&' ? '§' : c);
        }
        escapeNext = false;
    }
    return formattedMessage.toString();
}
quaint mantle
zinc lintel
#

ok thx

quaint mantle
#

wait

#

but not &

#

use §

#

this character

weak kayak
#

you could do ChatColor.translateAlternateColorCodes('&', messageHere)

#

if you want to use & instead of the section sign

zinc lintel
quaint mantle
#

yes

weak kayak
#

that should work

quaint mantle
zinc lintel
#

thx

raw crow
#

does changing a player's scoreboard automatically remove it from teams?

weak kayak
zinc lintel
zinc lintel
weak kayak
#

what the

#

that's peculiar

quaint mantle
#

yh xd

weak kayak
#

never encountered that in my life

zinc lintel
#

same this is my first plugin i make XD

quaint mantle
#

any other plugin interferying maybe? bugged version of spigot?

#

not quite sure why that would happen

weak kayak
#

idk maybe just try recompiling or smth, probs won't fix it but worth a shot ¯_(ツ)_/¯

quaint mantle
#

try removing the courly braces

zinc lintel
zinc lintel
quaint mantle
#

yes

weak kayak
#

yes

raw crow
#

after all, it's just a escaping utility, so if someone put \&e, it will not transform & into §, will just keep the &

weak kayak
#

yes but what if someone typed smth like "5 diamonds & 6 sticks"

tardy delta
#

peek next

raw crow
zinc lintel
raw crow
#

so, if it has permission, should write like this: "5 diamonds \& 6 sticks"

weak kayak
#

i know certain characters kick players, that might be annoying. not sure if the section sign is one of those characters tho

raw crow
#

hmmm

weak kayak
#

maybe check how ChatColor does it and add your escaping functionality to that

quaint mantle
zinc lintel
weak kayak
#

yes but & will be turned into § with red's code

quaint mantle
weak kayak
#

oh

quaint mantle
#

anyone tell me 2 more 1v1 modes to add

zinc lintel
#

skywars

quaint mantle
#

what liberys are you importing

zinc lintel
raw crow
#

i know TotemWars works with 4 teams, but i've never seen a 1v1 (2 teams) version

quaint mantle
#

dependency i mean

zinc lintel
quaint mantle
quaint mantle
zinc lintel
#

gradle

#

i think

#

gives me this so i think gradle

quaint mantle
#

check here under project sturcture

zinc lintel
terse ore
#

I hardcode the slots lol

weak kayak
#

(online compiler for convenience)

#

i told ya so

#

yes

#

that is the issue

quaint mantle
#

I will be honest with you @zinc lintel i have no idea whats causing your issue

weak kayak
#

it will send § as a character

#

it will not parse it into a chat color

#

§ might be one of the blacklisted characters, i am not 100% sure but i believe it is

#

if you wanted to use &, you would get kicked

raw crow
# quaint mantle aight i will check that out

totemwars is very similar to bedwars, the differences are:

  • the islands are much bigger
  • the items for whole team are into chests inside a house on the insland
  • players can break island blocks, minner and craft items
  • instead of a bed, it is a dragon cristal (totem) that will not break instantly, it have 150 hp that decreases with hits; the totem is located on a tower and don't permit place or break blocks within x blocks radius of it
weak kayak
#

unless you escaped it each time

lost matrix
quaint mantle
quaint mantle
lost matrix
quaint mantle
zinc lintel
lost matrix
#

Set systemProp.file.encoding=utf-8 in gradle.properties

zinc lintel
#

nvm

#

found it

lost matrix
zinc lintel
#

wdym?

quaint mantle
#

how do you turn it into a jar

quaint mantle
#

export it

zinc lintel
#

you see that build that is darkblue on the right side

#

i just dubble click on it

lost matrix
#

Btw you should usually not have to set the file encoding because utf-8 is the standard
pretty much everywhere for years.

zinc lintel
quaint mantle
#

still could be

zinc lintel
#

i started this project a week ago

quaint mantle
#

and probally is

#

tbh i would recomd you not to use grandle

zinc lintel
#

i am testing it rn

zinc lintel
lost matrix
quaint mantle
#

if you use maven you will find way more help and tutorial to get started online

#

or at least that was my expereince when i started

zinc lintel
weak kayak
#

welll

#

they have the same intent

zinc lintel
weak kayak
#

build automation and shiz

lost matrix
weak kayak
#

not the same, but they have the same purpose

lost matrix
zinc lintel
raw crow
#

can someone help me with this?
i have a scoreboard with a dummy objetive at player_list, it counts the score of all players with some rules, but how do i set the score for individual players?
i have 2 parameters: x and y, and all players in the match have its own, and it's shown as follow: FarRed [15-3], where x = 15 and y = 3, but other players can have other numbers, how do i do that?

lost matrix
lost matrix
buoyant viper
#

trying to read up in chat to figure out his issue but i just can not

#

is he trying to send the section sign in chat?

zinc lintel
weak kayak
#

random characters that shouldn't be there

zinc lintel
lost matrix
zinc lintel
#

windows

buoyant viper
#

looks like that weird bug usually seen in server.properties if u try to use section directly

weak kayak
#

intriguing

zinc lintel
lost matrix
lost matrix
buoyant viper
#

try \u00a7, or just ChatColor.translateAlternateColorCode

zinc lintel
lost matrix
#

You are using ISO-8859 file encoding...

#

Click on that and change to UTF-8

zinc lintel
#

can't click on it

lost matrix
#

What are you doing to your IDE?

zinc lintel
lost matrix
#

Press Ctrl+Alt+S and select Editor > File Encodings
Then set the global encoding to UTF-8 and the Project Encoding as well.

#

Oh and show whats in there right now (for project encoding)

zinc lintel
lost matrix
#

Is your windows system set to ISO??

buoyant viper
weak kayak
#

🤔

lost matrix
# zinc lintel

Anyways set it to UTF-8 for now. But you botched something in your system properties.

zinc lintel
lost matrix
#

Project encoding

zinc lintel
#

done

#

now it shows this in the bottom

weak kayak
#

that should mean success

#

i think

knotty cape
#

hi

weak kayak
#

hello

#

howdy do

lost matrix
lost matrix
quaint mantle
#

I have the slight feeling this men is never gonna tough coding again.

#

man

weak kayak
zinc lintel
zinc lintel
weak kayak
lost matrix
zinc lintel
zinc lintel
lost matrix
#

You click on the clean action in your gradle panel or use the cli

zinc lintel
quaint mantle
zinc lintel
#

just the point that its 0:49 at night for me rn

quaint mantle
#

same for me

weak kayak
echo basalt
weak kayak
zinc lintel
weak kayak
#

i'm not experienced with gradle, take it with a grain of salt

zinc lintel
weak kayak
#

epic

quaint mantle
#

great job

lost matrix
lost matrix
weak kayak
raw crow
weak kayak
#

i'd consider looking into nms or (preferably) protocollib

quaint mantle
#

i'd consider deleting grandle and using maven just my personal opinion tho

raw crow
#

my approach here is make individual scoreboards and adding everyone to everyone's scoreboard to show data ones to all

zinc lintel
#

🙂

raw crow
#

but i think that is not the best option

weak kayak
weak kayak
quaint mantle
#

this was a whole group project x)

weak kayak
#

lol

#

congrats, team

quaint mantle
zinc lintel
weak kayak
#

that makes sense

zinc lintel
weak kayak
#

i mean i didn't really contribute much, but i'm glad you got it working!

quaint mantle
#

np always there to help beginners

#

hope you have fun in your future spigot jounrney xd

zinc lintel
#

i like coding a lot but the headaches are not great

weak kayak
#

you should see a doctor if you're getting migraines (this is a joke, don't sue me)

#

(actually no it's not a joke, proper healthcare is important kids)

weak kayak
#

NOOOO

#

my worst nightmare

gleaming grove
#

Does spigot supports Block Display?

zinc lintel
#

XD

quaint mantle
#

i would probally oversleep the court meeting thingy

weak kayak
#

same tbh

#

been sleeping more lately

#

i really do be a snoozer

quaint mantle
#

better a bit more then not at all ig x)+

young knoll
weak kayak
echo basalt
#

I find myself to be a great developer after downing a big redbull can

weak kayak
#

today and the day before i woke up around noon 😔

echo basalt
#

woke up at like 3pm today

#

was solid

weak kayak
#

damn

echo basalt
#

did a coding marathon from like 3pm to 5am

weak kayak
#

if i'm a snoozer you a real sleeper

echo basalt
weak kayak
weak kayak
echo basalt
#

but it all works now

#

and there's no hardcoding

#

:)

lost matrix
echo basalt
echo basalt
#

but yeah registering objectives is as simple as

lost matrix
echo basalt
#

little kids

weak kayak
#

👀

lost matrix
#

oh fk that was ours as well

echo basalt
#

and my algorithm learns from the syntax

#

and transforms the items on that GUI

#

into an actual list of objectives

weak kayak
#

that is neat

echo basalt
#

like so

young knoll
#

Isn’t the target audience of little kids just

#

Skript

echo basalt
#

and those scripts are then compiled and such

#

next step is writing an AI based on gpt-4 to rewrite hypixel

#

I drank a couple red bulls so I should be able to get that out within the next hour

weak kayak
# young knoll Skript

pretty sure the target audience of skript is people that don't bother to learn java, or another language that compiles to java bytecode

echo basalt
#

this is something I did with the intention of speeding up my team's workflow

#

instead of having to create classes n shit we can just let some toddler click on a couple buttons

weak kayak
#

the real "programming" language whose target audience is kids is scratch

echo basalt
#

and minor changes can be deployed in real time

#

I did make if statements :)

weak kayak
#

cool!

echo basalt
#

and variables

weak kayak
#

that is cool lol

lost matrix
#

Is this a university life server centered around going to college?

weak kayak
#

mini-language inside a plugin

echo basalt
#

the idea here is like

#

an extension of school, but in minecraft

#

and we have some partnerships

weak kayak
echo basalt
#

anyways, we'll have a cash pool to give back to college funds

lost matrix
echo basalt
#

and some fancy systems to associate kids with their teachers automatically

#

from the moment they join the server

#

with minimal setup

young knoll
#

The teachers get a bow

weak kayak
#

i read "bow" as "blow"

echo basalt
#

both work

weak kayak
#

immediately thought creepers

#

then i realized the implications...

echo basalt
#

anyways teachers can issue tests in minecraft

young knoll
#

Use arrows to select your kids

echo basalt
#

through a custom UI

#

and create their own questions or grab questions from our pools

#

and get results e-mailed to them automatically

young knoll
#

What age group is this aimed at

echo basalt
#

students

lost matrix
young knoll
#

I’m confused because it’s called university but it seems more suited for like

#

Elementary

weak kayak
echo basalt
#

and a recreation of call of duty zombies

#

with 3d modelled guns

#

I gotta find some videos, one of my hdd's on my raid0 storage thing has a broken sata header

#

:/

weak kayak
#

rip

young knoll
#

That would be an interesting cod game

#

Call of duty zombies: Harvard

lost matrix
echo basalt
#

if you can't succeed at school, we'll train you for the army type deal

weak kayak
#

looks like we might be seeing the start of a brewing rivalry 👀

young knoll
#

No this is about school not brewing

echo basalt
lost matrix
#

Nah i think illusion has a different audience after all

echo basalt
#

perhaps

#

we've also been like 7 months in the making

#

I started this back in september

lost matrix
echo basalt
#

anyways we've come a long way

lost matrix
weak kayak
#

seeing the amount of packages there gave me a heart attack

lost matrix
#

poor illusn

echo basalt
#

and I'm failing high school math too x)

weak kayak
#

everyone do a salute to pay respects 🇫

echo basalt
#

crazy to think I'm getting fish slapped by the only person I admire in this industry

weak kayak
echo basalt
#

but hey there's a lot of funky code that I didn't know I could make with my half-eaten banana iq

weak kayak
#

🐟

weak kayak
#

don't insult bananas like that :<

#

jk jk jk jk

echo basalt
#

listen man I still go to school

#

just turned 18 cmon give me some slack

lost matrix
#

I would say that im going to uni but i only have 3 courses this semester and too much free time...

weak kayak
#

me (i am having a heart attack from seeing all those classes)

echo basalt
#

I got a 9 hour programming class cmon

lost matrix
#

oof. I got like 3x4h in total

echo basalt
#

I got 10 hours of school / day + gym

weak kayak
#

i think

#

i didn't check

#

maybe 3/4ths of a banana

young knoll
#

Hey you never know

#

Maybe every class there is as complex as the Bukkit Listener interface

weak kayak
#

at the same time

tender shard
#

the more bad a banana becomes, the more it starts to live

weak kayak
#

what if every class has like 200 lines

remote swallow
#

Quick question for anyone that uses gradle, how do i make it apply module javadocs to the parent so i can publish them with the parent, for some reason its just making the jar eith MANIFEST.mf and the docs are only in the modules build/

tender shard
#

you can't

#

as usual, it requires a third party plugin

remote swallow
#

Thats fine

tender shard
#
buildscript {
    repositories { jcenter() }

    dependencies {
        classpath 'com.netflix.nebula:gradle-aggregate-javadocs-plugin:2.2.+'
    }
}

apply plugin: 'nebula-aggregate-javadocs'

then run aggregateJavadocs

weak meteor
#

Has someone used vaultapi?

tender shard
#

yes

weak meteor
#

whats the string in withdraw? econ.withdrawPlayer((OfflinePlayer) event.getWhoClicked(), "", 1000);

tender shard
#

the reason

weak meteor
#

Oh

#

Thanks

tender shard
#

np

weak meteor
#

What happens if the balance doesnt cover the price im withdrawing?

remote swallow
#

Wait a minute, nebula is netflix?

young knoll
#

It’s not

echo basalt
#

@lost matrix not sure who's got more

young knoll
#

It’s the world

weak kayak
lost matrix
young knoll
#

Vault is not an eco plugin

echo basalt
#

developer dick measuring contest

young knoll
#

It’s just an api

weak meteor
quaint mantle
weak meteor
#

well idk

remote swallow
#

7smile, i have a very important question

lost matrix
#

PES_SweatWhat 🍆

weak meteor
#

ill just check if the balance is higher

echo basalt
tender shard
lost matrix
echo basalt
remote swallow
#

Why were you in papers discord getting help

#

Are we not good enough

echo basalt
#

7smile7 getting help?

quaint mantle
#

no way

echo basalt
#

is it about packets ?

remote swallow
#

In paper

echo basalt
#

impossible otherwise

remote swallow
#

Paper is the bad part

weak meteor
young knoll
#

I’m not actual sure of any economies that do pet world balances

#

¯_(ツ)_/¯

echo basalt
remote swallow
#

Custom

echo basalt
#

why do you check that server?

lost matrix
young knoll
#

Then it’s not NMS

remote swallow
lost matrix
#

Sure, nms is patched as hell in both spigot and paper

remote swallow
#

Mostly announcements

tender shard
weak kayak
young knoll
#

Most of spigots patches are small

echo basalt
#

tbh I know like 80% of nms internals at this point

#

it's gonna be time where I apply to work at mojang and am already familiar with the codebase

weak kayak
#

i barely know nms

#

been a year since i touched that

tender shard
#

I wouldnt call it NMS if it's from a patch

weak kayak
#

i've only touched nms through mcp when i tried out making a cheat client for the heck of it

young knoll
#

NMS isn’t even accurate anymore since it’s not all in net.minecraft.server

#

We should call it Mojode

echo basalt
#

just call it nm

#

or nvm

weak kayak
#

just m

lost matrix
#

just m

weak kayak
#

holy

lost matrix
#

lol

weak kayak
#

jinx

tender shard
#

yeah lets call it m

weak kayak
#

yes

tender shard
#

"ugh why you using m for this, just use the api"

weak kayak
#

m

young knoll
#

MDMA

lost matrix
#

From now on. And never explain it to anyone else.
And shame them if they dont know the reference.

quaint mantle
weak kayak
echo basalt
#

I really wanna get a minecraft chicken plushie

echo basalt
#

it's like a rubber duck

quaint mantle
echo basalt
#

but industry related

weak kayak
#

if i ever suggest using non-api stuff in the forums now, i will call it m

quaint mantle
#

m

weak kayak
#

M for Monster energy

echo basalt
#

M for My heart's a stereo

weak kayak
#

that sounds familiar

quaint mantle
#

M for my dad left me

weak kayak
#

🥛

quaint mantle
#

whats milk

#

i make my cereal with water

remote swallow
#

how fuckin big are those fries

#

thats like an xxl

weak kayak
weak kayak
young knoll
#

No you’re just not American

lost matrix
#

Filled to like here

quaint mantle
#

fr

echo basalt
#

fries are overrated

young knoll
#

British McDonald’s are smaller

echo basalt
#

everytime I go to mcmc I just skip the fries

remote swallow
#

yes

weak kayak
#

xxl more like M (heh) in an xxl bag

echo basalt
#

they're never good

#

also mcdonalds diet coke tastes different

#

it's more watery but also more addicting

#

mostly because it's pretty much flat

young knoll
#

I asked for one large fry and they gave me a hundred fuckin little ones

remote swallow
#

i want 90 large fries

weak kayak
echo basalt
#

well

quaint mantle
quaint mantle
echo basalt
#

cocaine can also be considered diet coke

quaint mantle
#

i switched to subway

#

feeling much healthier

echo basalt
#

we had a subway here

#

it closed

#

:/

#

subway has a really relaxed refill policy though

weak kayak
#

we have neither where i live

quaint mantle
#

subway has the best smelling restaurants

echo basalt
#

as long as you keep the cup, you can refill until midnight

weak kayak
#

balkan issues 😔

remote swallow
#

americans fuckin love their free refils

quaint mantle
#

i have neither. Basically nothing. Only Döner

echo basalt
#

mcdonald's got no refill

#

kfc and burger king is 30 minutes

weak kayak
#

doner

echo basalt
#

kebab is nice

quaint mantle
#

yes

weak kayak
#

yes

echo basalt
#

there's this chill spot near my school where I get full lunch for 5€

young knoll
weak kayak
#

who doesn't love free stuff

echo basalt
#

free healthcare

weak kayak
#

unless the free stuff is like

echo basalt
weak kayak
#

a bomb or something

weak kayak
quaint mantle
weak kayak
quaint mantle
#

even better

echo basalt
#

don't y'all have intrusive thoughts like

#

I went to this brittish supermarket that has lockers where you put in a coin and take a key with you

#

and I was like

young knoll
#

“What if I stole the decoration of independence”

echo basalt
#

"what if I came here, put like a bomb or something and just walked out"

weak kayak
#

dude

#

relatable

echo basalt
#

anyways I'm now on a list

quaint mantle
#

i have intrusive thoughts of deciding the quickest way of murdering the people around me

#

visions too

#

lets just hope mine stay thoughts...

young knoll
#

🤨

weak kayak
#

this is definitely still help development, we're developing a conversation 😎

quaint mantle
#

agreet

#

agreed

echo basalt
#

I've already had an incident at my old school so I was probably on a list already

weak kayak
young knoll
#

🤨

weak kayak
#

my intrusive thoughts are more about me than others but i've had those kinda thoughts too

echo basalt
#

my principal accused me of terrorism

weak kayak
#

dam

echo basalt
#

because I threw a ketchup packet at a wall

weak kayak
#

wha

echo basalt
#

bitch also called me shrek

weak kayak
#

LLMAO

young knoll
#

Was it a ketchup packet filled with bomb

weak kayak
#

i wanna be called shrek by my principal no fair

echo basalt
#

they're both red

lost matrix
weak kayak
#

or blue, maybe i'm colorblind

echo basalt
#

no I mean dynamite

weak kayak
#

oh

young knoll
#

Dynamite isn’t liquid

echo basalt
#

like the cartoony red sticks

weak kayak
#

i think i'm gonna go develop me some sleep

#

it's 1:42 am and i gots school

young knoll
#

Minecraft discord still has their April fools icon

echo basalt
#

I got a 9 hour straight programming class in like 8 hours

young knoll
#

It’s not April first anywhere anymore

#

I’m suing

weak kayak
#

what april fools icon

echo basalt
#

can't bother suffering this soon

weak kayak
#

did i miss something

echo basalt
#

so I'll just chill here

quaint mantle
weak kayak
#

OHHHHHHHHHHHHHHHHHHH

#

my brain legit just missed the word "minecraft"

#

i might be dixlesiative 😔

echo basalt
weak kayak
#

anyway sleep time

#

au revoir

quaint mantle
#

au revoir mon amie

young knoll
#

Spigot needs more emojis

quaint mantle
#

i dont know french

weak kayak
#

me neither

quaint mantle
#

damn

echo basalt
young knoll
#

We need the Mojang 🤔

weak kayak
#

we need the M

echo basalt
gleaming grove
#
  ItemDisplay itemDis = world.spawn(location.add(0,3,0), ItemDisplay.class);
        itemDis.setItemStack(new ItemStack(Material.DIAMOND));
        itemDis.setGlowColorOverride(Color.GREEN);

        Vector3f translation =  new Vector3f(0,0,0);
        AxisAngle4f leftRotation =  new AxisAngle4f(0,0,0,0);
        Vector3f scale =  new Vector3f(3,3,3);
        AxisAngle4f rleftRotation =  new AxisAngle4f(0,0,0,0);

        Transformation transformation = new Transformation(translation,leftRotation,scale,rleftRotation);
        itemDis.setInterpolationDelay(10);
        itemDis.setInterpolationDuration(360);
        itemDis.setTransformation(transformation);``` What should I change to make interpolation  working? For now ItemDisplay just spawns without any interpolation
young knoll
#

You need to set the new transformation on a different tick

gleaming grove
#

oh I forgot about 1 tick rule XD

#

thx

tender shard
#

why does nobody ever use consumers when spawning entities... D:

#

everyone spawns the unfinished, default entity, then changes it later

gleaming grove
#

I'm just messing around with this new feature

young knoll
#

I mean it generally doesn’t change much

#

And people are used to no consumer

tender shard
#

it's like doing this

player.getInventory().setItemInMainHand(new ItemStack(Material.DIRT));
ItemMeta meta = player.getInventory().getItemInMainHand().getItemMeta8);
meta.setDisplayName("My awesome Dirt");
// ...

When you would rather first set the meta, and THEN add it to the inventory.

tender shard
#

or anyone else

remote swallow
#

so the aggregate javadocs worked, but now i dont have sources

#

and i cant find an aggregate sources jar

#

plugin

young knoll
#

“The Block is already broken as this event is called, so #getBlock() will be AIR in most cases. Use #getBlockState() for more Information about the broken block.”

tender shard
young knoll
#

I love dirty workarounds

tender shard
#

or create a module that depends on the other modules, shades them and use attach sources there

remote swallow
#

thats what my parent module does

tender shard
#

isn't your parent module just an aggregator?

remote swallow
tender shard
#

uugh that's messy

remote swallow
#

how + blame coll

young knoll
#

You can’t just take pride in the good parts and pin the bad parts on me

#

Smh

remote swallow
#

the good parts are the thnisg i made

tender shard
remote swallow
#

module

#

i could probably change that to compileOnly bc it gets shaded in parent

young knoll
#

I think spigot should bundle bytebuddy and asm

#

Much fun to be had

remote swallow
#

why

#

are they massive