#help-development

1 messages · Page 1205 of 1

upper hazel
#

nice now this works

#

inteliji ULTIMATE has been acting strangely.

#

i create module but he was desappear

#

or i was do error idk

#

but pom still red??

#

сolor bug i gess

#

or smth happened?

blazing ocean
#

maven moment

#

should've just used gradle

upper hazel
#

or you mean gradle not has bugs?

blazing ocean
#

no I use gradle

upper hazel
#

lol

#

I like gradle but it doesn't have as much deployment as maven. although sometimes it's uncomfortable

#

and i not can find gradle dependency for some libraries

blazing ocean
#

??? to both of those points

chrome beacon
#

Gradle uses the same dependency information as Maven does

shadow night
#

what

chrome beacon
#

It's just not xml

shadow night
blazing ocean
#

what does "it doesn't have as much deployment as maven" even mean

ivory sleet
#

lol

blazing ocean
ivory sleet
#

tbh, u could probably implement the maven specification using gradle

blazing ocean
#

what maven spec do you mean

ivory sleet
#

which says a lot

ivory sleet
blazing ocean
ivory sleet
blazing ocean
#

I mean you could just impl it as a gradle plugin tbh

ivory sleet
#

Haha yea

blazing ocean
#

parse the XML and do the things

#

that wouldn't even be hard

ivory sleet
#

😭

blazing ocean
#

it honestly wouldn't be hard at all

remote swallow
#

no rad

#

no

blazing ocean
#

just make some classes for the pom structure, parse and apply

#

dw I wouldn't

blazing ocean
upper hazel
# blazing ocean ??? to both of those points

At first glance, it seems that Gradle is easier to use than Maven, but that's not entirely true. Gradle provides more flexibility in writing dependencies, almost like a second programming language. On the other hand, Maven is much stricter on syntax, which can make it verbose - and sometimes that verbosity can be awkward.

Regarding the second point: I once spent 7 hours trying to find the right Gradle dependency for a library I needed to use with Spring. When I switched to Maven, I was able to find it immediately.

blazing ocean
#

is that chatgpt

remote swallow
#

a gradle dependency is exactly the same as maven, except it uses a different format

upper hazel
#

i bad write in engl

remote swallow
#

its not hard to convert them

upper hazel
#

so i translate

#

i think gradle need use only in big projects

#

in plugin i like use maven

remote swallow
#

you know its crazy that i can google springboot gradle and immediately find the info

blazing ocean
#

magician

#

hacker

dry hazel
#

plugins can be pretty big projects when you get into NMS abstraction and stuff

upper hazel
blazing ocean
#

it's crazy how you only need to change the syntax to use a maven dependency with gradle

rough drift
remote swallow
#

ike go away

rough drift
#

it's misinformation

remote swallow
#

i did not ask

rough drift
#

I do not care

kind hatch
#

Ohhhhh, get em!

rough drift
#

I love how this is "Why X, Y and Z is bad, but W is AMAZING"

blazing ocean
#

i love how you chose W for the amazing one

rough drift
#

XYZW

blazing ocean
#

yeah I know, just a nice coincidence

rough drift
#

ig fair enough lol

remote swallow
blazing ocean
#

yeah I think you might just be a hacker ebic

remote swallow
#

the cia is gonna arrest me

#

might hack rockstar

rough drift
#

bro what the fuck changed here lmao

#

they added ()

remote swallow
#

no

rough drift
#

READ

kind hatch
#

And switched to double quotes

#

That's literally it tho

rough drift
#

oh man my bad g forgot

#

this entire thing was written by AI

remote swallow
#

we know raydan is ai

rough drift
#

it literally looks written by AI lmao

blazing ocean
#

he is

rough drift
kind hatch
#

Maven slander at it's finest.

rough drift
#

gpt ahh response

blazing ocean
kind hatch
#

It's literally key value

blazing ocean
#

there is no indication whatsoever that that is a function

rough drift
#

Dude don't talk

remote swallow
#

i love non existent intellisense with groovy

rough drift
#

you have kotlin with method {}

blazing ocean
#

true

#

that's trailing lambdas

remote swallow
#

thats a lambda

rough drift
#

ah so that is different? lmao

blazing ocean
#

which at least make sense once you actually look at them

remote swallow
blazing ocean
#

dude's gonna defend groovy lmfao kekw

kind hatch
#

I don't understand why it needs to look like a function though.
It's just some slightly different syntax for what is ultimately the same thing.

remote swallow
#

even if you dont like kotlin you will atleast want to use it for buildscripts, a for intellisense and b for actually having an idea of how to use stuff

blazing ocean
#

because it is a function

upper hazel
#

well If you compare gradle and maven, it would be something like java vs kotlin in terms of syntax. Java is verbose and some people find it convenient Kotlin is a light version but has a lot of confusing sugar that is hard to parse as a java developer.

kind hatch
#

The one good thing about it being a "function" is the consitency in writing it.

#

Other than that, I don't think I could care that much about it.
Unless it offers more functionality using that syntax, then it is no different.

rough drift
blazing ocean
#

wait till you have to use multiple functions

include modImplementation('...')

remote swallow
#

i just want you to know, sure it still evolving but its not gonna break on a minor version

#

theres something called semver which people follow

blazing ocean
rough drift
#

anyways ant is worse than maven

#

and you cannot deny it

blazing ocean
#

ant is literally worse than anything out there

rough drift
#

well...

#

uh

#

depends

#

sbt 💀

remote swallow
#

ant sounds cooler than maven

#

like i would want 5 ants to build my project

blazing ocean
#

that shit is fucking horrid

kind hatch
#

Man, cmake... I hate using it and make

rough drift
#

bazel.

blazing ocean
#

gnu make is somewhat decent imo but horrible for anything that isn't just compiling 5 files

#

i have never seen a good CXX build tool, I heard meson was good tho

kind hatch
#

I hate it cause I have to manually compile wine with it every so often.

blazing ocean
#

and it's been the easiest one for me to compile projects with, as an end user

#

why are you compiling wine

kind hatch
#

Cause I need custom forks of it for Affinity products

blazing ocean
#

affinity concern

kind hatch
#

I just want them to merge it into the mainline already 😭

remote swallow
#

wines done something and idk how to undo it

#

and im very confused

blazing ocean
#

what has it done

kind hatch
blazing ocean
#

hey gimp 3 is great

remote swallow
#

it installed 7zip windows and added it to arc menu

kind hatch
#

Gimp sucks

blazing ocean
#

why would you use 7zip-

remote swallow
#

and it wont disappear

#

i didnt want it

#

wine installed it

blazing ocean
#

lmaowat

remote swallow
#

and i deleted the stuff but it wont disappear

blazing ocean
#

wtf

remote swallow
#

foxwall

blazing ocean
kind hatch
#

Isn't it still in development?

blazing ocean
#

yeah

#

but the first RC has been out for a bit now

tidal kettle
#

hello,
can you make somthing like that with tabcompleter ?

blazing ocean
#

the names there?

#

no

tidal kettle
blazing ocean
potent atlas
#

I never got a reply last night, can I say what my problem is again? It's been almost 12 hours, but if not that's ok

chrome beacon
#

yes

potent atlas
#

I need to scale an ender dragon down but it's not working. I could do it on my datapack so is there a way on a plugin? I have:
entity.getAttribute(Attribute.SCALE).setBaseValue(SCALE); but nothing happens. tried a few values for SCALE like 0.7 with no luck

chrome beacon
#

I can't seem to do so which is why I'm asking

potent atlas
#

oh it's easy. in your summon function you just add attributes:[{id:scale,base:0.5}]

chrome beacon
#

Doesn't seem to work

potent atlas
#

want the whole command?

chrome beacon
#

As far as I can tell this is a vanilla bug

#

I mean sure if you want to send it

potent atlas
#

I'm going to go test it again to be sure

rough ibex
#

unresolved

chrome beacon
#

Yeah I saw that

#

but they claimed to have done it with a datapack

rough ibex
#

mandela effect

#

im calling it now

potent atlas
#

what's a mandela effect?

chrome beacon
#

Mandela effect refers to a situation in which a large mass of people believe an event occurred when it did not

blazing ocean
#

are you saying mojank did not rewrite minecraft in rust

potent atlas
#

I loaded my datapack back into the test server and you're right, it did not work for dragon. so I guess I gotta use it as normal size. anyways thanks guys. think that bug will ever be fixed?

#

or is it intentional?

chrome beacon
#

It will be fixed at some point

#

Soon(tm) if you will

potent atlas
#

I'm thinking the guy I saw doing it used a mod

#

or a resource pack?

chrome beacon
#

Must have been a mod

potent atlas
#

that's sad. oh well

tidal kettle
blazing ocean
#

possibly, dunno if lucko has a discord

tidal kettle
#

?paste

undone axleBOT
tidal kettle
tidal kettle
rough ibex
#

you may need to shade it

tidal kettle
#

?paste

undone axleBOT
tidal kettle
rough ibex
#

no idea, i don't know gradle

tidal kettle
#

x)

rough ibex
#

it seems like it's not relocating

#

what is line 35 of onEnable

slender elbow
#

you need to build using the shadowJar task

#

also update your shadow plugin

blazing ocean
#

make your assemble task depend on shadow

tasks.assemble {
    dependsOn(tasks.shadowJar)
}
tidal kettle
upper hazel
#

what the package need in protocolLib for chance current player onlnie count in server list (not in server)

drowsy helm
#

whats the api equivalent of /give @p note_block[block_state={instrument:"chime",note:"1",powered:"false"}] 1?

#

I see there MusicInstrument Meta but thats only instrument

eternal night
#

BlockStateMeta?

drowsy helm
#

just found that as soon as you typed it lol

#

i think that's the one, thanks

eternal night
#

nice xD

young knoll
#

Wouldn't that be BlockDataMeta

drowsy helm
#

both set methods are the same description

young knoll
#

They aren't

#

One says state and one says data

drowsy helm
#

yes I see that

#

but isn't the noteblock instrument and note the state

blazing ocean
#

bukkit blockdata/-state is so confusing

young knoll
#

No

#

State is the Block entity data

#

Like chest contents

#

Data are the states you see in the F3 screen

#

And yes the naming is backwards

blazing ocean
#

nerd

hidden spade
#

If i hide mobs from a player will the mobs ai still attack the players that have it hidden?

young knoll
#

Probably

#

But you can use the target event to override that

hidden spade
#

and also, is there a better way to force say creeper view on a player without having respawn the player after setting the camera

vague dawn
#

hey, can someone help me?

#

why doesnt know it the event?

rough ibex
#

show build system config

vague dawn
#

bumb question, but what do you mean?

rough ibex
#

are you using maven or gradle

vague dawn
#

maven

rough ibex
#

show pom

vague dawn
#

like it knows the Vote, but not the VotifierEvent.. and thats what i need to be able to make working Listener for votifier xd

blazing ocean
#

what IJ version are you using

#

gotta use at least 2024.1 for java 21

vague dawn
#

ugh, not sure, where can i update it using intellijIdea? is there something? like i do not need to download new version from internet?

#

i guess i have the latest

rough ibex
#

help > about

vague dawn
#

IntelliJ IDEA 2024.1.4 (Community Edition)
Build #IC-241.18034.62, built on June 20, 2024
Runtime version: 17.0.11+1-b1207.24 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11.0
GC: G1 Young Generation, G1 Old Generation
Memory: 4086M
Cores: 16
Registry:
ide.experimental.ui=true
Non-Bundled Plugins:
com.demonwav.minecraft-dev (2024.1-1.8.2)
Kotlin: 241.18034.62-IJ

eternal oxide
#

clear cache and restart

vague dawn
#

k

#

still doesnt know it

eternal oxide
#

import is correct

blazing ocean
#

does it compile?

vague dawn
#

what? whole plugin?

#

whole plugin not, bcs it doesnt know this event

eternal oxide
#

oh you are using NuVotifier, not votifier

vague dawn
#

do you think i should use votifier instead?

rough ibex
#

no

eternal oxide
#

no

rough ibex
#

votifier is ancient and does not work anymore

#

nuvotifier is its replacement

vague dawn
#

yeah, i know that, so i am using nuvotifier

eternal oxide
#

nuvotifier-universal not -api

vague dawn
rough ibex
#

-universal

vague dawn
eternal oxide
#

its what they say to use so you should use it

rough ibex
#

try it again

vague dawn
eternal oxide
#

your groupId is wrong too

vague dawn
#

i have just copied it

eternal oxide
#

ok

#

refresh yoru maven

#

there is a button in IJ to refresh

remote swallow
#

Did you copy the repo too

vague dawn
vague dawn
vague dawn
#

i just need to combine both of them xd

#

so the second one is correct

#

like put those to the correct one xd

quaint mantle
#

Make sure you copied the repo

vague dawn
#

i am sure

eternal oxide
#

VoteListener not VotifierEvent and use teh dependency they say to use

vague dawn
#

comining them into one works...

#

idk why, but it works

eternal oxide
#

because you are breaking shit and including multiple API parts

vague dawn
#

the problem was there was nuvotifier-api not nuvotifier-universal

rough ibex
#

you depend on just 1

#

the docs say this

vague dawn
#

i know, i have removed one

#

strange.. bcs both dependency were wrong lol

rough ibex
#

<groupId>com.vexsoftware</groupId>

vague dawn
#

i have tried it

vague dawn
eternal oxide
#

the com.github one should be ok as it is using jitpack to fetch it

rough ibex
#

so be it

vague dawn
#

yeap, but there was problem with votifier-api, it must be votifier-universal to make it working

#

but thanks for helping

torn shuttle
#
                boolean worldBorderFacesTheOutside = true;
                
                //If it's on the border, check if world_border is facing towards the outside
                if (isGridBorder){
                    for (Map.Entry<Direction, List<NeighborTag>> directionListEntry : modulesContainer.getBorderTags().entrySet()) {
                        if (directionListEntry.getKey() == direction.getOpposite()) {
                            for (NeighborTag tag : directionListEntry.getValue()) {
                                if (tag.getTag().equalsIgnoreCase("world_border") &&
                                        gridCell.getWaveFunctionCollapseGenerator().getSpatialGrid().isWithinBounds(gridCell.getOrientedNeighbors().get(directionListEntry.getKey()).getCellLocation())) {
                                        worldBorderFacesTheOutside = false;
                                        break;
                                    }
                                
                            }
                        }
                    }
                }
                
                if (!worldBorderFacesTheOutside) continue;

aw yeah now that's a method

drowsy helm
#

if for if for if

torn shuttle
#

pro tip

#

wave function collapse systems are not built to use borders

#

it sucks to implement

#

thanks for coming to my ted talk

#

as a matter of fact everything about wave function collapse systems is a pain in the ass to pull off and I can see why many don't actually build something with it

#

at least not anything complex

next plume
#

Hey, this is a simple Java question, but I just want to make sure my head is on straight.
icon is a String. The following won't work, will it?
if (icon != "")

eternal oxide
#

no

next plume
#

Yeah, didn't think so. Rookie mistake.

eternal oxide
#

!icon.equals("")

#

or isEmpty

worldly ingot
#

As a brief explainer, == checks for referential equality, equals() checks for object/data equality, which can vary from object to object.

List<String> first = List.of("a", "b", "c");
List<String> second = List.of("a", "b", "c");

first.equals(second); // This is true, List#equals() checks to see if the contents of the list match
first == second; // This is false, the two lists are separate instances
List<String> first = List.of("a", "b", "c");
List<String> second = first

first.equals(second); // This is true, the contents still match
first == second; // This is now true, "second" was assigned to the reference of "first"
next plume
#

Oh, I know.
I just don't know what I was thinking when I wrote that, or how it seemed to work.

worldly ingot
#

¯_(ツ)_/¯

#

Good refresher for someone else then

next plume
#

I tested it. Obviously not very well.

worldly ingot
#

You get into some fun oddities with strings though and their object pool because technically System.out.println("" == "") is true lol

#

But this,

String a = "";
String b = new StringBuilder().toString();
System.out.println(a == b);

is false

#

And this,

String a = "";
String b = new StringBuilder().toString().intern();
System.out.println(a == b);

is true again 😄

next plume
#

I'm recovering from a mild case of Covid. You're making my head hurt again.

worldly ingot
#

You're welcome :D I hope you recover well

balmy venture
#

yo

#

i got an issue

#

i mean not an issue but idk how to do this

#

i got a plugin

#

and i want to make a mod that does what the plugin do

#

nodeathanimation

remote swallow
#

the death animation is clientside afaik so easily you cant

chrome beacon
#

I mean you can

#

Just don't tell the client a player died

balmy venture
#

i mean its hard for me cause i dont know nothin

#

i will figure it out

#

if somebody helps me it would we awesome tho

#

i have a code

#

but its for a plugin

#

idk how to convert it

#

to mod

remote swallow
#

it already exists as a mod

balmy venture
#

i dont like that mod

#

its animation is strange

#

i like the plugin thingy

#

but its plugin

#

i want to make it a mod

#

i think its very simple

#

but im kinda dubm

#

dumb

chrome beacon
#

Can you link the plugin

balmy venture
#

sure

#

there it is

#

it has the src

chrome beacon
balmy venture
#

but how can i make it a mod

chrome beacon
#

Depends

#

Version, mod loader etc

balmy venture
#

it would be 1.21 fabric

chrome beacon
#

do you have any experience with Java?

balmy venture
#

little

#

im trying to learn

#

public final class NoDeathAnimation extends JavaPlugin {

#

public class NoDeathAnimation implements ModInitializer {

#

modinitializer it says in the walksy plugin

#

mod'

#

cause its a mod

#

but idk how to make it a mod

#

idk if its simple

#

thats why i came here

chrome beacon
#

It quite simple since PacketEvents is available for Fabric as well

balmy venture
#

what

#

the packetevents api?

chrome beacon
#

PacketEvents is a library that plugin uses

#

To stop the death data from reaching the client

balmy venture
#

no yeah im cooked

#

i will use intellij

chrome beacon
#

?services

undone axleBOT
chrome beacon
#

^^ could hire someone to do it for you

unborn hollow
#

how do servers change premade item stacks that have already been created in game? like if i were to alter the lore of an item, how would i make sure it is reflected in anyone who has that item in game?

chrome beacon
#

The server does it through the DFU (DataFixerUpper)

#

Though that's not easily accessible

#

You're probably better off checking the items in events like pickup, join and inventory open events

balmy venture
#

yo

#

FAILURE: Build failed with an exception.

  • Where:
    Build file 'C:\Users\Ubicacion Gamer\Desktop\nodeathanimation-main\build.gradle' line: 2

  • What went wrong:
    Plugin [id: 'fabric-loom', version: '0.12.12'] was not found in any of the following sources:

  • Gradle Core Plugins (not a core plugin. For more available plugins, please refer to https://docs.gradle.org/8.7/userguide/plugin_reference.html in the Gradle documentation.)
  • Included Builds (No included builds contain this plugin)
  • Plugin Repositories (could not resolve plugin artifact 'fabric-loom:fabric-loom.gradle.plugin:0.12.12')
    Searched in the following repositories:
    Gradle Central Plugin Repository
#

this error is popping out

#

what do i do

#

its with the maven thing i think

#

i changed the other code

#

to use the fabric modinitializer

#

and now this is popping out

#

help

remote swallow
#

Follow the guide

balmy venture
#

man just help me

#

im not reading no guide

#

im trying everything i can

#

and i cant do it

#

i aint no codin expert

#

gg

quaint mantle
#

?whereami

nova notch
blazing ocean
#

and 0.12 doesn't even exist lmao

#

latest release is 1.9-SNAPSHOT

unborn hollow
#

how do you get rid of the "When equipped: 5+ armor" lore when dealing with itemstacks?

quaint mantle
#

ItemFlag

#

#.HIDE_ATTRIBUTES

unborn hollow
quaint mantle
#

Anytime 👍

fast jasper
#

hello I am making a 1.8.8 Spigot plugin. right now I am trying to copy a button from one part of the world (a stone button, placed on the floor), and set a block elsewhere to be facing the same direction, but with the button type changed to wood

#

however, I am having trouble with having the button place with a consistent rotation. it seems to sometimes face the floor, and the other times it will choose a random wall to face. I would like to set the facing direction myself manually if possible but I am not sure what format this is stored in for 1.8.8 Spigot

drowsy helm
#

And obligatory

#

?1.8

undone axleBOT
fast jasper
#

I believe I solved it. basically I was copying a region of the world from top to bottom, and since the button I was copying was facing the floor, if the floor a valid block for a button to face it would attempt to face another direction. I solved it by using a runnable to place these types of buttons one tick later

upper hazel
#

I have artifact conflicts when building a modular project (nms project) in 1 Jar file (maven shader found them) this is the first time for me. Where I need to prescribe filters in the constructor, parent module or in those modules where exists conflict?

eternal oxide
#

each module should be in its own package so no conflicts can arise

trim lintel
#

Yo any idea how to easly make a mob without ai but still with damage animation?

chrome beacon
#

NoAI mobs still have the damage animation?

quaint mantle
#

Pathfinder?

short drift
#

Is there any way to set FreezeTicks without them being reduced over time?

#

I would prefer not to have to apply them every tick.

chrome beacon
#

Don't think so

umbral flint
#

Is it fine to store Player objects if I know they will be removed when the are disconnected

eternal night
#

Yea

sharp bough
chrome beacon
chrome beacon
blazing ocean
sharp bough
#

wtf 💀

barren peak
#

trying to figure out nms, is there a tutorial for how to just spawn a basic zombie in 1.21.1

chrome beacon
#

Make an instance of it modify it as you want then add it to the world with addFreshEntity

#

oh and don't forget to setPos on it

barren peak
#

i've never used nms before and i've been trying to find out how to do all of that but am unsure and the tutorials I have looked at so far don't seem to be working, most likely because they are for older versions of nms but it could be I'm not importing nms correctly

chrome beacon
#

?nms

proper cobalt
#

is itemstack not a PersistentDataHolder?

barren peak
# chrome beacon ?nms

alright I got an entity spawned, but I can't figure out how to create a custom goal using the mojang mappings. is there a resource I can use to help understand how to do this?

eternal oxide
#

Its meta is a holder

proper cobalt
#

yeah calm

#

would u also know how i can stop people putting something in the offhand

#

like what event is that

#

ive covered the swap hands one

#

but what if they just place it

barren peak
#

also what was the a() method replaced with mojang mappings nms

chrome beacon
#

?mappings

undone axleBOT
chrome beacon
#

Read through the code and see how Mojang does it

proper cobalt
#

which one is true

#

40 or 45 for the offhand

chrome beacon
#

For what purpose?

proper cobalt
#

i dont want people putting sutff in their offhand

#

ive handled the swap event

#

but i dont want ppl to place it in

#

code works fine

#

except sometimes it lets u place it in

#

like 30% of the time it just completely ignores it

#

actually it seems if u dont move ur mouse at all and do it it cancels

#

but if u drag down while u place it

#

it works

sullen marlin
#

InventoryDragEvent

left jay
#

sorry im responding so late, but attributeModifier's depreciated in the version im coding on so what else can i do?

undone axleBOT
#

SpigotMC maintains the Spigot server. If you are using a fork of Spigot (such as Paper, Airplane, Purpur, or other derivative works), you should seek support in the appropriate Discord servers.

barren peak
#

(I am using mojang mappings)

chrome beacon
barren peak
#

i don't know; tutorial was made in 1.15

chrome beacon
#

Then take a look at the 1.15 mappings

worldly ingot
#

No mojmaps in 1.15

smoky anchor
#

lies

worldly ingot
#

You should be able to refer to literally any pathfinder goal though. They mostly follow that same pattern of

  1. Can start?
  2. Start
  3. Can keep running?
  4. Tick
  5. End
worldly ingot
chrome beacon
scarlet junco
#

Hi i need support With link discord

chrome beacon
#

?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!

gleaming grove
ember light
#

anyway to send ascii text in console?

twilit coral
#

u can use jansi

twilit coral
ember light
twilit coral
ember light
twilit coral
# ember light

u are gonna have to find a character but ya, your message is misleading because technically the characters in your string are not ascii

ember light
#

oh oops

#

i would've classed that as ascii but my bad!

#

what would u suggest then

twilit coral
#

ya ascii is a set of chars from 0-255, it could be that your character is in the set of utf-8

#

hmm idk just try to find a dot, ik the console doesn't only print ascii characters

#

lemme try

ember light
#

want me to send the string?

twilit coral
ember light
#

so spigot prints utf8 characters better yes?

twilit coral
worldly ingot
#

Also just make sure your plugin is compiled in an encoding that actually understands those characters

ember light
#

okay

ember light
worldly ingot
#

Yeah but you have to specify an encoding as well

#

In your pom.xml, either in your properties or in the build plugin if you're using it

ember light
#

ah yeah i build with utf8

worldly ingot
#

It defaults to your system's default encoding, which might not be UTF-8, or whatever encompases those characters

twilit coral
#
withType<JavaCompile> {
            options.encoding = "UTF-8"
            options.release = 21
            options.compilerArgs.add("-Xlint:none")
        }
worldly ingot
#

Or, yeah, that if you're using Gradle lol

ember light
worldly ingot
#

Mk, good to double check. Again, don't know if UTF-8 encompasses those chars, but if it does, then you're good on that front at least

ember light
#

well the chars im using in that string is utf8

twilit coral
#

did you try printing it again with a different (set) of chars

ember light
#

i replaced a few of them to give it a go

#

as u see

#

thats the response

twilit coral
#

paste the string here

#

use markdown

ember light
#

i'll paste the original

#
 String art = """
                ⠀⠀⠀⢀⣀⡀⠀⠀⠀⠀⢀⣀⣀⣀⣀⣀⣀⣀⣀⠀⠀⠀⠀⠀⠀⡄⠀⠀⠀⠀
                ⠀⣴⠟⠛⠛⠛⢷⣄⠀⠀⢸⡟⠛⠛⠛⠛⠛⠛⣿⠀⠀⠀⠀⠀⣸⢿⡄⠀⠀⠀
                ⣼⠃⠀⠀⠀⠀⠀⢻⡇⠀⢸⡇⠀⠀⠀⠀⠀⠀⣿⠀⠀⠀⠀⣰⡟⠈⢿⡄⠀⠀
                ⢿⡀⠀⠀⠀⠀⠀⣸⡇⠀⢸⡇⠀⠀⠀⠀⠀⠀⣿⠀⠀⠀⣠⡟⠀⠀⠈⢿⡀⠀
                ⠘⢷⣄⣀⣀⣀⣴⠟⠀⠀⢸⣇⣀⣀⣀⣀⣀⣀⣿⠀⠀⢰⡟⠀⠀⠀⠀⠈⣷⡀
                ⠀⠀⠉⠛⠛⠋⠁⠀⠀⠀⠘⠛⠛⠛⠛⠛⠛⠛⠛⠀⠀⠛⠛⠛⠛⠛⠛⠛⠛⠓
                """;```
twilit coral
#

idk, xD tbf i'm using paper though:

ember light
#

ahh

#

i'll swap over to paper then

#

what do u use when ur printing

remote swallow
#

is that squid game

ember light
#

uhhhh

#

MAYBE

twilit coral
#

just logger

#
Logger logger = bootstrap.getLogger();
    new BukkitRunnable() {
      @Override
      public void run() {
        String art = """
                ⠀⠀⠀⢀⣀⡀⠀⠀⠀⠀⢀⣀⣀⣀⣀⣀⣀⣀⣀⠀⠀⠀⠀⠀⠀⡄⠀⠀⠀⠀
                ⠀⣴⠟⠛⠛⠛⢷⣄⠀⠀⢸⡟⠛⠛⠛⠛⠛⠛⣿⠀⠀⠀⠀⠀⣸⢿⡄⠀⠀⠀
                ⣼⠃⠀⠀⠀⠀⠀⢻⡇⠀⢸⡇⠀⠀⠀⠀⠀⠀⣿⠀⠀⠀⠀⣰⡟⠈⢿⡄⠀⠀
                ⢿⡀⠀⠀⠀⠀⠀⣸⡇⠀⢸⡇⠀⠀⠀⠀⠀⠀⣿⠀⠀⠀⣠⡟⠀⠀⠈⢿⡀⠀
                ⠘⢷⣄⣀⣀⣀⣴⠟⠀⠀⢸⣇⣀⣀⣀⣀⣀⣀⣿⠀⠀⢰⡟⠀⠀⠀⠀⠈⣷⡀
                ⠀⠀⠉⠛⠛⠋⠁⠀⠀⠀⠘⠛⠛⠛⠛⠛⠛⠛⠛⠀⠀⠛⠛⠛⠛⠛⠛⠛⠛⠓
                """;
        logger.info(art);
      }
    }.runTask(bootstrap);
ember light
#

alright

#

i'll swap over to paper

#

i'll lyk if i have any other issues

#

thank you!

chrome beacon
#

I really don't think it's a Spigot issue

twilit coral
#

did you try running it olivo

chrome beacon
#

Currently working on it

#

give me a sec

ember light
#

if you figure it out let me know :)

chrome beacon
#

Looks like the Intellij console really does not like those characters

#

Will check using cmd

ember light
#

im printing in main cmd console

#

might be cmd

#

weird

remote swallow
#

how are you compiling

ember light
#

intellij artifact

remote swallow
#

theres your issue

ember light
chrome beacon
#

Wait so you're not even using maven

#

kekw

ember light
#

i've kinda always just compiled this way

#

icl

remote swallow
#

compile with maven

chrome beacon
#

Interesting it does print fine on Paper

#

but not on Spigot

worldly ingot
#

If you're using Maven, you need to compile with Maven :p Otherwise you're circumventing the build system entirely

ember light
#

sure 2s

#

still printing the same

#

i did mvn clean package

#

used the minecraft plugin in intellij to build the project

#

just made the log

#

then that command

chrome beacon
ember light
#

im on paper

chrome beacon
#

🤔

ember light
chrome beacon
#

That's the API you're compiling against not what the server is running

ember light
#

💀

#

kms

summer scroll
#

utf-8 or something

ember light
#

where can i download a paper 1.21.4 jar

#

ignore me

#

got it

barren peak
#

is making an entity just walk towards a location using nms as simple as this.getNavigation().moveTo(target.getX(), target.getY(), target.getZ(), speed);
in the constructor or do you need to set up pathfinder goals (which I have also tried but am new with NMS and haven't got either methods to work)?

chrome beacon
#

Very interesting

#

It shows fine in the server GUI

ember light
#

yeah i found that weird too

chrome beacon
#

but not in the cmd console when running Spigot

ember light
#

got it

#

ty

summer scroll
#

That's a cursed square and triangle

ember light
#

IM SORTING IT

#

ALLOW IT

#

😢

#

thank you all!

twilit coral
#

guys i think he is the frontman

ember light
#

🦑

twilit coral
#

🎮

barren peak
chrome beacon
#

You're using nms so you're mostly on your own

#

Try it and see if it doesn't work look at how Mojang uses it

#

and then try to do that

barren peak
#

but I have also tried registering pathfidergoals with no success either, don't know if I'm missing something there as well

chrome beacon
#

Tried attaching a debugger and seeing what it's doing

chrome beacon
#

Yes use try with resources

#

Need to close the writer when you're done with it

warm mica
cedar saffron
mortal vortex
# ember light

i cant lie bruh, i die inside when i see a plugin pasting a massive wall of fucking ascii whenever it enables

barren peak
umbral pumice
#

only ever used NMS once but thats what i did and it worked

#

Imillusion made a great guide, thats what i used

#

i dont think your ticking the goal? <----

remote swallow
#

?nms

umbral pumice
#

oh yeah dont forget to remap your jar^

echo basalt
wooden zodiac
#
[04:02:08 WARN]: FieldAccessException: Field index 0 is out of bounds for length 0
[04:02:08 WARN]:        at ProtocolLib_2.jar//com.comphenix.protocol.reflect.FieldAccessException.fromFormat(FieldAccessException.java:49)
[04:02:08 WARN]:        at ProtocolLib_2.jar//com.comphenix.protocol.reflect.StructureModifier.write(StructureModifier.java:318)
[04:02:08 WARN]:        at CapeSwitcher-1.0.jar//me.anas.capeSwitcher.Main.lambda$applyCape$1(Main.java:152)
[04:02:08 WARN]:        at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:78)
[04:02:08 WARN]:        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:474)
[04:02:08 WARN]:        at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1805)
[04:02:08 WARN]:        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1666)
[04:02:08 WARN]:        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1331)
[04:02:08 WARN]:        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:341)
[04:02:08 WARN]:        at java.base/java.lang.Thread.run(Thread.java:1583)

https://pastebin.com/54WRZ8Ps < my plugin code

#

Gpt ain't helping me solve this code

mortal vortex
main juniper
#

Why can I not use bold text in my minecraft server chat

#

I am trying to make ranks bold with essentialsx chat & luckperms

pseudo hazel
#

did you try contacting protocollib support?

wooden zodiac
#

They don't have support server

upper hazel
#

I don't understand how canceling an event cancels all its changes that affected the subject. For example, there is an event GiveRoleEvent on the logic if it is canceled then the effects of the role should not be given to the player yes? Here is example - https://paste.md-5.net/yomoricoyo.java

#

how works other events with this problem?

summer scroll
#

Maybe you need to specify the event priority aswell.

upper hazel
#

very low i gess?

#

and check cancel event?

summer scroll
#

LOWEST would be called first.

upper hazel
#

alr

summer scroll
#

You could also use ignoreCancelled = true in the annotations.

#

@EventHandler(priority = EventPriority.WHATEVER, ignoreCancelled: true)

upper hazel
#

for what

summer scroll
#

Basically that listener would not be executed if the event is cancelled.

upper hazel
#

oh

summer scroll
#

If there is other listener that might cancel the event, you may want to set the priority so it gets called after that listener.

upper hazel
#

highest, ignore cancel?

summer scroll
#

Sure, you could try it.

smoky anchor
upper hazel
#

but this effects are also inside the event.

#

how i undestand i need highest priority

smoky anchor
#

I think how spigot does that usually is: send an event with the changes that are about to happen but don't modify anything yet
So what you're doing seems correct

upper hazel
#

callEvent start event so effects will be added before cancel

#

idk

#

how this works

#

i need somehow check canced event or not before he start

#

lol

smoky oak
#

I'm probably being a gigantic idiot again but where the hell did my POM go?

summer scroll
smoky oak
#

nope

#

its just gone

summer scroll
#

Welp, can't help you with that.

remote swallow
#

Does it exist outside of ij

smoky oak
#

so i added it again and now i get this warning lol
system modules path not set in conjunction with -source 17

#

@remote swallow no, it was just deleted for SOME reason

#

that was my first thought too

#

on that topic how do i add javadoc again? i ran the build with generate-docs but my IntelliJ aint seeing it

#

this is litarally it

molten hearth
pseudo hazel
#

oof intellij just asked me if I wanted to download the docs haha

smoky oak
#

so according to this spigot is a vunlerability now?

#

i stg every time i try to do anything involving javadoc...

#

eeeexcuse me
--generate-docs does not generate docs

#

wtf

rough ibex
#

mvn site ?

#

what are you trying to do

rough ibex
smoky oak
#

i am trying to get buildtools to spit out javadocs

smoky oak
#

wth why is this nonsense necessary now lol

rough ibex
#

but for me IJ also has the javadocs as deps?

smoky oak
#

the buildtools page says --generate-docs does it but apparantly no lol

rough ibex
#

i have it set for automatic dl docs

smoky oak
#

ok wtf
its generating the docs but not moving them to .m2

#

whats the correct path to paste that?

#

just where the server is copied to?

rough ibex
#

path to paste what

#

the docs‽

smoky oak
#

this is the output folder

#

my m2 doesnt contain the javadoc anywhere

rough ibex
#

put in m2 next to other spigot jar

smoky oak
#

alr, back to IJ

rough ibex
#

you can access your m2 manually

#

its ~/.m2

smoky oak
#

ye ik. my issue is now getting IJ to see this file

rough ibex
#

it should automatically

#

Sync maven

smoky oak
#

i dont see that in the options

rough ibex
#

maven side bar

#

normal UI

#

not in any settings

smoky oak
#

thats what i checked. none of those are named sync

rough ibex
#

its 2 arrows

#

🔄

smoky oak
#

that says 'reload maven projects' for me and i did hit that

#

nada

rough ibex
#

theres a sync option

#

as well

#

try shift-shift sync

#

with actions on

smoky oak
#

not too sure what you mean by that

rough ibex
#

Press shift and shift again

#

quickly

#

it brings up a quick menu

#

so you can easily find literally every action and option and text

#

Ctrl ctrl is similar

smoky oak
#

that gives me a ton of options lol

#

ok besides the fact im a fuckin idiot i think i did it

#

not sure if it was maven javadoc dependency or ctrl-shift-alt-s import but it works

rough ibex
#

sure

smoky oak
#

is there somting where i can check this

rough ibex
#

just import Bukkit and hover

smoky oak
#

no nevermind its still just the names

#

uuuuuurrgh come on man

rough ibex
#

click on localhost

rough ibex
#

Does it work

smoky oak
#

well yes. but again i can just open the spigot api in my browser. i want to see it in intelliJ not firefox bruh

rough ibex
#

whats missing

smoky oak
#

the actual javadoc and not just the file structure generated from spigot.jar

rough ibex
#

That is the javadoc

#

Its 1 sentence.

#

its working fine.

#

just the modal is at an odd size

smoky oak
#

huh

rough ibex
#

Thats the actual javadoc for onEnable

#

thats it

#

theres no error here

smoky oak
#

...hence me asking earlier if theres a good class to check this on

#

i want to hit my head against the wall

#

welp at least i have confirmation

cedar saffron
proven fern
#

Can i integrate AI into NPC's?

#

Is it possible

#

Or is it form over substance

ember light
umbral pumice
#

alot of networking handling

blazing ocean
#

They probably mean mob AI

slender elbow
#

but chatgpt isn't a mob? how else are you gonna give AI to an NPC if not to chat 😂 😂 🤣 💪 💯

#

kms

chilly swallow
#

Does bungeecord ship with SQL drivers like spigot does

eternal oxide
#

yes

viscid walrus
#

My IDE (IntelliJ IDEA CE) isn't recognising org.bukkit.Material (e.g. red line under Material.DIAMOND)

But it runs and compiles successfully (i.e. its intended). Anybody know how to fix / suppress this?

eternal oxide
#

update your IDE

viscid walrus
#

I did using the top menu

eternal oxide
#

use toolbox (I Believe)

viscid walrus
#

lemme see

chrome beacon
#

It only goes one step at a time

#

Or as ElgarL said you can use Toolbox to manage all your Jetbrain IDEs and keep them up to date

proven fern
cedar turtle
#

What method can I use to get a list of all mobs that can be leashed?

slender elbow
#

all LivingEntities can be leashed

#

kinky

cedar turtle
#

and what about pandas and villagers, for example?

blazing ocean
#

all LivingEntities

cedar turtle
#

oh I just assumed the name, thought pandas were in there (they are also living entities)

slender elbow
#

i mean technically there is an internal method to check if an entity can be leashed but iirc that's only used for when as a player you are trying to leash an entity, not with the api

umbral pumice
cedar turtle
umbral pumice
#

your not gonna be able to make the NPC/AI "see". You will only have world block references

#

Such as where the interacting player is standing at

proven fern
#

Ye ye i thought it might be possible to teach AI how to read chunk data and based on that make decisions

eternal oxide
#

You could

#

but it would be easier to do it client side

proven fern
#

Wdym client side?

eternal oxide
#

I'm assuming you are trying to do something like they do on the Neuro/Vedal streams

proven fern
#

Idk who's Neuro and Vedal

#

Vedal is some fucking vtuber?

eternal oxide
#

an AI bot/programmer who plays games like Minecraft on stream

proven fern
#

This shit?

eternal oxide
#

shit?

#

That content, yes

proven fern
#

Yea what else is this some fucking vtuber

eternal oxide
#

Wow aren't you so big and tough.

remote swallow
#

isnt ur pfp a vtuber

proven fern
#

Nah its anime character

eternal oxide
#

lol

remote swallow
#

looks a lot like a vtuber

blazing ocean
#

do you really want to provide an LLM with a snapshot of a three dimensional dimension in text representation

#

wow man gl

remote swallow
#

dont you do that in ur sleep

blazing ocean
#

definitely

proven fern
#

Okay nah i dont want to create AI Vtuber i want to download some city map from the fucking internet. Mark that region and let AI create real life movement in that city. So the npc's will get up, go to work do some shit on farm, go back to his house. Something like that

blazing ocean
#

thats just citizens

eternal oxide
#

Then just fucking path find that shit, like for fucking real man

proven fern
#

No that's not, Citizens are reta*** and have no real life. They don't move or move in the admin created paths.

remote swallow
#

there are plugins to do that

proven fern
#

Which ones?

remote swallow
proven fern
#

But this doesn't feel real u know what i mean. It's all scripted and repeats iteself in one big loop.

blazing ocean
#

i mean yeah

#

AI won't help ya with that

proven fern
#

Why? Wouldn't it make NPC's decisions unpredictable even for admins while still realising goals?

blazing ocean
#

it would for sure make it unpredictably bad, terrible and buggy

#

expensive and slow too of course

eternal oxide
#

You can simulate "life" to a degree using pathfinding/goals but adding an actual AI is going to be risky at best. You are better off Simulating it in a plugin

blazing ocean
#

testing until the point where it works would already be like at least $200 of openai credits kekw

eternal oxide
#

If you are a good programmer

proven fern
nova notch
#

no need to overcomplicate shit

eternal oxide
#

It might be funny when the AI hallucinates and goes on a murdering spree, but other than that its overboard.

nova notch
#

that would certainly be entertaining

#

but yeah I tried using ai (locally hosted llama whatever it's called) to get it to roleplay as a blacksmith and it couldn't even do that

#

if it can't act as a character it sure as hell ain't gonna function as an in game npc

pseudo hazel
#

just copy neuro-sama

proper cobalt
#

costs 80$ though

proper cobalt
#

TS

pseudo hazel
#

yikes

buoyant viper
#

lol

amber fjord
#

not sure if I'm missing something with inventory change events but is there a way to have a player unable to equip a custom ItemStack that the material is a player head?

worldly ingot
#

Does Curse of Binding work by chance? I'm pretty sure it works with anything that's on your head

#

Might be able to avoid events all together

amber fjord
#

i meant the player has the item normally but cannot equip it onto the helmet slot

worldly ingot
#

Oh, sorry, other way around. My mistake

amber fjord
#

its purely cosmetic theres no real functional value to having it that way

worldly ingot
#

You'd have to listen for an InventoryClickEvent, InventoryDragEvent (because dragging is separate), and I think that's it?

#

Because you can't right click to equip a skull so that's fine

amber fjord
#

i dont think theres a method in the inventory events that explains the result of where the item ends up

#

thats the problem I have

chrome beacon
#

There isn't

#

You'd have to calculate that yourself

pseudo hazel
#

but in the case of armor its trivial

river oracle
#

It's pretty easy lo

amber fjord
#

alr it doesnt have function anyway its just cosmetic

pseudo hazel
#

then why is it a skull

amber fjord
#

so i can have custom textures without a texture pack using the skull meta

autumn moss
#

can i get an opinion on a plugin in working on?

#

im

river oracle
#

Ño

autumn moss
#

ok lol

eternal oxide
#

lol

autumn moss
#

should i use my old actionbar or does the new one seem better

river oracle
chrome beacon
#

Just let that be configurable

river oracle
#

I don't like either there aren't any hookers

amber fjord
#

if modmode has multiple functions other than visibility then the new one but otherwise the old one

amber fjord
river oracle
#

No blackjack either

#

So like what even the point

amber fjord
#

real

autumn moss
#

Alright ty

amber fjord
#

is it possible to cast an itemstack to a recipe choice or do I need to check if the craft has the itemstack instead of a placeholder separately?

#

meaning I can set a crafting recipe to use one of my itemstacks

amber fjord
#

because its not a class if thats what youre going for

#

and if I cast RecipeChoice to the itemstack then it doesnt work

river oracle
#

You cast the recipe choice

#

Fucming hell

#

I've got the name wrong then

#

?jd-s

undone axleBOT
amber fjord
#

ty

river oracle
#

There's one for material as well

amber fjord
#

it works it just uses the material for the itemstack in the recipe suggestions

#

but it doesnt craft with the material

surreal skiff
chrome beacon
#

?paste Use this instead

undone axleBOT
umbral flint
#

How can I check if a WorldCreator is loading a world or completely generating a new world

amber fjord
#

how do I unban a player in my logic given I only have their UUID? I tried Bukkit.getBannedPlayers().remove(Bukkit.getOfflinePlayer(playerId)); but it just didnt remove the object for some reason

remote swallow
#

Probably returns an immutable collection

amber fjord
chrome beacon
#

Get the banList and then pardon

amber fjord
#

do I use the name type or profile type

#

since name is volatile if the player changes their username

#

well nvm it shouldnt matter because I'm sourcing the player name from the uuid anyway

chrome beacon
#

and then get the player profile from the uuid

amber fjord
chrome beacon
#

No

#

Don't give it a string

#

give it the player profile

amber fjord
#

the pardon method doesnt take the player profile tho

chrome beacon
#

It does

#

There's a generic overload for that

buoyant viper
#

?jd-s hmm

undone axleBOT
amber fjord
chrome beacon
#

Use the javadoc and you'll see it

potent atlas
#

How to make a rabbit hop when you're riding it? It just slides across the ground right now 😛
I tried velocity but could not get it to work, especially since I already have it moving forward using velocity in a runnable. Also tried teleportation but that didn't work either.

amber fjord
chrome beacon
#

Just create the player profile directly

#

No need for offline player

amber fjord
#

ooh

#

wait nvm im not following

chrome beacon
#

createPlayerProfile

#

It's a method

amber fjord
#

that doesnt work tho it still wants a string

chrome beacon
#

Cast to profile ban list

amber fjord
#

still string

#

i got it

#

i had to put PlayerProfile as the target of the BanList<>

#

and nvm it throws an error

potent atlas
#

ok well what's the error?

#

So, I was thinking, whenever the rabbit is found to be on the ground I teleport it up a bit but that's not working along with velocity because this:
ride.setVelocity(rider.getLocation().getDirection().multiply(speed));
Also affects the y axis

chilly swallow
#

if you want to make it only affect the x axis

#

could you clone the location but set the X to zero before multiplying

young knoll
#

You can also just set the y axis to 0 before calling setVelocity

opaque scarab
#

This is probably a stupid question. Is there any way to put a viewable map on a display entity?

young knoll
#

Might work if you set it to fixed

#

Since iirc that’s what item frames use

opaque scarab
#

How might I do that?

#

I’m trying to create a sphere out of maps

young knoll
#

setItemDisplayTransform

opaque scarab
# young knoll setItemDisplayTransform

Unfortunately, they still appear just with their basic item texture. Thanks for the help though! Here's my code if I'm missing something. ```ItemStack stack = new ItemStack(Material.FILLED_MAP);
MapMeta mapMeta = (MapMeta) stack.getItemMeta();

    MapView view = Bukkit.createMap(player.getWorld());

    DebugMapRenderer renderer = new DebugMapRenderer();

    view.getRenderers().clear();
    view.addRenderer(renderer);

    mapMeta.setMapView(view);
    stack.setItemMeta(mapMeta);

    player.getInventory().addItem(stack);

    for (int x = size * -1; x <= size; x++) {
        for (int z = size * -1; z <= size; z++) {
            Location spawnLoc = new Location(loc.getWorld(), loc.getX() + x, loc.getY(), loc.getZ() + z);
            Bukkit.broadcastMessage("loc: " + spawnLoc.getX() + " " + spawnLoc.getY() + " " + spawnLoc.getZ());

            ItemDisplay display = (ItemDisplay) loc.getWorld().spawnEntity(spawnLoc, EntityType.ITEM_DISPLAY);
            display.setItemDisplayTransform(ItemDisplay.ItemDisplayTransform.FIXED);
            display.setItemStack(stack);
        }
    }

    return true;
}```
amber fjord
opaque scarab
jade oasis
#

?paste

undone axleBOT
potent atlas
#

Solved my problem
This makes the entity hop
ride.setVelocity(rider.getLocation().getDirection().setY(speed * 1.5).multiply(speed));
Thanks to those who replied though ❤️

fluid river
#

Yo guys

#

jree fava lessons

rough ibex
#

wo nay

fluid river
#

I have a question

rough ibex
#

yes?

fluid river
#

Lets assume i have a discord bot running and i know it's token

#

Is there any way to make my spigot server receive events from it?

rough ibex
#

are you developing a plugin

fluid river
#

About to

#

Basically plugin which somehow hooks to the bot by token and receives callbacks of it

rough ibex
#

so you're writing a discord bot in java

fluid river
#

While server is running

rough ibex
#

the bot token and such is just basically the login

#

the bot doesn't do anything

#

you have to tell it what to do by sending commands to the endpoints with that token

fluid river
#

Sadly the bot is written on python, not JDA

rough ibex
#

and youll get replies back

fluid river
#

And it's gonna be hosted somewhere else

#

Isnt there some REST thing i can listen to

rough ibex
fluid river
#

tankz

rough ibex
#

maybe webhooks?

fluid river
#

No clue

rough ibex
#

I'm freeballing this, I haven't written a discord bot.

fluid river
#

Never tried this shit

viscid carbon
#

too bad discord bots dont have a java option.

fluid river
#

I once hosted a bot which replied penis to every message

drowsy helm
fluid river
#

And once used discord srv to connect chats

drowsy helm
#

theres basically an api for every lang

viscid carbon
rough ibex
#

hello

fluid river
#

Yes

rough ibex
#

it's quite nice

fluid river
viscid carbon
#

the only time i tried to do a discord bot, i tried to get it to say online. I gave up xD

fluid river
#

No clue if it's even possible

rough ibex
#

probably

fluid river
#

I mean i can shade JDA into the plugin

#

And run some shit in onenable

#

But not like create a new bot, but listen to an existing one, only knowing it's token

fluid river
remote swallow
#

you can have multiple bots run on one token

drowsy helm
#

hi

remote swallow
#

resident @undone axle is like 2 or 3 bots

fluid river
#

Yeah but bot is already working and it's not written by me, and it's also written on python and hosted separately

#

Rn it just fires an empty message(in discord channel) on click

#

And guys want it to tell plugin to do smth instead

#

Or well, make plugin know that bot did smth, and run some stuff based on this knowledge

#

And for me it sounds kinda impossible

#

Any clue, @remote swallow

jade oasis
#

does anyone have any idea of why this code doesnt work how i want it to? https://paste.md-5.net/hesemogubu.java

im trying to make it so when the chunk hopper is placed it saves in config and saves the hopper size in the config as well therefor anytime the server is restarted they all save as they should and load how they was, but currently they save the location but doesnt save the size of the chunk hopper when server restarts

rough ibex
#

package LOL industrial-grade programming here

jade oasis
#

i can put whatever there