#help-archived

1 messages · Page 157 of 1

naive goblet
#

or add this.meta.add

#

But varags works like this:

#
public Object[] method(Object... objects) {
  return objects;
}
#

and then

lone fog
#

Varargs just takes a bunch of arguments and let’s you access them like an array

naive goblet
#
void method1() {
  method(); //empty array
  method("hi"); //array with 1 element
  method("hi", "hi2"); //array with 2 elements
}```
#

no1 saw :l

lone fog
#

I saw

naive goblet
#

sssh

lone fog
#

Idk overloaded methods mean shorter code

#

But a builder is more flexible

naive goblet
#

yeah

worn fiber
#

Oh, I see.

naive goblet
#

itemStack

worn fiber
#

Okay

#

This should do it then

#

Done!

naive goblet
#

@subtle blade Should I create a resource of how to make an actual API? I've seen lots of bad APIs recently, well I mean it's spigot plugins but still.

subtle blade
#

PES_SadShrug Do what'cha want. Though I'm also annoyed at how many "libraries" there are that all do the same thing

worn fiber
#

Now what?

naive goblet
#

lol yeah

subtle blade
#

If ya want an API, PR it to Bukkit :((

lone fog
#

Would an item builder ever make it into spigot?

subtle blade
#

No

#

Was shut down in the past

#

Builder pattern isn't something Bukkit really likes to adopt. There are few exceptions like firework effects

naive goblet
#

I'm sure my itembuilder would be fine

#

felix

#

now make a class called InventoryListener or something where we essentially listen to events

subtle blade
#

An ItemBuilder in Bukkit would just wrap all of ItemStack and ItemMeta which is one more thing that has to be maintained

naive goblet
#

also make a clas for the commands

#

That's true and it's not really hard to make one yourself

subtle blade
#

Right

lone fog
#

That’s fair

subtle blade
#

So, no, it wouldn't ever make it 😛

#

I think the only other thing in Bukkit that has a builder pattern aside from fireworks is... loot context?

#

Yes

naive goblet
#

mhm

lone fog
#

Quick someone make an ExtendedAPI plugin for everyone to use instead

#

dont stab me

worn fiber
#

@naive goblet I was gonna do one class per command

subtle blade
#

Oh what about world creator? Is that builder too?

naive goblet
#

That's good

subtle blade
#

Gah idk. There are a few exceptions from old school Bukkit

naive goblet
#

I mean kinda

worn fiber
#

So what's next?

frigid ember
#

builders are for making immutable stuff and there's really no precedent for immutability in bukkit, everything is mutable lol

worn fiber
#

Is it done?

naive goblet
#

make a class that listens to the InventoryClickEvent

subtle blade
#

Right. Even things like Location and Vector are both mutable

frigid ember
#

if there's mutability, you definitely don't need a builder. you hardly need a constructor 😛

lone fog
#

Ah location confused me so much at first

worn fiber
#

Done

naive goblet
#

Also Choco, wouldn't comparing Inventory with == be fine?

frigid ember
#

no?

subtle blade
#

I believe there are cases where that would not hold true. However, Inventory_View_ is referentially comparable

lone fog
#

Took a little bit before I realized location.add actually added to the original location :p

naive goblet
#

Necessarily InventoryView is just 2 wrapped inventories?

worn fiber
#
public class InventoryClickEventListener implements Listener{
    @EventHandler
    public void onInventoryClick(InventoryClickEvent event) {

    }
}```
naive goblet
#

yeah

#

now make a private final Gui field

#

and then intialize it in its Constructor

worn fiber
#

What should I set it to?

naive goblet
#
private Gui gui;
public InventoryClickEventListener() {
  gui = new Gui(9, "&cExample Gui");
}```
#

or smtng

#

also gui can be final I believe

#

as you're going to use 1 gui only right?

#

and never re-assign it?

worn fiber
#

I plan to use more than one

naive goblet
#

But that gui is always going to be the same?

worn fiber
#

No

naive goblet
#

I mean you could just change it by removing its items

tiny pebble
#

How would I check for when I switch to an item? I know there is PlayerItemHeldEvent, checking the item you are currently holding. Basically I want it to just cancel the event when I switch to a specific item

naive goblet
#

and setting new one then

worn fiber
#

It'd be easier to not do so though

naive goblet
#

Tanku getItemInHand or getItemInMainHand ?

tiny pebble
#

im using mainhand rn

naive goblet
#

then use that?

#

Felix what exactly are you planning to use all the guis for?

tiny pebble
#

i am and then when i switch to the item it does the opposite, i cant switch off of the item 😂

frosty cave
#

incompatible types: org.bukkit.ChatColor cannot be converted to net.md_5.bungee.api.ChatColor

#

uh oh

lone fog
#

You can use the held event and then set player.getInventory.setHeldItemSlot

worn fiber
#

@naive goblet I'm gonna make a shop

#

and maybe an enchant menu

naive goblet
#

Oh maybe make a GuiManager class?

worn fiber
#

Oh

#

All this just seems a little extra

naive goblet
#

You'll win much by doing extra in the long term kinda

frigid ember
#

why are there two different ChatColors anyway

naive goblet
#

no idea

lone fog
#

One is from bukkit one is from bungee

#

But the bungee one was packaged with spigot

naive goblet
#

in 1.16.1 bungee one is implemented in spigot?

lone fog
#

It has been for a while

naive goblet
#

yh

worn fiber
#
public class InventoryClickEventListener implements Listener {
    private final GUI gui;

    public InventoryClickEventListener() {
        gui = new GUI("&cExample Gui", 9);
    }

    @EventHandler
    public void onInventoryClick(InventoryClickEvent event) {

    }
}```
#

I got this

frosty cave
#

im trying to send stuff to the action bar lol

worn fiber
#

Problem is I want to change the title sometimes

lone fog
#

Idk why they don’t merge them

worn fiber
#

And I can't do that with this method

naive goblet
#

why change title?

worn fiber
#

Because I might need to change it?

naive goblet
#

yes ?

worn fiber
#

I plan 2 completely different use cases for this GUI stuff

naive goblet
#

say them

worn fiber
#

Enchants and several shop pages

naive goblet
#

enchants?

worn fiber
#

custom enchants

naive goblet
#

like a view gui?

worn fiber
#

To add stuff

hazy dew
#

Does anyone here have experience with using the Dynmap API?

naive goblet
#

no sry

hazy dew
#

I'm having trouble finding / building a jar for it and linking it with my plugin

naive goblet
#

Felix well just create more guis?

worn fiber
#

I can't if it's final

naive goblet
#

You can't re-assign it

#

but why would want to do it anyways?

#

I'd suggest you to do this

#

Make a Map<String, Inventory>

#

In a seperate class

#

and then use dependency injection to access it in any other class

worn fiber
#

I just wanted to fix the method I had working lol

naive goblet
#

Well, I'm sure this extra work will pay you off in the future

worn fiber
#

It's locked in here though

#

gui = new GUI("&cExample Gui", 9);

naive goblet
#

okay make a new class called GUIManager

worn fiber
#

done

naive goblet
#

So you're planning on having Shops and Enchants

#

?

worn fiber
#

Yeah

#

And maybe more stuff

naive goblet
#

yeah well we could manage all your guis in 2 ways

#

1 being a map

#

2 being lot's of getter and encapsulated guis

#

I'd suggest a map if you are familiar with it

worn fiber
#

Map it is

naive goblet
#

?

worn fiber
#

I've used maps before

lapis plinth
#

the file exists

naive goblet
#

You know in a nutshell how they function?

worn fiber
#

It's a dictionary

#

Like json

#

Each key has a value

naive goblet
#

yeah

#

Atom

lapis plinth
#

Sup

naive goblet
#

you forgot to separate the file and the folder

lapis plinth
#

oh fuck

#

so i have to add a /?

naive goblet
#

plugin.getDataFolder(), arg + ".yml"

worn fiber
#

I'm gonna go to bed for the night Conclure

#

I'll do this tomorrow

naive goblet
#

Yeah

worn fiber
#

Thanks for your help

naive goblet
#

contact me in dm

worn fiber
#

ok

light orbit
#

ok so

#

my buildtool still isn't working

#

is there somewhere I can like put a picture to show you the error message

naive goblet
#

verify yourself

light orbit
#

here I put it on imgur

#

its saying something about my storage, but I have a ton of storage on my pc

lone fog
#

It tells you what to do

#

It doesn’t have enough RAM

light orbit
#

so how do I give it more ram

lone fog
#

Read the message

light orbit
#

ok I put in the message

#

its doing stuff now

naive goblet
#

java -Xmx512M -jar BuildTools.jar

light orbit
#

ok yeah

lapis plinth
#

only 512m max?

#

dam

naive goblet
#

¯_(ツ)_/¯

light orbit
#

now it just has like a ton of stuff

lapis plinth
#

i allocate ~8gb

light orbit
#

saying that stuff is copied and completed whatever

frosty cave
#

does anyone know how i would just get the full number for the player's x/y/z location

naive goblet
#

good

frosty cave
#

instead of the long decimal

naive goblet
#

wym

lone fog
#

GetBlockX/Y/Z

naive goblet
#

an integer?

frosty cave
#

ye

naive goblet
#

Coll said it

frosty cave
#

ah okay

#

im just using getX/Y/Z lol

hardy cedar
#

hello basically i tried to run a Runnable to make it updates every some ticks https://hastebin.com/ixanuqefen.java here is the class i deleted the runnuble thing in this bc im 100% i did some thing wrong with it can i get help please ? 😄 i know im idiot at java sry D:

naive goblet
#

Location#getBlockX Location#getBlockY Location#getBlockZ

frosty cave
#

ty

naive goblet
#

Ahmed

#

You want a repeating task or just a delayed one?

hardy cedar
#

repeating the scoreboard set action

#

/ event

#

or what ever its called

#

like to update it like any normal scoreboard plugin

naive goblet
#
Bukkit.getScheduler().runTaskTimer(plugin, () -> {
  //code
}, 0L, 20L);```
#

this would run every second

#

if server tps is 20

hardy cedar
#

i tried that but there is something wrong like its not even working on that class

#

for some reason

naive goblet
#

How do you use it in other classes?

hardy cedar
#

no

naive goblet
#

.

hardy cedar
#

i didnt

#

use it

#

before

naive goblet
#

Well you shouldn't have a tasktimer in an eventhandler

#

it would create a new task everytime the event fires

hardy cedar
#

so how do i fix that ._.

lone fog
#

So I should do it in an EntityMoveEvent?

light orbit
#

is it normal for my git bash thing to still be loading messages

naive goblet
#

Doesn't EntityMoveEvent fires like very frequently

lone fog
#

Yep

naive goblet
#

I don't like that

subtle blade
#

afaik EntityMoveEvent doesn't exist

#

For that very reason

lapis plinth
#

EntityLagEvent

#

:kek:

lone fog
#

I know there was

naive goblet
#

Crazy yes ?

#

Oh it doesn't exist

#

:/

#

lol

hardy cedar
#

so how do i fix that ..
.
__,

lone fog
#

At least I think I remember seeing it at one point

naive goblet
#

think so too

#

@hardy cedar fix what?

lapis plinth
#

There’s a player move event tho

#

I think

naive goblet
hardy cedar
#

@hardy cedar fix what?
@naive goblet the scoreboard thing? 🤦‍♀️

lone fog
#

BKCommonLib has one

naive goblet
#

well schedule the timertask in onEnable I guess

#

and also register the listener

hardy cedar
#

well schedule the timertask in onEnable I guess
@naive goblet the plugin doesnt detect the board in that case

naive goblet
#

it does?

hardy cedar
#

and also register the listener
its in the main class

naive goblet
hardy cedar
#

main class


import org.bukkit.event.Listener;
import org.bukkit.plugin.java.JavaPlugin;

public class Main extends JavaPlugin implements Listener {
    @Override
    public void onEnable() {
        getServer().getConsoleSender().sendMessage("§aEnabled GraveLobbyCore by iiAhmedYT");
        new Basics(this);
        new WMCommand(this);
        new KaboomCommand(this);
        new Scoreboard(this);
        new PlayerList(this);
        getServer().getPluginManager().registerEvents(new Basics(this), this);
        getServer().getPluginManager().registerEvents(new WMCommand(this), this);
        getServer().getPluginManager().registerEvents(new KaboomCommand(this), this);
        getServer().getPluginManager().registerEvents(new Scoreboard(this), this);
    }
}
tiny pebble
#

Is there a way to simulate a player hitting an entity? The effect of the entity taking damage, becoming red, making the noise, and the knockback?
I tried LivingEntity.damage(), though nothing really happened

naive goblet
#

why are you initializing everything twice?

#

Tanku wym, so the effect lasts longer or what?

hardy cedar
#

why are you initializing everything twice?
what do u mean?

tiny pebble
#

basically i just want that after a certain amount of ticks, the effect repeats (already have BukkitRunnable done) @naive goblet

#

so it gets hit twice with one hit basically

naive goblet
#

packets probs

hardy cedar
#

i get the scoreboard when i join its working fine but it doesnt update

naive goblet
#

I need to get some sleep but I can help you tmrw, just come by dm

tiny pebble
#

Thanks Conclure, didn't think of that

hardy cedar
#

gn Conclure

lone fog
#

ChatColor.of

tiny pebble
#

Anyone know what packet would be used to simulate an entity being hit by something? Or a method?

entity.damage(double, Entity) hasn't worked from what I've seen

lapis plinth
#

whats a good method to set the item a player is holding to air?

wheat mirage
#

And protocollib

#

@@frigid ember Give it a hex color with a # before

tiny pebble
#

yeah im trying but im too dumb to understand it lmfao

wheat mirage
#

Or an instance of color

lapis plinth
#

any idea why this isn't setting the QueueValue to the specified value?

tiny pebble
#

is there a way to send a packet to an entity though? 🤔

wheat mirage
#

@lapis plinth Do you save the config anywhere? Dont work with configs much

#

@tanku yes

lapis plinth
#

oh shit

#

right

tiny pebble
#

i found a thread with the exact thing i want, but on the player, and i dont want it to send to the player

wheat mirage
#

Learn protocolliv

tiny pebble
#

so how do i send it to the entity

wheat mirage
#

Wait what

#

You want to send a packet to an entity?

#

That makes no sense

tiny pebble
#

was wondering if it was possible lmfao

wheat mirage
#

Okay lets step back

#

What are you trying to do

tiny pebble
#

my entire goal is to make it so when i hit an entity, 5 ticks later it hits the entity again without me hitting it manually

wheat mirage
#

Overall

tiny pebble
#

as in a double hit, with the same 'damage status' and all

#

damage status being the knockback, redness, and sound as well as damage taken

wheat mirage
#

.damage should work for that

#

You'll probably have to reimplement the velocity thouhh

tiny pebble
#

is it meant to replicate the entire process? i dunno from what i've gotten through nothing happens

lone fog
#

.damage​(double amount, @Nullable Entity source)

wheat mirage
#

AFAIK theres no way to save kb

tiny pebble
#

i'll see what i can do

wheat mirage
#

@tiny pebble Hastebin code

#

If .damage isnt working

#

Its either not being called

#

or you're not using it right

#

Worst case use set health and then send all nearby players the entity hurt packet

lapis plinth
#

whats the method to set player item in had to air?

#

i wasnt able to fidn it

lone fog
#

player.getEquipment().setItemInMainHand(null)

lapis plinth
#

wouldnbt that throw an NPE?

tiny pebble
#

https://hastebin.com/deviwavome.cs

Here's what I have right now.

The message that I told to send does indeed send, so what I'm getting at is that I'm using it wrong most likely @wheat mirage

#

fair warning i also only have around 5-6 months of experience with java

lapis plinth
#

nvm that worked without any issues

wheat mirage
#

@tiny pebble Set the delay to 40

#

I reckon its an invincibility ticks thing

#

So actually set it to 100

#

And if it works

#

Try using entity#setInvincibilityTicks

#

or something

#

I'm not actually looking at the code

tiny pebble
#

ah you were right it was the invincibility ticks

wheat mirage
#

it may be invulnerable ticks

tiny pebble
#

twas

wheat mirage
#

No problem, enjoy

tiny pebble
#

thanks 🙂

wheat mirage
#

:)

#

Question: to update a map from 1.12 to 1.16 do you need to use force upgrade on every version leading up to 1.16

#

or can you get away with latest

#

Or is there a tool somewhere

lone fog
#

ChatColor.of("#ffffff") + "Best Item"

frosty cave
#

wait so can you just do any hex color or does it like snap to the nearest chatcolor

lone fog
#

Any hex color

frosty cave
#

wow

#

does it work in chat or just item names

lone fog
#

Use the bungee ChatColor class

frosty cave
#

what version of spigot jar are u using

patent monolith
#

I tried running BuildTools as administrator, but I still keep getting this strange error... (I deleted all the folders that BuildTools created before running again):

        at org.spigotmc.builder.Builder.runProcess0(Builder.java:804)
        at org.spigotmc.builder.Builder.runProcess(Builder.java:741)
        at org.spigotmc.builder.Builder.main(Builder.java:427)
        at org.spigotmc.builder.Bootstrap.main(Bootstrap.java:34)```
#

that is what followed Error: Unable to access jarfile BuildData/bin/SpecialSource-2.jar

#

I checked to see if BuildData/bin/SpecialSource-2.jar existed and there it was

#

I guess I can't develop anymore 😦

#

picks up suitcase and takes hat off of coat-rack It looks like my time here is up, it was a good run

lapis plinth
#

Lol

patent monolith
#

on the flipside, I have this batch file going for me

@echo off
@echo Arguments: "%*"
set "DIRECTORY=%BuildTools%\data"

@echo Building In "%DIRECTORY%"

@echo Cleaning up old data
del /s "%DIRECTORY%" /q >nul 2>&1
mkdir "%DIRECTORY%"
pushd "%DIRECTORY%"

::Data::::::::
curl "https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar" > BuildTools.jar
call java -Xmx1024M -jar BuildTools.jar %*
::::::::::::::

popd

@pause
@echo on
deep cairn
#

How to read ENCHANTED_BOOK's Enchantment,i try to use itemHand.getItemMeta().getEnchants();,but the Map was empty.

lone fog
#

I believe they have a special meta

#

EnchantedBookMeta.getStoredEnchants() or something

deep cairn
#

yes,i see the NBT name was StoredEnchantments,but tool was Enchantments

deep cairn
#

thanks

wheat mirage
#

How does colouring entities / players names in 1.16 work?

#

I used to do via PlayerName and entityid but both seem broken now

#

Teams and prefixes still work though

gilded compass
subtle blade
#

Different

severe mirage
#

hi So i had made a vanilla minecraft server and i looked around i cant fiqure out if you can install spigot to a normal server

karmic stone
#

How can I make ghast fireballs give me wither?

#

hi So i had made a vanilla minecraft server and i looked around i cant fiqure out if you can install spigot to a normal server
@severe mirage I will suggest paperMC

severe mirage
#

oh ok

karmic stone
#

Just replace server.jar with paper-xxx

severe mirage
#

do i have to remake my server or do i just run it and it installs?

karmic stone
#

And change the run.bat

#

No

#

Run it once and the files would be installed

frosty cave
#
@EventHandler
    public void onPlayerMove(PlayerMoveEvent event) {
        Player player = event.getPlayer();
        double x = player.getLocation().getBlockX();
        double y = player.getLocation().getBlockY();
        double z = player.getLocation().getBlockZ();
        if (!PluginUtil.ToggleCoords.contains(player.getName())) {
            player.spigot().sendMessage(ChatMessageType.ACTION_BAR, new ComponentBuilder(ChatColor.WHITE + "X: " + ChatColor.AQUA + x + ChatColor.WHITE + " Y: " + ChatColor.AQUA + y + ChatColor.WHITE + " Z: " + ChatColor.AQUA + z).create());
        }
    }``` does anyone know why this would like skip coords
#

it doesnt update every block

karmic stone
#

How can I make ghast fireballs give me wither?
Btw anyone know this?

frosty cave
#

could you use a listener for when the fireball entity hits you

karmic stone
#

Ok

frosty cave
#

and like check if its a fireball then give yourself wither

karmic stone
#

I'll try it

frosty cave
#

im not sure

karmic stone
#

I'll check that

frosty cave
#

i know there is EntityDamageByEntityEvent

halcyon snow
#

you could listen to ProjectileHitEvent and check if the shooter is a ghast.

frosty cave
#

but im not sure if the fireball directly damages the player

halcyon snow
#

if so, apply wither on to the hit entity.

frosty cave
#

or yeah that

lone fog
#

You can use entityExplodeEvent and give wither to nearby players

#

I’m not sure if the explosion will trigger an EntityDamageByEntityEvent

wheat mirage
#

@frosty cave How fast are you going

#

And does anyone know about Scoreboards in the recent versions

frosty cave
#

like speed 2

severe mirage
#

ok thank you 🙂

wheat mirage
#

@frosty cave Try slower, you may be moving too fast between ticks to log every block

#

Especially if tps is low

frosty cave
#

tps is 20

wheat mirage
#

@lone fog You know anything about scoreboards?

lone fog
#

Yeah why

wheat mirage
#

Colouring names isn't working for me in 1.16

#

The way I did it in 1.12 doesn't work

#

The team's prefix has a colour code at the end which should then colour the name I think

lone fog
#

Don’t you just add them to a team and give the team a color

frosty cave
#

^

#

/team modify (name) color

karmic stone
#

What area_effect_cloud do?

lone fog
#

It’s for lingering potions

#

Spawns a cloud of particles that can give players an effect

karmic stone
#

Ohh, like the dragon does??

#

The fireball I mean

#

Dragons breath

wheat mirage
#

Ahhh teams now have a color parameter

#

cool

lone fog
#

@frosty cave try using event.getTo rather than player.getLocation

frosty cave
#

aight

wheat mirage
#

Oh yeah I didn't even see that

#

Never rely on getLocation inside move events I've found

#

Do the new rgb chat colors work with teams @lone fog ?

frosty cave
#

how do the hex code colors work btw

wheat mirage
#

bungee ChatColour.of(arg) @frosty cave

#

Look at docs

frosty cave
#

ye but what does it do

#

use the exact color code?

wheat mirage
#

Look at the docs, lol.

frosty cave
#

just curious

lone fog
#

Yeah it uses the hex coxs

#

Code

frosty cave
#

thats cool

lone fog
#

I don’t know if it works with teams

#

I’m not sure anyone has tried

frosty cave
#

didnt know you could use colors other than the ones like already there

lone fog
#

New in 1.16

wheat mirage
#

@lone fog There's nothing for it in the Team class

#

But who knows

frosty cave
#

sick

wheat mirage
#

Could justn ot be in the api yet

lone fog
#

Went from like 16 colours to 65k or so

karmic stone
#

if (event.getEntity().getType() == EntityType.PLAYER && event.getDamager.().getType() == EntityType.GHAST) {
Player player = (Player) event.getEntity();
player.addPotionEffect(new Potion effect(PotionEffectType.WITHER, 250, 1))

wheat mirage
#

About time lol

karmic stone
#

Btw will this do it

wheat mirage
#

I'd use instanceof instead of getType

lone fog
#

I think the damage may be a fireball not the ghast

#

If that fires

karmic stone
#

Yeah

lone fog
#

No, use get type

wheat mirage
#

Yeah if you want the ghast that fired it, use Projectile#getShooter

karmic stone
#

How?

wheat mirage
#

@lone fog Why

lone fog
#

It’s likely slower

#

And bad design when you can just compare an enum

karmic stone
#

So finally what should I write tho

#

Get shooter?

wheat mirage
#

@lone fog no, using the enum is bad design

#

And instanceof is faster

#

Especially since a subtype of an object could be a different type

#

but still be instanceof what you want

#

@karmic stone

karmic stone
#

Ok

wheat mirage
#

And for the fireball

#

Cast to projectile / fireball and use getShooter

#

You may want to check if that's an instanceof ghast

#

Depending on your use case

karmic stone
#

Hmm

#

Ok

wheat mirage
#

Fire charges from dispensers are also Fireballs IIRC

lone fog
#

OO design generally tries to avoid using instanceof

#

Blaze fireballs too

wheat mirage
#

Benchmarks 2nd answer @lone fog

#

Also that's complete bollocks

halcyon snow
#

In this case, how else are you supposed to check for an instance of Fireball and any subtypes without writing redundant code?

#

I don't see an issue with using instanceof in this case.

lone fog
#

That’s true

wheat mirage
#

That's because their is none

lone fog
#

But we know there are no subtypes

wheat mirage
#

Future proofing

#

@lone fog You're on the losing side mate

halcyon snow
#

Fireball does have some sub interfaces.

#

DragonFireball, LargeFireball, SizedFireball, SmallFireball, WitherSkull

wheat mirage
#

Also the OO design comment in the original Q isn't correct either

halcyon snow
#

not sure if all of those relate to the EntityType fireball though.

lone fog
#

There are a lot of notes calling it bad design

frosty cave
#

oh yeah forgot to ask

#

is there any way to get rid of the .0 at the end of getBlockX/Y/Z()

halcyon snow
#

you could cast it to an int, maybe.

frosty cave
#

perhaps

halcyon snow
#

there's also some methods I believe that return an int for the location's x, y and z.

frosty cave
#

oh big brain me was casting it to a double

#

epic

lone fog
#

Yeah you can just change your variables to int

frosty cave
#

lmao

#

yeah thank u to whoever said event.getTo() that helped significantly

tall crystal
#

Any ideas on why deserializing a Itemstack from the config would return null?

#
FileConfiguration config = YamlConfiguration.loadConfiguration(playerFile);
            //ItemStack[] pInv = p.getInventory().getContents();
            for(int creativeSlot = 5; creativeSlot <= 45; creativeSlot++) {
                if(config.contains("creativeItems." + creativeSlot)) {
                    System.out.println("Got Item at " + creativeSlot + ", Item is " + config.getItemStack("creativeItems." + creativeSlot));
                    p.getInventory().setItem(creativeSlot, config.getItemStack("creativeItems." + creativeSlot));
                }
            }
frigid ember
#

How come its telling me I'm using an outdated version when my version is past the --rev latest?

#

I'm using 1.16.1 and latest is 1.15.2

lone fog
#

Because latest is still set to 1.15

#

Use —rev 1.16

frigid ember
#

gotcha

#

is there a way to skip the 20 second thing

lone fog
#

Yeah, update

fierce briar
#

Easy, Buildtools.

#

?bt

worldly heathBOT
lone fog
#

That’s pretty much why it’s there :p

fierce briar
#

If it has the 20s thing and someone asks. Most likely... No Buildtools person.

lone fog
#

True, but they just mentioned buildtools above that

tall crystal
#

Alternatively you could do -DIReallyKnowWhatIAmDoingISwear

fierce briar
#

People Don’t scroll up

frigid ember
#

I use buildtools

#

Didn't even know there was another way

lone fog
#

There isn’t

#

Shh

fierce briar
#

Don’t let them find out.

frigid ember
#

So if I used build tools to make my jar why is it asking

fierce briar
#

.jar is like an Embrio, Or like John Snow... it knows nothing.

lone fog
#

It’ll ask if you are outdated

#

Used to be set to 1 day but I think it’s up to 3 days now since 1.16 is more stable

fierce briar
#

Usually it’s Every release, Until more stable than my Ex.

lone fog
#

MD said 12 hours for 1.17 :p

#

Guess we’ll see if it’s a joke

fierce briar
#

Lol 1.17 not out yet. It that this year (end of year?)

#

Ooof

lone fog
#

Should be around the end of this year

fierce briar
#

Rip Devs, Good Luck thoe.

frigid ember
#

Does anyone know how to make a horse walk toward a player?

#

I was trying to use the setTarget(player) method, but I don't think that works

#

I could set the horses velocity, but I also think that would be weird

fierce briar
#

How about a Leash? I don’t code Ill Shh for now.

lone fog
#

setTarget only works with entities that have attack goals

#

You could use NMS to add a goal to walk towards the player

fierce briar
#

I like leashing the horses In creative and Watching them bounce.

median swift
#

Hi guys

lone fog
#

Works well with _jeb sheep

median swift
#

I got this huge problem

lone fog
#

?ask

worldly heathBOT
#

If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply.

median swift
#

(at least give me time to post the image geez)

lone fog
#

What did you do beforehand

median swift
#

So

#

I got this plugin

lone fog
#

And do you have a crash report

median swift
#

Called UltimateStacker

#

When I place the spawner and change its type

#

this happens

#

Now im sad

lone fog
#

Probably need to contact the plugin developer

median swift
#

I know right

#

Awesome costumer service

#

Still no answer

fierce briar
#

Easy, You drop the Plugin, and the Dev.

lone fog
#

Ah geez it’s songoda

median swift
#

Hm hm

fierce briar
#

That’s Why, also Choco said not to mention the name >.>

median swift
#

Any problem being songoda?

lone fog
#

So it’s like Voldemort

fierce briar
#

Just drop plugin.
My Point of view:
If you decide to Be upgrading your server in the future drop the Dev.

median swift
#

🤔

#

Are there plugins thatdo the similar thing?

fierce briar
#

Yes, Always.

median swift
#

I got this last line

#

java.lang.OutOfMemoryError: GC overhead limit exceeded

lone fog
#

You done ran out of RAM

median swift
#

Becouse of this mf plugin

#

Thanks for the support

median swift
#

Also, any spawner shop plugin that wont do this shi-

halcyon snow
#

you could just not use the plugin for the time being and wait until they fix the issue.

#

not sure what to do if you need the plugin this moment though.

median swift
#

sure but you can see that the gREAT support that they do

#

Its a skyblock server.

fierce briar
#

Tried looking into Gui Shops?

#

I can’t recommend, Because it’s a Bais Opinion in my part. ;3

#

Well, Good Luck My Community Member!

median swift
#

Thanks

#

!

karmic stone
wheat mirage
#

Google how to give potion effects to entities

#

You're relying too much on spoonfeeding

#

you won't learn much that way

karmic stone
#

no i want to give potion effect to myself

#

bruh

#

fine

wheat mirage
#

The player is an entity

#

You're proving my point

#

If you rely on spoonfeeds, you don't build a foundation of knowledge like that

karmic stone
#

so first i cast the player, and then addPotionEffects?

wheat mirage
#

You probably won't need to cast, but yes

karmic stone
#

ok thanks

light orbit
#

how do I know if I have spigot installed

wheat mirage
#

Check your Users/<user>/.m2/ @light orbit look for org.spigotmc.spigot

light orbit
#

k

#

no I just have something that says spigot configuration patch

sage summit
#

I’m trying to make it so certain blocks only change one a certain players screen and I’m wondering if there is a plug-in for this or if you do it with commands

marsh hawk
#

Thats not very specific

wheat mirage
#

I think he's referring to client side blocks

#

A split between plugin / spigot help and development help would be good

sage summit
#

yup, how do you make client side blocks?

cold wharf
#

When I try to install spigot 1.16.1 maven repo using gradle, it gives me this error v

#

Someone please help me with this I am trying to fix the problem from past 3 days

wheat mirage
#

You've put it in wrong

#

1.16.1.

#

It should be 1.16.1

#

@cold wharf

cold wharf
#

I copy pasted it from spigot

#

And I also tried to remove that

wheat mirage
#

Rerun buildtools

#

And check your maven

#

And show me your gradle buuild

cold wharf
#
plugins {
    id 'java'
}

version '1.0'

sourceCompatibility = 1.8

repositories {
    mavenCentral()
    maven { url = 'https://oss.sonatype.org/content/repositories/snapshots' }
    mavenLocal()
}

dependencies {
    testCompile group: 'junit', name: 'junit', version: '4.12'
    compileOnly 'org.spigotmc:spigot:1.16.1-R0.1-SNAPSHOT'
}
wheat mirage
#

Rerun buildtools and check your .m2

#

@cold wharf

cold wharf
#

Where is it?

wheat mirage
#

Users

#

/ youruser

sage summit
#

how do you make client side blocks?

ebon girder
#

how do you update your spigot server to 1.16.1?

cold wharf
#

I can't find it

wheat mirage
#

user/youruser/.m2

#

Show hidden directories

cold wharf
#

how do you update your spigot server to 1.16.1?
@ebon girder Just download spigot 1.16.1

wheat mirage
#

@sage summit Become a dev

ebon girder
#

where is the download for that?

#

wait, ignore that

sage summit
#

well im learning how to do client side blocks...

ebon girder
#

wait yeah

#

where is spigot 1.16.1

#

idk how to use the buildtools unless im completely oblivious to smth

wheat mirage
#

@sage summit player#sendBlockUpdate

#

or similar

#

@ebon girder look at the guide

sage summit
#

ok

wheat mirage
#

@cold wharf In your file explorer you muppet 😛

cold wharf
#

:

#

oh

wheat mirage
#

C:/Users/<user>/.m2/

cold wharf
#

found it

#

Then what?

#

@wheat mirage

wheat mirage
#

See if you can find spigot

#

/org/spigot/

#

There'll be a 1.16 jar there if its in correctly

#

if not

#

Run buildtools for 1.16

cold wharf
#

/org/spigotmc/

#

yes

#

Run buildtools for 1.16
@wheat mirage I did it yesturday and it generated spigot 1.15.2 jar bruhh

wheat mirage
#

Always --rev what you want

cold wharf
#

@wheat mirage I can only see 1.15.2 jar here

wheat mirage
#

Then --rev it

cold wharf
#

So what do I do with old files?

#

Delete it and try again?

wheat mirage
#

No leave them

#

and then go learn how to use buildtools lol

cold wharf
#

uh

#

Should I keep it and run it again?

wheat mirage
#

Go learn how to use buildtools

#

Like just put in 5 minutes to learn to do stuff properly guys

#

A stitch in time saves nine

karmic stone
#

guys my intelliJ is has been frozen, same did happen yesterday. Any solution?

tall crystal
#

I've been having the same problem its a nice ide but it freezes up alot

hexed lodge
karmic stone
#

I just closed the project by 'alt+F+J"

#

And restarted the pc

#

It's back to normal

left plover
#

Can someone explain this to me? I've been confused for like 2 days now and I have no idea why I can't access the ConfigurationSection when it has things in it. When the configurationsection is empty, it isn't null

Bukkit.getLogger().info("" + playerData.get("players." + player.getUniqueId() + ".Vault")); // Prints {bfc94ee9-c792-43b5-8dc3-b8f830429023={Amount=50000, CreatedAt=1593671088, SpawnedBy={UUID=1df9f495-76fc-4477-beeb-9fe457a1c8cc, Name=MachoPiggies}}}
                Bukkit.getLogger().info("" + playerData.getConfigurationSection("players." + player.getUniqueId() + ".Vault")); // Prints 'null'
players:
  4797614d-4488-4fc9-b653-ce28b0a091eb:
    Vault:
      bfc94ee9-c792-43b5-8dc3-b8f830429023:
        Amount: 50000
        CreatedAt: 1593672608
        SpawnedBy:
          UUID: 1df9f495-76fc-4477-beeb-9fe457a1c8cc
          Name: MachoPiggies
frozen echo
#

@left plover try java player.getUniqueId().toString

left plover
#

still null @frozen echo

empty sail
#

weird

left plover
#

Its definitely there because of the first print in that code

pastel condor
#

What the

#

Got kicked

left plover
#

wyd lol

spring nexus
#

When I was editing a plugin page, suddenly a few settings changed. One of them was the plugin category. It was moved to "Web", now that I switched it back to Premium it says the plugin is awaiting approval... No one can access the page now. What can I do?

pastel condor
#

I’m on a phone

#

So I’m lagging really bad

#

And spam clicked

left plover
#

oof

pastel condor
#

Anyways check your print output

#

You will see it varies from your 2nd post

left plover
#

?

pastel condor
fresh pivot
#

hey i have an issue

left plover
#

w..

#

thats whats inside the Vault section

fresh pivot
#

hey i have an issue
[09:52:54 FATAL]: ChunkTooLarge! Someone is trying to duplicate. (island_normal_world - -376,-375) Go clean it up to remove this message. /minecraft:tp -6016 128 -6000 - DO NOT REPORT THIS TO PAPER - You may ask for help on Discord, but do not file an issue. These error messages can not be removed.
[09:52:57 FATAL]: ChunkTooLarge even after reduction. Trying in overzealous mode. (island_normal_world - -376,-375) Go clean it up to remove this message. /minecraft:tp -6016 128 -6000 - DO NOT REPORT THIS TO PAPER - You may ask for help on Discord, but do not file an issue. These error messages can not be removed.
[09:52:57 WARN]: Large Chunk Detected: (8, 9) Size: 440 ./island_normal_world/region/r.-12.-12.mca

#

how to fix this?

left plover
#

playerData.get("players." + player.getUniqueId() + ".Vault")

#

is whats being accessed

pastel condor
#

Lol my bad

left plover
#

@fresh pivot someone or something at -376 ~ -375 is trying to duplicate something using a chunk bug

fresh pivot
#

no, its my own island

#

and its a normal island

#

with a few minons

#

and spawners

left plover
#

then something is corrupted

fresh pivot
#

what does that mean xD

normal flume
frigid ember
#

@naive goblet thank you so much!!! that literally saved my life. i'll test it over lunch and get back to you

fresh pivot
#

@fresh pivot someone or something at -376 ~ -375 is trying to duplicate something using a chunk bug
its empty there

#

there is nothing

winter heath
#

Hello, I don't know why but my condition doesn't work, I do that : if(pls.getDisplayName().equalsIgnoreCase(args[1])) I search to take the /nick and the arg1 of a command and look if it's good but don't work, there are egals maybe when I verified with a send message 🤔 An idea ? (Sorry for my english)

sleek minnow
#

Hello, I have a problem, i'm trying to start my server and the jar file, crashes

#

stops when is saving worlds, any help please?

fresh pivot
#

uhh

sleek minnow
#

also, the world folders does not appear in the server folder

fresh pivot
#

whats your startup command?

#

local host or do you host somewhere?

#

@sleek minnow

sleek minnow
#

Local host

fresh pivot
#

okay

#

uhm

#

whats your startup command?

sleek minnow
#

and the start.bat i use this @echo off java -Xms1G -Xmx1G -XX:+UseConcMarkSweepGC -jar spigot.jar nogui pause

#

the server is for me, with 2 plugins

#

the eula is in true

fresh pivot
#

try using

#

@echo off
java -Xms512M -Xmx1G -XX:MaxPermSize=128M -XX:+UseConcMarkSweepGC -jar spigot.jar
pause

#

edit the sizes though

#

if you want that

sleek minnow
#

the sizes?

fresh pivot
#

yeah i meant

#

xms..

sleek minnow
#

okay

#

unable to acces spigot.jar file :/

#

in the folder there is the start.bat and the spigot.jar

fresh pivot
#

@echo off
java -Xms512M -Xmx1G --jar spigot.jar

#

click the jar file wont work xD

sleek minnow
#

oof

#

welp, eh

fresh pivot
#

@echo off
java -Xms512M -Xmx1G --jar spigot.jar
tried this?

sleek minnow
#

i clicked and the jar worked

fresh pivot
#

lmmaaoaoo

#

what is it showing

sleek minnow
#

made the server prooperties and eula

#

and logs folder

tall pewter
#

howdy, i've programmed a party system where whenever the party leader switches servers, so does its members. however when i do so, for some reason im receiving this error atm NullPointerException : null @ net.md_5.bungee.util.ChatComponentTransformer:44

sleek minnow
#

and the same @fresh pivot I'm gonna try that

fresh pivot
#

okay

#

and did it wokr?

sleek minnow
#

eee

tall pewter
#

hm apparently i have to update bungee

sleek minnow
#

the bat started and immediately stop

opaque grove
#

Did you accept the eula?

sleek minnow
#

yes

fresh pivot
#

oh

#

hmm

opaque grove
#

Then.. what does it say (just select something in your terminal right before it is closing, so you could read it)

fresh pivot
#

have u tried

#

"pauze" at the end

opaque grove
#

And is it generating any other files and/or folders rather than the eula and properties

sleek minnow
#

the logs folder

#

i just wanna play impossible + + of Fundy 😭

#

xd

#

shall i try "pauze" at the end of the start.bat?

opaque grove
#

What does the console say right before terminating the server?

#

Yeah try it

sleek minnow
#

the console just nothing, starts and crashes, in less than a second

opaque grove
#

U added "pause"?

sleek minnow
#

nop

fresh pivot
#

try that

sleek minnow
#

i added this @echo off
java -Xms512M -Xmx1G --jar spigot.jar

fresh pivot
#

try new lione

#

line

#

and add

#

"pauze"

sleek minnow
#

with "?

fresh pivot
#

nop

sleek minnow
#

k

opaque grove
#

Pause

#

Not pauze

fresh pivot
#

oh yeag i meant that

#

xD

#

srry

sleek minnow
#

oof

opaque grove
#

Without capital letter

fresh pivot
#

doesnt matter

opaque grove
#

Gotta mention that :)

fresh pivot
#

xD

sleek minnow
#

eee

opaque grove
#

Well a long time ago, it did (like my server crashed 30 times before figuring out it was the capital letter, might've been something else though)

fresh pivot
#

capital letter should matter but i should try without capital

sleek minnow
#

Unrecognized option: --jar
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has ocurred. Program will exit.
Pulse a key to continue

fresh pivot
#

uhhmm

#

can u show me the folder

#

ur using

#

like ur server folder

sleek minnow
#

yes, but here we can't send images

#

gonna send u in dm ok?

opaque grove
#

--jar? I thought it was -jar

#
pause```
fresh pivot
#

yeah it is -jar

sleek minnow
#

oof

fresh pivot
#
pause```

u host at humbleservers?

#

xD

opaque grove
#

No I don't

fresh pivot
#

oh lol

#

why that -DIReallyKnow..

opaque grove
#

This is just one of my many localhost development servers

fresh pivot
#

ohhh

opaque grove
#

But since I have like.. 20 development servers, it can be quite annoying to update the spigot version every month or so

fresh pivot
#

works for me

sleek minnow
#

so, what should i do?

opaque grove
#

What the hell is that font

#
pause```
#

This

#

As long as your jar file is named 'spigot', it should work

sleek minnow
#

yeah, it name is "spigot.jar"

opaque grove
#

"your jar file"

#

so yeah, it should work

sleek minnow
#

does not work :v

opaque grove
#

what does it say

fresh pivot
#

@sleek minnow can you check your dm please?

sleek minnow
#

Error: Unable to acces the jarfile spigot.jar

sturdy oar
#

lol that font

opaque grove
#

^

sturdy oar
#

even worse than comic sans

opaque grove
#

I agree

#

effra is the best

weak violet
#

what does knockbackReduction mean? I only know about horizontal, friction-horizontal/vertical, and vertical

hollow thorn
#

just click the jar file

sturdy oar
#

lmao dude

#

that's the most stupid thing i've read

hollow thorn
#

i do it all the time

#

and it works

sturdy oar
#

🤦

hollow thorn
#

what

#

it works

#

when you forget to PATH java

#

and need admin perms

#

just click the spigot.jar

sturdy oar
#

"it works" != is the best option

hollow thorn
#

and it does the stuff

#

even with a nice GUI

sturdy oar
#

How are you going to "click" the jar on a server lol

#

and do you even know the cons of running the jar "by clicking it"

hollow thorn
#

you cant insta close it

#

to prevent saving when you

#

poop something up

sturdy oar
#

that's not a thing

hollow thorn
#

i did it once on a survival server i ran

#

i accidently landed in lava

#

and i just closed the console

sturdy oar
#
  1. You have literally no access to any flag by clicking the jar
  2. (if you're using Java8 which... sadly >70% does) Clicking the jar will enable PGC by default which is way worse than manually specifying G1GC
  3. You have no access to heap management, this can hurt performance (Xmx and Xms are not set as matching)
  4. "Clicking the jar" doesn't make you learn automation, which is a required skill in server managing
hollow thorn
#

oh also

#

did the person set the PATH

naive goblet
#

Wth is this

hollow thorn
#

PATH

#

the pathing for java

#

if its not set

#

then your basically just throwing something at the computer

#

and saying run

sturdy oar
#

i mean... you're going to set the java path anyway

#

the script won't work as well if you haven't set a path for java

#

it takes 1 second to do however...

karmic stone
#

Hello how can I make the dragons breath give me wither effect, I tried dragon fireball but it doesn't work

naive goblet
#

EntityDamageEvent

karmic stone
#

I know

naive goblet
#

Check if cause is DRAGON_BREATH?

karmic stone
#

Ok

#

Wait

#

Only DragonFireball

#

:(

naive goblet
#

?

#

There’s nothing like that?

karmic stone
#

Only DragonFireball is there as options

#

Yes

naive goblet
#

...

#

As option of what?

karmic stone
#

I mean in the auto completion tab

inland oxide
#

so many vanilla bugs

karmic stone
naive goblet
#

@karmic stone what’s the actual troubleshooting here or are you just here clowning around?

karmic stone
#

i want dragon's breath to give me Wither effect. I tried DragonFireball as damager but it doesn't seem to work

#

@karmic stone what’s the actual troubleshooting here or are you just here clowning around?
why would i just come here for clowning ??

#

and there's also nothing like DRAGON_BREATH

naive goblet
#
@EventHandler public void onDamage(EntityDamageEvent e) {
  if(e.getCause() == EntityDamageEvent.DamageCause.DRAGON_BREATH) {
    //do stuff 
  }
}```
inland oxide
#

welp, time for the daily rebuild

karmic stone
#

we use damage cause?

#

ohhk

naive goblet
#

Well if you’re checking stuff like that yes

karmic stone
#

ohh thanks conclure

frigid ember
#

Whats the best way to limit the enchantments level?

naive goblet
#

You could eventually make a method for that if you’re going to check multiple enchants

karmic stone
#

Hello conclure, sorry i was afk, should my code be something like this?

naive goblet
#

Yes

sturdy oar
#

why are you casting player

#

have you done player instance check

karmic stone
#

then

#

yes.......wait

naive goblet
#

Fendi only the man himself knows

karmic stone
#

bruh i didnt

#

wait i will lol

kind dawn
#

Hi, where can I download the Spigot engine for 1.15.2 (latest build)? It's best if you gave the link 😄

frigid ember
#

download buildtools

naive goblet
#

BuildTools

frigid ember
karmic stone
#

the damager should be enderdragon right?

naive goblet
#

In EntityDamageEvent there is no damager?

karmic stone
#

yeah my bad

frigid ember
#

You could eventually make a method for that if you’re going to check multiple enchants
@naive goblet yea, but I want to modify the level in enchanting table

#

How do I send a message to the actionbar?

#
p.spigot().sendMessage(ChatMessageType.ACTION_BAR, TextComponent.fromLegacyText("test"));

Is this the best way to do it?

#

instead of IV it should be III

kind dawn
daring oracle
#

Hello everyone, so I'm having a problem and I don't know how to fix it. I made a wither with command block. This is the command: /setblock ~ ~-1 ~ spawner{SpawnCount:1,MaxNearbyEntities:1,SpawnRange:2,Delay:20,MinSpawnDelay:1800,MaxSpawnDelay:1800,RequiredPlayerRange:50,SpawnData:{id:"minecraft:wither",CustomName:'["",{"text":"Wither "},{"text":"[LVL 10] ","color":"yellow"},{"text":"[BOSS]","color":"red"}]',CustomNameVisible:1,PersistenceRequired:0b,Health:400,Attributes:[{Name:"generic.maxHealth",Base:400},{Name:"generic.followRange",Base:6},{Name:"generic.knockbackResistance",Base:0.7f}],ActiveEffects:[{Id:7,Amplifier:0,Duration:2147483647}]}}

spiral furnace
daring oracle
#

And I can't deal damage to him and he doesn't take damage, not even from void.

spiral furnace
#

thats the download page mate

daring oracle
#

These are my plugins: CratesPlus, WorldEdit, PluginConstructorAPI, ColoredSigns, Mines, PlaceholderAPI, ClearLag, BetterChairs, NoSunlightBurn, WorldGuard, AdvancedPortals, SkinsRestorer, PermissionsEx, WGLecternFlags, AntiCurse, AntiCraft, Vault, ItemEditor, UltimateRepairing, Essentials, PlotSquared, ActionHealth, Multiverse-Core, Holograms, Citizens, ColoredTags, Quests, TradeSystem, EssentialsGeoIP, EssentialsChat, Multiverse-Portals, EssentialsSpawn, BlockParticles, TitleManager, UltimateShops

frigid ember
#

minecraft version@daring oracle

daring oracle
#

1.14.4

#

He doesn't even die in the void and his name tag is easily seen from the surface of my map.

sturdy oar
#

.-.

daring oracle
#

He also has a custom name.

#

These are the region flags:

#

flags:
other-explosion: deny
water-flow: deny
use: allow
ice-melt: allow
interact: allow
vehicle-destroy: deny
chest-access: allow
weather-lock: clear
firework-damage: deny
ride: deny
MobHunting: allow
enderdragon-block-damage: deny
sleep: allow
vehicle-place: deny
snowman-trails: deny
mob-damage: allow
block-break: deny
entity-painting-destroy: deny
lightning: deny
wither-damage: allow
ice-form: allow
chorus-fruit-teleport: deny
mythic-drops: deny
lighter: deny
enderman-grief: deny
pvp: deny
deny-spawn: ['minecraft:ocelot', 'minecraft:slime']
block-place: deny
mythic-drops-custom: deny
mob-spawning: allow
mythic-drops-tiered: deny
mythic-drops-unidentified-item: deny
crop-growth: deny
item-drop: deny
creeper-explosion: deny
mythic-drops-socket-gem: deny
exp-drops: allow
vine-growth: deny
fall-damage: allow
item-pickup: allow
potion-splash: allow
damage-animals: allow
mythic-drops-identity-tome: deny
tnt: deny
ghast-fireball: deny
entity-item-frame-destroy: deny
owners: {}
type: cuboid
priority: 1
metro:
min: {x: -2344, y: 0, z: -766}
max: {x: -2185, y: 31, z: -604}
members: {}
flags: {wither-damage: deny, item-drop: allow, vine-growth: deny, mob-damage: allow,
item-pickup: allow, feed-amount: 20, feed-delay: 1, damage-animals: allow,
interact: allow, pvp: allow, MobHunting: allow}
owners: {}
type: cuboid
priority: 0

spiral furnace
#

dude, use a pastebin

sturdy oar
#

?paste

worldly heathBOT
daring oracle
#

Oh, sorry, I'll use it enxt time

karmic stone
#

i just wrote this code for giving me wither effect if i get get damaged by dragons breath and, confusion if i drown, for some reason only confusion effect is working when i drown

#

did i do anything wrong?

odd knoll
#

I'm confused, you said what you wanted to do and unless I'm reading it wrong, said it did exactly as you said you wanted.

karmic stone
#

wdym

#

i mean to say when i step in dragon's breath i dont get the wither effect

#

but i get confusion effect if i drown

subtle blade
#

Version?

karmic stone
#

1.15.2

sturdy oar
#

that code could be improved

karmic stone
#

then whhat the new

subtle blade
#

Can you replicate it on 1.16.1 because I’m leaning towards a bug

karmic stone
#

so is it impossible?

subtle blade
#

Well I just don’t see why it wouldn’t give you an effect so I’m wondering if maybe there’s a missing event call

karmic stone
#

yeah

subtle blade
#

In bed atm but I can check when I get up

karmic stone
#

ohh ok

#

good night 🙂

sturdy oar
karmic stone
#

wait

#

whatt

sturdy oar
#
  1. use a switch,
  2. that instance check is always true
  3. you're not checking player instance
karmic stone
#

yeah

#

ok

sturdy oar
#

it will crash the plugin if another entity type gets damaged

spiral furnace
#

what command can i run on bungeecord to check version please?

odd knoll
#

/bungee

spiral furnace
#

ty

#

ahh, only 7 versions behind then lol

karmic stone
#

FendiTony777 u mind if I DM u?

#

Umm nvm

sage summit
subtle blade
#

good night 🙂
No I just woke up lol

#

looking now

torn robin
#

anyone know an easy way to check if an item has an unsafe enchantment?

dark shuttle
#

get the level, compare it with Enchantment#getMaxLevel()

rustic socket
#

The certificate for Spigot IRC (*.spi.gt) expired a couple days ago

torn robin
#

ah good idea sept ty

subtle blade
#

@karmic stone can you try listening for DamageCause.MAGIC instead of DamageCause.DRAGON_BREATH?

#

I don't see any call to dragon breath but it's considered an area effect cloud so I'm wondering if maybe it's a bug

crimson sandal
#

Hey does anyone have a recommended way to simulate running a server on low end hardware? Some users of my plugin have noticed a couple of laggy methods in my plugin and I realised a lot of servers won't have hardware anywhere near as fast as my desktop.

karmic stone
#

@karmic stone can you try listening for DamageCause.MAGIC instead of DamageCause.DRAGON_BREATH?
@subtle blade yeah even that fits, let me try

subtle blade
#

If it works with the MAGIC cause, I think it's a bug

karmic stone
#

yeah thats what the death message is. "<Player> was slained by Ender Dragon using Magic"

subtle blade
#

Definitely a bug then

#

I think that's actually a vanilla bug lol

karmic stone
#

hmm

#

is it fixed in 1.16.1?

subtle blade
#

Definitely a bug, not fixed in 1.16

karmic stone
#

ohh

subtle blade
#

This has been a bug for quite some time now, actually

#

That was created in 2015

tight gate
#

i need help configuring spigot.yml to have vanilla behaviors

subtle blade
#

Think those were 1.9 snapshots lol

wraith thicket
#

@crimson sandal Use one of the free hosting sites - I bet their hardware is pretty bad 🙂

subtle blade
#

Ah.
this.d.addEffect(new MobEffect(MobEffects.HARM));

#

dragon breath is just an area effect cloud with a harm effect

crimson sandal
#

@crimson sandal Use one of the free hosting sites - I bet their hardware is pretty bad 🙂
@wraith thicket Yeah I guess so lmao

subtle blade
#

Going to try a strange fix. Maybe md has a better idea but this is what imma do

karmic stone
#

hey choco where do i add that

marsh hawk
#

anyone know why object =board.registerNewObjective("showhealth", "dummy", ""); is giving me a null pointer exception? none of the code is deprecated hm```cs
Scoreboard board = manager.getMainScoreboard();
Objective objective = null;

    if(board.getObjective("showhealth") == null)
        objective = board.registerNewObjective("showhealth", "dummy", "");```
subtle blade
#

It's not really something you can add, PhoKing

wraith thicket
#

if the NPE is on the line of if(board.getObjective... then likely manager.getMainScoreboard returns null

subtle blade
#

It's a bug in vanilla, going to try and fix it on CraftBukkit

karmic stone
#

lol what do i do then

#

i mean the magic thing is also not working

marsh hawk
#

Hm thats real strange

subtle blade
#

It's not magic either?

marsh hawk
#

ill just have a null check

subtle blade
#

This will likely be targeted to 1.16 though so in the meantime, get the source of the damage, check if it's an area effect cloud and check if the effect is instant damage. I'm not sure what else you could do

marsh hawk
#

seems board isnt null

#

so what on earth is giving me a null pointer

gloomy arch
#

hey people
[3:12 PM]
why can i not run this command? /function as:admin/craft_book_toggle
NEW

subtle blade
#

so I definitely didn't fix it lol

#

Dragon breath just crashes the server now

sage summit
#

how do I make it so code waits 1 second before running the next line?

marsh hawk
#

seems i can no longer use IChatBaseComponent

subtle blade
#

😄 fixed

frigid ember
#

Whats the best way using world guard to display blocks around spawn to a player if they are combat tagged?

marsh hawk
#

did uuids change over 1.16.1

#

mine is completely different now

subtle blade
#

No

#

Are you in offline mode?

marsh hawk
#

ah right that explains it

#

hm thats strange i was in offline before and had my usual uuid

subtle blade
#

Offline generates names based on name