#development

1 messages · Page 29 of 1

plucky delta
#

like the camera movement.

signal grove
#

oh my bad

#

wait

#

how is that supposed to work

#

regardless of where the player is looking, the location is still objectively north, south, east, or west of them

#

maybe you're looking for "left" and "right"

plucky delta
#

kinda yea

#

left and right

#

but also up and down

#

and everything in between

signal grove
#

ok im gonna delete it from the other channel, modify, and move it over here

plucky delta
#

but when i am looking the opposite way of the location then it should return South

#

when I am looking at it it should return North

#

see it as the north pole.

#

its like a compass, but in text.

signal grove
#

but its not south, it's a bit misleading

#

its behind

plucky delta
#

thats true

#

but i had to find names for it

#

lol

signal grove
#

forward, backward

#

left, right

plucky delta
#

yea kinda like that

#

wait

#

i think i know how to do it

#

with dot

#

yea got it

#

thanks for trying 😉

signal grove
#

nice

signal grove
#

so im adding worldguard as a dependency to one of my projects

#

im terrible at this sort of thing

        <repository>
            <id>sk89q-repo</id>
            <url>https://maven.enginehub.org/repo/</url>
        </repository>
#
        <dependency>
            <groupId>com.sk89q.worldguard</groupId>
            <artifactId>worldguard-bukkit</artifactId>
            <version>7.0.8</version>
            <scope>provided</scope>
        </dependency>
#

i set the <version> to 7.0.8 (this is likely the issue)

#

then i get this error Could not find artifact com.sk89q.worldguard:worldguard-bukkit:pom:7.0.8 in spigotmc-repo (https://hub.spigotmc.org/nexus/content/repositories/snapshots/)

#

anyone know what im doing wrong

bright pier
signal grove
#

no, im trying to just compile the plugin

#

not at that stage yet

#

i want it as a softdepend

lyric gyro
#

uh 7.0.8 is not out yet

#

7.0.7 is the latest release

signal grove
#

i cant use the beta?

#

yeah ok i got it on 7.0.7 now, thanks

signal grove
#

anyone know how i can convert regular worlds into worldguard worlds

#

nvm, i gotta use legacy

proud pebble
signal grove
#

oh nice

#

thanks a lot

dark garnet
#

wait how does that work?!?! the website is tied to the gradle project?????

dusky harness
#

then whatever website hosting you use updates the website with the latest jar

dark garnet
#

ohhhh i see

#

so this is only for java 9+?

edgy lintel
#

wtf is val

#

like auto

#

or var?

signal grove
#

i got another dependency issue, anyone know whats wrong here

#

cannot access com.sk89q.worldguard.WorldGuard

dusky harness
signal grove
#

im not even a deLEOPER ASKDJ

#

i was using java 1.8

#

(for 1.19.3) and maven doesnt say anything about the worldguard version being incompatible

echo birch
#

How do I allow a player to shoot a bow without arrows in the inventory? (1.19.2)

icy shadow
#

Thry don't magically spawn into existence

icy shadow
sharp cove
#

Is it possible to send a player a message from another server without making a BungeeCord plugin?
For example i am on PvP-1 and want to send a message to a player on Lobby

lyric gyro
sharp cove
#

RPC?

lyric gyro
#

It is inside the bungeecord software itself.

sharp cove
#
    public static void sendPlayerToServer(Player player, String server) {
        try {
            ByteArrayOutputStream b = new ByteArrayOutputStream();
            DataOutputStream out = new DataOutputStream(b);
            out.writeUTF("Connect");
            out.writeUTF(server);
            player.sendPluginMessage(OorlogSimulatie.instance, "BungeeCord", b.toByteArray());
            b.close();
            out.close();
        }
        catch (Exception e) {
            player.sendMessage(ChatColor.RED+"Error when trying to connect to "+server);
        }
    }```
Not something like this?
#

This is for sending a player to a different server

sharp cove
#

Is there any other way?

sharp cove
#

Yes but how does that work with messaging

#

Without using a bungeecord plugin

#

Don't want to make a bungeecord plugin for a simple message yk

lyric gyro
lyric gyro
#

You can use a plugin like ChatSync.

sharp cove
#

Ehm oke oke

#
    public static void sendMessageToPlayerLobby(Player player, String message){
        try {
            ByteArrayOutputStream b = new ByteArrayOutputStream();
            DataOutputStream out = new DataOutputStream(b);
            out.writeUTF("CustomMessage");
            out.writeUTF(player.getName());
            out.writeUTF(message);
            out.writeUTF(OorlogSimulatie.instance.kgetConfig().lobbyServer);
            Bukkit.getServer().sendPluginMessage(OorlogSimulatie.instance, "BungeeCord", b.toByteArray());
            b.close();
            out.close();
        }
        catch (Exception e) {
            System.out.println("Error when trying to send a message to bungee");
        }
    }

This wouldn't work right?😂

lyric gyro
#

No, you are sending a message on the channel BungeeCord, that is processed by the proxy itself, and Bungee does not know what "CustomMessage" is, see this page for a list of valid subchannels that BungeeCord can understand https://www.spigotmc.org/wiki/bukkit-bungee-plugin-messaging-channel/, for anything else you need a proxy plugin.

On a side note, you should close the streams in the reverse order you created them (so, first close the data stream, then the byte stream), and then after that use toByteArray.

sharp cove
#

Ah yes, thank u

calm loom
#

what does this mean (Borg.bukkit.command.CommandException: Cannot execute command 'roboref:score' in plugin RoboRef v${1.5} - plugin is disabled.at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37) ~

#

whats this error telling me

sterile hinge
#

the plugin that provides this command is disabled

calm loom
sterile hinge
#

there is none - by default, plugins are enabled on startup and disabled on stop or if they fail to enable

sterile hinge
#

look at the logs where it fails to load and fix the bug

calm loom
# sterile hinge look at the logs where it fails to load and fix the bug

[16:07:17 ERROR]: [RoboRef] Plugin RoboRef v${1.5} has failed to register events for class me.notdew.com.roboref.Commands.RegionEnter because net/raidstone/wgevents/events/RegionEnteredEvent does not exist.(B
[16:07:17 ERROR]: [RoboRef] Plugin RoboRef v${1.5} has failed to register events for class me.notdew.com.roboref.Commands.RegionLeave because net/raidstone/wgevents/events/RegionLeftEvent does not exist.(B

That just means i should delete that class and i will be good

#

right

#

@sterile hinge

sterile hinge
#

try and see

calm loom
#

k

calm loom
#

what do i do for that

sterile hinge
#

you don't need to ping me the whole time, also provide actual information (stacktraces, code) if you want help

calm loom
#

What specific file should i send i have like 19 classes

#

and it works on my server when its by itself

#

but on the other persons server it dont

#

Also what does it mean when it has (b at the end

sterile hinge
#

there'll be a stacktrace in the logs

calm loom
sterile hinge
#

by looking into the logs

dusky harness
#

a stack trace is that big blob of error

sharp cove
#

or an api?

icy shadow
#

unfortunately not

sharp cove
#

damnit

icy shadow
#

if ur using plugin messaging then you need a proxy plugin

#

to handle and redirect the message

dusky harness
#

but what emily means is that if you want a custom subchannel I think you have to create a proxy plugin

#

an alternative is to use something like RadioScanner

icy shadow
#

or something like RabbitMQ

dusky harness
icy shadow
dusky harness
#

including rabbitmq

hoary scarab
icy shadow
#

true but the difference between rs and rmq is that rmq could be done in a single process i.e. one port

dusky harness
#

I'm pretty sure

#

iirc it uses a player to send a "fake" packet

sharp cove
#

damn

icy shadow
#

whereas rs port requirements would scale linearly with the amount of servers

sharp cove
#

didn't know it was so hard to just send a message to a other server hahaha

hoary scarab
#

My serverselector plugin works fine sending players to empty servers lol

dusky harness
#

no matter what

#

¯_(ツ)_/¯

sharp cove
#

sending someone to a other server is no problem

dusky harness
#

i've never used rabbitmq so i can't comment on it on how good it is compared to radioscanner/etc

sharp cove
#

but sending messages is

icy shadow
hoary scarab
#

Ah yeah read the convo wrong

dusky harness
#

you can use those

sharp cove
#

Without creating a bungee plugin?

dusky harness
#

yeah

#

i think

sharp cove
#

but i don't get it how i implement it in this for example:

    public static void sendMessageToPlayerLobby(Player player, String message){
        try {
            ByteArrayOutputStream b = new ByteArrayOutputStream();
            DataOutputStream out = new DataOutputStream(b);
            out.writeUTF("Message");
            out.writeUTF(player.getName());
            out.writeUTF(ChatColor.RED + "Congrats, you just won 1$!");
            Bukkit.getServer().sendPluginMessage(OorlogSimulatie.instance, "BungeeCord", b.toByteArray());
            b.close();
            out.close();
        }
        catch (Exception e) {
            System.out.println("Error when trying to send a message to bungee");
        }
    }```
icy shadow
#

yeah theyre built into the proxy

dusky harness
#

🤔

sharp cove
#

I know its not the cleanest code tho

sharp cove
calm loom
#

(Borg.bukkit.command.CommandException: Cannot execute command 'roboref:score' in plugin RoboRef v${1.5} - plugin is disabled.at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37) ~[patched_1.16.5.jar:git-Paper-794]at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[patched_1.16.5.jar:git-Paper-794]at org.bukkit.craftbukkit.v1_16_R3.CraftServer.dispatchCommand(CraftServer.java:826) ~[patched_1.16.5.jar:git-Paper-794]at net.minecraft.server.v1_16_R3.PlayerConnection.handleCommand(PlayerConnection.java:2185) ~[patched_1.16.5.jar:git-Paper-794]at net.minecraft.server.v1_16_R3.PlayerConnection.c(PlayerConnection.java:2000) ~[patched_1.16.5.jar:git-Paper-794]
at net.minecraft.server.v1_16_R3.PlayerConnectionUtils.lambda$ensureMainThread$1(PlayerConnectionUtils.java:35) ~[patched_1.16.5.jar:git-Paper-794]at net.minecraft.server.v1_16_R3.TickTask.run(SourceFile:18) ~[patched_1.16.5.jar:git-Paper-794]at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[patched_1.16.5.jar:git-Paper-794]at net.minecraft.server.v1_16_R3.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[patched_1.16.5.jar:git-Paper-794]at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109) ~[patched_1.16.5.jar:git-Paper-794]at net.minecraft.server.v1_16_R3.MinecraftServer.bb(MinecraftServer.java:1271) ~[patched_1.16.5.jar:git-Paper-794]at net.minecraft.server.v1_16_R3.MinecraftServer.executeNext(MinecraftServer.java:1264) ~[patched_1.16.5.jar:git-Paper-794]at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:119) ~[patched_1.16.5.jar:git-Paper-794]at net.minecraft.server.v1_16_R3.MinecraftServer.sleepForTick(MinecraftServer.java:1225) ~[patched_1.16.5.jar:git-Paper-794]at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1139) ~[patched_1.16.5.jar:git-Paper-794]at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:291) ~[patched_1.16.5.jar:git-Paper-794]at java.lang.Thread.run(Thread.java:829) [?:?]

Okay this is my stacktrace whats wrong with it

dusky harness
#

that won't work since that ignores the other servers

icy shadow
dusky harness
#

^

sharp cove
#

I will check that later

#

But I now want just to send a message

dusky harness
#

?paste

icy shadow
#

also dont hide the exception message

neat pierBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
HelpChat Paste - How To Use

icy shadow
#

u havent actually said what's not working

#

thanks dkim

dusky harness
#

or else your code won't work

#

instead of Player player, use String

#

and then out.writeUTF(player)

#

and also I'd use try-with-resources

calm loom
icy shadow
#

^

icy shadow
dusky harness
#
    public static void sendMessageToPlayerLobby(Player player, String message){
        try (ByteArrayOutputStream b = new ByteArrayOutputStream();
            DataOutputStream out = new DataOutputStream(b)) {            
            out.writeUTF("CustomMessage");
            out.writeUTF(player.getName());
            out.writeUTF(message);
            out.writeUTF(OorlogSimulatie.instance.kgetConfig().lobbyServer);
            Bukkit.getServer().sendPluginMessage(OorlogSimulatie.instance, "BungeeCord", b.toByteArray());
        }
        catch (Exception e) {
            System.out.println("Error when trying to send a message to bungee");
            e.printStackTrace();
        }
    }
```smth like this
dusky harness
#

ah i just copied the code

calm loom
icy shadow
icy shadow
#

and above

dusky harness
#

by whole log i mean latest.log

icy shadow
#

it'll be near the start

#

fail

#

🍿

dusky harness
#

why

#

whats the tag

icy shadow
#

idk

dusky harness
#

?list

neat pierBOT
#
Available FAQ Answers:
FAQ Keys
arrow-code
autosellapi
base64-serialization
best-vps-deal
bug-with-dd
challenges
checkitem
codeblocks
colors
database
dc-fuuid
dc-towny
di
dictionary
discorddev
dm-1.10.5
dm-base64
dm-builds
dm-creator
dm-deny
dm-external
dm-filler
dm-glow
dm-heads
dm-item-data
dm-multireq
dm-open_requirement
dm-requirements
dm-tags```
FAQ Keys
docs
dry
ecloudblock
enchant-format
enchants
entities
ess-builds
flags
help
hidden-roles
hosting
hosting-free
hosting-paid
hotswap
imgur
javadocs
jdk
js-factionname
js-tag
json
learn-java
libs
luckperms
materials
need-help
nojquery
not-discord
notowner
optimize```
FAQ Keys
papi-dump
papi-hd
papi-nocolor
papibot
particle-guide
particles
paste
placeholders
player
pls-no
plsnoarrowcode
plsnolombok
roleperks
service
site
slots
solid
sounds
spigot
spigotid
startuplog
tagess
tryandsee
welcome-screen
wiki
xy
yaml```
dusky harness
#

theres no tag for it ig

calm loom
#

can you give me a guess as to why its not working when on the main server?

icy shadow
#

?startuplog

neat pierBOT
#
FAQ Answer:

Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.

dusky harness
#

uiyghiaushdiukjash

icy shadow
#

you cant just guess things in programming

dusky harness
#

?startuplog

neat pierBOT
#
FAQ Answer:

Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.

icy shadow
#

it could be a million different things

sharp cove
#

out.writeUTF("CustomMessage");

#

does this need to be Message or CustomMessage

dusky harness
#

hm?

calm loom
#

welp i gotta wait for the owner to send me the logs which may take hours

sharp cove
#

Message right?

dusky harness
#

Message

icy shadow
#

Message*

dusky harness
icy shadow
sharp cove
#

And I don't need to give the server right?
out.writeUTF(OorlogSimulatie.instance.kgetConfig().lobbyServer);

#

This can be removed i think

icy shadow
#

yes

#

u dont need that

dusky harness
#

oh yeah whoops you don't need that

sharp cove
#
        try (ByteArrayOutputStream b = new ByteArrayOutputStream(); 
             DataOutputStream out = new DataOutputStream(b)) {
            out.writeUTF("Message");
            out.writeUTF(player);
            out.writeUTF(message);
            Bukkit.getServer().sendPluginMessage(OorlogSimulatie.instance, "BungeeCord", b.toByteArray());
        }
        catch (Exception e) {
            System.out.println("Error when trying to send a message to bungee");
            e.printStackTrace();
        }```
dusky harness
#

yes

sharp cove
#

Alright

#

I'll try that

dusky harness
#

make sure you registered it

sharp cove
#

yes done it like this:

.instance.getServer().getMessenger().registerOutgoingPluginChannel(OorlogSimulatie.instance, "BungeeCord");```
#

registered*

neat pierBOT
sharp cove
#

IT WORKS

dusky harness
#

@calm loom show your main class

#

RoboRef

icy shadow
#

onEnable(RoboRef.java:209) something is null here @calm loom

sharp cove
#

@dusky harness @icy shadow thanks

icy shadow
dusky harness
#

@sharp cove no problem

icy shadow
#

np

dusky harness
#

wow

icy shadow
#

@dusky harness yw

sharp cove
#

🙂

dusky harness
#

copying my words

#

I see

calm loom
icy shadow
calm loom
#

there

#

try that

sharp cove
#

I was looking this up like 2 hours today and u guys have helped me in like 5 minutes🤷

dusky harness
#

okaay reset your token

#

@calm loom

icy shadow
#

classic

calm loom
#

how i do that

dusky harness
#

ill do it for you

calm loom
#

how i reset token

icy shadow
#

haha

lyric gyro
icy shadow
#

yeah should be reset now automatically

#

actually goated feature

calm loom
#

so you did it for me?

icy shadow
#

i think

calm loom
#

or do i need to do it

icy shadow
#

maybe

#

do it again just to be safe

dusky harness
#

ok i think i did it

icy shadow
#

but i think it auto resets if it's sent anywhere / pushed to github

dusky harness
#

did you get a DM from discord

calm loom
dusky harness
#

ok then reset it manually

#

🥲

icy shadow
#

anyway

#

are all your commands in plugin.yml?

river solstice
#

too late, I already hacked your bot

calm loom
calm loom
icy shadow
dusky harness
calm loom
#

or at least the ones throwing errors

icy shadow
#

🤨

calm loom
dusky harness
#

it should at least

#

idk why it didn't work this time

icy shadow
#

maybe it just takes a while

dusky harness
#

you reset the token the same way you generated it

#

assuming you generated it

calm loom
#

i didnt generate it

dusky harness
#

oh

#

then i just resetted someone's token

#

you're welcome unknown user

calm loom
#

im picking up on a plugin somone else made

icy shadow
#

you're*

dusky harness
#

too slow

icy shadow
#

no actually

#

i sent that before u edited it

dusky harness
#

latency

#

!

icy shadow
#

ping diff

dusky harness
#

anyways this is why you store tokens in configs/etc

calm loom
dusky harness
#

👍

#

latency

icy shadow
dusky harness
#

i know

icy shadow
#

doesnt matter

dusky harness
#

im not blaming it on you

#

im blaming it on @pallid storm User Who I Just Reset Their Token

#

oops

icy shadow
#

lmao

dusky harness
#

sorry Unknown

lyric gyro
#

bro

dusky harness
#

how come every time someone accidentally pings someone they never talk

#

they don't even have tier 1

#

are these like bot accounts

icy shadow
#

you dont even have tier 1

dusky harness
#

you're right

#

I'm a bot account

#

beep boop

icy shadow
#

anyway

#

the actual error

dusky harness
#

is odd

#

why would it ever return null

icy shadow
#

is unfortunately not very helpful since im guessing theyve changed some lines in the meantime

dusky harness
#

yeah im assuming that

icy shadow
#

however

#

@calm loom just triple check that all your commands are in plugin.yml, also these lines are suspicious ```
Plugin RoboRef v${1.5} has failed to register events for class me.notdew.com.roboref.Commands.RegionLeave because net/raidstone/wgevents/events/RegionLeftEvent does not exist.

#

so potentially the other server is missing a plugin

#

although im not sure that would cause an npe

dusky harness
#

i've never seen that error

icy shadow
#

well it's a warning not an error

dusky harness
#

oh

#

what's that warning mean

rugged bane
icy shadow
#

it is but that's unlikely to be the cause of the issue

#

probably just a typo with the interpolation

dusky harness
#

if i ctrl F RegionLeave nothing shows up

icy shadow
#

yeah that is very odd

lyric gyro
#

they dipped

#

lol

icy shadow
#

ghost ping!!!

calm loom
icy shadow
#

then clearly the other server's jar is outdated

calm loom
#

they are the same one

#

oh

#

yeah

icy shadow
#

$5 says they have an old version with a different name

calm loom
icy shadow
#

¯_(ツ)_/¯

calm loom
icy shadow
#

i wasnt talking about the discord token?

calm loom
#

im so confused

#

what token then

icy shadow
#

?

#

the token is old news bro

#

scroll up

#

we've been talking about something completely different

calm loom
#

oh yea

#

im dum

dusky harness
#

well now the plugin won't work at all 🥲

#

because of the invalid token

calm loom
#

WAT

#

why it invalid

#

im sad now

icy shadow
#

because it's been reset (hopefully)

dusky harness
#

if that token is on a bot with a discord server of like 20+ then it's worth it

icy shadow
#

if it's not obvious, what you've done is basically shared the password to your bot

#

thats what a token is

dusky harness
#

(bots don't have "usernames" either)

icy shadow
#

🤓

#

so it's an extremely good idea to generate a new token

calm loom
#

but i dont have the login to the oringal bot

dusky harness
#

especially if the bot has admin perms

icy shadow
#

yes you do

#

that's what a token is

dusky harness
#

which i do because im lazy

#

i should've used the token and spammed "boo" in every channel

#

too late now though

icy shadow
#

is it?

dusky harness
#

want me to test?

calm loom
#

i dont understand discord bots

icy shadow
#

way ahead of u

calm loom
dusky harness
calm loom
#

i will get in so much trouble

dusky harness
#

if it is valid

#

tell me

#

plz

dusky harness
dusky harness
calm loom
#

i just want the commands to run

#

idk about the discord part

#

the commands failing have nothing to do with discord

#

i just need the commands to work

icy shadow
#

well unfortunately unless you delete all the discord code that's not gonna work lol

#

danger averted

#

for now

calm loom
icy shadow
#

yes

dusky harness
#

also using prod token to test

#

💀

icy shadow
#

probably fine

#

if it compiles

#

well "fine"

#

the discord stuff is gone at least

calm loom
#

in the origonal error was there anything else i need to fix?

icy shadow
#

it's hard to tell

calm loom
#

ill launch and see what happens

calm loom
icy shadow
#

and the first bit?

dark garnet
icy shadow
#

in theory you could

calm loom
icy shadow
#

Already told you, make the token configurable

#

Don't hardcode it

calm loom
#

im not well versed in discord stuff how would i do that

calm loom
icy shadow
#

this has nothing to do with discord

#

its just loading from a config file

#

Rather than putting it in your source code

calm loom
#

and how would i go about doing that

calm loom
icy shadow
#
token: put the token here
#

Then the server owner can change it

dusky harness
#

like in config.yml

icy shadow
#

Without needing a new jar

dusky harness
#

i mean the server owner will have to change it anyways because the token is invalid now 🥲

#

💀

calm loom
dusky harness
#

you have to add it to the config

#

if you're using spigot config then you just add it onto the config.yml

#

unless you do the addDefault thing

calm loom
#

the plugin.yml?

dusky harness
#

no

#

do you have any config in the plugin

calm loom
#

no

dusky harness
#

oh

calm loom
icy shadow
#

Yes

dusky harness
icy shadow
#

Keeping it in the jar is just asking for disaster

dusky harness
#

disaster already happened

icy shadow
#

Again

dusky harness
#

🥴

#

disaster v2

icy shadow
#

It'll be the long-awaited sequel

dusky harness
#

I see

calm loom
#

which folder should i have it in the same folder as the plugin yml?

dusky harness
#

yes

calm loom
#

and what should i put in the config

icy shadow
#

Except the plot is a bit boring, just a rehash of the original

dusky harness
#
token: "PUT-TOKEN-HERE"
#

don't actually put the token there

calm loom
#

thats it?

dusky harness
#

then when you start the server

#

replace PUT-TOKEN-HERE with the actual token

#

ex ```yml
token: "1h2gh3yui12gt3uyjh12g378612y3781yt2g3j"

calm loom
#

so thats all i gotta do?

#

i made it a config.yml did token: space my token

#

thats all?

icy shadow
#

Well no, you have to actually load and read the config

dusky harness
#

a simple route would be to use a properties file

but for the sake of knowing how to make a config we'll go the config route

calm loom
#

AAAAAA this hurts my brain i just wanna remove it but if i remove the discord stuff it puts an error in another file and it just goes on and on and on

calm loom
#

but when i do it gives errors in other files

dusky harness
#

i wouldn't do that

calm loom
#

doing the config way makes my brain hurt

calm loom
river solstice
#

I would suggest doing some reading and understanding how configuration files work. (Probably some OOP things too)
We can tell you how to do it, but we cannot make you understand it by snapping our fingers.

calm loom
#

This whole thing is so annoying lol it pisses me off that on my test server its fine but on there main server its broken

#

it doesnt make any sense

icy shadow
river solstice
#

it makes sense if the environment is different

calm loom
#

can u help me do thaty

#

becuase when i try to do it

#

it creates errors across like 8 files

icy shadow
#

remove all the error causing things then

calm loom
river solstice
#

and I thought my code was bad 💀

dusky harness
#

i wouldn't remove all the jda stuff since you're going to have to re-add it back anyways

calm loom
#

OKAY

#

igot somthing to work

#

there

#

thats the new error

#

it connects

#

but errors

calm loom
#

can u look at my new error

icy shadow
#

Just post it bro

#

u don't need to ask my permission lol

calm loom
#

[18:12:20 INFO]: Connecting to Discord API
[18:12:21 ERROR]: [net.dv8tion.jda.internal.requests.RateLimiter] Encountered exception trying to execute request
java.lang.IllegalArgumentException: Unexpected char 0x0a at 76 in authorization value: Bot (not gonna send this but it has it)
at okhttp3.Headers.checkValue(Headers.java:284) ~[?:?]
at okhttp3.Headers$Builder.set(Headers.java:415) ~[?:?]
at okhttp3.Request$Builder.header(Request.java:184) ~[?:?]
at net.dv8tion.jda.internal.requests.Requester.execute(Requester.java:174) ~[?:?]
at net.dv8tion.jda.internal.requests.Requester.execute(Requester.java:141) ~[?:?]
at net.dv8tion.jda.internal.requests.Requester.execute(Requester.java:124) ~[?:?]
at net.dv8tion.jda.internal.requests.ratelimit.BotRateLimiter$Bucket.run(BotRateLimiter.java:478) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
at java.lang.Thread.run(Thread.java:829) [?:?]

#

there

#

i posted it

calm loom
dusky harness
calm loom
lyric gyro
#

Boys I need serious help.

dusky harness
calm loom
#

no

#

the parthenasis are

dusky harness
#

show the code

river solstice
#

() = token

#

hm

dusky harness
#

?paste

neat pierBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
HelpChat Paste - How To Use

dusky harness
calm loom
dusky harness
calm loom
#

ah okay

dusky harness
#

that's not the config

#

your token is still out there

#

in the code

calm loom
#

okay lemme edit that out

dusky harness
#

also you have \n at the end of the token

#

which you want to remove

#

don't have a TOKEN variable

calm loom
#

this good?

dusky harness
#

also you already have a config

calm loom
#

how do i move it?

dusky harness
#

look at lines 268 - 272

dusky harness
calm loom
calm loom
lyric gyro
#

Gentlemen, I am experiencing an issue with one of my 1.8 spigot servers. I have provided a list of the plugins in use (https://paste.helpch.at/jugaqefase.sql) and the startup log (https://paste.helpch.at/sagihapaga.makefile) for review. It appears that two of the plugins have a dependency on FAWE, however, there is no functioning version available for 1.8. The specific problem I am facing is that certain commands, such as /help and /gamemode 1, are not producing any results.

dusky harness
#

or

#

@lyric gyro there is a functioning version for 1.8

lyric gyro
dusky harness
#

it's not supported though

lyric gyro
calm loom
#

like do i add the token there

dusky harness
#

🤔
also essentials thinks you're reloading

#

for some reason

lyric gyro
dusky harness
lyric gyro
#

I seriously think it is cursed.

dusky harness
#

your server is cursed

#

💀

lyric gyro
lyric gyro
dusky harness
#

then something is going wrong in line 227

#

what server jar are you using?

lyric gyro
dusky harness
#

oh it's Spigot

#

huh

#

I don't think this would be a host problem

calm loom
lyric gyro
#

Am using Java 8 for it.

dusky harness
#

Paper >
I'd say to delete that server.jar and generate a new one

also java 8 = bad

lyric gyro
dusky harness
#

the only issue I've seen was console adding an extra newline in between logs sometimes

#

but only for some plugins

#

odd issue

lyric gyro
dusky harness
#

you can keep java 8

calm loom
calm loom
dusky harness
#

or look at the link i sent

icy shadow
#

1.8 = bad

lyric gyro
calm loom
pulsar ferry
dusky harness
#

minecraft = bad

lyric gyro
dusky harness
#

lol

molten wagon
dusky harness
#

relocate

icy shadow
#

Or phantoms

molten wagon
# dusky harness relocate

I did this:

libraries:
  - org.reactivestreams:reactive-streams:1.0.4
  - io.projectreactor:reactor-core:3.5.1
  - io.projectreactor.netty:reactor-netty:1.1.1
  - io.netty:netty-all:4.1.86.Final
  - com.fasterxml.jackson.core:jackson-databind:2.14.1
  - com.discord4j:discord-json:1.6.13
  - com.discord4j:discord4j-core:3.2.3
dusky harness
#

ah

#

hmm

icy shadow
#

reactor my beloved

lyric gyro
lyric gyro
icy shadow
#

?

calm loom
# icy shadow ?

brister ll i have to do to fix it is launch the plugin then go into the config it makes and put that key in?
right

icy shadow
#

you need to actually load the config like i said

#

it's not magic

dusky harness
icy shadow
#

okay then yes

dusky harness
#

the plugin already uses a config file

icy shadow
#

or even better

#

just try it and see what happens

calm loom
calm loom
# icy shadow or even better

[18:31:52 ERROR]: [net.dv8tion.jda.internal.requests.RateLimiter] Encountered exception trying to execute request
java.lang.IllegalArgumentException: Unexpected char 0x0a at 76 in authorization value: Bot 1ODQyNjAwNjk0MTIyMDg3NA.GqW-F0.XkPAfhvxHEk3RXjZdqSW3UUUPl3-9Rqk82wUwk
at okhttp3.Headers.checkValue(Headers.java:284) ~[?:?]
at okhttp3.Headers$Builder.set(Headers.java:415) ~[?:?]
at okhttp3.Request$Builder.header(Request.java:184) ~[?:?]
at net.dv8tion.jda.internal.requests.Requester.execute(Requester.java:174) ~[?:?]
at net.dv8tion.jda.internal.requests.Requester.execute(Requester.java:141) ~[?:?]
at net.dv8tion.jda.internal.requests.Requester.execute(Requester.java:124) ~[?:?]
at net.dv8tion.jda.internal.requests.ratelimit.BotRateLimiter$Bucket.run(BotRateLimiter.java:478) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
at java.lang.Thread.run(Thread.java:829) [?:?]
what does this mean

dusky harness
#

show the code

calm loom
#

which class

icy shadow
#

seems to me like you've copied the wrong token

dusky harness
#

that has a different error

calm loom
icy shadow
#

hmm

dusky harness
#

wait do you have a newline at the end

#

you had a newline last time

calm loom
#

huh

dusky harness
#

it's LF

#

which i think is a newline?

icy shadow
#

yeah dont do that

dusky harness
#

also please stop pinging me

#

and don't DM for support

icy shadow
#

lol

molten wagon
calm loom
icy shadow
#

i dont think you need to add transitive dependencies to the libraries section do you?

icy shadow
calm loom
#

how do i unhardcode it

#

im stupid

#

how do i do it

icy shadow
#

i thought you said you were loading it from the config

#

earlier

#

either you or dkim is lying

calm loom
#

i mean i have it in a config file in the jar

dusky harness
#

he doesn't

icy shadow
#

...

dusky harness
#

the plugin uses a config for other purposes

#

config.yml

dusky harness
#

to either look at how the plugin uses its config already or to look up a tutorial online

#

also you have () around your token

#

it's not supposed to

calm loom
#

getConfig().set("token:1ODQyNjAwNjk0MTIyMDg3NA.GN_BtY.gRYDd0Md23gCkViCF9SgzQ95vQow03YeytYm9E", "solid"); so this?

dense drift
#

No

#

token is the key

#

And the rest.. the value

icy shadow
#

also you want get not set

calm loom
#

what do you mena tha vlaue

dusky harness
#

ok
if the token itself is in your project, then you're doing something wrong

#

in this case, it is

icy shadow
#

look, maybe you aren't sure what you actually have to do:

putting the token as a string in the jar because it means you cant change the token without making a new jar
the solution is to load the token from a different file, such as the config file
so all you need to do is remove the hardcoded (in the code) token and replace it with one that you load from the config file

#

frankly if you aren't sure how to do this i would highly suggest looking at some java and/or spigot tutorials

calm loom
#

okay i fixed that part final question

#

why is it telling me my plugin is disabled

icy shadow
#

because there's an error on startup

calm loom
#

im gonna kms i swear

calm loom
#

it may or may not

#

have been becuase it wasnt compatible with paper

#

...

icy shadow
#

what isnt?

calm loom
#

the plugin

#

i changed it to a spigot testing server

#

and it works fine

icy shadow
#

why isnt it compatible with paper

calm loom
#

idfk

#

all i know is

#

when i make it a spigot server

#

it works

#

no idea why

dusky harness
#

show the error for paper

calm loom
#

there isnt one

#

its just it works on spigot

#

well at least the / commands do

dusky harness
#

?startuplog

neat pierBOT
#
FAQ Answer:

Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.

calm loom
#

its gonna give me a seizure

#

wait nvm

#

paper works

#

jiowq doiwqdioqwdq

#

im sped

dusky harness
#

@calm loom btw don't handle exceptions like that
just do e.printStackTrace()

#

no need for handleException

calm loom
#

why is this happening

icy shadow
#

onCommand(RosterCommand.java:32)

#

something on this line

calm loom
#

if (!(Teams.contains(args[2].toLowerCase()))) {return true;}

icy shadow
#

args[2] may not exist

#

if they dont send 3+ args

dusky harness
#

/label args0 args1 args2

uncut mulch
#

How are kills and deaths activated on the scoreboard?

calm loom
#

okay completely seperate question how would i make a command do an actual base command like for example /setlos does /setblock 287 254 2 and then the block

uncut mulch
#

How are kills and deaths activated on the scoreboard? Help me please

silk ginkgo
#

why is getTitle() like that?

signal grove
#

line through = deprecated

#

or maybe its because youre comparing strings with == instead of .equals

silk ginkgo
#

ahh I see

#

So I should use .equals?

signal grove
#

yes !something.equals(anotherthing)

silk ginkgo
#

ait

#

thanks

#

still the same

signal grove
#

hover over it, i think itll say deprecated

silk ginkgo
#

ye

#

It says "getTitle() is deprecated"

#

Will it still work tho or do I have to use something else?

signal grove
#

uhhh

#

itll be ok for now, but what version are you?

silk ginkgo
#

1.19.2

#

paper

signal grove
#

because im on 1.19.3 and its not deprecated still

#

ah paper maybe

dusky harness
#

oh its prob favoring adventure

silk ginkgo
#

ye

dusky harness
#

d;paper inventoryview#gettitle

uneven lanternBOT
#
@Deprecated @NotNull
public abstract @NotNull String getTitle()```
Description:

Get the title of this inventory window.

Deprecation Message:

in favour of title()

Returns:

The title.

silk ginkgo
#

should I go over to spigot?

dusky harness
#

no

signal grove
#

just change your method to .title()

silk ginkgo
#

ahhh

#

alright

#

give me 2 sec

#

ye it worked

#

thanks guys

signal grove
#

nice

dusky harness
#

uhhh

#

are you sure about that

silk ginkgo
#

is there a huge difference between paper and spigot?

dusky harness
#

just because it compiles doesn't mean it'll work

#

with text, yes

#

paper deprecates all legacy (§a for example) which is what you're seeing here

silk ginkgo
#

so u prefer spigot?

signal grove
#

"when the deprecated line goes away, it's time to end the day"

dusky harness
#

no

signal grove
#

but yeah you should probably use ChatColor.translateAlter......whatever

#

instead of using the color symbol directly

dusky harness
#

well that won't fix it for this case

#

since adventure doesn't use §

silk ginkgo
#

I am

signal grove
#

oh

dusky harness
#

is the Colors menu your own custom GUI?

#

https://github.com/TriumphTeam/triumph-gui/blob/master/core/src/main/java/dev/triumphteam/gui/guis/BaseGui.java#L64

https://github.com/TriumphTeam/triumph-gui/blob/master/core/src/main/java/dev/triumphteam/gui/guis/InteractionModifierListener.java#L57

For example this is what TriumphGUI does to make a custom GUI and compare it

if you want to compare names, this isn't the best but I guess comparing names could work ```java
LegacyComponentSerializer.legacySection().serialize(InventoryView#title()).equals("§bColors")

lyric gyro
#

it also might not

dusky harness
#

yeah

silk ginkgo
#

ye its mine. I wrote it a few years ago

#

I think I fcked up my whole intellij

#

I tried to replace the jar file and now it wont import

#

why is that?

molten wagon
# molten wagon I has added all needed api and still get this error https://paste.helpch.at/adil...

after lots of trial end error I get this issue java.lang.ClassCastException: io.netty.handler.codec.http.DefaultHttpHeaders cannot be cast to io.netty.netty.handler.codec.http.HttpHeaders https://paste.helpch.at/cucefoqubi.rb

I get this error now https://hastebin.com/ixoxajiduj.properties , don't know if miss some more dependency's.

river solstice
#

I set a pdc key

        ItemStack hopper = new ItemStack(Material.HOPPER);
        PersistentDataContainer pdc = hopper.getItemMeta().getPersistentDataContainer();
        pdc.set(CHUNK_HOPPER_KEY, PersistentDataType.INTEGER, 1);
        p.getInventory().addItem(hopper);

but when I try to get it from the listener

    @EventHandler
    public void onBlockPlace(final BlockPlaceEvent e) {
        ItemStack item = e.getItemInHand();

        if(!item.getType().equals(Material.HOPPER)) {
            return;
        }

        PersistentDataContainer container = item.getItemMeta().getPersistentDataContainer();

        if(!container.has(ChunkHopperCommand.CHUNK_HOPPER_KEY, PersistentDataType.INTEGER)) {
            return;
        }
}

it does not exist?

signal grove
#

you need to re set the meta to the hopper

#

you're getting it, changing the value, and not setting it back

river solstice
#

Ah, weird. Thought it does it on its own.
I've used it on player and I didn't need to do any extra steps, that's why I got confused

signal grove
#

i had to do it yesterday with something else, but i forget what for

#
ItemStack whitePane = new ItemStack(Material.WHITE_STAINED_GLASS_PANE, 1);
            ItemMeta meta = whitePane.getItemMeta();
            meta.setDisplayName("???");
            meta.setLore(Arrays.asList("Click here to try stealing an item!"));
            whitePane.setItemMeta(meta);
            inventory.setItem(i, whitePane);
#

yeah

river solstice
#

Though I suppose I'm setting it for the copy of the meta, whereas it sets directly on player? If I'm not mistaken

signal grove
#

yes

river solstice
#

Makes sense. I should've went to sleep instead of trying to figure out this small issue

#

🥴

signal grove
#

bro's getting his brain, telling it to sleep, but not setting it

river solstice
#

Yes

sleek wedge
#
java.lang.NullPointerException: Cannot invoke "org.bukkit.command.PluginCommand.setExecutor(org.bukkit.command.CommandExecutor)" because the return value of "io.github.sdxqw.sarelus.Sarelus.getCommand(String)" is null
    at io.github.sdxqw.sarelus.Sarelus.onLoad(Sarelus.java:14) ~[Sarelus-1.0.jar:?]
    at org.bukkit.craftbukkit.v1_19_R1.CraftServer.loadPlugins(CraftServer.java:429) ~[paper-1.19.2.jar:git-Paper-307]
    at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:278) ~[paper-1.19.2.jar:git-Paper-307]
    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1100) ~[paper-1.19.2.jar:git-Paper-307]
    at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:305) ~[paper-1.19.2.jar:git-Paper-307]```
icy shadow
#

show line 14 of Sarelus

sleek wedge
signal grove
#

its calling getCommand(), you're right about he forgot to add it to yml

icy shadow
#

yeah mustve done then

#

or ur somehow using an old version of the jar

sleek wedge
#

yea

signal grove
#

hmm

sleek wedge
#

lol

icy shadow
#

clean rebuild and make sure u dont have any other versions in the plugins dir

sleek wedge
#

???

icy shadow
#

old versions of the same plugin i mean

sleek wedge
#

oh there no other version xd

sleek wedge
# icy shadow old versions of the same plugin i mean
[00:13:12 ERROR]: [org.bukkit.craftbukkit.v1_19_R1.CraftServer] Cannot invoke "org.bukkit.command.PluginCommand.setExecutor(org.bukkit.command.CommandExecutor)" because the return value of "io.github.sdxqw.sarelus.Sarelus.getCommand(String)" is null initializing Sarelus v1.0 (Is it up to date?)
java.lang.NullPointerException: Cannot invoke "org.bukkit.command.PluginCommand.setExecutor(org.bukkit.command.CommandExecutor)" because the return value of "io.github.sdxqw.sarelus.Sarelus.getCommand(String)" is null
    at io.github.sdxqw.sarelus.Sarelus.onLoad(Sarelus.java:14) ~[Sarelus-1.0.jar:?]
    at org.bukkit.craftbukkit.v1_19_R1.CraftServer.loadPlugins(CraftServer.java:429) ~[paper-1.19.2.jar:git-Paper-307]
    at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:278) ~[paper-1.19.2.jar:git-Paper-307]
    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1100) ~[paper-1.19.2.jar:git-Paper-307]
    at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:305) ~[paper-1.19.2.jar:git-Paper-307]```

HMMM
#

that cursed

#
public class Command implements CommandExecutor {

    @Override
    public boolean onCommand(@NotNull CommandSender sender, org.bukkit.command.@NotNull Command command, @NotNull String label, @NotNull String[] args) {

        if (command.getName().equalsIgnoreCase("core")) {
            if (args.length == 0) {
                sender.sendMessage("Error: incorrect syntax. Usage: /core list");
                return true;
            }

            if (args[1].equalsIgnoreCase("list")) {
                sender.sendMessage("Module Loaded: " + ModuleLoader.modules.toString());
            }
        }

        return true;
    }
}```

it's that even right?
icy shadow
#

you dont need to check the command name if u have 1 class per command

signal grove
#

it would give an error if it was wrong since it overrides

icy shadow
#

and yeah

icy shadow
#

also the name Command is probably not very good, consider something like CoreCommand instead

signal grove
#

CommandHeklocutor

icy shadow
#

it's not gonna cause any errors but it's unhelpful and means you need that gross import for the bukkit Command class

sleek wedge
#

well i didnt

#

everything generated by IJ IDEA

signal grove
sleek wedge
#

soooo

#

whats wrong bruh

#

but if i do this

core
[00:17:31 INFO]: /core

signal grove
sleek wedge
#

its work (?)

signal grove
#

not args[1]

sleek wedge
signal grove
#

damn im so bad at spigot deleopment

icy shadow
#

oh actually

sleek wedge
#

i didnt touch paper api for so long xd

icy shadow
#

maybe you need to do it in onEnable rather than onLoad

signal grove
#

big iq

#

wouldnt have thought of that

river solstice
#

You should probably do it in onEnable

sleek wedge
icy shadow
#

yeah u should

sleek wedge
#

!

icy shadow
#

np

signal grove
#

nice

river solstice
#

Things like getServer dont work in onLoad too.

icy shadow
#

surprised it doesnt error tbh

#

oh i guess it does lol

#

nvm

sleek wedge
#

other question

#

how i can make that command work only in console?

river solstice
#

I'm not even sure why onLoad exists. I know it's called when you use /reload, I think

icy shadow
#

so is onEnable

river solstice
icy shadow
#

i think the only benefit is you can do things before other plugins have enabled

dusky harness
#

yes

icy shadow
#

u ruined my reaction

dusky harness
#

hehe

sleek wedge
#

Player

icy shadow
#

sender instanceof ConsoleCommandSender

sleek wedge
#

or

#

thanks

#

uhm

#

where i need to put this?

icy shadow
#

somewhere

#

in ur command

#

probably near the start

sleek wedge
#

return what?

dusky harness
#

return true

sleek wedge
#

ok

dusky harness
#

👍

fresh hollow
#

Ok guys i need help with guilds

icy shadow
sleek wedge
#

core list

core

icy shadow
#

elaborate

sleek wedge
#

lel

icy shadow
#

?

sleek wedge
#

infinite loop

river solstice
#

When multiple plugins are loaded, the onLoad() for all plugins is called before any onEnable() is called
O i c

dusky harness
#

apple

icy shadow
signal grove
#

if(while(true))

dusky harness
#

banana

sleek wedge
signal grove
#

can you show the error or code that gets stuck in iinfinite loop

icy shadow
#

i highly doubt it's an infinite loop

dusky harness
#

or code

icy shadow
#

or code

signal grove
#

or code

sleek wedge
#

i just didi !(code)

#

and now its works

signal grove
#

nice

sleek wedge
#

lol

signal grove
#

not code

dusky harness
#

!(@icy shadow)

icy shadow
#

?

dusky harness
#

it worked

sleek wedge
#

yes

dusky harness
#

thanks

sleek wedge
#

np

icy shadow
#

yw

dusky harness
#

too late

signal grove
#

too bad java doesnt allow pointer access or i would

if((long)&sender - (long) &Bukkit.getConsoleSender() == 0)
sleek wedge
icy shadow
#

?

#

TRUE

dusky harness
#

classic haters

#

😎

sleek wedge
#

no

icy shadow
sleek wedge
#

L

sleek wedge
signal grove
#

== operator can only compare to 0

icy shadow
#

oh obviously

signal grove
#

all other operations should be reformatted to make it like that

#

clean code

icy shadow
#

if(strcmp(command->name, "core") == 0) 😼

#

we've got you surrounded, come use equals!

signal grove
#

why is my joke the legitimate way to do it in c

#

broken language

icy shadow
#

because c was made 50 years ago

signal grove
#

fair

#

my least favorite task at my previous job was fixing a pdfviewer made in c

icy shadow
#

sounds utterly awful

signal grove
#

yeah, especially since the rest of my tasks were in C#, and we just happened to use this old library

icy shadow
#

C# also sounds utterly awful

signal grove
#

it became my new favorite

#

everything is solved with LINQ

dusty frost
#

everything in Java is solved with streams 😌

river solstice
#

C# aint that bad

dusky harness
#

Kotlin aint that bad either

river solstice
#

Kotlin is another universe of bad

icy shadow
#

have you heard of-

dusty frost
#

too many ways to do the same thing, syntax gets pretty ugly, and it has awful conventions

dusky harness
#

👍

dusty frost
dusky harness
#

😋

tight junco
#

counter point

signal grove
#

pointer count

#

zero

tight junco
#

the bee movie script can be a variable name

river solstice
#

😎

dusty frost
#

that train exists for basically the same reasons that C# is bad lmao

#

in addition to the corporate ownership lol

icy shadow
#

:nokotlin: :noc#:

#

:norust: too for good measure

dusty frost
#

lol

dusky harness
#

:norust:

icy shadow
#

:nonitro:

dusky harness
#

:haskell:

icy shadow
#

😌

signal grove
#

you guys know ocaml

tight junco
dusky harness
#

:kotlin: > :haskell:

icy shadow
dusty frost
icy shadow
#

i only use real ML-based languages

signal grove
#

my school used haskell, but i took it remotely at another university which did it in ocaml

#

(for Programming Languages class)

icy shadow
#

sorry to hear that

signal grove
#

i liked it xD

icy shadow
#

oh okay in that case

#

haskell is ocaml but even better!

signal grove
#

well i didnt particularly enjoy the language, just the class

icy shadow
#

oh

#

well in that case, you probably wouldve enjoyed a real language like Haskell much more

signal grove
#

we made an interpreter with it

icy shadow
#

that's fun

signal grove
#

and there was a scoreboard for each student based on how many unit tests they passed, but with anonymous names

#

danimalsdunkem was pretty smart

icy shadow
#

oh yeah that was me

#

pretty proud of that

river solstice
#

C# was basically my first real lang I learned (apart from c++ in school), and I really enjoyed it for the most part. It has its pros and cons just like any other lang
Never got around to try kotlin but I'm sure it's pretty nice too when you get used to it

dusty frost
#

yeah i dunno, i could never get into the C# ecosystem, all the packages strike me as bizarre, some require payment and stuff, the whole microsoft and visual studio integration rubbed me the wrong way, just feels unnatural lol

river solstice
#

Yeah the vstudio IDE is stinky

#

I prefer dotnet cli with vscode

dusty frost
#

I mean it's telling that the best way to do C# is with a JetBrains IDE lol

icy shadow
#

the best way to do most things is with a JB IDE

dusty frost
#

like when they got rid of the hot refresh from the dotnet cli and JetBrains independently remade their own

#

then microsoft cheekily added it back in after lmao

dusty frost
river solstice
dusky harness
#

unless you mean official c# library

#

from microsoft

dusty frost
#

i've never paid for a software library in my entire life

#

a good few of the packages i browsed on NuGet were paid

river solstice
#

I'm not aware of any official stuff from ms that you'd need to pay for

dusty frost
#

not official

#

just big packages that lots of people like

dusky harness
icy shadow
#

i will be making a $10/month IsEven package

dusky harness
#

I will be making a $9/month IsOdd package

#

mine is better

icy shadow
signal grove
#

$15 combo to get both

dusky harness
dark garnet
#

anyone familiar with XMaterial? i have a Material, my code is written in 1.11, but my server is 1.19.
im trying to use XMaterial to convert that 1.11 Material into its equivalent 1.19 Material, this is what i have rn, but it isnt working:

final Material material = XMaterial.matchXMaterial(block.getType()).parseMaterial();
if (material == null) return;
final FallingBlock fallingBlock = world.spawnFallingBlock(location, new MaterialData(material));```
dusky harness
#

although I guess

#

¯_(ツ)_/¯

dusty frost
#

and plus, once you have a big boy job, that's like, 4 hours of work lol

river solstice
icy shadow
#

(it won't)

dusty frost
#

yeah VSC is not for Java lol

#

it is rough

dusky harness
#

IJ is free tho

#

which is nice

#

probably because of kotlin

icy shadow
#

?

dusky harness
#

i cant think of any other reason why IJ is free

dusty frost
#

yeah also that

icy shadow
#

IJ has always had a free plan

#

afaik

dusty frost
#

yeah

dusky harness
#

oh

#

then idk

pulsar ferry
#

I should buy a license and stop using open source license for work pepelaugh

dusky harness
#

pycharm makes sense

#

but idk about IJ

river solstice
#

There's a community version

dusty frost
#

it's called market capitalization lol

#

if you have a free product and people can see how fucking great it is, that really helps your market share grow