#cant use TextComponent
1 messages · Page 1 of 1 (latest)
1sec
kk
okay
Did you try the examples https://www.spigotmc.org/wiki/the-chat-component-api/?
so you probably have to add the bungee chat api as your dependency
yis
Errors or something else?
do i need normal bungee for that, also is normal bungee a thing? i don't use it really
it's not even a suggestable import
As Conclure said, you need the chatapi. Its in the spigot repo. one sec
hi
henlo
i was told something about dependencies and pom
I just did the example of that page and it offered me the correct imports
i use dependencies
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?
what tutorial
do you have a pom.xml in your project?
TechnoVision's spigot plugin tutorial
no
send a screen of your curernt proyect structure
i only used 2
otherwise send the general ones
I'm going to guess you are on 1.8 or somethign where the chatAPI is not in spigot
and you have 1.17.1 imports working fine?
conclure tell m5d to give us normies sending image permissions
wdym
ok you are using a spigot jar
btw those are the ones i used
no not that
this
expand external libraries
thats it?
yuh
yep, there is no reason your imports would not work with an imported spigot jar
rack told me it should work too
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
it will complain
now hover over teh BaseComponent and a window should pop up
i am one step ahead of u
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;
what video did you follow?
uh idk
if those imports don;t show any error
i did the first and the second one for the project itself
then some other stuff for other stuff
Hello and welcome to TheSourceCode,
Here at TheSourceCode, our main objective is to have people learn to code alongside me. We are not professional coders by any means. But we have gained lots of knowledge throughout our years and we hope to share it with you! We hope to teach you something new and we hope you guys teach us something new!
check his videos
Theres somethign seriously up with your project setup or your spigot jar
i dont think he has the pom does he?
he's not using maven
it would be with plugin.yml
actually
manually imported spigot jar
why
external libraries > spigot-api-1.17.1 > META-INF has a folder called maven
does that mean i "use maven" or whatever that means
no
oh ok
thats just spigot was built with maven
start over
k 1 sec
watch thesourcecode videos
i have a new plugin with like nothing on it
lemme test this first
yep, somethign is very wrong with yoru setup. It can;t see any of the net.md5 stuff
did you build your spigot jar using Buildtools? or download it?
i downloaded it from a website in the description of the tutorial
eww
yea no
yeah, build your own. Safer adn much better
delete everything
?bt
You are not using maven so you need the full spigot jar
also will my previous work still work?
yes
you just need to build your own jar and import it instead of the one you are using
yea the youtube list i sent
elgarl do u agree with them that i should watch that tutorial playlist?
or that i should read through the wiki
well, the one you are using does seem to not be good
both xd
I'd suggest do the buildtools and try to fix what is up with yoru setup.
You will learn more by doing than watching
I've no idea what minehut is
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
why dont you host it locally?
create a run.bat file and with a server.jar you can use localhost
to test plugins
i do
but i need it to work with minehut for the actual server
and you should be fine
why
well the localhost is just for the testing server
the real server is on minehut
as i said, free players
large exposure
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
no
^^^
^^^
im trying to do cd Downloads/BuildTools.jar/ but it's not working? help
pls
trying to follow the wiki
aight first dont spam messages
k sorry
it said to use cd
and why cant you use cd, what error do you get
a lot of colored text
with both or just dir?
aight do cd Dow and tell me if it autocompletes to Downloads
press tab
to autocompelte
it does
i did B and then tab and it put buildtools
ok im in downloads now
you see the buildtooks inside the downlaods?
yee
show me a screenshoot of it
do dir and show me where the buildtools is
👨🦯 i don see nothin
wdym
just send the ss
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
then i don't want u to know my name or name of pc
ok so now what
now run java -jar BuildTools.jar
it did stuff
ah for fk sake theres an automated process for this bro
@echo off
IF NOT EXIST BuildTools (
mkdir BuildTools
)
cd BuildTools
curl -z BuildTools.jar -o BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
set /p Input=Enter the version: || set Input=latest
java -jar BuildTools.jar --rev %Input%
pause
oh wait it's still doing stuff
its literally the same as you are doing rn
you are trusting me lol
aight buildtools should be downloaded by now
its big
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
idk try to make the plugin again
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
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
can i use my old one but with this api
first i wanna try this
idk, i didnt see your old code
i would recommend starting over
n o
i will try and fail and then laugh in ur face
LOOK AT ME GOOO
ok im not funny i'll stop
i mean the best way of learning is failing, but dont come back asking why it doesnt work xd
ok