#help-archived

1 messages ยท Page 5 of 1

boreal iron
#

It's more like somebody does not merge pull requests

fleet crane
#

Yes never

subtle blade
#

No reason to get into this

hoary parcel
#

ppl who do "thread designs" aka big giant walls of images that arent searchable or copyable need to stop

cursive pelican
#

Wrap kickPlayer in a BukkitScheduler or you will have issues. โš ๏ธ @frigid ember

hoary parcel
#

its so annoying

boreal iron
#

thread designs are cool for visual impact, but permissions and other info should be text

cursive pelican
#

Bukkit is an addition, tbh.

#

Spigot is a fork.

boreal iron
#

well try to run a 100 player server on Spigot

#

yeah, as I thought.

cursive pelican
#

?

subtle blade
#

Hey remember when I said

No reason to get into this

cursive pelican
#

I wasn't paying attention.

subtle blade
#

I remember that too. Cool

cursive pelican
#

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. ๐Ÿ™‚

steady cedar
#

Haha I gotta screenshot that

boreal iron
#

Can we get an actual Dark Theme on Spigot, I mean black not gray

sharp mauve
fleet crane
#

The dark theme is pretty dark....

final verge
#

You pray

fleet crane
#

@sharp mauve run BuildTools and just browse source as normal

sharp mauve
#

hmmm

cursive pelican
tiny dagger
#

i like the dark theme plus my color change

cursive pelican
#

Just initial looks. ^

tiny dagger
#

hopefully it will never change

cloud sparrow
#

I'd remove the black home text.

#

and wrong place @cursive pelican

#

#general

sharp mauve
#

I mean I can totally work with that. That makes it really easy.

subtle blade
#

That's the one

#

Those are the files used to generate our patches

tiny dagger
#

choco, is there any way to get the name of a deleted/banned account?

subtle blade
#

As in you want to take it?

#

That's something you'd have to talk to md_5 about

#
  1. They may not be permanently banned
  2. Their forum contributions may be significant enough to not warrant account removal
tiny dagger
#

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?

silk cape
#

Who can code Noai plugin in eclipse? i have some code, but do not know how to put all together?

subtle blade
#

Well, that account isn't banned but it's most definitely inactive. A DM to md_5 on the forums will be fine.

tiny dagger
#

okay thank you

unborn wolf
#

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

zealous yoke
#

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?

fleet crane
#

I mean step 1 is dont send objects between servers

subtle blade
#

afaik they will not be ==

fleet crane
#

but definitely use .equals

#

or even better .isEmpty

subtle blade
#

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<>()

zealous yoke
#

Alright, thanks

fleet crane
#

no I would advise against using ObjectOutputStream and friends

zealous yoke
#

Wait so would you advice against using the plugin messaging channel?
I use sockets.

#

Why exactly?

#

Too slow? Unefficient?

fleet crane
#

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

zealous yoke
#

But didn't the Java socket API received a rewrite in Java 13?

fleet crane
#

Im not talking about sockets

#

just ObjectOutputStream and Serializable

zealous yoke
#

Alright, thanks for the help. I am definitely gonna think about that

heavy basin
#

Can I ask here about plugins?

zealous yoke
#

I think so. But often, if there is an error in the console, we cannot do anything. You would need to contact the author.

heavy basin
#

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

unborn wolf
#

what is the permission to rent a area with areashop

heavy basin
#

Ok, thax

viral sedge
#

hi everyone... brand new to spigot, trying to set up a Linux Spigot server for my kids

tiny dagger
#

this sounds ancient and i know it but how does one change the entitytype registry to a custom one in 1.8.8?

viral sedge
#

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?

frigid ember
#

Correct

#

Only plugins built around the bukkit api will work with spigot, but per version support might be different as well

viral sedge
#

presume Minecraft Forge is more client side?

zealous yoke
#

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

viral sedge
#

can i export worlds from spigot into a forge server?

#

kids have already been building. ๐Ÿ™‚

chrome lark
#

yes, just gotta copy the world over

viral sedge
#

thanks for the help folks, hard to make sense of it from what's online

chrome lark
#

WORLDNAME=world sh -c "mv \${WORLDNAME}_the_end \${WORLDNAME}/DIM1; mv \${WORLDNAME}_nether \${WORLDNAME}/DIM-1"

viral sedge
#

@chrome lark : what does that command do?

chrome lark
#

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

viral sedge
#

that changes compatibility between spigot and forge folder structure?

chrome lark
#

yup

viral sedge
#

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

chrome lark
#

automod, rip

frigid ember
#

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

dusky herald
#

You arent using Spigot.

#

Default minecraft servers do not run plugins.

frigid ember
#

Now I understand, can you help me with this? I'm totally new to all this

dusky herald
#

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.

frigid ember
#

Thank you so much

dusky herald
#

Shows you exactly how to download Spigot

#

and the link that I provided above will show you how to install it.

sharp mauve
#

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.

dusky herald
#

wym

#

trying to use the Craftbukkit apis?

sharp mauve
#

Just trying to enable code navigation

#

Want to be able to view the different types more properly

tame dagger
#

Hello

#

Why does my snowball begin to glitch at .multiply(4+)

#

Is there a way I can disable the max velocity for that?

tiny dagger
#

you don't know how it works do you?

tame dagger
#

wdym?

tiny dagger
#

there is no way sorry

tame dagger
#

Anything less than 4 works

tiny dagger
#

projectiles have client side glitches

tame dagger
#

Really?

tiny dagger
#

yeah

#

i thought is known

#

they were never meant for that speed anyway

cloud sparrow
#

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.

tame dagger
#

Hm

#

So if I disable gravity it'll work?

#

Or still not ๐Ÿ˜ฆ

tiny dagger
#

if you modify the client yeah

#

you can make them look nicer

#

but

tame dagger
#

By using protocol lib?

tiny dagger
#

can't you just do a ray trace instead?

#

no

tame dagger
#

I do that

#

but the bullet follows m,y ray

tiny dagger
#

whats m and y?

tame dagger
#

my*

tiny dagger
#

i never tried but what if you mount the projectile on an armorstand

tame dagger
#

i thought of that

frigid ember
#

the server is working fine

#

thx

#

Does anyone know any plugin for when I type a command that is not displayed for players?

dusty topaz
#

Like an unknown command message?

#

If that's what you mean you can do it in spigot.yml I think

frigid ember
#

For example, I type / gamemode 1 and it does not appear in the chat for players.

dark cloak
#

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!

flint venture
#

Sort of

#

Spigot is the main server software which uses Bukkit API

#

Here is a link to create like a blank plugin. Then its the same with EventHandlers and stuff

dark cloak
#

okay so spigot.jar = craftbukkit.jar? i think spitgot was just gaining traction around teh time I left the scene

flint venture
#

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

dark cloak
#

gotcha gotcha. still plug and play? shouldn't impact a pre-existing server/world?

#

yeah I remember when wolfy did that, hah....

flint venture
#

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

dark cloak
#

cool cool

flint venture
#

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)

subtle blade
dark cloak
#

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

subtle blade
#

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

worldly heathBOT
dark cloak
#

between CB and spigot, is one more/less intensive in terms of server resources? running on a pretty tiny server

flint venture
#

Use Spigot

dark cloak
#

k

flint venture
#

No one uses CB

dark cloak
#

sweet, well cool thanks guys. should be g2g

flint venture
#

Have fun

subtle blade
#

CraftBukkit is practically unsupported and should not be used at this point in time, yes

#

Spigot acts as its successor

flint venture
#

Is there any reason that CB is still built?

subtle blade
#

Because Spigot patches both CraftBukkit and Bukkit

#

It requires CraftBukkit. Think of it kind of like a dependency

#

(I use that term very loosely)

dusty topaz
#
        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

subtle blade
#

inb4 low particles

dusty topaz
#

I've got particles on all!

#

I'll try looking on a vanilla, non optifine client but

frigid ember
#

someone know how to fix this?

dusty topaz
#

nope, nothing even on vanilla 1.15

dark cloak
#

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

subtle blade
#

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

dusty topaz
#

@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

upbeat snow
#

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?

flint venture
#

WorldGuard?

upbeat snow
#

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

flint venture
#

you may want to ask in their discord

quick arch
#

Does it not hook with Vault for Economy support ๐Ÿค”

upbeat snow
#

vault works I think

#

but dont you need to have another economy plugin?

#

even with vault... sorry very new to this

quick arch
#

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)

strange echo
#

Should I add wildcard permissions to my config.yml permissions or just leave that for permission plugins?

upbeat snow
#

sweet.. thanks @quick arch I was able to get vault and essentialsx going

quick arch
#

๐Ÿ‘

upbeat snow
#

so many plugins.. so many config values

#

lol

#

seems worldguard stopped fire effects from working

frigid ember
#

how do you descramble TSNHELCOAPU I need it for helpchat

#

auto fishing plugin for server?

#

i only find anti auto fishing lol

dusty topaz
#

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

young arrow
#

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.

dusty topaz
#

i'm validating potion effects

ivory musk
#

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.

dusty topaz
#

Send the code?

ivory musk
#
    @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) {
...}
}
dusty topaz
#

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

ivory musk
#

I originally had this in a different Listener class and yes, I did that. And it was not being called in Survival.

young arrow
#

event.getEntity() returns the VICTIM entity. It can't be a projectile

dusty topaz
#

Yeah was about to say that

ivory musk
#

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.

dusty topaz
#

Unrelated but maybe store uuids instead of the handle

#

No need for all the casting

young arrow
#

Then I guess that another plugin might be cancelling the event in the case (survival) so try with higher EventPriority.

ivory musk
#

Entities have UUIDs as well as players?

dusty topaz
#

Yes

ivory musk
#
@EventHandler(priority=EventPriority.HIGHEST)
#

Like that?

young arrow
#

yep.

ivory musk
#

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. ๐Ÿ˜›

young arrow
#

Because the UUID is defined in Entity level and the Players are entities as well

ivory musk
#

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.

young arrow
#

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

ivory musk
#

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.

young arrow
#

yea that is pretty weird imo.

ivory musk
#

The entity is just a normal EntityMonster, though.

young arrow
#

Maybe try EventPriority.MONITOR?

ivory musk
#

Is that a debug priority of some sort?

young arrow
#

ye it is. and see if the event fires.

ivory musk
#

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.

young arrow
#

I'm actually out of knowledgebase and I haven't deal with nms stuff. I'm sry

ivory musk
#

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.

minor spruce
#

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?

upbeat snow
#

Does anyone happen to know of any mods for player owned zones/homes? something like how hypixel works

dusky herald
#

@upbeat snow Usually WorldGuard permissions with other utility plugins to handle them automatically, or just WorldGuard by itself

upbeat snow
#

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"

grizzled heron
#

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!

fleet crane
#

yes

#

you can just use the same folder

fleet crane
#

uh

#

fresh install of what

#

can you be more specific

#

where is the message coming from

frigid ember
#

md_5 do you help ppl with 1.8 coding if they need it?

#

or are those support versions unavailable

storm tulip
#

Itโ€™s technically still about the same

frigid ember
#

ahh

storm tulip
#

Just ask ur question generally

frigid ember
#

I need help getting the a broken carrot block at it's Ripe state.

storm tulip
#

So u donโ€™t know when itโ€™s ripe?

#

Thereโ€™s a block grow event

frigid ember
#

ye

#

I am doing it for the blockbreakevent

storm tulip
#

Crops have a state

#

U can probably cast it to a crop type

frigid ember
#

kk

#

Crops carrot = (Crops) b.getState().getData(); would that be an example of casting it to a crop type savage?

storm tulip
#

I would google how to get crops from block

#

I donโ€™t know off the top of my head

frigid ember
#

kk

storm tulip
#

Include cast in your google search maybe

frigid ember
#

k

#

ty

storm tulip
#

U found it?

frigid ember
#

still looking

paper mountain
#

How long does it take to get a response from ticket support?

storm vessel
#

Quick question: should I use Maven with IntelliJ IDEA?

shell fog
#

@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

fleet crane
#

the protocol slot numbers are different from the actual slot numbers

#

so no

shell fog
#

Well, is there one for the actual slot numbers?

fleet crane
#

yeah

#

the one that returns an array

#

:p arrays are numerical indexed maps

shell fog
#

ah ok, thanks

old heart
fleet crane
#

seems kind of arbitrary

#

but guess so

old heart
fleet crane
#

ah

#

its because they calculate it based on the sun position

#

so I guess the sun hits a certain angle at that time

old heart
#

ah okay they didn't just have a minecraft dev hitting their keyboard at random

keen magnet
#

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?

tiny dagger
#

so you want to see if its his own inventory?

fleet crane
#

check if the inventory is the same?

#

youve already stored it

tiny dagger
distant cosmos
#

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?

wanton pivot
#

Is windows remote desktop on the server edition?

old heart
#

I think its on server edition and pro edition

shell fog
#

@distant cosmos There's rcon, but it's a single login, and I can't comment on the security of it

ivory musk
#

@distant cosmos You can install an OpenSSH server.

distant cosmos
#

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

arctic cloud
#

@distant cosmos I'd say your best bet is a plugin for it

ivory musk
#

@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.

limber moth
#

quick question, is it allowed to allow statistics gathering for a premium plugin, having a way to disable it too of course?

tiny dagger
#

stats are allowed

#

unless its malicious

sour dock
#

just use bstats

#

it's generally trusted, and there's one opt out for all plugins

limber moth
#

oh yeah, that looks good actually

sour dock
#

it's transparent to users what is being collected

limber moth
#

fair, thank you

#

is mcstats not used anymore?

sour dock
#

I'm pretty sure that's dead

limber moth
#

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

sour dock
#

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

limber moth
#

ahh

rocky knot
#

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
#

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

fiery marten
#

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 ๐Ÿ˜ฆ

frigid ember
#

yo anyone know where i put the paper.jar

old heart
#

Are you setting up your server @frigid ember?

frigid ember
#

yea and im trying to make my own plugin as well

old heart
#

Is the paper.jar for creating your server or for creating your plugin?

frigid ember
#

um not 100 % sure just know i need it for something i think for plugin

old heart
#

Try watching that video, I think that's what your after

frigid ember
#

@old heart do u know anything ab making your own plugins

old heart
#

Yes I do, what do you need to know?

frigid ember
#

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();

old heart
#

What are you expecting it to do?

frigid ember
#

like it has red underlines on it

old heart
#

I can write you some demo code if u want

#

oh alright

frigid ember
#

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

old heart
#

?paste

worldly heathBOT
frigid ember
#

tell me im not right look at Objective o = s.registerNewObjective("ยง4ยงlSwift ยง6ยงlCraft", "Dummy", "Test");

tiny dagger
#

since when md5 has its own pasting service?

frigid ember
#

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

tight geode
#

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?

frigid ember
#

@frigid ember

#

what does the s. mean

old heart
#

Are you on about these ยง @frigid ember ?

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 ?

tight geode
#

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?

frigid ember
#

oh alr

restive pivot
#

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?

silver pollen
#

Did you restart your server?

restive pivot
#

yep, no /reload bs

#

and i did save the file :P

silver pollen
#

Maybe 6 is the minimum but I don't know

restive pivot
silver pollen
#

Can you change other stuff?

restive pivot
#

i can chnage it globally in the default section

frigid ember
#

system how do i make heath show the peoples actual current healtj

restive pivot
#

"have you tried restarting it"
rebooting the physical machine fixed it, it now shows up

#

thx for the help anyway :) ยฏ_(ใƒ„)_/ยฏ

frigid ember
#

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

old heart
#

This should change the scoreboard without a flicker
player.getScoreboard().getTeam("Team_Name").setSuffix("New Suffix");

frigid ember
#

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

tiny dagger
#

oh i actually looked what canel does exactly, it just executes the Bukkit.cancelTask(int id); method

lament kestrel
#

Any recommendations on what permission plugin to use, i need something simple and easy for an SMP server.

frigid ember
#

y whould u need luck perms on smp tho

#

system

#

i did the thing u sent and im getting red underlines

lament kestrel
#

i need it to give them perms to other plugins that i use.

frigid ember
#

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

bronze marten
#

don't use eclipse

ebon tendon
#

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?

dusky basalt
#

make a hunger games plugin that supports custom data for 1.15.2 please

ebon tendon
#

if u pay me sure lol

dusky basalt
#

how much

ebon tendon
#

ill do anything i been doing this since 2013

#

add me @dusky basalt

frigid ember
#

system what ab instance it doesnt work

bronze marten
#

did you declare it

#

instance == your main plugin class

frigid ember
#

no i dont know what it is

bronze marten
#

mkay

frigid ember
#

supposed to be

bronze marten
#

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();

frigid ember
#

i already have a main class

bronze marten
#

yes

#

just add it to ur main class

frigid ember
#

either on?

#

one*

bronze marten
#

uhm, I suppose you only have one main class

#

the one which has onLoad

frigid ember
#

yea

#

its this

bronze marten
#

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

frigid ember
#

wtf is that

golden mulch
#

Some broke ass bitch pleading for views

frigid ember
#

lmao

#

yo how do i display peoples luck ranks rank on your scoreboard

final verge
#

Probably you need a placeholders plug-in

frigid ember
#

doesn't luckperms hook in to vault? i think you can just put the vault rank in the scoreboard

solemn grove
#

in which scenario we will need multiple event listener class?

bronze marten
#

wdym

#

If you like large class files go for one lol

frigid ember
#

there are a lot of scenarios where that could happen

#

dont understand

solemn grove
#

solely for better looking?

final verge
#

@bronze marten dont out me

bronze marten
#

aye wasnt directed to u

#

xd

#

๐Ÿ˜ณ

final verge
#

๐Ÿ˜‚๐Ÿ˜‚

#

Better than my 1k+ line constructor lmao

frigid ember
#

alr bet thx

bronze marten
#

Better than my 1k+ line constructor lmao
wat

solemn grove
#

wat

final verge
#

My player class has a 1k+ like constructor ๐Ÿ˜‚๐Ÿ˜‚

bronze marten
#

what's the cyclomatic complexity of that method lol

final verge
#

Uh

#

IntelliJ refuses to analyze it

bronze marten
#

F

sharp hollow
#

y so big

final verge
#

Cuz every ability has a class that has to be initialized for a player.

#

And there are 77 as of now

bronze marten
#

but why not split

#

and how do you test that

final verge
#

Cuz I wrote it early on not realizing how bad it would get

#

๐Ÿ˜‚

bronze marten
#

1k line method

final verge
#

And I donโ€™t

#

It works

bronze marten
#

ah yes

final verge
#

And so I just copy paste

bronze marten
#

classic

final verge
#

When I need a new skill

#

And change the variables ๐Ÿ˜‚

bronze marten
final verge
#

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

bronze marten
#

mhh, how big is the cache per player

dusty topaz
#

Is getOfflinePlayer slow?

bronze marten
#

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?

dusky herald
#

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.

final verge
#

It literally keeps their data object just in memory. Not sure the memory footprint but I havenโ€™t had issues yet ๐Ÿ‘€

dusty topaz
#

You should use the ChatComponent api @dusky herald

#

And you likely don't have the correct dependencies

dusky herald
#

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

frigid ember
#

does anyone know when the md_5 is there?

final verge
#

He comes and goes

#

There is no divining his ways

dusty topaz
#

His last message was at 11am BST

final verge
#

Itโ€™s up to the winds

frigid ember
#

he checks this periodically

final verge
#

No but fr itโ€™s random

#

No consistent timing

frigid ember
#

how do i display the date ?

#

anyone knwo how to display the date

#

on a scoreboard

#

thank you for helping me much thank you very much I find mahr doll dear

#

@frigid ember

#

day month year

winged umbra
final verge
#

when do you call player.updateInventory

winged umbra
#

I don't

final verge
#

that would be why

#

you need to update the inventory for all players viewing it

frigid ember
#

how do i go to a new line when putting something on a scoreboard @frigid ember

tiny dagger
#

is there any way to unregister a command without reflections? ๐Ÿค”

final verge
#

Not that I am aware of

storm tulip
#

isnt there a command map for each plugin

#

u can find it in there

tiny dagger
#

yeah i see it

#

and reflection is the only way to remove it from the map

hasty forge
#

re

#

qq all

#

how to quickly draw a map with a radius of 10,000? /wb fill 1000 208 false loading is slow

zenith siren
#

Quick question, does a players custom name reset when a server restarts and/or reloads?

subtle blade
#

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

zenith siren
#

Ok

#

Thanks

quick arch
#

@final verge anvils are wonky

#

๐Ÿค”

#

shows 2 null first, then after that shows the correct item

#

gets triggered 5 times ๐Ÿค”

neat oxide
#

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

quick arch
#

ah, Diamond told me to test it for him

neat oxide
#

Oh he added it

quick arch
#

yeah

#

Event is called before the item is inside of it which is wonky

neat oxide
#

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

paper mountain
#

@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.

neat oxide
#

@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

paper mountain
#

And how much more or less is waiting for an answer?

neat oxide
#

When did you send it

paper mountain
#

This is my first time encountering this situation.

#

10 hours ag

#

o

quick arch
#

He has 4 PRs he has to do, and this is surely going to be his 5th one :D

neat oxide
#

King have you ever looked at the PR board there are more than 30

quick arch
#

No

neat oxide
#

@paper mountain Dude 10 hours aint nothing. Wait a week before reaching out

quick arch
#

^

manic raptor
#

I'm pretty sure MD lives in Melbourne Aus like myself @paper mountain and it's currently 5am over here lol.

quick arch
#

Premium resources can take up to months to get accepted ๐Ÿค”

#

Yeah, he lives in Melbourne

neat oxide
#

He wants his account unbanned

#

it seems his account got banned for wow thats some not ok stuff

quick arch
#

The same waiting time as premium resources can stay with his account's punishment

paper mountain
#

until a week waiting?

neat oxide
#

Yes it can take up to a week for a response

quick arch
#

His account was apparently banned for posting a resource about DDOSing or something

neat oxide
#

Yup

#

@paper mountain Dont stress it. With you pinging moderators you will be put on a low priority queue

#

xD

quick arch
#

Time will go by quick... in quarantine

#

It's already been 2.5 weeks for me

neat oxide
#

@quick arch fyi the counter is at 75 PR's

quick arch
#

o

neat oxide
#

some are old and need to be removed but aint nobody got time for that

quick arch
#

the Anvil thing was really old iirc

#

Was there since 1.12.2 or something afaik

paper mountain
#

๐Ÿ˜ฆ @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.

quick arch
#

rip

#

There has been a lot of accounts being compromised lately

neat oxide
#

All i can say is 2FA

quick arch
#

defek7 compromised last week by t0r, electronicboy IRC compromised yesterday, etc.

neat oxide
#

Also do we look like people who can unban you?

#

IRC is inherently unsecure

ember heart
#

Really @quick arch ?

quick arch
#

yes

ember heart
#

Damn

neat oxide
#

@frigid ember Thats why i recommend local 2FA

ember heart
#

Do you have any details on how?

quick arch
#

no

neat oxide
#

thats why we dont use SMS 2FA on spigot

ember heart
#

Alright thanks though

quick arch
#

I'd just go overkill with 1024 char passwords ๐Ÿค”

ember heart
#

Well my password is litteraly my username, so yeah

quick arch
#

rip

subtle blade
#

That's a stupid amount of overkill, Alter lol. 16+ chars is fine

quick arch
#

shhh

#

Mine are at 64 or something right now

ember heart
#

Smh I'm kidding

#

Oh Choco

#

Now I have you here ๐Ÿ˜ ๐Ÿ˜

paper mountain
#

I've set new passwords from the generator, although this will not unlock my account.

ember heart
#

I stumbled across this post by you

#

Posted ages ago

subtle blade
#

Is it me being a prick?

ember heart
#

Not at all

subtle blade
#

That doesn't narrow it down tbh because I'm a prick to day Kappa

#

Yes

#

Handled

paper mountain
#

choco

#

Only md_5 has access to tickets?

ember heart
#

I'm just wondering if you know the current number of resource staff who actually review resources compared to the ones to review reports

subtle blade
#

afaik yea, Rafal

manic raptor
#

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?

subtle blade
#

Yes

#

2 & 2, @ember heart

ember heart
#

Alright thank you

#

Id do a double smirk emoji but I lost my nitro

#

So you'll get a normal smirk instead

#

๐Ÿ˜

ashen stirrup
#

Anyone here good with algorithms?

ember heart
#

Depends on the algorithm

half cairn
#

Is worldedit bugged with stairs?

ember heart
#

Yes it is indeed

half cairn
#

Every time i copy, the stairs are fuckedup

#

Ah shit ;P

subtle blade
#

@manic raptor to my knowledge, when you give the head to a player, a lookup will already have been made

ashen stirrup
#

Insertion Sort

paper mountain
#

It would be nice if md_5 would consider my request for unban quickly and successfully.

subtle blade
#

As in they will already have been cached. You're fine to use OfflinePlayer

#

Dude he's sleeping

#

It's 5am in Melbourne

paper mountain
#

And I won't fall asleep now... ๐Ÿ˜ฆ

ember heart
#

What were you banned for? ๐Ÿฟ

#

Probably won't go faster by mentioning it here though

quick arch
#

His account apparently posted a resource detailing on how to DDOS a Discord Server

ashen stirrup
#

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

ember heart
#

But I suppose you know that

paper mountain
#

Someone logged in to my account and wrote a message how to ddos discord servers.

ember heart
#

Rip

quick arch
#

Isn't there an IP check thing ๐Ÿค”

paper mountain
#

nope

manic raptor
#

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

tiny dagger
#

@ashen stirrup TreeMap?

manic raptor
#

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

ashen stirrup
#

How do they work?

#

Does it sort as values are put in?

tiny dagger
#

yes

#

that's what treemap

#

sort stuff based on key

#

or based on a comparator

ashen stirrup
#

โค๏ธ

frigid ember
#

@frigid ember how do i add the date as the suffix

ember heart
#

No, it sorts by keys. @ashen stirrup

frigid ember
#

rn

quick arch
#

Collections.sort() ๐Ÿค”

frigid ember
#

yea

#

i did

ashen stirrup
#

So instead to sort it by highest kills it would be Integer, Player

ember heart
#

TreeMap doesnt allow dublicated keys

quick arch
#

Couldn't he just use hashmaps & Collections.sort() or something

frigid ember
#

system what do

quick arch
#

There's a lot of stuff about sorting in Java

#

He already did that pretty sure

ashen stirrup
#

Iโ€™ll look into Collections.sort

ember heart
#

He can't use hashmap that's for sure lol

quick arch
#

๐Ÿค”

frigid ember
#

@frigid ember ? y is it not workin

manic raptor
#

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.

ember heart
#

Hashmaps don't maintain any order

frigid ember
#

the code that i send the date isnt showing up

manic raptor
#

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?

ashen stirrup
#

So what's best to use?
Collections.sort()
or
TreeMap

frigid ember
#

see how date aint there for some reason

manic raptor
#

@frigid ember
Okay, that helps a lot.
Thanks very much dude ๐Ÿ™‚

final verge
#

@quick arch is tuinity a fork of spigot?

quick arch
#

Tuinity's a fork of Paper

final verge
#

Can you test on pure spigot to make sure it still happens for me?

quick arch
#

yeah, the 2nd gif is on pure Spigot

final verge
#

Aight awesome

quick arch
#

that one

#

and ofc embeds don't show now it's a redirection link

frigid ember
#

system do u see how date shows up black

final verge
#

Also can you dm me a hastebin of the code? I assume itโ€™s just a single class ๐Ÿ˜‚

frigid ember
#

blank*

final verge
#

I wanna mess with it for reproduction

frigid ember
#

bruh

quick arch
#

yeah, it's a single class

#

IntelliJ loading up

final verge
#

โค๏ธ

frigid ember
#

yea it works now

#

how do i show peoples kills and deaths on the scoreboard

ashen stirrup
#

You need a plugin to track kills and deaths

#

Or

#

You can track kills yourself with a yaml config.

#
UUID:
  kills:
  deaths:
frigid ember
#

how do i auto import on intel j with a maven project cuz there red stuff everywhere

limber moth
#

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?

viscid eagle
#

@here I need help with verification beacuse my MC name have ** _**

manic raptor
#

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?

final verge
#

Does it not work with that character?

viscid eagle
#

No

frigid ember
#

system do u know how to fix this

visual stream
#

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

manic raptor
#

@frigid ember Thanks again! ๐Ÿ˜„

visual stream
#

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?

tiny horizon
#

Is there a plugin where it makes a hologram and shows the top 10 people with the most kills?

visual stream
#

@frigid ember i think i missed the basics with what you said because i don't know where i can check that

crimson forum
#

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

neat oxide
#

If you verify your account it will happen automatically

tawdry lilyBOT
#

Usage: !verify <forums username>

crimson forum
#

Oh wow, that's handy. Thanks, guys!

neat oxide
#

help

#

Have i mentioned i hate that bot

#

-info

#

@worldly heath Respond plz?

frigid ember
#

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

neat oxide
#

๐Ÿคทโ€โ™‚๏ธ

visual stream
dark cloak
#

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

visual stream
#

ok i understand

subtle blade
#

Item count, Fireworks

#

#equals() will ensure count matches. If you just want to compare the item, ItemStack#isSimilar()

dark cloak
#

yo sick, that's probably it, forgot these itemstack things have more metadata in them

subtle blade
#

(I also seriously advise comparing targetItem.isSimilar(player.getInventory().getItemInMainHand()) to avoid NPEs)

dark cloak
#

good improvement too ๐Ÿ‘

subtle blade
frigid ember
#

@frigid ember

#

how do i fix

subtle blade
#

What's the issue

visual stream
#

@frigid ember thanks you by the way

subtle blade
#

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

frigid ember
#

do u see how itโ€™s red

#

the org.spigot

sharp hollow
#

you have an extra </dependencies> at the very bottom of the image

subtle blade
#

Yep. Extra dependencies. Good catch

#

Your project XML isn't closed

frigid ember
#

also how do i import the spigot i just started using intel j

subtle blade
#

You have it imported

quick arch
#

or use Minecraft Dev for IntelliJ pog

frigid ember
#

how im new to intel k

subtle blade
#

This is unrelated to IntelliJ. This is Maven

quick arch
#

Maven's confusing

#

Already saw some stuff about Gradle, seems easier ๐Ÿค”

subtle blade
#

It's really no easier

quick arch
#

o

subtle blade
#

Anything seems confusing until you've learned it

quick arch
#

Took me 6 hours to put CombatLogX into maven >:(

subtle blade
#

Dude isn't there literally a "convert to maven" option? lol. Then it's a matter of getting the dependencies

quick arch
#

then I learned about the System scope :(

subtle blade
#

No no, don't use system

quick arch
#

no idea

subtle blade
#

Ever

quick arch
#

o

subtle blade
#

It's deprecated lol

quick arch
#

What should I use then ๐Ÿค”

#

yeah, I've heard that plenty of times

subtle blade
#

If a dependency isn't on a public repository, local install it

quick arch
#

o

final verge
#

im not sure how to do that either tbh

quick arch
#

so then I would still have to BuildTool all the versions for CombatLogX :(

final verge
#

compileOnly files('libs/Sickle.jar')

#

heres how i do it in gradle

subtle blade
#

mvn install:install-file -DgroupId=wtf.choco -DartifactId=MyArtifact -Dversion=1.0.0 -Dpackaging=jar -Dfile="path/to/the/archive.jar"

frigid ember
#

so how do i import it in maven

quick arch
#

pepe_scared (Just imagine the emoji there)

subtle blade
#

Swift, you have it imported in Maven already

keen compass
#

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

#

๐Ÿ™‚

subtle blade
#
<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

frigid ember
#

yea

subtle blade
#

(and that's all that should be in your <dependencies>. You should remove the org.bukkit:Bukkit one)

frigid ember
#

so why is it still redf

subtle blade
#

Because you have two closing </dependencies> tags

frigid ember
subtle blade
#

Rebuild your project. See the notification in the bottom right

#

"Import Changes"

frigid ember
#

there we go

subtle blade
#

Then you're good to go ๐Ÿ‘

#

Building an artifact in IJ with Maven is beyond me though. I use Eclipse

quick arch
#

Should just use IJ man

#

IJ has an export to Eclipse button

keen compass
#

that last pic, looks like something is at the end of the spigot repo url that doesn't belong

#

@frigid ember

final verge
#

To build, open the terminal tab in the bottom left

#

and do mvn clean install

subtle blade
#

A forward slash? lol

ashen stirrup
#

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.

final verge
#

at least thats what i walways do

subtle blade
#

Can't set a block type to an ItemStack

#

You set it to a Material

keen compass
#

@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

subtle blade
#

Only thing after that is </url>

#

The closing tag for <url>

keen compass
#

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

#

-.-

elfin scroll
#

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?

ashen stirrup
#

How would you convert a ItemStack to Material then? ๐Ÿค”

frigid ember
#

what does maven even do

quick arch
#

Dependency manager

#

Manages your dependency and stuff

keen compass
#

its main purpose is for depedency management, however it can do various nifty things beyond that as well ๐Ÿ˜‰

subtle blade
#

You don't, Jeeb. You set the block to Material.PLAYER_SKULL and use its BlockState to set necessary data

jovial briar
#

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());
    }
}
ashen stirrup
#

Does ClearCommand class implement CommandExecutor

frigid ember
#

oh alr

jovial briar
final verge
#

Is the command defined in your plugin.yml

#

likely you are setting an executor to a null command

subtle blade
#

(that's what the annotations are for)

jovial briar
#

I use annotations see code above: @Command(name = "clearcmd")

ashen stirrup
#

PLAYER_SKULL is for 1.15.2, the plugin is 1.8.8

final verge
#

shouldnt that annotation be above the command class itself

subtle blade
#

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

final verge
#

I dont use annotations so im not sure

jovial briar
#

I don't know DiamondDagger

subtle blade
#

For the block, System?

jovial briar
#

I'll try it now

subtle blade
#

afaik it was skeleton_skull with a data of 3 or some shit like that

final verge
#

Hey choco is there a way to get info if say a player pressed the "g" key

subtle blade
#

No. Keybinds are not sent to the server if they are not in use

#

In fact, keybinds aren't sent, period

final verge
#

hm that's what i figured

subtle blade
#

The result of said keybind is

final verge
#

one of my customers said it was possible and I was like "uhhhhhhhhh since when"

jovial briar
subtle blade
#

Yea, most definitely is not ;P On Forge it is

final verge
#

That's what I figured xD I was like "im not crazy right? that's some keylogger crap right there"

jovial briar
#

Fixed. For some reason, the annotation didn't add the command to plugin.yml

subtle blade
#

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

final verge
#

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

ashen stirrup
#
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.

subtle blade
#

Not in the slightest lol. You've got 3 class cast exceptions here.

ashen stirrup
#

A for effort?

subtle blade
#

Eh, sure

ashen stirrup
#

How would I do it?

subtle blade
#
  1. MaterialData is useless in 1.13+
  2. You should cast the result of block.getState() to Skull, not block. Skull is a BlockState
  3. Use skull.update() after you've changed it instead of block.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();```
ashen stirrup
#

Cheers โค๏ธ ๐Ÿ˜„

flat aspen
#

Are both BlockStates and BlockDatas relevant? I haven't touched the API in a while but I sorta thought BlockData covered everything

subtle blade
#

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

flat aspen
#

Ah

subtle blade
#

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)

flat aspen
#

Yeah got it, thanks

subtle blade
flat aspen
#

That's one flat pepe

subtle blade
#

he do be vibin doh

flat aspen
#

pixely boi

#

doing what I should be doing, 12 am right now

nova mirage
#

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

velvet halo
#

Please put console logs in a pastebin ๐Ÿ˜ฉ

nova mirage
#

sorry

velvet halo
#

No problem

nova mirage
#

does anyone known how to solve this issue ?

astral epoch
crimson raft
#

does anyone known how to solve this issue ?
@nova mirage maybe your not allowing the app internet connection?

#

"Could not resolve dependencies for project"

zenith palm
#

"Could not resolve dependencies for project"
@crimson raft Which repository/s? They could be down?

cloud sparrow
#

I'd think it's just the jar missing the pom

frigid ember
#

someone plz show me how to show a players kills

#

and deaths

subtle blade
#

Player.getStatistic()

#

Sure you can figure it out from there

frigid ember
#

yea i saw that but dont know how to use it

subtle blade
#

It really can't be much more straight-forward than it is

frigid ember
#

int kill = player.getStatistic(kill);โ€‹

#

like this

#

idk what to put in the getStatistic(kill);

subtle blade
#

Look at the argument it takes

#

This is basic Java you should seriously understand before creating plugins

frigid ember
#

i get it but i don't get what it can take as a parameter

frigid ember
#
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);
nova mirage
#

@cloud sparrow is there something i can do to make it find the dependency ?

frigid ember
#

@frigid ember

frigid ember
#

@frigid ember pls help

cloud sparrow
#

stop tagging people

#

expecting help

frigid ember
#

u askes an hour ago no response so

#

alr so that code i sent doesnt work for some reason

silver pewter
#

Hello, how come in a premium plugin you ain't allowed OOP and Setters or Getters?

subtle blade
#

Where did you get that idea from?

silver pewter
#

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)

subtle blade
#

Alert is identifying that you do not have OOP or encapsulation

#

and that you should

silver pewter
#

I do tho