#help-development

1 messages Β· Page 1528 of 1

eternal oxide
#

you can not call add on an empty Map effects.get(plr.getName()).add(e);

#

test for null

quaint mantle
#

how do i make it when somebody hits another person the person being hit a message

eternal oxide
#

Do you know java?

quaint mantle
#

yeah but im no expert

eternal oxide
#

Ever made a plugin?

quaint mantle
#

im just new to spigot

#

yeah

eternal oxide
#

then take a look in teh javadocs for EntityDamageByEntityEvent

ivory sleet
#

Use EntityDamageByEntityEvent and then check if the damager and damagee is both players, in that case just post the message

eternal oxide
#

?jd

cold pawn
#

Dosnet matter if I remove the return statement it still dosent work

eternal oxide
quaint mantle
#

public static void onHit(EntityDamageByEntityEvent event) it sais missing method body, or declare abstract

cold pawn
cold pawn
quaint mantle
#

public static void onHit(EntityDamageByEntityEvent event) it sais missing method body, or declare abstract

eternal oxide
cold pawn
#

The perform method is called in the main command method

eternal oxide
#

Then add sysout debugs to see what isn't being called. Somewhere your code is not even running as that is such basic code it can;t fail if its actually called.

shy wolf
#

can i edit an a hologram with a boolean?
like whan boolean is true the holo will say "true"
and whant the boolean is false the holo will say "false"

eternal oxide
#

At a glance it looks like you are modifying the Map as you loop over it. Concurrent maps are for Thread safety not modifying without itterating.,

stone sinew
#

You can see the code.

topaz sandal
#

i have a minecraft server with aternos and i have a few plugins (bukkit and spigot)
i have a plugin that does /dual
the only problem is it requires admin/moderator
is there a way to change what commands require moderator?

hybrid spoke
#

does the command even fire if its a command?

#

is it the for loop?

weary geyser
#

Does anyone know what pathfinder goal I should choose when making a zombie attack a specific player only?

#

Or do I have to create my own one

hybrid spoke
cold pawn
hybrid spoke
#

than it will tell u

cold pawn
#

thats what im doing rn

weary geyser
hybrid spoke
weary geyser
hybrid spoke
shy wolf
weary geyser
#

Thanks lmfao

weary geyser
#

Yeah I saw that now

pseudo raptor
#

Guys, I created a config.yml. I want to make that when someone types /test, a siege a setting changes.
For example:
test123:
After command, it becomes:
test123: "Already run"
I tried using the getConfig().set method but nothing happened.

hybrid spoke
shy wolf
#

uhh i need like to edit the holo

hybrid spoke
shy wolf
#

not on create

hybrid spoke
#

yeah..

#

the custom name of an entity is mutable

pseudo raptor
#

how i make this?

hybrid spoke
#

saveConfig()

shy wolf
#

umm ye i am dumb πŸ₯΄

eternal oxide
eternal garnet
#

Hey, does anyone know what I can do to fix this error ?

Could not pass AsyncPlayerChatEvent to project v1.0

pseudo raptor
hybrid spoke
eternal garnet
cold pawn
hybrid spoke
cold pawn
eternal garnet
#

Ok wait, I need to startup my laptop :|

hybrid spoke
eternal oxide
#

@stone sinew This seems like its you calling the getType method async causing the cme and not your own Map.

cold pawn
hybrid spoke
cold pawn
quaint mantle
#

what is the action. for hitting a player with EntityDamageByEntityEvent

hybrid spoke
shy wolf
#

how to create custom placeholder

#

?placeholder

topaz chasm
#

check placeholderapis github wiki page for best information

shy wolf
#

ok

restive mango
#

hm
any of you guys know how i might circumvent falling block render distance limitations?
for some reason, falling blocks seem to derender very close to me
like say only 20 blocks away
i want them to be rendered farther distances away

dry beacon
#

How can I read from yml file that people can add content to? this.getCustomConfig().getInteger("lord.weight"); would obviously work for only for lord rank, example:

ranks:
  lord:
    weight: 1
  duke:
    weight: 1
  emperor:
    weight: 2
# And so on
shy wolf
cold tusk
#

Hello, how do i get a HashMap with getConfig.get... ?

ivory sleet
#

getValues I believe

timid kestrel
#

Question.. How can meta be a LinkedTreeMap when it's literally being casted to a Map<String, Object>?

Map<String, Object> meta = (Map<String, Object>) data.get(i).get("meta");
System.out.println("Data is: " + data.get(i).get("meta").getClass().getName()); // com.google.gson.internal.LinkedTreeMap
System.out.println("Meta is: " + meta.getClass().getName()); // com.google.gson.internal.LinkedTreeMap
eternal night
#

just because you cast something doesn't mean it is that class

#

you could cast a player instance to an Entity

#

the object itself would still be a player

shy wolf
eternal night
#

do you have the repository ?

shy wolf
#

what repository ?

eternal night
#

for the placeholderapi

timid kestrel
shy wolf
#

ummm yes?

eternal night
#
<repositories>
        <repository>
            <id>placeholderapi</id>
            <url>https://repo.extendedclip.com/content/repositories/placeholderapi/</url>
        </repository>
    </repositories>
#

this repo

shy wolf
#
<repositories>
        <repository>
            <id>spigotmc-repo</id>
            <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
        </repository>
        <repository>
            <id>placeholderapi</id>
            <url>https://repo.extendedclip.com/content/repositories/placeholderapi/</url>
        </repository>
        <repository>
            <id>sonatype</id>
            <url>https://oss.sonatype.org/content/groups/public/</url>
        </repository>
    </repositories>

    <dependencies>
        <dependency>
            <groupId>org.spigotmc</groupId>
            <artifactId>spigot-api</artifactId>
            <version>1.16.5-R0.1-SNAPSHOT</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>me.clip</groupId>
            <artifactId>placeholderapi</artifactId>
            <version>2.10.9</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>```
acoustic pendant
#

what is the javadoc to tell a player "welcome" i mean, only a player not to all the server

eternal night
eternal night
shy wolf
eternal night
#

does mvn package work out fine ?

shy wolf
#

ummm 1s

eternal night
#

unrelated error tho

acoustic pendant
eternal night
#

checkout Player#sendMessage instead

shy wolf
#
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project main: Compilation failure: Compilation failure: 
[ERROR] /C:/code/plugin/nedertight/src/main/java/net/inbar/main/Main.java:[107,29] incompatible types: java.lang.String cannot be converted to java.util.logging.LogRecord
[ERROR] /C:/code/plugin/nedertight/src/main/java/net/inbar/main/Main.java:[113,24] cannot find symbol
[ERROR]   symbol:   method warn(java.lang.String)
[ERROR]   location: class java.util.logging.Logger
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
eternal night
#

that is something just wrong with your code

acoustic pendant
eternal night
#

not related to the dependency

#

check line 107

#

in your Main class

shy wolf
#
        if (Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null) {
line 107            getLogger().log("hook into placehoderAPI!");
        } else {
            getLogger().warn("Could not find PlaceholderAPI! This plugin is required.");
            Bukkit.getPluginManager().disablePlugin(this);
        }```
acoustic pendant
#

i haven't find any msg javadoc D:

eternal night
#

isn't your IDEA screaming at the getLogger.log method call ?

eternal night
#

note that Player extends CommandSender

#

so you can use that method there

acoustic pendant
#

ok ty

shy wolf
#
        if (Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null) {
            System.out.println("hook into PlaceHolderAPI");
        } else {
            System.out.print("Could not find PlaceholderAPI! This plugin is required.");
            Bukkit.getPluginManager().disablePlugin(this);
        }```
#

now it's will work

#

maybe

eternal night
#

give it another try

#

if it compiles fine, your intellij is just a bit behind

shy wolf
#

the plugin working fine
but i dont know how to make placeholder

#

i read the docs and i have error

eternal night
#

have you clicked the reload button in the maven window ?

shy wolf
#

ummmmmmmmmm

#

nooo?

eternal night
#

try it πŸ™‚

shy wolf
eternal night
#

above it

timid kestrel
eternal night
#

in the header of the window

#

should be a reload-like button

shy wolf
#

k 1s

#

more errors yay

eternal night
#

but is your pom fixed ?

shy wolf
#

yep

eternal night
#

sweet πŸ™‚

#

gl

shy wolf
#

soo

shy wolf
eternal night
#

The papi documentation is pretty good, you got this πŸ’ͺ

shy wolf
#

and i have youtube

stone sinew
timid kestrel
burnt current
#

@eternal night can you help me with that?

acoustic pendant
#

Hi, i need help

eternal night
#

can you send me the entire stack trace πŸ™‚

acoustic pendant
#

how can i solve the problem: "Cannot resolve symbol"

#

?

weary geyser
eternal night
#

getLore returns a new copy of the lore every time

weary geyser
#

Oh

eternal night
#

you will have to store the list in a variable and then modify the list

weary geyser
#

Yeah

#

Then set it

eternal night
#

after you you are done, feed that list back to the itemmeta using ItemMeta#setLore

weary geyser
#

Yeah

acoustic pendant
weary geyser
stone sinew
# eternal oxide <@!152941891430776833> This seems like its you calling the getType method async ...

Also ```java
NMSReflection nms = NMSReflection.getInstance();
nms.getNMSTypeMethod(nms.getCraftWorld(minion.getStartingLoc())); // <- Runs method sync to place Object in map.
new BukkitRunnable() {
public void run() {
Map<Location, LocationData> blockData = BlockRetrieval.getInstance().getBlocksNMSLambda(minion.getStartingLoc(), minion.getRadius(), minion.getType());
new BukkitRunnable() {
public void run() {
lj.chopTrees(blockData);
lj.setIsWorking(false);
}
}.runTask(MinionMain.getInstance());
}
}.runTaskAsynchronously(pl);

acoustic pendant
#

package Evento;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

public class MiEvento extends Event {

private final String playerName;

public ExampleEvent(String playerName){
    ExampleEvent exampleEvent = new ExampleEvent("Msrules123");
    this.playerName = playerName;
}

private static final HandlerList HANDLERS = new HandlerList();

@Override
public HandlerList getHandlers() {
    return HANDLERS;
}

public static HandlerList getHandlersList() {
    return HANDLERS;
}

public String getPlayerName() {
    return this.playerName;
}

}

eternal night
#

?paste

undone axleBOT
eternal night
#

please

weary geyser
#

^

eternal night
#

this is pain

acoustic pendant
#

oh sorry

weary geyser
#

@acoustic pendant it is probably ExampleEvent

acoustic pendant
#

yes

#

i have to register i guess

weary geyser
#

do you know java?

acoustic pendant
#

more or less

weary geyser
#

When did you start

acoustic pendant
#

i'm learning classes rn

weary geyser
#
  1. You are using a constructor that != the name of the class
#
  1. You are creating a new object of a class that (probably) does not exist.
#

?learnjava

undone axleBOT
eternal oxide
acoustic pendant
#

@weary geyserlmao i just realized, i solved it ty

weary geyser
#

Alr

#

Np

silver wadi
#

Sorry, I'm new to plugin development

acoustic pendant
#

i have already seen it but didn't realize xd

silver wadi
#

does anyone have a list of all events?

quaint mantle
#

?jd

weary geyser
#

?jd

quaint mantle
#

slow haha

stone sinew
silver wadi
#

thanks

#

could i ask beginner questions here?

quaint mantle
silver wadi
#

alright

#

so

#

i have the basic App.java file

#

for just onEnable and onDisable

#

would i create another file/class in order to manage an event or something?

ivory sleet
#

You can do that in the same class or a different one

pseudo raptor
#

Guys, I want to save a location in config.yml (I did that), but how is the correct way to call it with p.teleport?

silver wadi
#

nvm

eternal oxide
quaint mantle
eternal oxide
#

too pretty ^

quaint mantle
#

thanks?

#

is there a reason for you posting this

granite stirrup
#

:(

#

its a utube channel :)

#

totally not mine

weary geyser
#

😐

quaint mantle
#

stop or kick

granite stirrup
#

:(

weary geyser
#

no :(

granite stirrup
#

i need subs

weary geyser
#

why tf are you sad

#

bro

quaint mantle
#

go ask somewhere else

weary geyser
#

don't post it here

quaint mantle
#

this isnt an advertisement server

shy wolf
#

ummmm
help

quaint mantle
#

?ask

undone axleBOT
#

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.

weary geyser
#

post shit in general smh @granite stirrup

shy wolf
#
23.06 14:55:39 [Server] INFO at net.inbar.main.Main.regstercmd(Main.java:33) ~[?:?]```
granite stirrup
quaint mantle
#

because its a help channel

weary geyser
#

WHAT DO YOU THINK?

shy wolf
#
        getCommand("hunger-lob").setExecutor(new hglob());
``` line33
granite stirrup
#

k

quiet ice
#

only a few people are allowed to have off-topic discussions on here

shy wolf
#

help meeeeeee

quiet ice
#

No, it's NNY, frostalf and a few others. But not you

quaint mantle
timid kestrel
#

Does anyone just have a class or whatever for simply Serializing / Deserializing ItemStacks to a database? This is beyond a joke

granite stirrup
granite stirrup
#

never gotten muted it never gotten deleted

weary geyser
quaint mantle
#

i dont care if you shitpost a little in here but large convos go in #general, especially when people are asking for help

#

^

commands:
    hunger-lob:
eternal oxide
shy wolf
#

ohhhhhhhhhhhhhhh

quaint mantle
#

ye

shy wolf
#

i am dumb

fickle helm
#

when a player is hit by an arrow or fireball, it triggers the EntityDamageByEntityEvent. It's the same if the player blocks it with a shield.
Anyone know how to tell from the event if the player blocked it?

eternal oxide
#

check the final damage?

fickle helm
#

ah let me check that

#

yup that works, thx

calm whale
timid kestrel
#

ItemStack[] Stock = BukkitSerialization.itemStackArrayFromBase64(myBase64StringItemStack);

eternal oxide
#

where are you storing these ItemStacks?

timid kestrel
eternal oxide
#

what database?

timid kestrel
eternal oxide
#

ok

#

show your error

timid kestrel
#

standby

#

Well, there's not really an error as such, I can't build the jar to get an error, and running a build with --stacktrace enabled doesn't spit out anything useful

eternal oxide
#

then wrap your call in a try/catch

timid kestrel
#

oh yea, duh xd

#

Interesting.. uh.. it doesn't fail when it runs..

quaint mantle
#

There is the spawner put egg event?

#

or something like this

calm whale
#

PlayerInteractEvent I guess

timid kestrel
#

@eternal oxideIt's all working fine lol ... thanks man! I never want to work with item serialisation again!

quaint mantle
#

hm

calm whale
#

check clickedBlock and currentItem

quaint mantle
#

i know, but there is a tag for eggs?

eternal night
#

spawneggs ?

quaint mantle
#

yes

#

ah, i'll use name.contains

eternal night
#

I think paper has one

quaint mantle
#

instead tag

#

What can happen with paper test build as a server ? Is this possible that my plugin which isnt working (incomphrehensibly), doesnt work because I'm on paper 1.17 ?

quaint mantle
#

paper is spigot fork

#

spigot plugins works on paper

chrome beacon
#

But what Aniby says is correct things should generally work

quaint mantle
quaint mantle
#

use this

#

master ?

#

master already for 1.17

#

master version

eternal night
#

they are forks of spigot 1.17

quaint mantle
eternal night
#

paper waited to update until spigot 1.17 released

quaint mantle
#

I guess my problem doesnt come from paper but rather from inner working of plugins then

quaint mantle
#

Now not enough plugins with 1.17 support

#

Hmm yea I coudnt do much things in this case

#

I'll just have to wait

#

anyway

#

thank you

calm whale
quaint mantle
chrome beacon
#

You should be able to salavge most of the vanilla one

calm whale
#

I looked up in this way too, but I have no clue how to filter the biomes πŸ€·β€β™‚οΈ

#

I assume I tried it in a wrong way

#
public class CustomChunkGenerator extends ChunkGenerator {


    @Override
    public ChunkData generateChunkData(World world, Random random, int chunkX, int chunkZ, BiomeGrid biome) {
        ChunkData chunk = createChunkData(world);

        for (int X = 0; X < 16; X++){
            for (int Z = 0; Z < 16; Z++) {


                for(int Y = 0; Y < 256; Y++){
                    if(getBlackList().contains(biome.getBiome(X, Y, Z))){
                        biome.setBiome(X, Y, Z, Biome.FOREST);
                    }
                }

            }
        }

        return chunk;
    }

    private ArrayList<Biome> getBlackList(){

        ArrayList<Biome> blackList = new ArrayList<>();

        blackList.add(Biome.OCEAN);
        blackList.add(Biome.COLD_OCEAN);
        blackList.add(Biome.DEEP_COLD_OCEAN);
        blackList.add(Biome.WARM_OCEAN);
        blackList.add(Biome.DEEP_WARM_OCEAN);
        blackList.add(Biome.LUKEWARM_OCEAN);
        blackList.add(Biome.DEEP_LUKEWARM_OCEAN);
        blackList.add(Biome.FROZEN_OCEAN);
        blackList.add(Biome.DEEP_FROZEN_OCEAN);

        return blackList;
    }
}
digital plinth
#

is it possible to check the light level of a location which a player is in

calm whale
#

get the block

digital plinth
#

okay thx

quaint mantle
#

replacing of block

#

and i should prevent it

#

how i can do it?

restive mango
#

nvm

woven epoch
#

anyone know why persistentdata on an itemstack wouldn't be persistent over a relog?

#

I'm on 1.16.5

foggy bough
#

I have this ```java
public void onDeath(EntityDeathEvent e) {

}``` how can I check if the player killed the entity?
woven epoch
#
@EventHandler
    public void getCoin1(EntityDeathEvent e) {
        Entity dead = e.getEntity();
        if (dead.getLastDamageCause() instanceof Player) {
           
        }
    }
#

something like that

#

then cast the damager to player

woven epoch
#

whoops

quaint mantle
#

thx :)

woven epoch
#

πŸ˜‰

quaint mantle
eternal night
#

show the code regarding PDC that fails

wary harness
#

what version of java was com.mysql.cj.jdbc.Driver added

#

java 11

#

or 12

quaint mantle
#

lower 1.8, i think

wary harness
#

because I have this problem

#

oading class com.mysql.jdbc.Driver'. This is deprecated. The new driver class is com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.

calm whale
#

it's written, update you class call

quaint mantle
#

google.com doesn't helps?

wary harness
#

this is my code

#

and I think it is depricated above java 11

calm whale
#

nop

wary harness
#

am I wrong

calm whale
#

it's the mysql connector

#

update you class call

wary harness
#

what do u mean

calm whale
#

use com.mysql.cj.jdbc.Driver instead of com.mysql.jdbc.Driver

#

it should fix it

wary harness
#

but it wont work for some people on older mc version

#

like 1.8

#

I remember com.mysql.cj.jdbc.Driver

calm whale
#

euh...really ?

#

strange

wary harness
calm whale
#

it should'nt be the cause

wary harness
#

so u thinks I should be good with just using com.mysql.cj.jdbc.Driver

calm whale
#

how do you import your connector ? maven ?

wary harness
#

for all version

wary harness
#

it is hikari api

#

added with maven

calm whale
#

what does this API ?

#

only JDBC connector ?

wary harness
#

no

#

multiple pools

calm whale
#

well keep using it

#

use com.mysql.cj.jdbc.Driver and everything should be alright

quaint mantle
#

Hello, does anyone have an idea of how to get a SKULL_ITEM with a custom data? For example the data being VALUE from a site such as minecraft-heads.com
This is the code I am trying to fit it into:

  @EventHandler
      public void onInteract(PlayerInteractEvent e) {
      Player player = e.getPlayer();
      if (player.getItemInHand().getType() == Material.SKULL_ITEM && (
        e.getAction() == Action.RIGHT_CLICK_AIR || e.getAction() == Action.RIGHT_CLICK_BLOCK))
        for (String world : getConfig().getStringList("worlds")) {
            if (player.getWorld().getName().equalsIgnoreCase(world))
                player.performCommand(getConfig().getString("backpack"));
        }
  }
quaint mantle
#

and etc.

#

see spigotmc forum

regal spruce
#

Okay so I installed buildtools but how would I import it to my gradle project?

quaint mantle
#

wdym? you did?

#

idk if you're asking about the actual buildtools jar or not, but buildtools is just for creating the server jars

wraith rapids
#

lmao

#

shockbyte is amazing

#

apparently, if you have world directories exceeding 5gb in size, they will send you a support ticket telling respond to them in 24 hours, or they will trim the world to 5gb

eternal oxide
#

ooh thast going to end well

wraith rapids
#

imagine getting your production server's world fucking deleted overnight because you didn't check your support ticket section every 12 hours like a good goy

compact haven
#

wtf?

#

a preloaded world can exceed that given enough size

wraith rapids
#

it doesn't even need to be preloaded

#

even without preloading my main server's map would likely be like 50gb

compact haven
#

my preloaded world with basically nothing on it is like 3gb

#

and theres nothing on it, its just grass and water

#

(worldpainter)

wraith rapids
#

with pregeneration its a bit over 100gb

compact haven
#

nah

wraith rapids
#

talking about my production server's main world

compact haven
#

the region files are greatly shrinked

wraith rapids
#

i pregenerated it at around 1.14

#

they've opened the same ticket about trimming the world 3 times in the last month

#

i might have a pregen plugin running on my test server or something

compact haven
#

ugh a server im working on

wraith rapids
#

i guess the node I'm on is running out of disk space

compact haven
#

the owner barely responds to dm

#

and I need the mysql root password

wraith rapids
#

my $2.5/month test server uses around 350gb of disk space on the node i'm on

regal spruce
compact haven
#

are u sure you're talking in the right sizes

wraith rapids
#

yes

#

used to be over 500gb but they keep trimming it

compact haven
#

350gb is larger than my entire vps's allocated storage

#

nah impossible

#

i call bs xd

wraith rapids
#

i have a lot of worlds

#

accumulated over many years

#

a fair bit of it is probably heap dumps as well

compact haven
#

also

#

what provider allows you 350gb of disk for 2.5$ a month

#

im spending 28 usd on a vps that gives me 240gb ;-;

wraith rapids
#

a provider that doesn't give a shit about its end users

#

and lets its nodes run out of resources causing its clients services to crash

#

in other words, shockbyte

quaint mantle
wraith rapids
#

they've been getting better about it over time

#

like, now they actually apply some sort of limits to their clients

#

before, you could allocate just about as much disk space as you wanted

eternal oxide
granite stirrup
chrome beacon
#

Well you could

granite stirrup
#

tbh i never used nms tho

chrome beacon
#

Importing NMS still helps with class names etc

granite stirrup
regal spruce
#
compileOnly 'org.spigotmc:spigot:1.16.5-R0.1-SNAPSHOT'

?

granite stirrup
#

arent most of the method names tho like a and b or is that just the obfuscation ?

granite stirrup
#

idk tho

restive mango
#

any idea how to make an entity intangible?

wraith rapids
#

not anymore

#

we have mojmap now

restive mango
#

wot

#

oh

wraith rapids
#

also what do you mean intangible

torn shuttle
#

that's a lot of fun, when using a vpn spigot will not load any images

wraith rapids
#

your question is intangible

restive mango
#

as in, will not collide with other blocks

#

or entities

#

blocks would be a good start tho

wraith rapids
#

for entities, you can set setCollidable or whatever it's called to false

#

however, both entities have to have it set to false

#

for blocks, you can't

#

i'm not sure if you can even with nms

restive mango
#

hm

granite stirrup
#

i hate that when spigot doesnt load cuz its doing the verifying thing idk the wayback machine popup shows XD

torn shuttle
#

you can not using nms if you're willing to do fun tricks

restive mango
#

is there some way i can put an entity on a Vex?

torn shuttle
#

set ai to false then teleport the entity around

wraith rapids
#

yes, set it as a passenger

restive mango
#

make the vex invis but have the other entity ride it

torn shuttle
#

then you can have it wherever you wnat

wraith rapids
#

you could also use protocol fucknuggetry to disguise the vex as something else

torn shuttle
#

true

restive mango
#

hrm

#

the only other issue is

#

i want to do it with fallingblocks

#

i'll take a video and show you guys what im currently doing

torn shuttle
#

falling blocks are very tangible

wraith rapids
#

the issue with teleporting a noai entity around is that it won't receive the clientside physics simulation that regular entities get

restive mango
#

that's the prob bob

granite stirrup
#

falling blocks doesnt even have collision?

wraith rapids
#

which can make it look choppy if you have a little more latency than usual

torn shuttle
#

are you implying that mc doesn't look choppy with normal connections the second physics are involved?

#

it looks choppy on singleplayer...

wraith rapids
#

yes, imagine what it looks like when it gets even worse

restive mango
#

actually

#

you'll be impressed by this

torn shuttle
#

Minecraft:
Friendship ended with Physics
Jank is my new best friend

restive mango
#

qait

#

i can tupload files

#

god damnit

#

where do i host

#

AHGH

#

also

#

ignore the zombie

#

he's my vex test

wraith rapids
#

upload it to a different discord and link it here

restive mango
#

and ignore the sick tunes

#

see how they kinda

#

gut slurrped out

#

of the hole

#

at some points

#

that's because they get caught on blocks

#

i dont want that

wraith rapids
#

very interesting

#

how are you doing it currently

restive mango
#

just grabbing all blocks around a point, replacing them with falling block entities, and sending them to their relative position for where my cursor originally selected

#

(so i change angular coordinates with respect to myself)

wraith rapids
#

i mean how are you doing the falling block entities

#

are they server-side

restive mango
#

yup

wraith rapids
#

how are you 'sending' them to the relative position

restive mango
#

just giving them a velocity to it that's proportional to the distance between the two points

wraith rapids
#

teleport them instead

#

falling blocks afaik don't have clientside simulation for the physics that pushes them out of occupied blocks

#

so teleporting them via either teleport or relative entity move packets will probably have the desired effect

odd sentinel
#

how difficult would it be to modify world gen to place a block randomly underground, I've heard some horror stories dealing with terrain gen with bukkit api

wraith rapids
#

it will also make the thing snappier, making it not lag as far behind your moving cursor

#

the client will still interpolate the before and after positions of the teleport/relative move, making it look smooth

#

you can start with the simple entity::teleport api method and if that doesn't have the desired effect, you can try sending relative move packets via f.e protocollib

restive mango
#

actually

#

for some reason

#

that works super shittily

#

i dunno why

wraith rapids
#

define shittily

restive mango
#

like the teleport takes 1+ seconds to happen

#

instead of being every tick

#

or maybe it is teleporting a bunch and the client isn't showing it

wraith rapids
#

mm, can you take a video and show relevant code

#

there may be something you overlooked

restive mango
#
                for (int i = 0; i<blocklistsize; i++) {
                    metatarget = currenttarget.clone();
                    metatarget.add(xoffset.get(i), yoffset.get(i), zoffset.get(i));


                   tovector = (metatarget.toVector().subtract((blocklist.get(i).getLocation().toVector())));
                   //blocklist.get(i).setVelocity(tovector.multiply(0.25-(0.08*(1/((0.07*tovector.length())+1)))));
                   //blocklist.get(i).teleport(blocklist.get(i).getLocation().add(blocklist.get(i).getVelocity()));
                    blocklist.get(i).teleport(blocklist.get(i).getLocation().add(tovector.multiply(0.25-(0.08*(1/((0.07*tovector.length())+1))))));
                }```
wraith rapids
#

afaik it should work fine as people have done all sorts of moving structures by doing that with falling blocks

restive mango
#

Every bucketrunnable tick that happens

#

the current target is just where you are looking at

wraith rapids
#

that looks next to illegible

restive mango
#

the offsets are just the relative x/y/z offsets from the center for the blocks

wraith rapids
#

metatarget.add(xoffset.get(i), yoffset.get(i), zoffset.get(i));
why is anything past this point necessary

#

other than a teleport call using the resulting location/vector

restive mango
#

hrm

#

let's try it

delicate fractal
#

Can someone make a plugin for me tbst makes easter eggs so that u right click on the egg that u get rhe egg counter up till u have all and then if u have all that u get a price. Can someone script this for me?

wraith rapids
#

assuming currenttarget is the center of where you're looking at, currenttarget + offset should be the absolute target location of the falling block

delicate fractal
#

That isnt hard for a scripter right?

wraith rapids
#

so it should be fine to just teleport it right there

#

we're not scripters

restive mango
#

the thing is

#

i don't want it to instantly snap to that position

#

i want there to be a tiny bit of lag, because that makes it have more oomph

chrome beacon
#

?services

undone axleBOT
restive mango
#

because it's cooler that way

#

πŸ˜‰

wraith rapids
#

that should be handled by the client, maybe

delicate fractal
#

Ye no but i want it free

wraith rapids
#

the client does some interpolation aka lag for teleport calls as well

restive mango
#

lets see how it looks

wraith rapids
#

but depending on what you want it might not be enough

delicate fractal
# chrome beacon ^^

There everybody is probably already in use or i have to pay 20$ for thag dumb simple plugin

chrome beacon
#

This is not the right place

wraith rapids
#

if you want to increase the lag, you will want to make the center location itself lag behind'

#

not the falling blocks themselves

delicate fractal
wraith rapids
#

as calculating the lag for each block individually may result in desynchronizing the shape

#

and is a redundant computation

restive mango
#

hmm

#

that's actually a neat idea...

#

i like it

wraith rapids
#

you can for example take the current location, add the target location, and divide by 2

#

to get the middle

#

and teleport it to the middle each tick

#

progressively moving closer to the target and slowing down

#

however, that will result in the blocks not actually 'lagging' behind, technically

#

they will instead find the fastest route to where you're looking at currently

restive mango
#

i'll crack at that nope

#

wow

wraith rapids
#

if you want them to actually lag behind, you need to store and rotate a list of f.e the last 20 target locations

restive mango
#

this is so bad

#

i'm pretty sure that interpolation doesn't work unless you have a velocity set

wraith rapids
#

it should

#

can you take a video

restive mango
#

shore

#

i dont think fallingblocks have the same interpolation as regular entities

wraith rapids
#

all entities do

#

like I mentioned before, people have made like windmills and trains and shit by teleporting falling blocks around

#

so it sould be possible to do this too

restive mango
wraith rapids
#

that doesn't seem right

#

well, try relative move packets next I suppose

hybrid spoke
#

whats the issue?

#

that it lags?

wraith rapids
#

yes, assuming he is doing the code properly, the plugin should be teleporting the falling blocks each tick

#

however apparently they only move only very intermittently

hybrid spoke
#

so he doesn't have enough locations to move the blocks fluent

wraith rapids
#

assuming it does fire every tick, he should

hybrid spoke
#

try to get a line for each block between the old and the new cursor location and teleport the blocks along the list

wraith rapids
#

easy way to find out, though; sysout the target coordinate with each iteration

#

very intermittently as in every 1.5 seconds

#

rather than 20 times a second

#

see the linked video

odd sentinel
#

how can I register a block populator for a world without making my own custom chunk gen? world.getPopulators().add won't work because the world doesn't exist yet

#

a decade ago someone suggested WorldInitEvent, maybe that still works

chrome beacon
#

You can always make your plugin load post world

regal spruce
#
<dependency>
            <groupId>org.spigotmc</groupId>
            <artifactId>spigot</artifactId>
            <version>1.16.5-R0.1-SNAPSHOT</version>
        </dependency>
```Ok so I added this dependency and it works now
#

for maven idk about gradle

muted idol
#

quick question. how many lines can you fit in an actionbar?

wraith rapids
#

one, I would think

chrome beacon
chrome beacon
regal spruce
chrome beacon
#

Did you forget mavenLocal() as a repository

granite stirrup
#

who put reactions on all the messages XD

#

whos @prisma badge

regal spruce
chrome beacon
regal spruce
#
import org.apache.tools.ant.filters.ReplaceTokens

plugins {
    id 'java'
}

group = 'me.elexation'
version = '1.0'

sourceCompatibility = '1.8'
targetCompatibility = '1.8'

repositories {
    mavenCentral()
    mavenLocal()
    maven {
        name = 'spigotmc-repo'
        url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
    }
    maven {
        name = 'sonatype'
        url = 'https://oss.sonatype.org/content/groups/public/'
    }
}

dependencies {
    compileOnly 'org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT'
    compileOnly 'org.spigotmc:spigot:1.16.5-R0.1-SNAPSHOT'
}

processResources {
    from(sourceSets.main.resources.srcDirs) {
        filter ReplaceTokens, tokens: [version: version]
    }
}
wraith rapids
#

🐜

prisma badge
#

how do you send a blank message

wraith rapids
#

try sending some nonstandard whitespaces I suppose

#

or some control characters

prisma badge
#

heyy bros

#

so i stubbed my toe

#

how do i unstub it

#

is there a way

#

like

#

shove a drumstick up my ass

granite stirrup
prisma badge
granite stirrup
#

or just nothing?

#

i swear i sent nothing before using ""

prisma badge
#

""

#

SEE

#

it doesnt work

wraith rapids
#

retard

#

he didn't literally mean ""

prisma badge
#

r/woooosh hahahaha

#

;

#

L

#

L

#

ez

wraith rapids
#

where are the pseudo mods when you need them

granite stirrup
restive mango
#

@wraith rapids sorry man, dunno honestly

#

it sort of works with vexes using blocks as ridable passengers, tho

wraith rapids
#

that's a lot of entities though

restive mango
#

yeah that's what annoys me

#

it adds inefficiency

wraith rapids
#

did you try the relative move packets

granite stirrup
#

wtf XD

restive mango
#

i don't know how those work

torn oyster
wraith rapids
#

very simple

restive mango
#

can you privately message me some code snippets for them?

wraith rapids
#

hook up to protocollib

restive mango
#

i have to mow the lawn

wraith rapids
#

then create a relative move packet

#

with the values you need

#

and then you send it

granite stirrup
#

​

restive mango
#

could you link me that

#

i've never used it before

granite stirrup
#

​

wraith rapids
#

​uh

granite stirrup
torn oyster
#

​

#

​

wraith rapids
#

i don't have any browsers running rn

granite stirrup
#

found it on there

#

XD

restive mango
#

or just send me any example

#

ah darn

#

another time then

wraith rapids
#

google "protocollib spigot" and you'll find a bunch of threads about people asking help with it

restive mango
#

i really gotta go tho

wraith rapids
#

​

restive mango
#

see u soon

wraith rapids
#

myeah, nonstandard whitespace works

granite stirrup
#

some whitespaces dont work

#

zero widthspace works tho

#

​

#

πŸ‘¨πŸ»β€πŸš€ <-- what is this XD

wraith rapids
#

​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​

#

hmm

chrome beacon
#

​

#

...

wraith rapids
#

a message consisting of 2000 zero width whitespaces

granite stirrup
#

​​​​​​​​​​​​​​​​​​​​​ ​​​​​​​​

#

you cant even paste more than one of these

minor garnet
#

Its possible make a entity visible only for certain players ?

granite stirrup
#

​

wraith rapids
#

yes, but it involves protocol fucknuggetry

#

and yes you can paste more than one

#

they are just zero width so it doesn't look like it's doing anything

granite stirrup
#

oh

#

@wraith rapids what is the zero widthspace used for?

wraith rapids
#

zero width whitespaces

granite stirrup
wraith rapids
#

probably for encoding child porn in otherwise normal messages, idk

chrome beacon
#

Bruh

sage swift
#

​

wraith rapids
#

if a method exists that hides something, it will be used to hide child porn

#

for example, the old golden winrar + image merger trick

granite stirrup
#

i think the zero width whitespace is the only whitespace u can use to make a message look like it has no content in discord XD

wraith rapids
#

it used to ship a lot of CP on 4ch back in ye olden days

sage swift
#

"i used to"

granite stirrup
#

you cant even select the content of the message in discord when it has a zero width whitespace XD without using ctrl a

sage swift
#

triple click?

granite stirrup
#

tried

wraith rapids
#

quintuple click

granite stirrup
#

didnt work

eternal oxide
#

​

sage swift
#
  dev_mode:
    enable: 'false'
    dev_name: ElgarL``` elgar what are you doing in my config
eternal oxide
#

That would be a Towny config

sage swift
#

lul

granite stirrup
eternal oxide
#

if enabled it spams the crap out of the named dev with every debug message Towny produces.

sage swift
#

what if there are multiple devs 😭

granite stirrup
#

w h y

sage swift
#

do you not have expandability in mind smh

granite stirrup
#
  dev_name: -|
    - ElgarL
    - gecko10000
wraith rapids
#

zero bus factor resistance

granite stirrup
#

lol

sage swift
#

that would not work

#

absolutely not idkidk

eternal oxide
#

the code only supports a single dev

granite stirrup
#

lol

#

ik

wraith rapids
#

only a single dev supports the code

sage swift
#

le single-string list

granite stirrup
#

it was a joke

sage swift
#
# Used when two players have no special relationship.```
opal juniper
#

Can I send data between servers

granite stirrup
#

yaml only has single line comments :(

opal juniper
#

Not on bungee

chrome beacon
#

Yes you can

granite stirrup
chrome beacon
#

Websockets or packets/requests

granite stirrup
#

lol

opal juniper
#

Idk - the way I kinda want it to work is one server just goes

β€œHey yall - got some data for you” and hucks the data to every server who is listening

granite stirrup
#

should i learn the Socket class?

granite stirrup
chrome beacon
opal juniper
#

How fast though

granite stirrup
#

its probs depends on server location lol

chrome beacon
#

^

opal juniper
#

Suppose they were local host to each other

#

Essentially 0ms

granite stirrup
#

if its close it would be pretty fast

chrome beacon
#

It's fast

granite stirrup
opal juniper
#

Ok , how scalable are websockets

granite stirrup
#

well you probs have like a really small delay like really small its not gonna be instant to send to localhost but its almost as instant

chrome beacon
opal juniper
#

Ok

#

I’ll do some research then

#

Thanks

granite stirrup
#

isnt it the ServerSocket class

chrome beacon
#

It can be a bit tricky to scale but there are guides

opal juniper
#

Isn’t there like a server with consumers

#

Cause ideally it could be any server can send data to all others

opal juniper
#

I’ll have a look at it another time

#

Thanks tho

wraith rapids
#

there's a shit tier socket tutorial resource on spigot

#

but you probably want to avoid that, as it's trash

#

there does exist a higher quality one somewhere else I'm sure, you just need to search for it

#

the principle is simple; you open a connection and throw some data through it, or you make yourself available to be connected to, and wait for data to arrive

granite stirrup
#

?

quaint mantle
#

if (Player.getInventory().getItemInMainHand().equals(itemManager.effectClearer)) { error Non-static method 'getInventory()' cannot be referenced from a static context

granite stirrup
#

what is Player?

#

if your in a command ((Player)sender).getInventory().getItemInMainHand().equals(itemManager.effectClearer) but make sure you check if sender is a instanceof Player

wraith rapids
#

Player is a class

#

getInventory is non-static: it is an instance method; you call it on an instance, an object, not a class

#

only static methods can be called on a class directly

granite stirrup
wraith rapids
#

i'm not talking to you

granite stirrup
#

oh

quaint mantle
#

so

wraith rapids
#

learn java, basically

undone axleBOT
granite stirrup
#

:)

granite stirrup
#

lol

pliant loom
#

anyone here ever used citizen's api?

granite stirrup
#

nope

#
API

Citizens has an extensive API that can be used for making your plugins work with NPCs or even for adding a brand new character that can be attached to an NPC. Make sure you always are using an up-to-date build of the CitizensAPI to ensure that your plugin works with the latest release of Citizens.

pliant loom
#

yeah ive read through all of that, im still having issues, but i guess ill just try and figure it out xD

#

ah found it

#

apparently NPCClickEvent doesn't work, but NPCRightClickEvent does...? idk lmao

#

oh

#

"The NPCClickEvent only fires if the click type is both"

woeful crescent
#

What is the default potion material?

torn oyster
#

ayo

#

pink name fam

#

where you at

woeful crescent
#

What is the default potion type, I mean

#

I could get pink name rn

#

actually nvm

#

I'm using my boosts from that free nitro I got on something else

torn oyster
#

i got free nitro from that epic games thing lol

woeful crescent
#

yeah same

granite stirrup
#

i have like 3 codes which i gave away one to someone idk who tho XD

woeful crescent
#

Can someone tell me what the default potion is

#

Like if you don't set the PotionMeta

granite stirrup
#

it doesnt exist in 1.13+ i think

woeful crescent
#

well

#

I'm not using that

granite stirrup
woeful crescent
#

What if I'm using under that version

woeful crescent
#

splash?

calm oriole
#

yeah, it's the same for all potion kinds

granite stirrup
calm oriole
calm oriole
#

it doesn't put out campfires

woeful crescent
#

What about in earlier versions?

#

Eh, it's probably fine

granite stirrup
#

probs a water bottle

woeful crescent
#

I'm using it for a GUI icon anyways so it doesn't matter too much

granite stirrup
#

yum pink potion

calm oriole
woeful crescent
#

Well... the system I'm using takes a Material so...

#

I could change that but I don't feel like doing that rn

calm oriole
#

ah

granite stirrup
calm oriole
#

yeah an ItemStack is much, much better for choosing icons. You want to be able to set the name and whatever else of it.

granite stirrup
#

;-;

calm oriole
#

and lore

granite stirrup
#

wait doesnt a Material have a itemstack?

#

or no

calm oriole
#

Material is an enum

granite stirrup
#

f

granite stirrup
#

cuz i didnt know much about them

calm oriole
#

could you add a method that sets the ItemMeta of the button?

woeful crescent
#

Trust me, it's fine

calm oriole
#

ok

calm whale
woeful crescent
#

It's a preset to set the name, icon type (Material), description, and cooldown of an ability item

#

well

#

More like enum parameters

#

yeah

#

Anways, is how do I generate a random double from -1 to 1?

#

like, it could be negative or positive

#

I could do ThreadLocalRandom.current().nextBoolean() ? Math.random() : -Math.random() but that's pretty sloppy

calm oriole
calm whale
#

I really have no clue how to overwrite the biome for a chunk

calm oriole
#

yeah

#

I don't think you can

#

editing the world file is your best bet, probably, but I don't have any advice there.

calm whale
#

😦 sad thnx anyway

#

It seems possible before 1.16

#

But the methods changed since 1.16

#

with Java 16 I cannot use the second link's method, I can to use java 11 max because the Field isn't accessible anymore after

#

the first link show how to list Biomes and BiomeBase, I search a way to edit the list but I only found a recent tuto for add new biomes, not remove an old one 😦

calm oriole
#

You could straight up cancel the chunk load event, but I don't think that's what you want... lol

calm whale
#

yup indeed, It will generate a void chunk I think xD

north ridge
calm whale
calm whale
calm whale
north ridge
#

You dont need to remove the final modifier if you use setAccessible

calm oriole
rigid otter
#

Hello! How to visible entity to a specific player?

silver wadi
#

whats the method to set an effect to a plaer?

granite stirrup
#

only way

#

packets and nms

rigid otter
#

Ahh

silver wadi
#

is it addPotionEffect?

granite stirrup
#

and also show a player to a player

#

but thats it

#

no entity showing and hiding :(

rigid otter
#

Sad

granite stirrup
#

i think u could suggest it or pr it

#

idk how tho

calm oriole
rigid otter
#

Lmao

calm oriole
#

you need to create a PotionEffect object

#

and then apply it to them

rigid otter
granite stirrup
#

yeah i think we need it

sullen dome
#

ideas what could be the reason for this thing? i mean... it's not really a problem, it doesn't do anything but it's weird tho. some method names will lead to never used warnings

granite stirrup
#

@rigid otter but to hide a entity from a player you have to send a packet to that player to despawn the entity

rigid otter
granite stirrup
#

and only to that player

calm oriole
granite stirrup
#

if you want to actually hide a entity from a player you gotta use packets

#

you can kinda fake it with potion effects i guess

rigid otter
calm oriole
#

only for them

sullen dome
#

can't you just give him the potion effect invisibility and hide the particles?

granite stirrup
#

what about just 1 player

sullen dome
#

isn't there Entity#setVisible(Entity) or smt?

silver wadi
granite stirrup
calm whale
#

I DID IT

sullen dome
#

well

#

then.... enjoy nms lol

rigid otter
rigid otter
granite stirrup
#

if you want the packet its PacketPlayOutEntityDestroy

calm whale
#

weel thnx to lulu2002 and his amazing plugin BiomeReplacer

granite stirrup
#

and also for showing its PacketPlayOutSpawnEntityLiving

#

but you need nms

#

to use these

rigid otter
#

Yes yes, thank you!

granite stirrup
#

or protocollib

#

if your not using 1.17

rigid otter
#

I'm on 1.16.5

granite stirrup
#

since i tested protocollib on 1.17 it broke completely

#

@rigid otter use protocollib it makes packets and stuff easy

rigid otter
granite stirrup
rigid otter
#

Ohh yeah

granite stirrup
#

yeah i think it listens for packets and does packet stuff and other protocol related stuff

rigid otter
#

Yeeeeaah thank you, I'll try that!

silver wadi
#
 PotionEffect swiftness = new PotionEffect(PotionEffectType.SPEED, 10000, 10);

does this look good?

granite stirrup
#

or no

#

i dont know cuz i never used it

silver wadi
#

going off this

granite stirrup
#

ah oK

calm whale
granite stirrup
#

what

floral flare
#

Is there any method to know how long a player has been online on the server?

granite stirrup
#

i used it before and it got the time wrong

#

it said in 2060

#

XD

calm whale
floral flare
granite stirrup
#

yeah someone left and then i did that on there and it said 2060

#

last joined

calm whale
granite stirrup
compact haven
#

is something like this possible in 1.8: shoot a player into the sky 50 blocks, then slow fall

calm whale
compact haven
#

that'll work I think

#

perhaps a velocity below 1?

granite stirrup
#

i think you would do java Vector vect = new Vector(player.getLocation().getDirection().getX(), 50, player.getLocation().getDirection().getZ()); vect = vect.normalize(); player.setVelocity(vect); cuz thats what i saw

#

unless its something different

#

grepper said that lol

calm whale
granite stirrup
compact haven
#

that'll send them 50 blocks up yes

#

but after that I need it to slow fall

granite stirrup
#

give potion effect

#

slow falling

compact haven
#

not in legacy

granite stirrup
#

f

#

uh

#

are u really gonna have 1.8 users

#

its in 1.9+

#

slow falling

#

atleast i think

#

actually wait

#

i think that was something else

#

yeah slow falling came in 1.13+ oof

compact haven
#

the entire server is 1.8, not in my control though sadly

granite stirrup
#

teleport

#

is all i can think off

#

use math and teleport

#

not gonna be perfect

#

but it will have to do

floral flare
granite stirrup
#

if you want it as string

floral flare
#

Yes, i know

#

But this is not the case.

granite stirrup
#

?

light terrace
#

Im making a command, so if u execute the command it will give u a command block

@Override
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        if (sender instanceof Player){
            if (command.getName().equals("cmdb")){
                Player p = (Player) sender;
                p.
            }
        }

How to fill the p.?

granite stirrup
light terrace
#

just for a variable ...

hexed hatch
#

p.getInventory().add() I believe

light terrace
#

what is getInventory().add() for?

hexed hatch
#

Aren't you trying to give someone a command block..?

light terrace
#

yes

#

like /give @s command_block

granite stirrup
#

lol

hexed hatch
#

That's how you do it