#cant use TextComponent

1 messages · Page 1 of 1 (latest)

karmic sinew
#

hi conclure

cloud girder
#

1sec

karmic sinew
#

kk

cloud girder
#

okay

spark glacier
cloud girder
#

so you probably have to add the bungee chat api as your dependency

spark glacier
#

Errors or something else?

karmic sinew
karmic sinew
spark glacier
#

As Conclure said, you need the chatapi. Its in the spigot repo. one sec

molten sentinel
#

hi

karmic sinew
#

henlo

spark glacier
#

It shoudl work fine just with teh spigot-api in your pom

#

I just tested it

karmic sinew
#

i was told something about dependencies and pom

spark glacier
#

I just did the example of that page and it offered me the correct imports

karmic sinew
#

i use dependencies

spark glacier
#
import net.md_5.bungee.api.ChatColor;
import net.md_5.bungee.api.chat.BaseComponent;
import net.md_5.bungee.api.chat.ComponentBuilder;```
#

you don;t use maven? So you manually add spigot as a jar?

karmic sinew
#

uh idk?

#

i just follow a tutorial man

molten sentinel
#

what tutorial

spark glacier
#

do you have a pom.xml in your project?

karmic sinew
#

TechnoVision's spigot plugin tutorial

karmic sinew
molten sentinel
#

send a screen of your curernt proyect structure

karmic sinew
#

there's tabs

#

which tab

molten sentinel
#

if you can

#

all of them

karmic sinew
#

i only used 2

molten sentinel
#

otherwise send the general ones

spark glacier
#

I'm going to guess you are on 1.8 or somethign where the chatAPI is not in spigot

karmic sinew
#

nope, 1.17.1

spark glacier
#

and you have 1.17.1 imports working fine?

karmic sinew
#

conclure tell m5d to give us normies sending image permissions

karmic sinew
spark glacier
#

ok you are using a spigot jar

karmic sinew
molten sentinel
#

this

karmic sinew
spark glacier
#

expand external libraries

karmic sinew
molten sentinel
#

thats it?

karmic sinew
#

yuh

spark glacier
#

yep, there is no reason your imports would not work with an imported spigot jar

karmic sinew
#

rack told me it should work too

spark glacier
#

add this code to your onEnable java BaseComponent[] component = new ComponentBuilder("Hello ").color(ChatColor.RED) .append("world").color(ChatColor.DARK_RED).bold(true) .append("!").color(ChatColor.RED).create();

#

it shoudl show you red underline

karmic sinew
#

doubt it will work but ok

#

yup

spark glacier
#

it will complain

karmic sinew
spark glacier
#

now hover over teh BaseComponent and a window should pop up

karmic sinew
#

i am one step ahead of u

spark glacier
#

ok add these imports java import net.md_5.bungee.api.ChatColor; import net.md_5.bungee.api.chat.BaseComponent; import net.md_5.bungee.api.chat.ComponentBuilder;

molten sentinel
#

what video did you follow?

karmic sinew
#

uh idk

spark glacier
#

if those imports don;t show any error

karmic sinew
#

i did the first and the second one for the project itself

#

then some other stuff for other stuff

molten sentinel
#
#

check his videos

spark glacier
#

Theres somethign seriously up with your project setup or your spigot jar

molten sentinel
#

i dont think he has the pom does he?

spark glacier
#

he's not using maven

molten sentinel
#

it would be with plugin.yml

karmic sinew
#

actually

spark glacier
#

manually imported spigot jar

molten sentinel
#

why

karmic sinew
#

external libraries > spigot-api-1.17.1 > META-INF has a folder called maven

#

does that mean i "use maven" or whatever that means

spark glacier
#

no

karmic sinew
#

oh ok

spark glacier
#

thats just spigot was built with maven

karmic sinew
#

idk what maven is but ok

#

sooo what do i do

molten sentinel
#

start over

karmic sinew
#

k 1 sec

molten sentinel
#

watch thesourcecode videos

karmic sinew
#

i have a new plugin with like nothing on it

molten sentinel
#

follow his steps closely

#

i think you fucked up at some point

karmic sinew
#

lemme test this first

spark glacier
#

yep, somethign is very wrong with yoru setup. It can;t see any of the net.md5 stuff

karmic sinew
#

i think it's the api

#

cause everything else works

#

but i know nothin soo ye

molten sentinel
#

the spigot api?

#

i dont think so

spark glacier
#

did you build your spigot jar using Buildtools? or download it?

karmic sinew
#

i downloaded it from a website in the description of the tutorial

spark glacier
#

eww

molten sentinel
#

yea no

spark glacier
#

yeah, build your own. Safer adn much better

molten sentinel
#

delete everything

spark glacier
#

?bt

karmic sinew
#

that thing

#

commands don't work on threads

spark glacier
#

You are not using maven so you need the full spigot jar

karmic sinew
#

is there a tutorial i can follow tho

#

or do i have to read wikis

spark glacier
#

yes one sec

karmic sinew
#

also will my previous work still work?

spark glacier
#

yes

karmic sinew
#

oh phew

#

i did not want to remake all that again

spark glacier
#

you just need to build your own jar and import it instead of the one you are using

molten sentinel
karmic sinew
#

elgarl do u agree with them that i should watch that tutorial playlist?

#

or that i should read through the wiki

spark glacier
#

well, the one you are using does seem to not be good

molten sentinel
#

both xd

spark glacier
#

I'd suggest do the buildtools and try to fix what is up with yoru setup.

#

You will learn more by doing than watching

karmic sinew
#

i hope this works on minehut doe

#

do u know by any chance if it does?

spark glacier
#

I've no idea what minehut is

karmic sinew
#

server hosting

#

for free with bad stuff they give

#

like 10 slots unless you pay a lot of money

#

only using it cause it's free players basically

molten sentinel
#

why dont you host it locally?

#

create a run.bat file and with a server.jar you can use localhost

#

to test plugins

karmic sinew
#

i do

molten sentinel
#
  • plugin manager
#

so you dont have to restart the server

karmic sinew
#

but i need it to work with minehut for the actual server

molten sentinel
#

and you should be fine

karmic sinew
#

well the localhost is just for the testing server

#

the real server is on minehut

#

as i said, free players

#

large exposure

molten sentinel
#

i dont think i understand why you need to test the plugin in minehut

#

if you need another player you can simulate them

#

infact you should be able to simulate a player

karmic sinew
#

no

karmic sinew
#

im trying to do cd Downloads/BuildTools.jar/ but it's not working? help

#

pls

molten sentinel
#

bro what are you doing??

#

hwo did you get to a cmd command line

karmic sinew
#

trying to follow the wiki

molten sentinel
#

what wiki

#

send the link

karmic sinew
#

the one elgarl sent

#

help... me...

#

please...

#

dies

molten sentinel
#

aight first dont spam messages

karmic sinew
#

k sorry

molten sentinel
#

second why did you use cd

#

?

karmic sinew
#

it said to use cd

molten sentinel
#

and why cant you use cd, what error do you get

karmic sinew
#

1 sec

molten sentinel
#

test ls

#

and dir

#

and tell me what you get

karmic sinew
#

a lot of colored text

molten sentinel
#

with both or just dir?

karmic sinew
#

dir sends like a text wall

#

1l sends a lot of colored text

molten sentinel
#

aight do cd Dow and tell me if it autocompletes to Downloads

#

press tab

#

to autocompelte

karmic sinew
#

it does

molten sentinel
#

perfect

#

press enter

#

and test

karmic sinew
#

i did B and then tab and it put buildtools

molten sentinel
#

do

#

dir

#

after you do the cd

karmic sinew
#

ok im in downloads now

molten sentinel
#

you see the buildtooks inside the downlaods?

karmic sinew
#

yee

molten sentinel
#

show me a screenshoot of it

karmic sinew
#

wdym

#

of hwat

#

what*

molten sentinel
#

do dir and show me where the buildtools is

karmic sinew
#

first

#

1 sec lemme delete some stuff in Downloads

#

there

molten sentinel
#

🤨

#

wat u hidding

karmic sinew
#

i like my downloads clear

#

nothin

#

i can tell u what i got in there

molten sentinel
#

👨‍🦯 i don see nothin

karmic sinew
#

wdym

molten sentinel
#

just send the ss

karmic sinew
#

idk how this works so imma just hide the thingie at the start

#

maybe u can steal my ip from it idk, im too dumb to know

molten sentinel
#

thats your name lol

#

or the name of the pc

karmic sinew
#

then i don't want u to know my name or name of pc

molten sentinel
#

doesnt really matter

#

as long as you dont show your public ip

karmic sinew
#

ok so now what

molten sentinel
#

now run java -jar BuildTools.jar

karmic sinew
#

it did stuff

molten sentinel
#

ah for fk sake theres an automated process for this bro

karmic sinew
#

oh wait it's still doing stuff

molten sentinel
#

its like right there

#

fking hell

#

anyways

karmic sinew
#

im not doing that

#

that looks risky

molten sentinel
#

its literally the same as you are doing rn

karmic sinew
#

i don't trust nobody

#

get outta my swamp

molten sentinel
#

you are trusting me lol

karmic sinew
#

fair

#

bro it's still doing stuff

#

it's spamming

#

ok i think it's done

molten sentinel
#

aight buildtools should be downloaded by now

karmic sinew
#

nope not done

#

bro how long does this go for

molten sentinel
#

its big

karmic sinew
#

yeah i see that

#

all this and you still can't add beestings to a player, so sad

#

how long does this usally go on for

#

it keeps saying build done but then it keeps on goin

molten sentinel
#

cuz theres a lot of builds

#

the ones you were missing

karmic sinew
#

wait

#

is it downloading every version of the spigot api

molten sentinel
#

yea just let it run

#

once you see your name again

#

then its done

karmic sinew
#

sigh

#

i'll be back in like an hour- jk jk

#

ayy it's done

#

now what

molten sentinel
#

idk try to make the plugin again

karmic sinew
#

aw man

#

boooooo!

molten sentinel
#

i already did a lot

#

now its your turn

#

lol

karmic sinew
#

bro i just waited here for like 2 seconds do you know how much work that is

#

people these days jeez

#

can't i just put the new spigot api in my depenencies folder and then set the dependencies to that

molten sentinel
#

tbh idk

#

at this point idk what you have and what you dont have

#

follow a plugin development tutorial

#

either yt video or guide

#

and see if it works

karmic sinew
#

can i use my old one but with this api

molten sentinel
#

i would recommend starting over

karmic sinew
#

n o

#

i will try and fail and then laugh in ur face

#

LOOK AT ME GOOO

#

ok im not funny i'll stop

molten sentinel
karmic sinew
#

ok

karmic sinew
#

POG i got textcomponent

#

thx