#help-archived
1 messages · Page 190 of 1
I'm not 100% certain if that applies to FurnaceRecipe, although I'm inclined to believe that's not the case
Or else >:c
Well that's why it's still deprecated
We kind of want to get that implemented before undeprecating it
Basically have it apply globally to all recipes
Yeah
Here's the PR I made for the SmithingEvent https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/pull-requests/527/diff#src/main/java/org/bukkit/event/inventory/PrepareSmithingEvent.java
I remember when BlockDropItemEvent was draft
is this where i ask about FastAsyncWorldEdit?
the chad option is to not use fawe
which, for the record, is short for fast async world exception
would it be unwise to ask a general server question here that doesn't relate fully to spigot? I'd ask on the forums but it's 2am and I've spent 3 hours trying to fix this and cant bear waiting for a response
don't worry
^
however stupid or off topic your question might be, someone has asked a more stupid and off topic question before
usually in the last 24 hours
like the one above yours
here goes
I'm trying to port forward a locally hosted server (hosted on my laptop, just for me and a couple other people max at one time). so I've port forwarded it, and tried almost every solution online but no cigar - it still says closed when I check it with all ping sites. definitely a port forwarding issue as I can connect using localhost/my pc's ip. I want people to be able to connect externally using my public ip.
excuse the spelling errors. my brain is very tired
to be honest I would almos recommend just grabbing a cheap plan off some low end shared hosting provider
https://www.spigotmc.org/wiki/port-forwarding/
@scenic girder try beacon from that page
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
pebblehost for one has plans starting at like 3usd/quarterly
port forwarding can be a piece of shit sometimes
ngrok 🤔
especially if your ISP is one of the nasty ones
port changes everytime it starts however
I live in the UK so I believe it's slightly better here, but still damn annoying
not to mention that even a 0.30$ usd/month shared hosting server will probably outperform your laptop
especially if your ISP is one of the nasty ones
that's Choco, he's paying 140 CAD for 14/10 or something (that's the best speed and provider at his place)
Oh jeez!
yeah rip him
canadian isps are scammers
The house I just moved to has 150/30
then add the value
@south talon same thing with remove?
at the building I work at, they installed fibre 8 years ago and still haven't "activated it"
stuck using dsl
Choco won't move out cause it's nice there or something 😢
Soon it’ll have almost gigabit with 900 down 😄
sucks to live in the british countryside
I pay 40 $ per month and i get 100 gb for those 40$ and actually with 15mb speed 💔
whaaat
1ms to the building next door maybe
1ms across the globe is unfeasible even on fibre
1ms across the uk
100gb to use is nothing ngl i can finish it in 15 mins
yeah i use several times that in a month
star link is, what, 43ms?
Star link is bad for latency?
thankfully where I live at we don't have limits on data
can just churn out utorrent indefinitely
I was under the impression it would be faster than the big boi cable under the sea that the NY stock exchange use
may be muddling up facts here though
I think it’s faster but obviously there’s way more distance to travel so that cancels it out
And obviously you’re working with moving satellites
Starlink will be better over long distances IIRC.
But can I get more than 10/1 for $70CAD
I think star link is actually faster than fibre
SFP ports :).
Starlink is LEO, Traditional Satellites are 33k+ miles away. So the latency is going to be comparable with land line.
However, the weather is still going to impact your service.
But, if you live in a rural area where the isps are scarce and unwilling to spend the money to roll out traditional internet, what other options do you have?
Yeah fibre is still going to be more reliable for most people
I'm using fixed wireless now, but AT&T is still relatively bad.
Yeah, but if you cannot get fibre, it's not even worth mentioning.
hello could any one help me upgrade from spigot 1.15.2 to 1.16.1 iv tried to do --forceUpgrade and --rev 1.16.1 but it just redownloads 1.15.2
When can we all get gigabit
When giga hits you with her chompers
When’s 10gigabit coming to the home? 🤔🤔😂
starlink isn't going to be faster. It could have a higher bandwidth capacity, but due to latency and power required to transmit that far, it won't be faster and if it does become faster it will be super expensive to keep those speeds due to power constraints lol.
java -jar BuildTools.jar --rev 1.16
forceupgrade is not necessary for updates past 1.13
O shoot, this is help. We should go general.
In terms of latency it should be miles better than traditional. Obviously not my first choice.
its not miles better
in terms of distance, it certainly is
you will get no better then 100ms
I'm lucky to get that now
distance isn't even the real concern
it's the number of relays and switches on the way
a plain signal would cross the globe in practically an instant
distance is the concern as that is what is the major factor in latency. It isn't a factor in bandwidth capacity or how fast you are transmitting.
Plain signal will not cross the globe instantly
yeah, physical distance isn't
What we need more than anything is more competition, to force the cellular isps and other companies that provide service, to make theirs more reasonable.
However, I am glad we are finally having some entity do more with space
so while although Starlink won't be better in what we have, what it will do is provide more access to what we have already
java -jar BuildTools.jar --rev 1.16
@lone fog i just tried that and it downloaded 1.15.2 again lmao
as well as cheaper access
i dont understand at all lmao
come on man, everyone is doing it
as well as being lower than all other comms satellites, they send information straight to the user instead of to a ground stations and through cable
which is exciting
Actually it’s --rev 1.16.1
oh i cant send screen shots
Just get unstable dev versions with --dev >:)
You need to be verified
but yea i tried 1.16.1 as well as just 1.16
well i mean
ya need to verify
@scenic girder indeed, but I don't see it being possible because of the lower power constraint of devices for home use, you won't get instant connections nor will that be possible
for instant connections*
physical distance, except for the implied switch/relay infrastructure to keep the signal intact, is a non-factor
it is a factor
a plain signal can cross the globe like several thousands of times in a millisecond
ya need to verify
@scenic girder my spigot account?
it is lmao
yup horse
3/4 of second latency vs 1/10th would be noticeable
lemme double check
There's a verification channel where you verify
Light can circle the circumference of earth at the equator in 0.133 seconds
So it would not be thousands of times
oh to send screenshots?
the speed of a signal in copper is like 280,000km a second
you can send link images and they'll embed, yes https://i.imgur.com/uE1RgoO.png
You're more than welcome to sign up for service in the real world, under realistic settings, and try it, trust me, satellite sucks
I literally trained on satellite communications in the Army. It is impossible to have instant connections via satellite with restricted power constraints. Only way it is possible is both the sender and receiver don't have power limitations and can project enough power to make that possible. Currently it isn't feasible or a reality yet on that part. It isn't free to emit signals. It costs energy to emit signals of any kind.
again, i'm taling about physical distance alone
yes
yes, physical distance does necessitate infrastructure to keep the signal viable
makes sense
Even physical distance, we still have the atmosphere the signal has to travel through. While we can compensate for signal loss, we don't automatically regain the bandwidth on that signal loss
yes, which, again, necessitates infrastructure to keep the signal from dissipating
which will account for 99.9% of the latency
not the physical distance itself
that was after typing verbatim java -jar BuildTools.jar -- rev 1.16.1
Which infrastructure are you referring to, to keep the signal from dissappating the devices are going to be in peoples homes
in the US, FTC restricts the power devices can consume
or emit
yes. but again, my argument is that the distance itself isn't the bottleneck
now if we were talking about like a base station then sure that could be more possible to do
@pastel nacelle its not the only bottle neck no
but it is one of many, because it is the distance that determines the amount of power required
Dangit guys go talk about your 5G mind control in general
on a completely unrelated sidenote, where my thinkpad users at
power is a trifling concern
Yes that was a joke
Just get unstable dev versions with
--dev>:)
@quick arch i just did that fuck it
that did work thanks lmao
lul
literally the only way to do it
never mind it didnt work lmao
it looked like it was
but its still 1.15.2
i have the newest one i was thinking maybe it was an update for 1.15.2 or something idk
idk which one to download if not the newest one
No newest should be right
I am so pissed
I've done so much to try fix my server's portforwarding issue
and that beacon program was like
'ports go brrrr'
seriously ive spent 3 hours
changing router settings, setting up my pc to have a static ip, restarting the router after changing so many settings
Don’t get ddosed by angry kids :p
No newest should be right
@lone fog im trying a slightly older one right now just to see what happens
aha I don't really 'game' anymore so not an issue
it seems like its downloading 1.16.1 but we'll see
ok so that worked
idk if theres a place to report bugs or if that even is a bug
but build#120 of buildtools wont download 1.16.1
the latest version 🤔
i used build#113 with no issue
I compiled it a while ago with 108 or something, https://i.imgur.com/LPFWpV3.png
yea idk weird but very annoying lmao
Is there an entitytargetevent or something like that?
hi everyone - i apologice for my absolute n00b-ness here, i'm starting down a project to use MC for some data visualization (weird i know). i have spigotmc up and running, and i can connect to it with the java client, no problel. i'd like to generate a void creative world as a sort of 'lab space' i can build things in. i downloaded the VoidGenerator.jar file and put it in plugins/ - i restarted the server, and i see the configuration.json file in plugins/VoidGenerator/ - so that's good. I do not now how to activate it. all the tutorials seems to say use the multiverse plugin to manage this - but i have just one world, one scratch space. can i invoke this plugin to regenerate the world as voidspace easily?
also, serverthreads showed it go active:
[22:31:08] [Server thread/INFO]: [VoidGenerator] Loading VoidGenerator v1.6.1
[22:31:08] [Server thread/INFO]: [VoidGenerator] Enabling VoidGenerator v1.6.1
crap. i got it 🙂 . i had to all the world... 'world'... now i have a void world. Never mind! 🙂
EntityTargetEntityEvent i
EntityTargetEntityEvent i'm not sure this is an event
It says this event doesn't exist
declaration: package: org.bukkit.event.entity, class: EntityTargetEvent
Anyone here familiar with ParadiseLand?
How do I disable mass iron golem spawning from villager farms?
Not villager farms but hubs
@lucid quiver It doesn't matter if you only have one world or not that plugin works specifically as being a generator for multiverse
so im just using buildtools and its installing portable git even though I have git installed? I googled a bit and found this, https://www.spigotmc.org/threads/building-spigot-on-windows-without-downloading-portable-git.344198/ It says at the bottom that if git is in the path that portable git wont be installed. But i have git in the path so wtf?
@lofty otter you need bash in the path also
Does worldguard have an API?
can i get the console output? in my case, get every line that has been sent to console, and send it to my discord-channel
the question is how to get that output
@lofty otter yes and msysgit includes it
get every line that has been sent to console
Apache Log4j iirc
How would I make a chest gui that can store items and saves those items per player? Like the essentials /enderchest
@buoyant path Yes worldguard has an API
@sage summit If you just want to store Items in an Inventory its not much of a GUI anymore.
ive spent 10 minutes trying to get the dependency to work lol
oh yeah true
anyone know the problem
You can just create a new Inventory and open it for the Player.
The simplest way would be something like:
Map<Player, Inventory> then load the inv when the player joins and save/unload the inv if he leaves
ummm ok, ill try my best for that
@frigid ember Wrong file formatting. Dont use tabs.
It literally says "(Do not use \t(TAB) for indentation)" XD
what tf is tabs
The button with arrow left + arrow right... the one over capslock
The button that is on 50% of keyboards literally labeled "tab"
@buoyant path Did you remember to also add the repo and not just the dependency?
@buoyant path Works fine for me...
intellij can be weird sometimes I guess?
Sometimes maven does weird things with dependencies. I always just restart intellij if he oesnt want to resolve the repos
@grim halo it wont show my project src anymore
Thats just a plain old NPE
Go to the line and check what Object might be null
NPE = NullPointerException
if(someObject == null) {
System.out.prinln("SomeObject is null")
}
Just remove it after you found out whats null
Wait so its not your own plugin?
nope
Then check if you set up the config correctly. If it still doesnt work contact the author
author is inactive -_-
How do I get the Default Level of the server? There's no getDefaultLevel() function, so I figured I'd ask
or at least see if there's an alternative
What do you mean by default level? You mean the difficulty?
Default world*
Hm... not sure if there is an api way. Let me check
Alright
I would have 2 ideas without looking at the docs.
- Bukkit.getWorlds(). and check the first 3. Pick the one that does not contain "nether" or "end" (Its also possible that the world with the index 0 is always the default world)
- Get the server.properties and just read the line to check the world name
Ohh, I'll have to test that out. Let me know if you find anything out with the API.
getWorlds().get(0) ?
Assuming the main world cant get unloaded and is always at index 0 (Never tried unloading the main world)
i don't think you can
Yep you cant
I get an UnknownDependencyException for ProtocalLib when I do depend: - ProtocalLib in my plugin.yml file. Doing /pl tells me ProtocalLib is installed so I don't know why it doesnt recognize it
thats not how you add a dependency
wait
Yes it is
its a yaml list
but im retarded
I put protocal
instead of protocol
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
depend: [WorldEdit, Towny]??
Yeah no shit i saw
e.e
i guess do it if you can thats a valid reason lmao
lol
hi dlg
Hey Taah
Hi, I'm looking for a bungeecord plugin that is moving players to one fallback server when they get kicked with one kick message, moves them to another fallback server when they get another kick message and kicks them if the kick message doesn't match with either of the ones from the list. KickMe now only supports one fallback server I think
is there a way to hide the purple glow on enchanted items for specific items?
@slim hemlock The enchantment glow is client side. If the client thinks the item is enchanted then it will glow
There is a workaround. You can intercept the item packet, remove the enchantments, add the lore for the enchantments and send it to the player.
so packets only?
I think so yes. But it shouldnt be that hard. Ill write you an example if you want
I'm afraid this would sort of affect performance at scale unfortunately if that's the only way
It will for sure not. You wont ever see this in the timings.
even if it's doing this for dozens of items per player for 40+ players per server?
good morning guys
You will reach the vanilla server limit way before you notice this.
It might start to come up if you have >500 ppl on one server.
At around 1% tick time
well if you can show an example i'd love to see it then
k give me some mins
Where the ideea that packets are resource expensive came from?🤔
I'm more worried about finding when it is necessary to prevent the packet from being sent than the act of sending the packet
or not sending, in this case
You dont prevent it
You just catch it and stop it
Its actually rather easy as its closeish to the event system
You can listen to the packets and simply check if it has the name
anyone know how i can make it so i have 3 lobby servers?
Just google it im sure it has been asked alot of times
As im not experienced in bungee got not help for it
why is it soo buggy in 1.15 and 1.16?
np
Buggy?
Minehut?
yes
And is that much for you?
A avergae size server pays 200$+ to hold a stable server
At such a low specs dont expect everything to run smoothly especially with the ram
oh ok
just a bit of advice, don't expect your server to success unless you have a decent budget. you need at least a thousand or more preferred to make something decent. not to mention, you actually need to know what you are doing, need good staff, devs if necessary and of course content creators to get the word out there, @proud beacon.
i thought a 8$ server will run out but i dont have that budget
I mean unless you have the players for it no need to upgrade
also i have a question can my 4 gb ram i5 old laptop be a server?
Also i think a vps would be much better if you have the knowledge to configure it
You can but its not recommanded
to hold servers on local machines
oh ok
As its really risky
ok
so i just wait until i collect some players in minehut then i will go on a real server
I mean you need steady income
rather than a player number
like 12$ might be enough for a first vps
Hetzner or other cloud centers give you 8gb ram for 10E
and decent specs(cpu)
but they require knowledge in running them
once you bought a vps ur on ur own
i got an i7 4790 + 32GB of ram + SSD dedicated for 23.50$. I got it back when not so many ppl knew about hetzner. Super nice for mc servers.
Oh dang you got a good price
Are they expensive now? i thought theyr decent
ahh yes
its from 30+
Theyre still good but a lot off ppl just bet way too early now. So the racks dont go as cheap anymore
@grim halo got any problems with it? i heard some negative things but in my experience(3 different clouds) were perfect
Is there any way to make the /nick | /nickname command be able to allow inputs with spaces?
I never had any problems. 99.9% uptime and they even upgraded my hdd to an ssd when i asked (i payed them the drives tho ^^)
@glacial umbra with a stringbuilder you catch
all the args after a certain index number
@grim halo so overall its a good hosting service
Alright- I'm not really into java coding, but I'll let another person who knows about it know
Ahh that question for sending the item enchanted without an enchant?
ok so a few turnarounds later it turns out both the packet solution wouldn't work for a list of reasons and also custom models in resource packs have a way to not have enchantment glow applied to them so my issue is resolved but I'd still like to see the packet solution for other packet things I'm going to need to address
Thats the adapter:
https://paste.md-5.net/olofufavac.java
Now the items even support roman numerals on enchantments >10
@Override
public void onEnable() {
ProtocolLibrary.getProtocolManager().addPacketListener(new EnchantmentHideAdapter(this, item -> item.getType()== Material.IRON_AXE));
}
never had a problem with enchantment numbers
Thats how you register the adapter so that only iron axes will have no glow
tbh i just ignore them
Can I ask about plugins here? Or is this the wrong place?
?ask
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.
thanks for the help 7smile I'm going to read up on this as soon as I wake up tomorrow
and type "commands" in a private message
Ah nice
Okay, does anyone know about a plugin for banning mods, specifically minimaps for Paper 1.16.1? I tried gProtector, installed it as instructed, but it doesn't work.
You cant really detect modded clients
?topic
All anticheats or similar have a really hard time doing it
Dang
@grim halo most likely been added some server only commands
wich somehow we can see
Its rly hard. You can listen for certain packet channels that send forgemod infos but they are not guaranteed to send them
!commands
I mean most clients dont do
i think only the big ones like badlion
wish we had more control over certain stuff
when it comes to client<->server
Okay, thank you so much. Guess I'll have to find a different way.
It would also help creating alot of new stuff,most annoying is the fact
that i cant listen to every keypress
thats triggering
could make some nice immersion gamemodes if i could
you could also probably make a keylogger for cracked servers where you have to login
This one i think
@scarlet creek
https://www.spigotmc.org/resources/✅-25-✅-hackedserver-forge-mods-clients-detector.46485/
The recent login plugins already simply
show you the password typed in the console
im talking about copy of games
It doesn't support 1.16.1, though, does it?
like a dayz mod
r to reload,z to go proned on ground(set to glide or crawlhole)
or mmorpg with keybinds to specific skills and shit
keybinds would be nuts
yeah
Oh, interesting.
LibHatesMods does something similarish, in that you can detect forge & fabric
But nothing else
ik that i can use a modified client to do this but it would be locked to that specific thing..
All we need is:
- Creating new GUIs
- Support for custom Blocks
Then we are almost at forge mod lvl at what we can do
basically becomes a modded server at that point
imagine having custommodeldata
for blocks
ma gawd
Lol good luck getting Minecraft to give u that level of customizability
New guis - You can use a resource pack to remodel inventories, but :(
Custom Blocks - Resource packs support this
That's true ever since 1.9 the game had been changing majorly every major release
Yeah but you sacrifice
They were talking about mod support for over 7 years now. I dont think this will come any time soon
mmm, you could use armorstands.
and brick the server with more than 200-300..
Wdym u can use durabilitys
😄
I thought about some posibility
The render performance would take a huge hit if you used armorstands
also the tps would just perish
We do have the mushrom block to try do textures
but were limited to minecraft patterns
Yeah I was thinking about "fancy" blocks, not actual dirt type common
Also the mushroom blocks dont have a hardness or explosive resitance.
And they update as soon as you place something nearby. Tried a lot of stuff with them and nothing was rly satisfying
Hmm 1 sec
PacketContainer fakeAnimation = protocolManager.createPacket(PacketType.Play.Server.BLOCK_BREAK_ANIMATION);
fakeAnimation.getIntegers().write(0, player.getEntityId() + 1).write(1, stage);
fakeAnimation.getBlockPositionModifier().write(0, new BlockPosition(location.toVector()));
try {
protocolManager.sendServerPacket(player, fakeAnimation);
} catch (InvocationTargetException e) {
e.printStackTrace();
}
}```
you can simulate the break animation
but the block wont receive the "cracks"
Wich again having to do this for every single blocks wont be nice
Maybe in the upcoming years we will receive a miracle from mojang
I'm legit surprised you can't register custom blocks in resource packs
I think its mostly because were limited to what we can store in a block
as it pretty much loses all custom data once placed
Meaning by being able to add data to it we could achieve that
Yo just a quick question idk if anyone will know. Are there any printer plugins that support 1.16 and work. I’ve looked around everywhere and found nothing. Thanks
but the space of a world drastically increases
I meant, adding custom blocks as their own thing
printer plugins?
I think he means putting an image on a held map
Oh
Yes printer plugins, like schematica printer then you have the ingame /printer which allows them to print
Ahh thats kinda hard to pull off with a plugin
As schematica handles everything clientside
he wants schematica printer
lol
where it adds a blueprint of a schematic
wich is almost impossible to pull off without it looking wanky
As we have to use real blocks rather than custom ones that only the client can see
Armorstands + Marker + Head
would still look pretty bad and kill performance
@hollow rune so in short nope dont think you will find any
As thats a modded client rather than a server
option
Stellrow no what it does is it hooks into shopguiplus and allows the printer mod to take from the creative inventory and get charged
Uh, why not just worldedit/fawe and /schem load schematic.schematic?
Ahh
jesus that cloudflare link
LOL
Why?
Hows the error look like?
I found one that semi works but if you give the permissions they don’t work and it doesn’t let you edit your inventory
I’ll show the printer mode error instead as that’s the better one sec
lol
Code one? Pls put it on spigot XD and make it work on 1.16 ly
1.16.2 should be tomorrow
Doesnt matter
Or probably just s snapshot
what works of 1.16.1 will work on 1.16.2
Probably
Ive alr got 1.16.2 support on my server lmao 1 step ahead
want me to pm u the error as i dont wana flood this
A method thats probs required in newer versions
the guy used the wrong import
l0l
its a paid resource so rip that
i could try contacting them to do a 1.16 fix but
so this is the paid plugin?
https://www.mc-market.org/resources/6898/ its the best printer plugin out there. Cause it ddoesnt dupe and doesnt allow people to do stuff that yeah
yes it is
Go to his discord and ask for support
well actually i am a bit confused about the Server paths.
how would i check if another plugin exists in the plugin folder?
i want to do something in my code, and check if another plugin (related to this) exists in the plugin folder
what would be the file path for a plugin.jar?
Be more specific you want to check if a plugin is on the server?
yeah, my code is related to a plugin, and if someone hasnt it installed, it would showup errors on join
because in the plugins folder it could be just disabled with something like plugman (ew)
beside having it soft-depend(wich will load it after it)
you can simply check if its loaded through the bukkit pluginmanager
declaration: package: org.bukkit.plugin, interface: PluginManager
wich returns null if its not
you can simply check if its loaded through the bukkit pluginmanager
@vernal spruce that would give a NullException, if it doesnt even exits
tried that before
no it just returns null
uhm
just catch thst exception 🤷
if it threw a exception
i will try it again, thank you
the IDE would force you to catch
So i want to put delay in my code, like how Timeunit.SECONDS does it. Problem is that method sleeps the whole server, so how can i do this for the plugin only?
I want to use a runnable
You use the bukkitrunnable
but that repeats
.runTaskLater(plugin,delay{ticks})
kay thanks
Plugin be like: i'll do it later
straight outa wiki
@Override
public void run() {
// What you want to schedule goes here
plugin.getServer().broadcastMessage(
"Welcome to Bukkit! Remember to read the documentation!");
}
}.runTaskLater(this.plugin, 20);```
straight outa wiki
nah
i think he changed some things slightly
nope
Anonymous runnable part
the wiki is savage than
yep..
what is the format that fromLegacyText is expecting for rgb?
Havent messed with rbg yet so im out😂
so probably like this?
if (Main.getPlugin().getServer().getPluginManager().getPlugin("DiscordSRV").isEnabled()) { EmbedBuilder eb = new EmbedBuilder(); eb.setTitle("**[Challenge] Timer gestartet**"); eb.setColor(Color.GREEN); DiscordSRV.getPlugin().getJda().getTextChannelById("735042945526530054").sendMessage(eb.build()).queue(); } else { //disabled }
don't say is something like &x&0&0&f&f&0&0, that's just silly
should be more like �ff00, right?
#66FF00 the best green smh
i'll try the first one, since the second one doesn't work (directly)
}.runTaskLater(this.plugin, 20);
im getting an error with plugin
plugin cannot be resolved or is not a field Main.java /Boss/src/me/ronsiv/Boss line 121 Java Problem
and also error with
BukkitRunnable()
The type new BukkitRunnable(){} must implement the inherited abstract method Runnable.run() Main.java /Boss/src/me/ronsiv/Boss line 117 Java Problem
well its clearly you didnt properly made the override inside
post the code
?paste
@Override
public void run() {
//Noice code in here
}
}.runTaskLater(pl,20);```
this can go literally inside anywhere
and pl is a instance of the main class
that also sounded quite explicit
i dont see how that was ex- oh, oh ok
pl cannot be resolved to a variable Main.java /Boss/src/me/ronsiv/Boss line 123 Java Problem
so
i need a pl var?
that pl var is a instance of the main
so i need a var?
ur working in main
i need ANOTHER CLASS?
so do this.this?
just "this"
that fixed it
Also not recommanded to have everything in one class but i guess for starting..
Clicking on that link opened it in ME Text and crashed my phone bruh
ill see if i need more
yeah
ofc
well that kinda sucks
but its the same method name
what if i want different timings tho
not just 20 ticks
you are creating a new instance with new BukkitRunnable
Someone been slacking on the java basics..
ok sure
Thats the method implemented by the runnable you just newly created
its tied to that specific one
when you create a new runnable somewhere else it will have its own
like a.. mini class?
so how do i call this?
you create a instance of it as you did it
@Override
public void run() {
}
}.runTaskLater(pl,20);```
inside the run you type ur code
wich you want to be executed after that time
@Override
public void run() {
getPlayer().getInventory().addItem(Diamond)
}
}.runTaskLater(pl,20);```
will this only execute once though?
yes
okay
its defined by the type you give it
you can delete the .runTaskLater(pl,20) and when you type . it will show you all possible types
ok, so it is silly.
makes no sense to pad it with an extra character unless there is some sort of unicode issue.
§x.7.2.8.9.d.a works perfectly fine too
seems there is no real format since it' skips characters
§x#7#2#8#9#d#a probalby works as well as §x§7§2§8§9§d§a
@inland oxide https://github.com/SpigotMC/BungeeCord/issues/2853
oh silly, but "won't leak hex".
Could just use ViaVersion and it auto coverts colors
blasphemy!
thing is, yeh it won't leak hex, just will use the wrong color and give no indication of breakage.
well, I guess we will end up with more "standards" then.
and?
well, its nice to know that the rgb stuff works in all the gui that I've tested so far.
chat, actionbar, title, tablist...
didn't test the scoreboard
but probably the same
not working for me for item names
thats weird
just join with ver 1.16.1
try that
oh
minehut has spigot?
i didnt know tha
that
this prob isnt a spigot problem though
make sure you server.properties has op-permission-level=4
is there an AIML library to use with a spigot plugin?
?paste
server.properties has nothing to do with luckperms man. its ono of your the main files downloaded in the home directory
I suggest you learn how to manage a server first. Accessing the console log and editing the server.properties files is very basic stuff. I don't know what kind of host you have, but when you do everything with a menu, you don't get the full understanding of how to properly configure a Spigot server. Suggest you figure out how to get access to the file directory where the server.properties, bukkit.yml and spigot.yml files are stored, as well as the log folders. Any decent provider will at least give you access to the console, might be a menu option.
^^
What is going on with item naming and lore?
I can't get any lore on an item for some reason.
I suggest you learn how to manage a server first. Accessing the console log and editing the server.properties files is very basic stuff. I don't know what kind of host you have, but when you do everything with a menu, you don't get the full understanding of how to properly configure a Spigot server. Suggest you figure out how to get access to the file directory where the server.properties, bukkit.yml and spigot.yml files are stored, as well as the log folders. Any decent provider will at least give you access to the console, might be a menu option.
welp, he hasminehutwhich is one of these free hostings that just connect you to their bungeecord and you get something likeserverName.minehut.ggyou dont get access to most of the files and live console output is not avaiable
that sux
i would just suggest him selfhosting for a bit to learn how to setup plugins and stuff
also you get pre made plugin configs that you just edit in yaml..
like already made tablist with ${server_name} and stuff
Is lore somehow different in 1.16.x?
random x and y?
make a location
with a constructor
with random coordinates from the general area
and spawn them there
i want to spawn 4, do i have to make 4 enitites?
usually.
aw that sucks
If you want to spawn 4 entities you need to "make" 4 entities...
I mean you dont really need to "make" them. You just tell the world that you want EntityType X at Location Y.
loading one of my old worlds up. zero plugins
and there are areas on my old map i cant place blocks
no animation to place at all. is it a corrupt chunk or the jar? how do i see if a chunk is corrupted. ive tried both paper and spigot and the same issue
Run your world with --forceUpgrade
Does anyone know the placeholder for armor defense?
well how tf would i know if its a spigot problem or not @dusky sigil
this is why people ask in the help channel
Everytime i get this Error if i try to build my intellij project: Error:java: Compilation failed: internal java compiler error
@grim halo ill give that a go thanks
well how tf would i know if its a spigot problem or not @dusky sigil
this is why people ask in the help channel
@raw light
wdym?
This Minecraft tutorial explains all about target selectors and how to use them in game commands and cheats. A target selector is used to target players or entities in your game commands. There are 4 target selector variables that you can choose from:
i was talknig to the person i tagged Ixxa
java -Xms2G -Xmx2G -XX:+UseConcMarkSweepGC -jar spigot-1.16.1.jar --forceUpgrade
pause```
is that fine?
yes
Also 2G is a bit small
@grim halo oh im talking about the defense you currently have
lets say you did %health% it'll tell you how much health you have
so i wanna do the same but in defense
if i give it more ram will it runt he upgrade quicker?
and does the upgrade break anything?
you did make a backup first, right?
of course. im reviving a 1.12 server to 1.16. this is just all tests
i think you need to go through each major version and upgrade
@plain olive is that a skript?
not 1.12 -> 1.16.1, but 1.12.2 -> 1.13.2 -> 1.14.4 -> 1.15.2 -> 1.16.1
is there a spigot page for the upgrade flag i didnt see it
gosh i'ts late.
so, doesn't look like there is a way to use rgb in lore, huh.
at least from the command line
RGB Lore is possible
It's not working for me @mellow wave
Go ask in the skript discord
what did I miss...
/give klugemonkey minecraft:stone{display:{Lore:[{"color":"#7289DA","text":"Test"}]}} 1
@inland oxide /give @p stick{display:{Lore:['{"text":"Cool Stick","font":"#","color":"#3DFFF2"}']}} 1
um
See font
Tag
says that's optional
idk That's the difference I could see. The command I sent works
maybe the single quotes?
why on here does it set the player who executed the command and they player they want to sets gamemode to creative and say your gamemode has been updated to creative and you updated {players} gamemode to creative??
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
if (command.getName().equals("gmc")) {
if (sender instanceof Player) {
Player player = (Player) sender;
if (player.hasPermission("lirus.gmc")) {
player.sendMessage("§eYour gamemode has been updated to to §ccreative§e.");
player.setGameMode(GameMode.CREATIVE);
} else {
player.sendMessage("§4You do not have permission to perform this command!");
}
if (args.length == 1) {
if (player.hasPermission("lirus.gmc.others")) {
Player target = Bukkit.getPlayer(args[0]);
if (target != null) {
target.setGameMode(GameMode.CREATIVE);
sender.sendMessage("§eYou have set " + args[0] + "'s gamemode to §ccreative§e.");
}
}
} else {
Console.sendMessage("§4You must be a player to use this command!");
}
}
}```
You're always setting your own gamemode too
How do I change that?
check if argument length is 0
^^
@plain olive
This Minecraft tutorial explains how to use the /give command with screenshots and step-by-step instructions. You can give a player any item whenever you want using the /give command in Minecraft.
This Give Tool Generator creates the Minecraft Java Edition (PC/Mac) 1.16 command you can use to give a player a custom tool with enchantments, names and lore. When you have finished customizing your tool, click on the Generate Command button and then copy/paste the command in...
^^ I'd say Mcstacker is better (https://mcstacker.net/)
no idea. just googled and got the first thing i saw
command /start [<text>]:
permission: group.default
trigger:
set {_startpick} to a diamond pickaxe named "hey" to be unbreakable
give player 1 {_startpick}
``` @plain olive
10 seconds of skript docs
anyone knows how to fix special characters turning into a weird a symbol
change coding to utf-8
Save in UTF-8
Then change the letters in it again
also the perms wont work for some reason
^
wait dw
Everytime i try to build my project i get this error message: Error:(44, 26) java: unreported exception java.lang.IllegalAccessException; must be caught or declared to be thrown Error:(43, 26) java: unreported exception java.lang.IllegalAccessException; must be caught or declared to be thrown
still no luck
im getting a message tho "Default system encoding may have misread config.yml from plugin jar"
What are you saving the file with?
Use McStacker it has more options, also if the max is 3 then 1 is fine?
@fossil thorn What ide do you use? This should be done for you automatically.
@mellow wave .yml
No what program
notepad++
That should work
do you wanna see what it turns to?
Sure and could you dm me that file so I can take a look at it?
okay
@fossil thorn What ide do you use? This should be done for you automatically.
@grim halo the first 1
i mean i used try {
} catch
Ah ok. Normally your IDE yells at you if you forget it ^^
red underline = fatal error = wont compile
ye i know but how i fix it
hover your mouse over it and read what your ide tells you
no idea what a, packet, header or footer refers to so i cant gice you advice unless you provide more context
Looks to me like protocollib's headerfooter packet wrapper
Though yeah, the less information you give us, the more difficult it will be to help you
When you ask a question, give more information than you think is necessary
trying to forceupdate from 1.12.2 to 1.13.2 one of my old worlds and it appears to be stuck. is it fucked?
so guys ive been trying to learn about all different kinds of plugins for minecraft
is there a reference for us to base upon while trying to find a way to make mobs in minecraft 1.16?
what do you mean make mobs
like mobs that has custom attributes, like zombies trying to kill pigs etc
like i dont even know if its possible
becase i dunno if i havent looked enough, is there like an area for the documentation of spigot api?
I'm wondering why TokenEnchant has a landing page for a 15.x.x version that doesn't support 1.16.x spigot, yet, they check off the box for 1.16 and only make it available from mcMarket?
data:
something:
key: value
key: value
something2:
key: value
key: value
im trying to do config.getConfigurationSection("data") but its returning null
Isn't it against the rules to list a plugin version here and if you are not actually making it available here??
Doubt the 15.4.1 version properly supports 1.16...
Doesn't that violate some acceptable use policy?
data:
something:
key: value
key: value
something2:
key: value
key: value
im trying to do config.getConfigurationSection("data") but its returning null
try listing the keys with config.getKeys()
https://prnt.sc/tlwtad @grim halo why
@plush kraken You cant cancel the LoginEvent
You can disallow him to join. I think you can just set the event result
setResult(Result.KICK_OTHER) or something like that
declaration: package: org.bukkit.event.player, class: PlayerLoginEvent, enum: Result
is there like a disconnect one?
Ok
Hello 👋
declaration: package: org.bukkit.event.player, class: PlayerLoginEvent
Do you have any tips or even examples of good command managers?
@fickle flicker what do you mean by command manager?
@fickle flicker what do you mean by command manager?
@grim halo Command and sub command management
@grim halo where do I put it
And if possible (I don't know if it's a good practice), to be able to register commands dynamically
@fickle flicker I use Aikars ACF. I thinks its very powerfull but you need a bit more Java experience to use it.
https://github.com/aikar/commands
Registering a command with autocompletion etc only takes 2min for me with this.
No plugin.yml tinkering or anything
Cool, I'm watching this, thanks 🙂
https://prnt.sc/tlxz3o The game crashes with this error when they try join and there banned. Code: https://prnt.sc/tlxzoo
You can not kick a player that is not even logged in yet.
Set the proper event result.
Also if the player is banned he wont be able to connect
Sorry im new to java
He showed you the exact method to use above
what is the plugin.yml path name?
if you are new to java you should not start tinkering with spigot. Learn the absolute basics and come back.
He showed you the exact method to use above
@subtle blade I dont understand how tho
how to use it
So you should learn how to write in Java first
At least understand the fundamental concepts of the language like methods
Is there a way to make portalframes, endcrystal possible to /give?
Essentials blacklist items isnt the problem
You have an instance of PlayerLoginEvent.
PlayerLoginEvent has the method setResult that takes one of the above
enum values. All you need to do is invoke the setResult method with one parameter of type
PlayerLoginEvent.Result.
Thats the explanation.
Not even close...
what is the plugin.yml path name?
like how can I get the path name of files in my jar?
Not even close...
@grim halo oh
Could you show me 7smile7
Yes i could. But i dont think it will help you so im not going to.
Pls take our advice and learn the very basics of java.
It will only take you 1-2 days if you are dedicated.
/bots/Amy/maps does not exist. its there? https://i.imgur.com/8iPrVBl.png
Yes i could. But i dont think it will help you so im not going to.
Pls take our advice and learn the very basics of java.
It will only take you 1-2 days if you are dedicated.
@grim halo k
What are you trying to do, GoDead?
now I get this 7smile7 https://prnt.sc/tlyfzc
@tacit trellis You can get files as InputStram with your JavaPlugin instance via
this.getResource(fileName)
......
would I have to get every file individually then?
I think so yes. How many are there?
50+?
You can zip them on compile -> save them with JavaPlugin#saveResource() -> unzip them in a folder -> list them and iterate
Can someone else help me?
You can zip them on compile -> save them with JavaPlugin#saveResource() -> unzip them in a folder -> list them and iterate
I could do this but unzip them in a folder and get that folder directory
right
okay Ill try
You should be able to get the JarFile entry from somewhere which would let you access it virtually like a filesystem almost
should be easy to write a few lines to recurse over the structure tree and throw it out to the disk
Ah almost forgot thats a thing.
There's probably a much better way to achieve that, or at least avoid having to iterate across all compiled files as well, but yeah
Wait i maybe got something in my current project that puts together a resourcepack from files inside the jar...
@subtle blade have you ever seen this crash? Apparently getConsoleSender is returning null when it shouldn't, if I remove the @NotNull annotations the server will run 🤔 https://paste.md-5.net/okavotuvif.rb
I'm running in IntelliJ's console so I'm wondering if it's anything to do with that
Don't build with your IDE
(At least, if you do, disable the nullability assertion stuff in the decompiler
Ah, nice that worked 🙂
Pretty similar to what choco did
is that for an entire directory is it for a single file?
Its for an entire directory
I think spigot is very strict when it comes to accounts.
You basically have to manage your accounts in a way that things like this dont happen.
But you should maybe ping a staff member for this.
Possible to use an older version of a plugin in a newer server like what I am saying is. Is it possible to use a 1.13 plugin on a 1.16 server?
Depends on how the plugin is written. You can at least give it a try.
If its a 1.13 plugin that doesnt use NMS your chances arent too bad