#help-archived
1 messages ยท Page 5 of 1
Yes never
ppl who do "thread designs" aka big giant walls of images that arent searchable or copyable need to stop
Wrap kickPlayer in a BukkitScheduler or you will have issues. โ ๏ธ @frigid ember
its so annoying
thread designs are cool for visual impact, but permissions and other info should be text
?
Hey remember when I said
No reason to get into this
I wasn't paying attention.
I remember that too. Cool
I just got back. ๐
All I know is: Spigot is a base built on quality-standards, and I prefer it over other forks. Use what you want. ๐
Haha I gotta screenshot that
Can we get an actual Dark Theme on Spigot, I mean black not gray
Anyone know how to see code after patches are applied to it?
https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/browse/nms-patches
The dark theme is pretty dark....
You pray
@sharp mauve run BuildTools and just browse source as normal
hmmm
Can I get opinions on my landing page? https://live-leafpanel.web.app/
i like the dark theme plus my color change
Just initial looks. ^
hopefully it will never change
So just... straigfht up nav the src dir?
I mean I can totally work with that. That makes it really easy.
choco, is there any way to get the name of a deleted/banned account?
As in you want to take it?
That's something you'd have to talk to md_5 about
- They may not be permanently banned
- Their forum contributions may be significant enough to not warrant account removal
it's definetly an inactive account
Fr33styler
with an r
i don't know if you can see into his account more
anyway how would i go about contacting md5 about it?
Who can code Noai plugin in eclipse? i have some code, but do not know how to put all together?
Well, that account isn't banned but it's most definitely inactive. A DM to md_5 on the forums will be fine.
okay thank you
my areashop config file is emppty but when i enter my old regions it does still show the messeges
about
mcell1 is rented by username until xxx
how do i fix that
Hey, I am sending objects between servers using sockets. Sometimes, I also send Collections.EMPTY_SET. If I check whether the received object on the other end/another machine equals Collections.EMPTY_SET using == and it is, will it still return true? My thought is that it is another object in another "position" in the memory on the other machine.
If my thought is correct, would #equals(Object) work?
I mean step 1 is dont send objects between servers
afaik they will not be ==
Definitely preferred. At least that way you can handle any sort of empty list
I should expect sending Collections.EMPTY_SET to function the same if I were to send new HashSet<>()
Alright, thanks
no I would advise against using ObjectOutputStream and friends
Wait so would you advice against using the plugin messaging channel?
I use sockets.
Why exactly?
Too slow? Unefficient?
its a sketchy part of the java API and can have strange behaviour
also very prone to security issues, but that's not a problem if you're controlling the data sent as opposed to users
But didn't the Java socket API received a rewrite in Java 13?
Alright, thanks for the help. I am definitely gonna think about that
Can I ask here about plugins?
I think so. But often, if there is an error in the console, we cannot do anything. You would need to contact the author.
I have Ultimate Timber and I wanna know if is possible to add and enchanted diamond axe as tool needed to plugin works.
Or for tree assist plugin. I have it too
what is the permission to rent a area with areashop
Ok, thax
hi everyone... brand new to spigot, trying to set up a Linux Spigot server for my kids
this sounds ancient and i know it but how does one change the entitytype registry to a custom one in 1.8.8?
the whole plugin morass is super confusing... i presume only Spigot plugins work with Spigot?
for example, if they wanted Decocraft, I couldn't necessarily install it into Spigot correct?
Correct
Only plugins built around the bukkit api will work with spigot, but per version support might be different as well
presume Minecraft Forge is more client side?
exactly
if you want a server where you can run mods, you should take a look at the forge server where forge mods work. but there is also sponge where you can use both sponge plugins and forge mods. but there are not that many sponge plugins. you cant use the many bukkit/spigot plugins there
and sponge is only available for minecraft version 1.12.2
can i export worlds from spigot into a forge server?
kids have already been building. ๐
yes, just gotta copy the world over
thanks for the help folks, hard to make sense of it from what's online
WORLDNAME=world sh -c "mv \${WORLDNAME}_the_end \${WORLDNAME}/DIM1; mv \${WORLDNAME}_nether \${WORLDNAME}/DIM-1"
@chrome lark : what does that command do?
basically, craftbukkit and stuff move the world folders around
that's basically a 1 liner for moving the folders back into place, had it pinned so easy to grab
that changes compatibility between spigot and forge folder structure?
yup
you da man
so then i copy that single "world" folder over to Forge, and i'm good to go
you are both a gentleman, and a scholar
automod, rip
Help me please
I'm trying to install plugins on my vps server but when I start server.jar it just doesn't load the plugins
i'm runnig Debian 9 Scretch
yes
wait a second
Now I understand, can you help me with this? I'm totally new to all this
Go to this page: http://www.spigotmc.org/wiki/spigot-installation/
Follow all the instructions, and it will teach you how to download Spigot and install, and run it.
and pay close attention to the Prerequisites.
Thank you so much
First step: https://www.spigotmc.org/wiki/buildtools/
Shows you exactly how to download Spigot
and the link that I provided above will show you how to install it.
Tutorial for compiling craftbukkit?
Seems I'm doing the mc dependency thing wrong. (My guess)
I've tried both the server from the website, and the client as downloaded via the launcher.
I then manually install the artifact.
Just trying to enable code navigation
Want to be able to view the different types more properly
Hello
Why does my snowball begin to glitch at .multiply(4+)
Is there a way I can disable the max velocity for that?
you don't know how it works do you?
wdym?
there is no way sorry
Anything less than 4 works
projectiles have client side glitches
Really?
The client still thinks the snowball will fall down and will try to correct it's position if you tried to cancel the snowball's project hit event.
By using protocol lib?
whats m and y?
my*
i never tried but what if you mount the projectile on an armorstand
i thought of that
the server is working fine
thx
Does anyone know any plugin for when I type a command that is not displayed for players?
Like an unknown command message?
If that's what you mean you can do it in spigot.yml I think
For example, I type / gamemode 1 and it does not appear in the chat for players.
Hey all - haven't been in MC dev world for 10+ years. Anyone have a suggestion for adding super simple plugins to a vanilla server today? Is Craftbukkit + Bukkit API still relevant? Is https://bukkit.gamepedia.com/Plugin_Tutorial still roughly accurate? Thanks for any insight!
Sort of
Spigot is the main server software which uses Bukkit API
@dark cloak - https://www.spigotmc.org/wiki/spigot-plugin-development
Here is a link to create like a blank plugin. Then its the same with EventHandlers and stuff
okay so spigot.jar = craftbukkit.jar? i think spitgot was just gaining traction around teh time I left the scene
Spigot is a fork of Craftbukkit
With so much more optimisations
The bukkit community died after the bukkit devs decided to DMCA their own code
gotcha gotcha. still plug and play? shouldn't impact a pre-existing server/world?
yeah I remember when wolfy did that, hah....
Yeh.. hence you have to compile everything yourself to avoid legal issues
Spigot is a drop in replacement for the vanilla jar
same as bukkit
cool cool
Spigot is basically what everyone uses now (Or Paper which is a fork of spigot with even more optimisations, however if you mention Paper here you will be shot multiple times as certain people don't like it)

ah gotcha. yeah i just need some kind of API to make a couple of basic plugins for a vanilla home server for some friends lol. so doesn't matter to me what the name of the jar is ๐
just give me bukkit lol
No but really if you want to use a fork of Spigot, you're welcome to do your own research. Just know where to seek support
?bt
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
between CB and spigot, is one more/less intensive in terms of server resources? running on a pretty tiny server
Use Spigot
k
No one uses CB
sweet, well cool thanks guys. should be g2g
Have fun
CraftBukkit is practically unsupported and should not be used at this point in time, yes
Spigot acts as its successor
Is there any reason that CB is still built?
Because Spigot patches both CraftBukkit and Bukkit
It requires CraftBukkit. Think of it kind of like a dependency
(I use that term very loosely)
Location effectLoction = player.getLocation().clone().add(0,3,0);
Firework firework = (Firework) effectLoction.getWorld().spawnEntity(effectLoction, EntityType.FIREWORK);
FireworkMeta fireworkMeta = firework.getFireworkMeta();
fireworkMeta.clearEffects();
FireworkEffect effect = FireworkEffect.builder().withColor(Color.GREEN).withFade(Color.GREEN).trail(true).flicker(true).build();
fireworkMeta.addEffect(effect);
fireworkMeta.setPower(2);
firework.setFireworkMeta(fireworkMeta);
firework.detonate();
Any idea why I can't see the firework?
No particles though? Or maybe it might just be my optifine...
Let me check... lol
inb4 low particles
I've got particles on all!
I can hear the sound, but not see the rocket: https://i.imgur.com/50hpWji.gifv
I'll try looking on a vanilla, non optifine client but
someone know how to fix this?
nope, nothing even on vanilla 1.15
one other question for ya'll - any major differences I should know about with spigot? from what I recall CB didn't modify too much of vanilla behavior back in the day, but since i'm dropping this onto an existing server i don't want people to freak out and have shit break
For the most part, the default installation is pretty close to vanilla
You may notice minor changes that could possibly affect gameplay for the sake of performance optimizations but they're not terribly intrusive
@frigid ember from earlier, it works on a delayed runnable
(the detonate at least)?
Did you run it on a runnable?
I'm using 1.8, so that may be something to do with it
But a runnable with a 2 tick delay or longer works
public void levelUpEffects(Player player, int level) {
ChatUtils.sendPluginMessage(player, "Your pickaxe has levelled up to level " + level + "!");
player.sendTitle(ChatUtils.colour("&a&lPickaxe Level Up!"), ChatUtils.colour("&bYour pickaxe is now level " + level + "!"));
Location effectLoction = player.getLocation().clone().add(0, 3, 0);
Firework firework = (Firework) effectLoction.getWorld().spawnEntity(effectLoction, EntityType.FIREWORK);
FireworkMeta fireworkMeta = firework.getFireworkMeta();
fireworkMeta.clearEffects();
FireworkEffect effect = FireworkEffect.builder().withColor(fromRgb).withFade(fromRgb).trail(true).flicker(true).build();
fireworkMeta.addEffect(effect);
fireworkMeta.setPower(1);
firework.setFireworkMeta(fireworkMeta);
new BukkitRunnable() {
@Override
public void run() {
firework.detonate();
}
}.runTaskLater(instance, 2L);
player.playSound(effectLoction, Sound.LEVEL_UP, 10f, 10f);
}
anything you can see that is wrong? it just... breaks
it shows the trail and then dies
None of my plugins (as far as I know) mess with entities
None of my custom ones, and besides that I only have World edit, via version, luckperms and essentials
@Override
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
if (!(sender instanceof Player)) {
return true;
}
Player player = (Player) sender;
Location effectLoction = player.getLocation().clone().add(0, 3, 0);
Firework firework = (Firework) effectLoction.getWorld().spawnEntity(effectLoction, EntityType.FIREWORK);
FireworkMeta fireworkMeta = firework.getFireworkMeta();
fireworkMeta.clearEffects();
FireworkEffect effect = FireworkEffect.builder().withColor(fromRgb).withFade(fromRgb).trail(true).flicker(true).build();
fireworkMeta.addEffect(effect);
fireworkMeta.setPower(1);
firework.setFireworkMeta(fireworkMeta);
firework.detonate();
return true;
}
This code, only plugin on a 1.8.8 spigot server
Only shows a small trail before dying
Hi guys, quick question. I"m running DungeonsXL and it's pretty awesome. Problem I have is the main world is editable
is there a plugin to do something like that?
WorldGuard?
I'll check it out
also.. any suggestions for an economy plugin? seems DungeonsXL supports one
sorry.. literally brand new to this.. just playing around.. trying to get something cool for my kids to play with
you may want to ask in their discord
Does it not hook with Vault for Economy support ๐ค
vault works I think
but dont you need to have another economy plugin?
even with vault... sorry very new to this
Vault's an API to make Economy (and Permissions) easier
If the Economy hooks with Vault, then it should work with DungeonsXL (if DungeonsXL hooks with Vault for Economy Support)
Should I add wildcard permissions to my config.yml permissions or just leave that for permission plugins?
sweet.. thanks @quick arch I was able to get vault and essentialsx going
๐
so many plugins.. so many config values
lol
seems worldguard stopped fire effects from working
how do you descramble TSNHELCOAPU I need it for helpchat
auto fishing plugin for server?
i only find anti auto fishing lol
Is using metadata slow? Like hasMetadata or setMetadata
ie I have a huge iteration loop of them running a couple times per second (maybe 100 times if the validation queue is full?)
Hello, I need some advice from plugin developers or Spigot dev.
I'm trying to code a plugin which makes use of LootTable to generate randomized set of rewarding items. But it seems like Spigot(or Craftbukkit) doesn't let me generate a proper LootContext that meets requirement for net.minecraft.server. Thus it's impossible to use LootTable functions which requires LootContext, i.e. populateLoot(), fillInventory().
This is related to an un-resolved thread: https://www.spigotmc.org/threads/loot-context-is-impossible-to-be-accepted-by-minecraft.396757/
Any idea you can suggest me to do so? Do I have to access CraftBukkit/NMS via Reflection to workaround this? :(
Here's my code snippet:
Player player = Bukkit.getPlayer("Lazo");
LootTable lootTable = Bukkit.getLootTable(new NamespacedKey("minecraft", "chests/simple_dungeon"));
LootContext context = LootContext.Builder(player.getLocation()).build();
player.getInventory().addItem(lootTable.populateLoot(new Random(), context).toArray(new ItemStack[0]));
And here's the stacktrace:
(populateLoot function generates error)
java.lang.IllegalArgumentException: Missing required parameters: [<parameter minecraft:position>]
at net.minecraft.server.v1_15_R1.LootTableInfo$Builder.build(SourceFile:208) ~[patched_1.15.2.jar:git-Paper-161]
at org.bukkit.craftbukkit.v1_15_R1.CraftLootTable.convertContext(CraftLootTable.java:95) ~[patched_1.15.2.jar:git-Paper-161]
at org.bukkit.craftbukkit.v1_15_R1.CraftLootTable.populateLoot(CraftLootTable.java:43) ~[patched_1.15.2.jar:git-Paper-161]
at com.github.lazoyoung.craftgames.game.player.PlayerData.leaveGame(PlayerData.kt:142) ~[?:?]
@dusty topaz If you generate & iterate some complicated stuff simultaneously couple of times per sec it should be lagging imo.
You may consider caching stuff into memory that you frequently use.
i'm validating potion effects
Hello, I'm having an issue where an EntityDamageByEntityEvent is not being called when a player hits an entity in Survival mode.
It works perfectly when they are in Creative.
Send the code?
@EventHandler
public void onEntityDamage(EntityDamageByEntityEvent event) {
if(event.getEntity() instanceof Projectile) {
Projectile entity = (Projectile) event.getEntity();
if (plugin.homingHashMap.containsKey(entity)) {
Bukkit.getScheduler().cancelTask(plugin.homingHashMap.get(entity).getId());
}
}
if (!(event.getDamager() instanceof Player)) return;
if(plugin.fortressTasks.get(((CraftMonster)event.getEntity()).getHandle()) != null) {
...}
}
And you're 100% sure it's not being called
as in you've put a debug message on the first line saying called
went into survival and hit an entity
I originally had this in a different Listener class and yes, I did that. And it was not being called in Survival.
event.getEntity() returns the VICTIM entity. It can't be a projectile
Yeah was about to say that
That's not the problem I'm having, and that's intended.
That does actually work for projectiles to cancel the task that I made for them.
I originally had that code in a different Listener class and it was not being called at all, and if I do that in Creative mode, my other debug lines work perfectly.
For example, in there I have:
if(plugin.fortressTasks.get(((CraftMonster)event.getEntity()).getHandle()) != null) {
Bukkit.broadcastMessage("Entity is a Fortress");
And that's being called in Creative but not Survival, when realistically gamemode has no effect on that. It's the event itself.
Then I guess that another plugin might be cancelling the event in the case (survival) so try with higher EventPriority.
Entities have UUIDs as well as players?
Yes
yep.
Alright, I'll try it. I have no idea what plugin would be canceling that, though, as I have not added any new plugins and this only just started happening.
Thanks for the UUID tip, I didn't know Entities have them as well. ๐
Because the UUID is defined in Entity level and the Players are entities as well
Yeah, that makes sense. I've just only ever really heard of them being used for Players.
Alright, so setting the event priority higher didn't fix the problem.
Then I think we need to start debugging by monitoring the event
Does the event fires if the player hits an entity in survival mode in the first place
Hold on, let me add the debug line back.
Ok, it actually looks like it's a problem with the entity I'm checking itself.
It seems to not be calling an EntityDamageByEntityEvent as long as the player who hit it is in Survival mode.
yea that is pretty weird imo.
The entity is just a normal EntityMonster, though.
Maybe try EventPriority.MONITOR?
Is that a debug priority of some sort?
ye it is. and see if the event fires.
I'm using NMS to create the entity, but I'm not overriding EntityMonster#damageEntity.
Meaning that it's still going through that.
I actually might know the problem.
I'm actually out of knowledgebase and I haven't deal with nms stuff. I'm sry
Yeah, it's fine. I'm only just getting into it as well but it's the best way to create entities for what I'm doing.
i'm having an issue with modifying the spigot source. i have a class called ItemStackCustom that extends ItemStack, but when i move any item in my inventory in creative mode any instances of ItemStackCustom are changed to ItemStack. does anyone know why this might be happening?
Does anyone happen to know of any mods for player owned zones/homes? something like how hypixel works
@upbeat snow Usually WorldGuard permissions with other utility plugins to handle them automatically, or just WorldGuard by itself
sounds like I'll likely have to code something myself to handle that.. essentially I want to "warp" a player to their home and back to the "hub"
hello everyone I have a server i ran back in 1.13.2 and was curious how I could go about updating it to 1.15.2. Is it as simple as creating a server using buildtools for 1.15.2 and copying over the world folder ? or what all would i need to do couldnt find a guide on spigot website. Thanks in advance!
uh
fresh install of what
can you be more specific
where is the message coming from
md_5 do you help ppl with 1.8 coding if they need it?
or are those support versions unavailable
Itโs technically still about the same
ahh
Just ask ur question generally
I need help getting the a broken carrot block at it's Ripe state.
kk
Crops carrot = (Crops) b.getState().getData(); would that be an example of casting it to a crop type savage?
kk
Include cast in your google search maybe
U found it?
still looking
How long does it take to get a response from ticket support?
Quick question: should I use Maven with IntelliJ IDEA?
@storm vessel No, use gradle with intellij idea
Anyone know if there's a built in method of getting a map of the inventory? In a form similar to Map<Integer, ItemStack>, with the key referring to the slot. One that follows the slot numbers defined in the protocol
Well, is there one for the actual slot numbers?
ah ok, thanks
Am i right in thinking u can only use a bed at or after tick 12542,
its really weird so much seems to happen at completely arbitrary ticks
ah
its because they calculate it based on the sun position
so I guess the sun hits a certain angle at that time
ah okay they didn't just have a minecraft dev hitting their keyboard at random
hi
I have a menu in which players can select different options that open other menus. But how do I check if the inventory in InventoryClickEvent is the menu as for every player it's different?
here's the current code https://paste.helpch.at/otizeqaraj.cs
so you want to see if its his own inventory?
The second one is more efficient right?
i don't know if this is out of the scope of this support but is there a way to remotely access the server consoles that run on a windows server, ideally with user accounts as well?
Is windows remote desktop on the server edition?
I think its on server edition and pro edition
@distant cosmos There's rcon, but it's a single login, and I can't comment on the security of it
@distant cosmos You can install an OpenSSH server.
@wanton pivot the problem with RDP is that the console is limited to one user and i don't want to be giving out the one admin password to another player, just poor security,
@ivory musk once OpenSSH is installed, will it sorta work like how linux handles mc servers?
@distant cosmos I'd say your best bet is a plugin for it
@distant cosmos What do you mean how Linux handles them? If you start an SSH session, you can launch the server from the session and it'll be like a remote console.
quick question, is it allowed to allow statistics gathering for a premium plugin, having a way to disable it too of course?
oh yeah, that looks good actually
it's transparent to users what is being collected
I'm pretty sure that's dead
yeah was looking at spigot for example, the last data was from 2 years ago
does spigot now use bstats?
or what does spigot itself use for stats gathering, or does it
I believe I saw some mcstats code in bukkit/spigot still when I last looked through the source code
but that probably doesn't work anymore
ahh
Does anybody know how to use protocol library to spawn a fake entity with a colored glowing effect?
i know how to spawn the entity but i have no idea how to attach the metadata
@frigid ember where do i put the bukkit .jar file for the red lines in import org.bukkit.Bukkit; to go away
do i just put it in the plugins ?
how come ?
Hello, Do someone know how to fix the error "Connection reset by peer", peopole on my servers are randomly kicked and get this error message
i really need help i don't know from what it comes, i tried everything ๐ฆ
yo anyone know where i put the paper.jar
Are you setting up your server @frigid ember?
yea and im trying to make my own plugin as well
Is the paper.jar for creating your server or for creating your plugin?
I'd recommend watching this video for how to create a paper server: https://www.youtube.com/watch?v=ez2NgYtcaNc
um not 100 % sure just know i need it for something i think for plugin
Try watching that video, I think that's what your after
@old heart do u know anything ab making your own plugins
Yes I do, what do you need to know?
so im making the plugin in 1.15.2
and
im making a scoreboard
Scoreboard board = Bukkit.getScoreboardManager().getNewScoreboard();
Scoreboard s = board.getNewScoreboard();
and the bottom part dont work
Scoreboard s = board.getNewScoreboard();
What are you expecting it to do?
like it has red underlines on it
yea system is it not missing the Scoreboard s = board.getNewScoreboard();
cuz in your code u put Objective o = s.registerNewObjective("ยง4ยงlSwift ยง6ยงlCraft", "Dummy", "Test"); meaing there needs to be a varibale named s and im assuming it was supposed to the actual scoreboard
or am i wrong ?
so what is s suppoed to be
?paste
tell me im not right look at Objective o = s.registerNewObjective("ยง4ยงlSwift ยง6ยงlCraft", "Dummy", "Test");
since when md5 has its own pasting service?
hastebin is goated bruh
is the s not supposed to be scoreboad
cuz ur supposed to register and obj to a scoreboard
yea i get that
but do u see how there is an s.
u made this code ?
what does the s. mean
Good Afternoon all, i have an issue I'm troubleshooting at the moment and I'm not sure if it's client or server side :S - I'm running Spigot 1.15.2 (2nd March Build) from Build Tools, I upgraded from 1.13.2 at the beginning of March (i think this is relevant) and i have noticed delays in certain parts of worlds when moving through chunks diagonally, there's a noticeable delay on my machine lower spec and on my co-owners machine he has an incredible setup but the delays show in the same area's, I've ran clear lag against the server to rid of ground entities and large mobs, when you use F3 + G to see the chunks it's always stopping/stuttering on crossing chunks only. Now i did read on upgrade i may need to upgrade my maps with a startup flag is this necessary considering my old version? Is this a known bug as i can't seem to locate this in the known bugs, any advice?
Are you on about these ยง @frigid ember ?
no the s.registerNewObjective("ยง4ยงlSwift ยง6ยงlCraft", "Dummy", "Test"); s.
so do i make a new scoreboard or not @frigid ember
u never defined one
so i change s to board then?
i ammm
just that u put Objective o = s.registerNewObjective("ยง4ยงlSwift ยง6ยงlCraft", "Dummy", "Test"); and i guess u maybe just forgot to define s
im not sure
well i am try ur own code u will see
it doesnt know what s is
u never defined s
look
wait what tf
it just changes completly
...
alr how do i make like a line cuz ---- have the little space between them
to what ---
no ik but what character do u put to get the lines
a - or
so everytime ur gonna make a new line its a new team ?
Good Afternoon all, i have an issue I'm troubleshooting at the moment and I'm not sure if it's client or server side :S - I'm running Spigot 1.15.2 (2nd March Build) from Build Tools, I upgraded from 1.13.2 at the beginning of March (i think this is relevant) and i have noticed delays in certain parts of worlds when moving through chunks diagonally, there's a noticeable delay on my machine lower spec and on my co-owners machine he has an incredible setup but the delays show in the same area's, I've ran clear lag against the server to rid of ground entities and large mobs, when you use F3 + G to see the chunks it's always stopping/stuttering on crossing chunks only. Now i did read on upgrade i may need to upgrade my maps with a startup flag is this necessary considering my old version? Is this a known bug as i can't seem to locate this in the known bugs, any advice?
@tight geode Does anybody have any advice or experience on this?
oh alr
little question:
my current spigot.yml looks like this but when i start the server, spigot tells me the spawn range is still 6 in world_the_end
world-settings:
default:
. . . . . all the stuff
world_the_end:
mob-spawn-range: 4
anyone see an error?
Did you restart your server?
Maybe 6 is the minimum but I don't know
well https://www.spigotmc.org/wiki/spigot-configuration/#per-world-settings doesnt say theres a minimum afaik
Can you change other stuff?
i can chnage it globally in the default section
system how do i make heath show the peoples actual current healtj
"have you tried restarting it"
rebooting the physical machine fixed it, it now shows up
thx for the help anyway :) ยฏ_(ใ)_/ยฏ
what ab on the right side
also registerNewObjective("showhealth", "health"); is depricated
yea
yea but like its not updating
idk no yea
do i just set it to ""
alr
how do i make constant updates to like show the acurate health
whats that
This should change the scoreboard without a flicker
player.getScoreboard().getTeam("Team_Name").setSuffix("New Suffix");
@frigid ember -> https://bukkit.gamepedia.com/Scheduler_Programming
what does cancel() do does that just exit the if and the method
oh
what does do .runTaskTimer(this, 0L, 20L);
also where do i put that do replace it with the ```java
Team healthTeam = board.registerNewTeam("health");
healthTeam.addEntry(ChatColor.BLACK + "");
healthTeam.setPrefix(ChatColor.WHITE + "Health: ");
healthTeam.setSuffix(ChatColor.AQUA + "" + (int) player.getHealth());
so what is that that u sent then
bruh
y u del it
oh i actually looked what canel does exactly, it just executes the Bukkit.cancelTask(int id); method
Any recommendations on what permission plugin to use, i need something simple and easy for an SMP server.
y whould u need luck perms on smp tho
system
i did the thing u sent and im getting red underlines
i need it to give them perms to other plugins that i use.
yea luck perms is a good one
i thought ur question was if anyone knew any good plugins
wdym
oh did u not see my code?
oh so what do u mean oh my bad in the instance thinf
and
don't use eclipse
Yo ima good dev i needa make some bread if i made a premium resource for betting on IRL events (sports,political,economic) events using ingame currency would anyone spend money on that?
make a hunger games plugin that supports custom data for 1.15.2 please
if u pay me sure lol
how much
system what ab instance it doesnt work
no i dont know what it is
mkay
supposed to be
there are 2 options you can go here
you can either pass around your main instance to every child class
or you make a static instance (= entry point into your main plugin class)
so for 2nd option make in your onload method
instance = this;
and a field
private static MyMainClass instance;
then you make a getter for that instance, and you do in the method where you are trying to access instance, MyMainClass.getInstance();
i already have a main class
then just add the instance field in there
but are u following a tutorial or sth? Where did u get instance from, that u need it there
Some broke ass bitch pleading for views
Probably you need a placeholders plug-in
doesn't luckperms hook in to vault? i think you can just put the vault rank in the scoreboard
in which scenario we will need multiple event listener class?
solely for better looking?
@bronze marten dont out me
alr bet thx
Better than my 1k+ line constructor lmao
wat
wat
My player class has a 1k+ like constructor ๐๐
what's the cyclomatic complexity of that method lol
F
y so big
Cuz every ability has a class that has to be initialized for a player.
And there are 77 as of now
1k line method
ah yes
And so I just copy paste
classic

I need to clean it up but I havenโt had the time ๐ so we just gonna let that tech debt build up
But on the bright side I actually cache player data for 5 minutes after logging off so that way it doesnโt load if they spam join and leave
mhh, how big is the cache per player
Is getOfflinePlayer slow?
depends
but it shouldnt be that slow I guess
does it require mojang to be pingged?
and whats the getOfflinePlayer(GameProfile)?
bcs if you enter a UUID which never joined bf it has to ping mojang, no?
I guess "IChatBaseComponent" is no longer a thing?
I want to make hover messages and all that for my chat systems I'm working on.
It literally keeps their data object just in memory. Not sure the memory footprint but I havenโt had issues yet ๐
You should use the ChatComponent api @dusky herald
And you likely don't have the correct dependencies
It makes sense it changed then.
I figured out how to change those things a long time ago by myself.
but it was using the net.minecraft.server apis
I found an old script of how I did it before: https://pastebin.com/RZCL6yKU
does anyone know when the md_5 is there?
His last message was at 11am BST
Itโs up to the winds
he checks this periodically
how do i display the date ?
want my old email is closed and can't get my pw from https://www.spigotmc.org and nine new Emal is lutter.marcel@yahoo.de. that's why i need new pw would be happy if someone could help
anyone knwo how to display the date
on a scoreboard
want my old was grosserjunge@live.deEmail is closed and can not pahr my pw from https://www.spigotmc.org and nine new Emal is lutter.marcel@yahoo.de. that's why i need new pw would be happy if someone could help
thank you for helping me much thank you very much I find mahr doll dear
@frigid ember
day month year
I'm trying to make instant furnace smelting (no fuel required)
For some reason this is really buggy
It just looks buggy
when do you call player.updateInventory
I don't
how do i go to a new line when putting something on a scoreboard @frigid ember
is there any way to unregister a command without reflections? ๐ค
Not that I am aware of
re
qq all
how to quickly draw a map with a radius of 10,000? /wb fill 1000 208 false loading is slow
Quick question, does a players custom name reset when a server restarts and/or reloads?
new SimpleDateFormat("dd/MM/yyyy").format(new Date())
Use a constant my dude. lol
Yea I guess I missed something again?
Always seems to happen after I leave
@final verge anvils are wonky
Tuinity 1.15
๐ค
shows 2 null first, then after that shows the correct item
gets triggered 5 times ๐ค
This one's on Spigot 1.15, and is still wonky
King make a bug report this way we can keep track of it and fix it
however i think i already see the error but im not able to resolve it ATM
ah, Diamond told me to test it for him
Oh he added it
Nah he didnt add it its here however never been updated so its props a bit broken
Honest to god someone needs to review all the event see if any more are broken
@fleet crane You can take a look at my ticket, I need the latest updates and contact the owners of the resources I purchased. Sorry for the ping, but I really need to contact them.
I explained in the ticket what I did to get unban, I'm sorry that such a message came out and I promise that it will never happen again. The spigot community is right, it is my fault that I did not secure my account, I should secure it in a better way, I did not know that something like this would happen to me. I do not know what else to do, I really apologize for what came out of my account, as if I knew that this would happen, I would do something about it, but I am not clairvoyant and I could not predict it. Man learns from mistakes and I think you will positively consider my request for unban.
@paper mountain Dont ping MD unless you like to get banned
Await your response everyone is busy
and because your bugging someone they wont look at your ticket faster
And how much more or less is waiting for an answer?
When did you send it
He has 4 PRs he has to do, and this is surely going to be his 5th one :D
King have you ever looked at the PR board there are more than 30
No
@paper mountain Dude 10 hours aint nothing. Wait a week before reaching out
^
I'm pretty sure MD lives in Melbourne Aus like myself @paper mountain and it's currently 5am over here lol.
Premium resources can take up to months to get accepted ๐ค
Yeah, he lives in Melbourne
He wants his account unbanned
it seems his account got banned for wow thats some not ok stuff
The same waiting time as premium resources can stay with his account's punishment
until a week waiting?
Yes it can take up to a week for a response
His account was apparently banned for posting a resource about DDOSing or something
Yup
@paper mountain Dont stress it. With you pinging moderators you will be put on a low priority queue
xD
@quick arch fyi the counter is at 75 PR's
o
some are old and need to be removed but aint nobody got time for that
๐ฆ @quick arch the problem is that I didn't do it, I don't know who, all I could do was change all the passwords. I have a lot of paid resources and I wouldn't risk losing my account because of that.
All i can say is 2FA
defek7 compromised last week by t0r, electronicboy IRC compromised yesterday, etc.
Really @quick arch ?
yes
Damn
@frigid ember Thats why i recommend local 2FA
Do you have any details on how?
no
thats why we dont use SMS 2FA on spigot
Alright thanks though
I'd just go overkill with 1024 char passwords ๐ค
Well my password is litteraly my username, so yeah
rip
That's a stupid amount of overkill, Alter lol. 16+ chars is fine
I've set new passwords from the generator, although this will not unlock my account.
Is it me being a prick?
Not at all
I'm just wondering if you know the current number of resource staff who actually review resources compared to the ones to review reports
afaik yea, Rafal
Hoping someone could help me out... Apologies if this isn't the right place.
I'm having a little bit of trouble with Player Heads or the "Skull" block.
I want to be able to get the name of the Player's skull as a String (SkullOwner), when they place down a Player Head. For now I've just made it message that String to the Player.
eg.
/give <user> minecraft:player_head{SkullOwner:Herobrine}
When you place this item down, it should message you "Herobrine".
I've got the following working, however it will return an empty String if that Player has never logged in before. This is because .getOwningPlayer() returns an OfflinePlayer. I'd rather not pull from the Mojang API and UUID stuff if I can avoid it.
@EventHandler
public void onHeadPlace(BlockPlaceEvent event) {
if (event.getBlock().getType().equals(Material.PLAYER_HEAD)) {
Skull skull = (Skull)event.getBlock().getState();
if (skull.hasOwner())
event.getPlayer().sendMessage(skull.getOwningPlayer().getName());
else
event.getPlayer().sendMessage("Unowned Player Head");
}
}
Looking around, it seems you can use BlockData to accomplish this? But I can't seem to find any way of doing this online, as a lot of methods involving the Skull are deprecated or rely on UUID etc.
Say I have a Block, which I can confirm is a Player Head how can I just grab the SkullOwner tag from it like in /give <user> minecraft:player_head{SkullOwner:Herobrine}? What about the Head's rotation?
Alright thank you
Id do a double smirk emoji but I lost my nitro
So you'll get a normal smirk instead
๐
Anyone here good with algorithms?
Depends on the algorithm
Is worldedit bugged with stairs?
Yes it is indeed
@manic raptor to my knowledge, when you give the head to a player, a lookup will already have been made
Insertion Sort
It would be nice if md_5 would consider my request for unban quickly and successfully.
As in they will already have been cached. You're fine to use OfflinePlayer
Dude he's sleeping
It's 5am in Melbourne
And I won't fall asleep now... ๐ฆ
What were you banned for? ๐ฟ
Probably won't go faster by mentioning it here though
His account apparently posted a resource detailing on how to DDOS a Discord Server
I have a hashmap(player integer) and an arraylist(player), when the plugin loads it gets the player and the integer (kills) from a config. what I want to do is sort the hashmap in terms of kills from highest to lowest and put it in the array list. @ember heart
But I suppose you know that
Someone logged in to my account and wrote a message how to ddos discord servers.
Rip
Isn't there an IP check thing ๐ค
nope
Full condolenses for what you're going through @paper mountain
but mate at the rate you're asking to be unbanned you basically are ddossing this server
@ashen stirrup TreeMap?
Thanks for reply @subtle blade
When I do though, the name comes up blank if they've never logged in.
If you use .getName() on an OfflinePlayer that's never logged in seems to return a blank string.
I guess my question is more is how can I just simply grab data such as rotation or SkullOwner from a Player Head Block(Not item)?
โค๏ธ
@frigid ember how do i add the date as the suffix
No, it sorts by keys. @ashen stirrup
Collections.sort() ๐ค
So instead to sort it by highest kills it would be Integer, Player
TreeMap doesnt allow dublicated keys
Couldn't he just use hashmaps & Collections.sort() or something
system what do
Iโll look into Collections.sort
He can't use hashmap that's for sure lol
๐ค
@frigid ember ? y is it not workin
Thanks for the reply @frigid ember
however that's what I'm already doing...
@EventHandler
public void onHeadPlace(BlockPlaceEvent event) {
if (event.getBlock().getType().equals(Material.PLAYER_HEAD)) {
Skull skull = (Skull)event.getBlock().getState();
if (skull.hasOwner())
event.getPlayer().sendMessage(skull.getOwningPlayer().getName());
else
event.getPlayer().sendMessage("Unowned Player Head");
}
}
.getName() will return a blank string if that Player has never logged in.
Hashmaps don't maintain any order
the code that i send the date isnt showing up
Ah right, so there's no way to just get the name of the player associated with the Block(Other than calling the API etc)? But it can be done using the Item version of the Player's Head?
So what's best to use?
Collections.sort()
or
TreeMap
@frigid ember
Okay, that helps a lot.
Thanks very much dude ๐
@quick arch is tuinity a fork of spigot?
Tuinity's a fork of Paper
Can you test on pure spigot to make sure it still happens for me?
yeah, the 2nd gif is on pure Spigot
Aight awesome
system do u see how date shows up black
Also can you dm me a hastebin of the code? I assume itโs just a single class ๐
blank*
I wanna mess with it for reproduction
bruh
โค๏ธ
You need a plugin to track kills and deaths
Or
You can track kills yourself with a yaml config.
UUID:
kills:
deaths:
how do i auto import on intel j with a maven project cuz there red stuff everywhere
anyone know a good approach to get more descriptive mysql errors? all I get is SQLException: Could not create connection to database server. Attempted reconnect 3 times. Giving up. My problem is I have put in incorrect credentials on purpose as I want the exception to say invalid credentails, or invalid login or something?
@here I need help with verification beacuse my MC name have ** _**
Hey @frigid ember
sorry to bother you again, but again with Player Heads,
The rotation of the Player Head would be stored in the Block? How might I go about getting that? I'm a little confused on the difference between BlockData and MetaData?
Does it not work with that character?
No
Hello everyone, i'm currently installing the minecord plugin on my server. It said that i have to put the token of the bot i've created with discord in the config files. I do not have a config file into the plugins folder. Do i have to create it ?
I have one into the bStats folder tho.
Thanks
@frigid ember Thanks again! ๐
i've only restarted the server after putting the plugin into the folder. I have now a new folder called minecord. What do you mean by enabling it ?
i'm just using filezilla for the files and i have a server provider. So i understand that i have enable the plugin through the ISP before anything is that right?
Is there a plugin where it makes a hologram and shows the top 10 people with the most kills?
@frigid ember i think i missed the basics with what you said because i don't know where i can check that
Where can I change my name to match my name on the forum? I right click on the channel but the option (which is usually there) is not there
If you verify your account it will happen automatically
Usage: !verify <forums username>
Oh wow, that's handy. Thanks, guys!
I'm making a texture for a plugin, how would I make end crystal beams white? I made it white in paint but it shows up gray
๐คทโโ๏ธ
@frigid ember https://justpaste.it/71569
Is there anything funny about:
if (player.getInventory().getItemInMainHand().equals(this.targetItem)) { ...
that I should know about? For some reason this works only for me, but not for other players on the server which is super odd
ok i understand
Item count, Fireworks
#equals() will ensure count matches. If you just want to compare the item, ItemStack#isSimilar()
yo sick, that's probably it, forgot these itemstack things have more metadata in them
(I also seriously advise comparing targetItem.isSimilar(player.getInventory().getItemInMainHand()) to avoid NPEs)
good improvement too ๐

What's the issue
@frigid ember thanks you by the way
Also, don't include the Bukkit API if you're depending on the Spigot API
It's redundant
It literally says that in the comment above it
you have an extra </dependencies> at the very bottom of the image
also how do i import the spigot i just started using intel j
You have it imported
or use Minecraft Dev for IntelliJ pog
how im new to intel k
This is unrelated to IntelliJ. This is Maven
It's really no easier
o
Anything seems confusing until you've learned it
Took me 6 hours to put CombatLogX into maven >:(
Dude isn't there literally a "convert to maven" option? lol. Then it's a matter of getting the dependencies
then I learned about the System scope :(
No no, don't use system
no idea
Ever
o
It's deprecated lol
If a dependency isn't on a public repository, local install it
o
im not sure how to do that either tbh
so then I would still have to BuildTool all the versions for CombatLogX :(
mvn install:install-file -DgroupId=wtf.choco -DartifactId=MyArtifact -Dversion=1.0.0 -Dpackaging=jar -Dfile="path/to/the/archive.jar"
so how do i import it in maven
pepe_scared (Just imagine the emoji there)
could run that on the command line, otherwise just right click the project or dependencies and add it. I use Netbeans so adding a dependency is as simple as right clicking and then adding it.
I can also local install dependencies if needed by right clicking on my projects as well
๐
<dependencies>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.15.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>```
That is your Spigot dependency, Swift
yea
(and that's all that should be in your <dependencies>. You should remove the org.bukkit:Bukkit one)
so why is it still redf
Because you have two closing </dependencies> tags
there we go
Then you're good to go ๐
Building an artifact in IJ with Maven is beyond me though. I use Eclipse
that last pic, looks like something is at the end of the spigot repo url that doesn't belong
@frigid ember
A forward slash? lol
How would you place a player skull?
ItemStack item = new ItemStack(...);
Skullmeta meta = (SkullMeta) item.getItemMeta();
meta.setOwner("straggly");
Would you just do all of the normal stuff and then
World world = Bukkit.getWorld("world");
Block block = world.getBlockAt(x, y, z);
block.setType(item);
to set the block a player's skull.
at least thats what i walways do
@subtle blade no, there is some character after the forward slash and then another forward slash
pic resolution is too small for me to see what that character is lol
oh that is what I am probably seeing
nvm
just ignore me >>
one of these days I will end up using my 60'' tv as my computer display
-.-
So, I have a Custom Enchants plugin. Made by my old dev team. Shift clicking an item with "Overload" enchant that gives u extra hearts doesnt work on my server (manually clicking it on) does.
However if I change server and try it, it works. Exactly the same plugins.
Wondering if Anything like Spigot Version, Bungee or anything could be causing this?
How would you convert a ItemStack to Material then? ๐ค
what does maven even do
its main purpose is for depedency management, however it can do various nifty things beyond that as well ๐
You don't, Jeeb. You set the block to Material.PLAYER_SKULL and use its BlockState to set necessary data
What`s wrong?
https://hasteb.in/apivukaq.swift
@Plugin(name = "ClearCommand", version = "1.0")
@Author(value = "DokanBoy")
@Command(name = "clearcmd")
public class ClearCommandPlugin extends JavaPlugin {
@Override
public void onEnable() {
getCommand("clearcmd").setExecutor(new ClearCommand());
}
}
Does ClearCommand class implement CommandExecutor
oh alr
ClearCommand class: https://hasteb.in/apivukaq.swift
Is the command defined in your plugin.yml
likely you are setting an executor to a null command
(that's what the annotations are for)
I use annotations see code above: @Command(name = "clearcmd")
PLAYER_SKULL is for 1.15.2, the plugin is 1.8.8
shouldnt that annotation be above the command class itself
Then skeleton skull. Whatever it was in 1.8.8. I can't be assed to figure it out for you. You're on an out of date version
I dont use annotations so im not sure
I don't know DiamondDagger
For the block, System?
I'll try it now
afaik it was skeleton_skull with a data of 3 or some shit like that
Hey choco is there a way to get info if say a player pressed the "g" key
No. Keybinds are not sent to the server if they are not in use
In fact, keybinds aren't sent, period
hm that's what i figured
The result of said keybind is
one of my customers said it was possible and I was like "uhhhhhhhhh since when"
I can't use this in ClearCommand
Yea, most definitely is not ;P On Forge it is
That's what I figured xD I was like "im not crazy right? that's some keylogger crap right there"
Fixed. For some reason, the annotation didn't add the command to plugin.yml
Yea, the client doesn't even send any keybindings whatsoever. It sends requests for what that keybind does (i.e. F to switch an item to off hand just sends a packet requesting an off hand switch)
So really, you couldn't even check if the player is pressing W to move forward. They could be clicking Y for all you know
hm yeah okay. They just wanted to setup keybinds for specific abilities but there isnt a way that I could think of that wouldn't be intrusive to normal gameplay
World world = Bukkit.getWorld("world");
Block block = world.getBlockAt(0, 0, 0);
Skull skull = (Skull) block;
skull.setOwningPlayer(Bukkit.getOfflinePlayer("straggly"));
((Skull) block).setData((MaterialData) skull.getBlockData());
Would this be the correct way of using the 1.15.2 method.
Not in the slightest lol. You've got 3 class cast exceptions here.
A for effort?
Eh, sure
How would I do it?
- MaterialData is useless in 1.13+
- You should cast the result of
block.getState()to Skull, notblock. Skull is a BlockState - Use
skull.update()after you've changed it instead ofblock.setData()
World world = Bukkit.getWorld("world");
Block block = world.getBlockAt(0, 0, 0);
Skull skull = (Skull) block.getState();
skull.setOwningPlayer(Bukkit.getOfflinePlayer("straggly"));
skull.update();```
Cheers โค๏ธ ๐
Are both BlockStates and BlockDatas relevant? I haven't touched the API in a while but I sorta thought BlockData covered everything
States cover tile entities. Data covers block states (i.e. waterlogged=true, facing=north, etc.)
Confusing naming but it's what we've got to work with
Ah
So a block may have BlockData (states) but not a BlockState (tile entity). Logs are a good example of this
They have the Directional BlockData to set its axis state but does not have a tile entity (BlockState)
Yeah got it, thanks

That's one flat pepe
Hey guys, I'm trying to make a fresh install of Buildtools.jar but im getting this error message when i run the .jar file
Please put console logs in a pastebin ๐ฉ
sorry
No problem
So I am using bungeecord and am coding a Vanish plugin, but the issue is with my tabcompleter prevention class https://github.com/AzortisCode/ProtocolVanish/blob/master/src/main/java/com/azortis/protocolvanish/visibility/packetlisteners/TabCompletePacketListener.java
On normal standalone server that code works fine and doesn't kick you, but on bungeecord(and somehow not the papermc fork waterfall) it kicks you with this error
does anyone known how to solve this issue ?
@nova mirage maybe your not allowing the app internet connection?
"Could not resolve dependencies for project"
"Could not resolve dependencies for project"
@crimson raft Which repository/s? They could be down?
I'd think it's just the jar missing the pom
yea i saw that but dont know how to use it
It really can't be much more straight-forward than it is
int kill = player.getStatistic(kill);โ
like this
idk what to put in the getStatistic(kill);
Look at the argument it takes
This is basic Java you should seriously understand before creating plugins
i get it but i don't get what it can take as a parameter
int death = player.getStatistic(Statistic.DEATHS);
Team deaths = board.registerNewTeam("Deaths: ");
deaths.addEntry(ChatColor.GREEN + "");
deaths.setPrefix(ChatColor.WHITE + "Deaths: ");
deaths.setSuffix(ChatColor.GRAY + death);
@cloud sparrow is there something i can do to make it find the dependency ?
@frigid ember
@frigid ember pls help
u askes an hour ago no response so
alr so that code i sent doesnt work for some reason
Hello, how come in a premium plugin you ain't allowed OOP and Setters or Getters?
Where did you get that idea from?
Unfortunately, your recent report has been rejected: Resource Update in 'Management' - Basic and low effort resource. Add substantially more (unique) functionality and improve the quality of your code design (e.g. no OOP, no encapsulation, etc.) if you want to release it as a premium resource (or release for free)
I do tho


