#help-development

1 messages ยท Page 203 of 1

tardy delta
#

im really wondering what girl talks about cpu cycles ๐Ÿค”

tardy delta
#

imaginary gf ๐Ÿฅบ

twin venture
#

like this correct?

tardy delta
#

explains why those non-nerd people in my class have a gf

#

is that Chunk::getX?

twin venture
tardy delta
#

what kind of x is that supposed to return huh

twin venture
#

the x , in the chunk xd?

tardy delta
#

im confused, is that location variable nms or smth?

twin venture
#

no no normal

#

no nms used

tardy delta
#

i mean chunks cover a 16 * 16 * whatever heigth area so what x does it return lol

echo basalt
#

Shift to the left to increase the size

#

Shift to the right to lower it

tardy delta
#

๐Ÿ’€

worldly ingot
#

It returns the chunk coordinate

#

Not the world coordinate

twin venture
#

i see

worldly ingot
#

But again, getChunk() will load that chunk, so if you can avoid doing that you probably should

tardy delta
#

ah the worldX >> 4 coordinate?

worldly ingot
#

If you want a chunk coordinate, get the world coordinate and shift it right by 4

#

Yes

tardy delta
#

ah that was pretty confusing

twin venture
#

the problem is when i leave the server , the armorstand [lootbox] stop rotating & stop working like it should

#

thats what iam trying to fix right now ..

worldly ingot
twin venture
#

i dont want to remove it when i leave , because it will remove it for everyone else

tardy delta
orchid portal
#

Hello! Is there a way to change the text here?

tardy delta
#

theres some event for that iirc

twin venture
#

that's what i mean

#

i log out / log in again , and it break ..

sacred mountain
twin venture
tardy delta
#

stash weird, why having a player view and a dedicated player list

eternal night
#

what

tardy delta
#

oh they have a playerlist and a view of it ig

eternal night
#

that player list is the nms one

#

the view is wrapped around it

crimson vault
#

The icon is not displayed, do you know why? :p

cobalt thorn
raw prairie
#

@eternal oxide

#

So what should I do to get rid of the GZIP error

eternal oxide
#

You need to change your pom so you are not filtering the structure file

raw prairie
quaint mantle
eternal oxide
#
        <resources>
            <!-- Include all resources -->
            <resource>
                <directory>resources</directory>
                <filtering>true</filtering>
                <includes>
                    <include>*.yml</include>
                </includes>
            </resource>
            
            <resource>
                <directory>resources</directory>
                <filtering>false</filtering>
                <includes>
                    <include>*.nbt</include>
                </includes>
            </resource>
        </resources>```Something like
raw prairie
#

yea

#

thats it

#

also dependacies

cobalt thorn
quaint mantle
eternal oxide
#

modify the resources section as I showed and it will fix your GZIP error

quaint mantle
#

I think ive seen u around here zerotwo, i am pretty sure u helped me

#

i could be wrong though

cobalt thorn
quaint mantle
#

i dunno

#

wait

cobalt thorn
#

other than spigot

quaint mantle
#

u in the minehut discord?

quaint mantle
#

if so then thats where ive probably seen u in

raw prairie
#

@eternal oxide this is what I have rn

#
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.8.1</version>
                <configuration>
                    <source>${java.version}</source>
                    <target>${java.version}</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>3.2.4</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <configuration>
                            <createDependencyReducedPom>false</createDependencyReducedPom>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
            </resource>
        </resources>
    </build>```
eternal oxide
#

use paste

#

?paste

undone axleBOT
cobalt thorn
quaint mantle
#

anyway, if u need help im always happy to help

eternal oxide
#

looks fine, all you need do is modify the resources section as I showed. One resource which has filtering true that only does .yml files and one with it false for everything else

raw prairie
#

?paste

undone axleBOT
raw prairie
#

@eternal oxide

#

tjis is what I have now

eternal oxide
#

change the <directory> to match whatever you use <directory>src/main/resources</directory>

#

in both

#

then you shoudl be good to go

raw prairie
quasi patrol
#

There is no setRenameText for anvil guis?

quaint mantle
quasi patrol
#

Am I gonna have to use NMS?

quaint mantle
#

u would have to manually set it

raw prairie
#

@eternal oxide

#

nothing is generating

#

no errors either

eternal oxide
#

add a debug so you know when it's supposed to paste in a new chunk

#

if you get teh message but no paste then your structure is empty

eternal oxide
#

add lots of debug so you know how far your code gets

#

like, start of event, inside runnable, before and after paste

raw prairie
#

k

high trail
#

hey, is 1.19.2 recommended to use?

quaint mantle
#

latest version of mc is always recommended

#

but u dont have to use it

high trail
#

kk ty

quaint mantle
#

np

quasi patrol
raw prairie
#

@eternal oxide

#

its only printing the chunkload event

eternal oxide
#

so no new chunks?

raw prairie
#
    public void BackroomsGenLoad (ChunkLoadEvent e){
        System.out.println("Hi, code works1");
        if(e.isNewChunk()){
            System.out.println("Hi, code works2");
            Bukkit.getScheduler().runTask(plugin, () -> {
                    Location loc = new Location(e.getWorld(), e.getChunk().getX() * 16, 40, e.getChunk().getZ() * 16);
                    backroom.place(loc, false, StructureRotation.NONE, Mirror.NONE, 0, 1, new Random());
                    System.out.println("Hi, code works3");
            });
        }
    }```
#

oh wat

#

wait

#

wait

#

@eternal oxide

#

its now spamming all 3

#

debugs

#

then it crased

#

crashed

eternal oxide
#

is anythign being paste in the new chunks?

eternal oxide
#

it sounds like you may have had an already generated spawn area

#

so you only saw new chunks as you moved

eternal oxide
#

nothign will paste in already generated chunks

raw prairie
eternal oxide
#

your debug says the code all ran fine, so it has to be your structure that is empty

raw prairie
#

@eternal oxide

eternal oxide
#

The code seems fine as your debugs ran, the only thing it can be is an empty structure

eternal oxide
#

remake it and be certain its from the correct location

#

thats just the generateStructure method

raw prairie
eternal oxide
#

using WE paste the schematic in teh correct location and call generateStructure

raw prairie
#

but

#

like

#

whats the function I should call in the onenable

brisk estuary
#

Hey, does anybody know if I can set a placeholder for something that isn't a Player?

eternal oxide
#

you don;t call it in onEnable

brisk estuary
#

I have Clan objects and I want to set placeholders for the clans, not for the players

raw prairie
#
    public Structure generateStructure(String name) {
        World world = Bukkit.getWorld("Backrooms");
        NamespacedKey key = new NamespacedKey(this, name);
        Location loc = new Location(world, 0, 7, 0);
        Structure newStructure =   Bukkit.getStructureManager().createStructure();
        newStructure.fill(loc, new BlockVector(16,7,16), false);
        Bukkit.getStructureManager().registerStructure(key, newStructure);
        Bukkit.getStructureManager().saveStructure(key);
        return newStructure;
    }```
#

@eternal oxide how should I call on the generateStructure

eternal oxide
#

I'm busy cooking dinner at the moment

#

You call that to save a Structure from teh world

#

yours is wrong

#

you are saving from the world "Backrooms".

raw prairie
#
        generateStructure("Backrooms.nbt");```
#

?

eternal oxide
#

unless you already have a schematic paste into your Backrooms world at 0,7,0 you will be saving an empty structure

raw prairie
#

but would this suffice?

eternal oxide
#

generateStructure("backrooms");

raw prairie
#

k

#

@eternal oxide

#

the top is exactly at 0, 0, 0

eternal oxide
#

paste it at 0,7,0

#

You did this before

quaint mantle
#

Is there a way to increase structure placing performance without worldedit?

opal juniper
#

faster computer

quaint mantle
#

That doesn't help weird_cat

quaint mantle
#

And how would i do that? Could i get the blocks from a structure and place them one by one using workloads?

dire salmon
#

how do i spawn a dust particle with custom color?

tardy delta
#

Particle.DustOptions?

dire salmon
#

oh ok didnt know it was a thing

quaint mantle
#

Javadocs are pretty useful

#

Yk cat

raw prairie
#

@eternal oxide

frail gale
#

how can I make a Recursive GUI?

naive bolt
#

Why isn't blockData.getMaterial() != location.getBlock().getBlockData().getMaterial() getting triggered

tardy delta
#

a what

frail gale
frail gale
naive bolt
#

U mean pages? pagination?

tardy delta
#

give it pages

raw prairie
#

@eternal oxide

#

?paste

undone axleBOT
raw prairie
naive bolt
#

doing System.out.println(blockData.getMaterial() + " : "+ location.getBlock().getType()); gets me GRASS_BLOCK : AIR

#

which is strange

tardy delta
#

in what context

naive bolt
#

comparing my block to the block thats in the location i figured it out

frail gale
# tardy delta give it pages

not actually that I mean for example I wanna be able to browse my plugin directory in a GUI and edit it contents via GUI

#

but I'll need some way to make a GUI which is gonna get all folders in one folder and when you click some folder it will open another folder/GUI which will be set with the files and folders

#

it's hard to explain I can try to give an example with a Video if there's some way

hazy parrot
#

Google about lazy node loading, and somehow impl it with inventory

#

Like you can list files/dirs of dir quite easily

#

Java api provides that

craggy wigeon
#

can someone help me

frail gale
craggy wigeon
#

help pls

#

i am in 1.19.2

frail gale
craggy wigeon
#

oh ok

frail gale
#

also I don't think this is the right place to ask these questions

barren peak
#

Anyone know what the event is when someone punches/explodes an end crystal?

frail gale
barren peak
#

ima test it

#

or would it be PlayerInteractAtEntityEvent

frail gale
barren peak
#

PlayerInteractEvent works, but how would I get the damage dealt? (EntityDamageByEntityEvent doesn't work). I want to cancel the crystal exploding but know how much damage is dealt to the crystal

#

and yes you can crit end crystals

frail gale
naive bolt
#

What's the equivelant of Hashmap but for multiple values under same key?

#

So UUID is key and i can keep a List<> and a String under it

tardy delta
#

Multimap

languid flare
#
    public void execute(CommandSender sender, String[] args) {
        ProxiedPlayer player = ProxyServer.getInstance().getPlayer(args[0]);
        ProxiedPlayer p =(ProxiedPlayer) sender;
        if(args.length >=3) {
            
            sender.sendMessage(new TextComponent(ChatColor.RED + "Use /group <create> <rank>"));
            sender.sendMessage(new TextComponent(ChatColor.RED + "Use /group <delete> <rank>"));
        }else {
            if(args[0].equalsIgnoreCase("create")) {
                String rank = Joiner.on(" ").join(args);
                if(args[1].equalsIgnoreCase(rank)) {
                    //CREATE NEW GROUP IN CONFIG.YML BUNGEECORD
                }
            }
            if(args[0].equalsIgnoreCase("delete")) {
                
            }
        }
    }```
#

How can i create new group?

mighty pier
#

what the fuck is that cod

#

e

#

why are you making a bungeecord plugin

#

while not knowing

#

sql mongo or any other database

quaint mantle
#

kek

mighty pier
lusty orbit
#

anyone know how to cancel wolves from eating the food in your hand

mighty pier
#

probably the PlayerInteractEvent

languid flare
#

Sorry, I'm still learning

mighty pier
#

start off with a basic plugin

#

not bungeecord

quaint mantle
#

^

grim ice
#

man

#

Can anybody help me through obfuscating forge mods?

#

If youre gonna throw a tantrum then dont, I know what youre gonna say

#

if youre not gonna give advice, then please dont talk

hard socket
#

how can I make my npc walk around randomly?

#

I have the npc

wet breach
grim ice
#

Welp

#

cant do much about it

#

im not expecting anything tbh

wet breach
#

Well still rude nonetheless. Have you gone over to forge discord to ask?

#

from what I know from doing forge things a while long back was that you didn't deobfuscate anything

#

you just worked with the obfuscated code

hard socket
#

why this method isnt working?

dire salmon
#

double x = Math.cos(radians) * radius;
double y = 1
double z = Math.sin(radians) * radius;

#

is this right for making a circle?

hard socket
#

no moving an npc

frail gale
#

but the obfuscation is only on Minecraft stuff

sterile token
crimson vault
#

How can I use a custom texture pack on the server where you can also put images in the scoreboard like in Landania net?

sterile token
hard socket
#

?

sterile token
#

Why are u pinging me?

#

i have seen you

hard socket
#

I pinged you?

fresh timber
#

how do I make command argument options

sterile token
fresh timber
#

how do I use that

sterile token
#

?jd-s

undone axleBOT
sterile token
#

Yes, how do i do that?

hard socket
sterile token
#

ok, because mine auto completer, just recommend the arguments

tardy delta
#

StringUtil::copyPartialMatches

sterile token
#

But if type an argument first 2 words, its replace it by the first argument from the list

undone axleBOT
sterile token
#

In ref to?

#

oh ok

#

I thought you were going to help me

#

Loving lmabda!!

#

it isnt lambda tho

#

I mean i love one liners

#

yikes

sterile token
#

Lmao i have just told 2 guys to be patient ๐Ÿ˜ก

dire salmon
#

lol

sterile token
#

I dont like impatient ppl

lusty orbit
#

anyone know how to cancel wolves from eating the food in your hand
cancelling PlayerInteractAtEntityEvent, PlayerInteractEntityEvent, an PlayerInteractEvent doesnt work

lusty orbit
#

like right clicking rotten flesh on a wolf

sterile token
#

Loving fucking spigot serialization

tardy delta
#

save an uuid as a string

sterile token
#

LMAo i have to much thing to swear about shity spigot api

#

๐Ÿ˜ก ๐Ÿ˜ก ๐Ÿ˜ก ๐Ÿ˜ก ๐Ÿ˜ก ๐Ÿ˜ก ๐Ÿ˜ก ๐Ÿ˜ก ๐Ÿ˜ก ๐Ÿ˜ก

lusty orbit
#

wdym by checks

sterile token
lusty orbit
#

?

ashen bridge
#

Someone can help me with citizens

sterile token
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. Make sure you use the right channel regarding the topic of your question. Create a thread in case the channel is already in use!

lusty orbit
#

i dont have any checks though

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. Make sure you use the right channel regarding the topic of your question. Create a thread in case the channel is already in use!

tardy delta
lusty orbit
#

i just cancel the event and it doesnt work

undone axleBOT
#

"Does not working" is a useless statement. Please describe what exactly is not working, what you expect it to do, and what actually happens. If you get any console errors, also ?paste the entire stacktrace.

sterile token
lusty orbit
#

the wolf still consumes the food item

sterile token
#

?doesntwork

#

?notworking

undone axleBOT
#

"Does not working" is a useless statement. Please describe what exactly is not working, what you expect it to do, and what actually happens. If you get any console errors, also ?paste the entire stacktrace.

sterile token
#

shity bot

#

what a shity life i have

#

Why dont use fucked "/" commands

#

๐Ÿ˜ก

#

Too much spigot today

tardy delta
#

cuz slashcommands are shitty

sterile token
#

I also dont have any other alternative because paper comm is more shity hahaha. Atleast here ppl help fast and its not a death comm

sterile token
#

I mean they are not well designed

#

What?

#

Ah yes

#

Its really ugly

slim kernel
#

I get this error when building my project with maven: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project PlertanixShop: Fatal error compiling. How can I fix that? What do you need to now whats the problem?

dire salmon
hard socket
#

how do I cast EntityPlayer to EntityInsentient

eternal night
#

you cannot

hard socket
#

well this method wont work

eternal night
#

I mean, a ServerPlayer just isn't a Mob

#

or EntityPlayer isn't an EntityInsentient

hard socket
#

Any ideas how to make a npc move?

#

yh

eternal night
#

Well, if you are coding the NPC yourself, move it each tick following a path you computed

#

if you are using citizens, they have API for that

hard socket
#

I have mine

sterile token
#

LMAO i have just realize im a convulsive Stream abuser

#

๐Ÿคฃ

opal juniper
#

streams are lit!!!

sterile token
sacred mountain
#

streams are one of those things i avoid because they look way too good to be true and i have a mindset that they will be inefficient

eternal night
#

premature optimisation prayHalo

vocal cloud
#

Glorified for loops and just as efficient. Use a hashmap instead of the catastrophe of Verano

sterile token
#

LMAO

#

Hating shity spigot sections

hybrid spoke
sterile token
#

[21:09:23 ERROR]: [org.bukkit.configuration.serialization.ConfigurationSerialization] Could not call constructor 'public dev.alex.net.api.region.Region(java.util.Map)' of class dev.alex.net.api.region.Region for deserialization
java.lang.NullPointerException: Cannot invoke "java.util.Collection.toArray()" because "c" is null

#

๐Ÿคก

#

Also there is none field called "c"

vocal cloud
#

#rekt

sterile token
#

Every day i lore more the spigot api

#

And its well made amazing designe

honest badge
#

anyway to check when an entity (specificly a player) hits a block?

#

even if they dont take fall damage

vocal cloud
#

You mean touches a block? PlayerMoveEvent?

#

Or whatever it's called

honest badge
#

hm

#

ok

#

ill try that

vocal cloud
#

Just be careful with the event considering it gets executed a lot

honest badge
#

alr

wary topaz
#
[17:28:20 INFO]: [BetterServer] Enabling BetterServer v1.0-SNAPSHOT
[17:28:20 INFO]: [BetterServer] is running
[17:28:20 INFO]: [BetterServer] made by Ethan Garey
[17:28:20 INFO]: [BetterServer] version: 1.0.0.0
[17:28:20 INFO]: [PlugWoman] Enabling PlugWoman vfec830f
[17:28:21 INFO]: Running delayed init tasks
[17:28:21 INFO]: Done (5.568s)! For help, type "help"
[17:28:21 INFO]: Timings Reset
[17:28:21 INFO]: [BetterServer] There is a new update available <Removed link cause i dont want to be banned>
.

https://paste.md-5.net/oriqahirul.java
There is not supposed to be a update avalible, anybody know why this is happening?

wide coyote
#

wait a while before testing it again or disable caching

#

thats probably because of the cache

wary topaz
#

so it is working?

#

cause it's been 10 minutes since i updated it

#

wait

#

it woks ๐Ÿ˜„

#

works*

#

I got scared ;P

wide coyote
#

idk how it works in streams but you can use URL#openConnection and disable caches

HttpsURLConnection con = (HttpsURLConnection) new URL(URL_HERE).openConnection();
con.setUseCaches(false);
InputStreamReader reader = new InputStreamReader(con.getInputStream());
String text = (new BufferedReader(reader)).readLine();
#

this one worked for me

wary topaz
#

How can I run

            if (this.getDescription().getVersion().equals(version)) {
                getLogger().info("There is not a new update available.");
            } else {
                getLogger().info("There is a new update available. ");
            }
        });```
In a different file than main, Because I cant extend javaplugin in any other file
remote swallow
#

?di

undone axleBOT
wary topaz
#

oh

#

ty

remote swallow
#
public class MyClassName {
  private final MainClassName plugin;
  public MyClassName(MainClassName plugin) {
    this.plugin = plugin
  }
}
sterile token
wary topaz
#

wait i'm still having trouble

wary topaz
#

how can I make that just like "Update()"

#

so I can use it in other classes

#

?di is not helping me

undone axleBOT
remote swallow
#
public class MyClassName {
  private final MainClassName plugin;
  public MyClassName(MainClassName plugin) {
    this.plugin = plugin
  }


  public void checkForUpdates() {
    new UpdateChecker(plugin, 105989).getVersion(version -> {
            if (plugin.getDescription().getVersion().equals(version)) {
                plugin.getLogger().info("There is not a new update available.");
            } else {
                plugin.getLogger().info("There is a new update available. https://www.spigotmc.org/resources/betterserver.105989/updates");
            }
    
}
wary topaz
#

where would I put that?

sterile token
#

๐Ÿค”

vocal cloud
#

"there is not a new update available". That sounds so off lol

sterile token
#

Its sounds like you havent read at all how DI works

remote swallow
remote swallow
wary topaz
#

I want it to run here so where do I put it?

#

and dont ?learnjava me

sterile token
wary topaz
#

nope

remote swallow
#
new UpdateChecker(plugin, 105989).getVersion(version -> {
            if (plugin.getDescription().getVersion().equals(version)) {
                plugin.getLogger().info("There is not a new update available.");
            } else {
                plugin.getLogger().info("There is a new update available. https://www.spigotmc.org/resources/betterserver.105989/updates");
            }
``` in there
sterile token
quasi patrol
#

What would be an efficient way to make it so when a player renames an item, it doesnโ€™t change the result item but they can use the rename bar for text input?

remote swallow
sterile token
#

I wont give him code until he try do it himself

#

Because there is how you start failing when you need to code yourself

remote swallow
wary topaz
#

...

#

I know how to register commands

remote swallow
#

the this is for di

wary topaz
remote swallow
#

plugin.getLogger

#

instead of this.getDesc plugin.getDesc

sterile token
#

I would recommend more reading about Java. What more i can say!

wary topaz
#

'UpdateChecker(org.bukkit.plugin.java.JavaPlugin, int)' in 'BetterServer.Commands.AdminEssentials.UpdateChecker' cannot be applied to '(BetterServer.Commands.AdminEssentials.BetterServerHelper, int)'

remote swallow
#

?paste the class

undone axleBOT
sterile token
#

Because this type of things wouldnt be happening if you have learnt java before

#

I mean i dont to sound rude im just really stressed of that type of people

wary topaz
#

I figured it out.

vocal cloud
#

I still have the screenshot lol

wary topaz
#

shush

quasi patrol
vocal cloud
#

Cancel the rename and use what was supposed to be renamed as the name?

sterile token
remote swallow
#

i knew no java before i just dumped myself in the deep end and made it work

sterile token
#

Hey please i need help with fucking Yaml serialization

#

Im fucked about of the shity problems its has

vocal cloud
#

Stop using yamlโ„ข๏ธ

#

Use a db

sterile token
#

I have been full afteernon swearing with this shit

#

๐Ÿ˜ก

#

What a shity library LMAO

vocal cloud
#

Or a bad coder ๐Ÿ‘€

quasi patrol
#

Like I donโ€™t want it to replace the result, not that they cannot pick it up.

wary topaz
#

anybody want to rate my plugin?

vocal cloud
#

Your better server?

wary topaz
#

yea

#

it has a spigot page

sterile token
hoary wing
#

help

sterile token
#

I want to see that src

vocal cloud
#

I mean it's like a lower end essentials

sterile token
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. Make sure you use the right channel regarding the topic of your question. Create a thread in case the channel is already in use!

wary topaz
#

okie ill dm you the link

vocal cloud
#

?paste your errors please

undone axleBOT
sterile token
vocal cloud
#

It's got nothing that someone wouldn't skip over for essentials or another like plugin

hoary wing
vocal cloud
#

Don't pass name null?

#

I need to make a tutorial on how to read an error it feels like.

hoary wing
#
    public void onJoin(PlayerJoinEvent e) {
        Player p = e.getPlayer();
        if (this.config.getConfig().getBoolean("TeleportOnJoin.Enable")) {
            if (!Bukkit.getWorlds().contains(Bukkit.getWorld(this.config.getConfig().getString("TeleportOnJoin.World")))) {
                Bukkit.broadcastMessage("Spawn locations has error world.");
                return;
            }
            Location loc = new Location(Bukkit.getWorld(this.config.getConfig().getString("TeleportOnJoin.World")),
                    this.config.getConfig().getDouble("TeleportOnJoin.X"), this.config.getConfig().getDouble("TeleportOnJoin.Y"),
                    this.config.getConfig().getDouble("TeleportOnJoin.Z"), this.config.getConfig().getInt("TeleportOnJoin.Yaw"),
                    this.config.getConfig().getInt("TeleportOnJoin.Pitch"));
            p.teleport(loc);
        } else {
            Bukkit.broadcastMessage(("Spawn is not configured"));
        }
    }```
#

help

vocal cloud
#

Your config value is null?

hoary wing
#

no

remote swallow
#

?paste the whole class

undone axleBOT
hoary wing
sterile token
#

?jd-s

undone axleBOT
hoary wing
#

?

remote swallow
vocal cloud
#

To me it looks like the value is null

#

Since it's not a config is null error rather the world name is passed as null

hoary wing
#

that happens to me when the spawn is not configured how can I say that the spawn is not configured

kind hatch
#

Null checks.

digital plinth
#

md5 had a video to map plugin made

#

is it still out there somewhere or is it discountinued and doesnt work in later versions

remote swallow
#

to map plugin made?

digital plinth
#

uh

#

videos on a map

#

not images

#

ik the images one

lime moat
#

What would the best way to determine if a player walks into a certain area?

digital plinth
#

check player pos

#

theres also region plugins like worldguard

#

if you are trying to disable block breaking etc

lime moat
#

Is there an event I can use to determine if they walk into let's say an end gateway?

#

I don't want to lag the server, so I don't see any other way to do it :P

digital plinth
#

pretty sure there is

#

for end gateway

sterile token
#

stop pinging me please

digital plinth
#

listen to teleportationevent and get cause

#

walking into end portal is a different matter

lime moat
#

I'm using Skript for this right now, but I basically just need to do that

sterile token
# lime moat

If u can do it on Skript for sure you can do it on Java

#

You can just check the event when you join the portal and open an inventory

#

๐Ÿค”

digital plinth
# lime moat

try listening to tp event, cancel it and open inv

lime moat
#

Hmmm, one second

sterile token
digital plinth
#

join the portal =tp?

lime moat
#

Could you link the docs to event I need to use?

digital plinth
#

wait is that end portal or nether portal

digital plinth
#

bc nether portal doesnt instantly trigger tp

sterile token
digital plinth
#

ok sure

#

its not from the correct person

sterile token
#

Its end portal Bruh

digital plinth
digital plinth
#

there wont be people helping you each time

sterile token
#

A fast research on ?google

digital plinth
wary topaz
#
<!-- Replace this with your package! -->
                            <shadedPattern></shadedPattern>

(Maven)
I dont know what to replace it with (I dont really know how to use maven)

sterile token
#

?google

undone axleBOT
sterile token
wary topaz
#

add bstats

sterile token
wary topaz
#

?learnmaven ?

undone axleBOT
sterile token
#

Im not with humor to help without atleast having the basic knownledge about maven

lime moat
#

Will try it!

digital plinth
#

ok good luck

wary topaz
#

just tell me what I should set the package name to

#
<!-- Replace this with your package! -->
                            <shadedPattern></shadedPattern>```
sterile token
#

Google is your best friend tho

#

?google

undone axleBOT
wary topaz
#

is it me.BetterServer?

#

"org.shaded.plexus.util" That doesnt help!

#

just tell me what it is!

sterile token
wary topaz
sterile token
#

I mean i would be being more helpful but atm im currently working that why

remote swallow
# wary topaz

it would be something like me.myname.plugin.libs.bstats

lime moat
wet breach
#

shaded pattern is whatever you want it to be, but generally you would match it with your other package naming schemes

#

and then add something unique to its name

dim bronze
#

What's the process for making custom advancements?

wary topaz
#

this is what i'm stuck on

remote swallow
#

its fine, i dont mind it

sterile token
#

They are not getting paid for instant support!!!

#

๐Ÿ˜‚

wary topaz
#

mb :C

remote swallow
#

whats your project structure

wet breach
#

you could just instead copy the class

wary topaz
#

if i'm going to learn maven might as well do it now

wet breach
#

but as epic said, we need to know your project structure to help

#

a screen shot of the package naming is good enough

wary topaz
#

what should I send?

wet breach
#

oh, just BetterServer

wary topaz
#

;-;

wet breach
#

alright easy enough

#

shaded patter should be this then

wary topaz
#

ill see if it works

wet breach
#

BetterServer.Metrics

wary topaz
#

where do I need to put the id?

vocal cloud
#

Are those capitalized package names

wary topaz
#

maybe

lime moat
remote swallow
#

new ClassName(this), this

lime moat
#

Ah, thank you!

wary topaz
dim bronze
#

What's the process for making custom advancements?

remote swallow
wary topaz
#

[19:33:02 INFO]: [BetterServer] Disabling BetterServer v1.0-SNAPSHOT
[19:33:02 INFO]: The following plugins could not be reloaded:
[19:33:02 INFO]: BetterServer: Error on enable: NoClassDefFoundError -> ClassNotFoundException

sterile token
#

Is there a solution to disable mongo logging?

late sonnet
# sterile token Is there a solution to disable mongo logging?
MongoDB Developer Community Forums

To suppress MongoDB Java Driver logging, I tried this and works fine: Logger logger = Logger.getLogger("org.mongodb.driver"); logger.setLevel(Level.SEVERE); I used Level.SEVERE instead of OFF, so that the severe errors can be logged and noted, ignoring all the other informational and warning messages. Depending upon your need you can also use ...

vocal cloud
#

Mongo moment KEKWholdup

wary topaz
vocal cloud
#

Did you add it to your dependencies in your yml and your plugins folder?

wary topaz
#

yml?

#

wait

#

what?

#

wdym

vocal cloud
#

Your plugin.yml?

wary topaz
#

tf?

#

it doesnt say to put anything there?

late sonnet
#

you try to use Metrics and this is a dependency the error is for this dependencie not found. (in POM/BUILD and YML)

wary topaz
#

its in pom

vocal cloud
#

Well do you shade it into your plugin?

wary topaz
#

where do I put it in yml

vocal cloud
#

Or is it provided

wary topaz
#

ill send you my xml class

late sonnet
#

but metric not sure if is a plugin then.. check the pom

#

and check the final JAR if has the classes

wary topaz
#

bstats is not a plugin

#

its built in

#

thats the decompiled jar

alpine narwhal
wary topaz
#

what do I add to plugin.yml

#

for the bstats

vocal cloud
#

Why do you relocate? Do you need to?

sterile token
#

But i couldnt disable it

wary topaz
vocal cloud
#

Do you know why?

wary topaz
#

its in there

vocal cloud
#

ugh I hate it.

#

That error would imply it's not shaded properly. mvn clean package maybe

wary topaz
#

ill try it

#

Cleaning it didnt work :C

vocal cloud
#

Is it in the jar?

wary topaz
#

I can send you the jar if you want

vocal cloud
#

You can check yourself

wary topaz
#

whats it supposed to do

vocal cloud
#

if you don't know find out

late sonnet
boreal python
sterile token
boreal python
sterile token
#

Also can try option reload files from disk

vocal cloud
#

refresh project

wet breach
#

classes are registered on the path with their full qualifying name, which means package name. So if you didn't relocated and there was a bstats jar on the server they would conflict with each other because package + name of class would both be the same and the JVM not knowing which one it should use

wet breach
#

you should have a metrics folder in there

#

if you followed how I told you how the shaded pattern should be

wary topaz
wet breach
#

in the final jar

#

not in your project

wary topaz
wet breach
#

in there

#

click BetterServer

#

do you not know how to read or something?

wary topaz
wet breach
#

why is it a zip?

#

are you using IntelliJ?

wary topaz
#

cause its a jar file

wet breach
#

are you even looking inside of the right jar?

wary topaz
#

by renaming a .jar file to a .zip this is what I got

wet breach
#

you should have another jar called shaded

wary topaz
#

Yes!

wet breach
#

look in there

wary topaz
wet breach
#

not sure why your shaded jar contains other jars

wary topaz
#

bro this is my plugins folder

wet breach
#

I don't need to see that

wary topaz
#

what do I need to do just tell me

wet breach
#

in your projects build directory

boreal python
wet breach
#

look to see if you have a jar that has in its name shaded

wary topaz
vocal cloud
wary topaz
wet breach
#

you show me one more thing I didn't ask for and I am out

#

in your build directory where you found your jar file

#

there should be another jar that has the word shaded in its name

wary topaz
#

just so I dont make you mad build directory means what? (I dont wan tto get this wrong)

wet breach
#

build directory, is the directory where when you compile the jar shows up

wary topaz
#

I compile it right to my plugins folder

wet breach
#

probably shouldn't do that and may be some of the reasons you are having issues >>

vocal cloud
#

lmfao

#

that's probably the issue

wet breach
#

most likely

wary topaz
#

I deleted all the folders and my betterserver.jar and re compiled it and restarted my server, it still doesnt work though.

wet breach
wary topaz
#

ok

wet breach
#

don't set the build directory to your plugin folder, use some other folder that isn't part of your servers stuff

lime moat
#

Is there a way I can make my code wait let's say 1 second before performing a function?

wet breach
#

yes

lime moat
#

How would I do that?

remote swallow
#

?scheduling

undone axleBOT
lime moat
#
        if (world.equals("spawn")) {
            if (cause.equals(PlayerTeleportEvent.TeleportCause.NETHER_PORTAL)) {
                e.setCancelled(true);
                Location loc = new Location(Bukkit.getWorld("spawn"), 0.5, 100, 55.5, 0, 0);
                player.teleport(loc);
                // wait 1 second
                player.performCommand("wild");
            }
        }```
wary topaz
lime moat
#

I just need the wait right there

wary topaz
#

the first image happend second&

wary topaz
#

oh wait

#

LMFAO

#

ah danget it didnt fix it

wet breach
#

where ever you need it

#

based on the code above you should use the sync method

#

if you were using things that were able to be done async, there is a async method of that one as well

wet breach
wary topaz
lime moat
#

Uhh lol

#

I am so incredibly lost

remote swallow
#

?scheduling read this

undone axleBOT
remote swallow
#

use scheduler, better imo

lime moat
#

I can set it up to run it continuously, but how do I make it delayed in my event? I don't understand that at all.

remote swallow
#

runTaskLater

wet breach
#

ok fixed your pom a little bit, so I am assuming you are using intelliJ

#

and I think I know what you may be doing wrong

wary topaz
#

Yea

lime moat
#
        if (world.equals("spawn")) {
            if (cause.equals(PlayerTeleportEvent.TeleportCause.NETHER_PORTAL)) {
                e.setCancelled(true);
                Location loc = new Location(Bukkit.getWorld("spawn"), 0.5, 100, 55.5, 0, 0);
                player.teleport(loc);
                // wait 1 second
                new BukkitRunnable() {
                    @Override
                    public void run() {
                        player.performCommand("wild");
                    }
                }.runTaskLater(plugin, 20L * 30L /*<-- the delay */);
            }
        }```
#

Like this? or what ;-;

wet breach
#

hit the big green play button thing to build your project

wary topaz
#

Unsupported class file major version 60

wet breach
#

interesting

wary topaz
#

Want me to share my screen?

wet breach
#

guess intelliJ uses that one line lmao

remote swallow
#

update maven shade

#

change it to 3.4.1

wary topaz
#

ill reload maven

wet breach
#

well that should be updated but that isn't the issue

#

sure reload it first and see if problem goes away

#

otherwise I already know how to fix it lol

remote swallow
#

it happened to someone else and it was because an outdated shade plugin

#

might be the same issue

wary topaz
#
BetterServer-1.0-SNAPSHOT.jar, bstats-base-3.0.0.jar, bstats-bukkit-3.0.0.jar define 1 overlapping resource: 
  - META-INF/MANIFEST.MF
maven-shade-plugin has detected that some class files are
present in two or more JARs. When this happens, only one
single version of the class is copied to the uber jar.
Usually this is not harmful and you can skip these warnings,
otherwise try to manually exclude artifacts based on
mvn dependency:tree -Ddetail=true and the above output.
See https://maven.apache.org/plugins/maven-shade-plugin/

wet breach
#

just skip the warning

wary topaz
wet breach
#

you used the big green play looking button right?

wary topaz
#

yes

wet breach
#

alright what does it look like inside the jar?

wary topaz
wet breach
#

also, not sure why you defined two bstats dependencies

wary topaz
#

oh ill look

#

I did?

wet breach
#

or maybe you didn't, anyways onwards too looking inside your jar

wary topaz
#

so should I zip the jar file and take a screenshot?

wet breach
#

however you normally do it

wary topaz
wet breach
#

interesting that it is shading the jars into your jar

remote swallow
#

how the

wary topaz
wet breach
#

it shouldn't be doing that since you didn't specify it

wary topaz
#

it was in avalible elements

wet breach
#

ok...how do you put it back over in available elements?

#

we don't want the jar files themselves inside of your jar

wary topaz
wet breach
#

alright now back inside your jar

#

click on BetterServer

#

there should be a directory called bstats

wary topaz
wet breach
#

and there isn't

remote swallow
#

does the bstats folder exist in the first place

wet breach
#

fabulous, try building it again now that you removed those things back to available elements

wet breach
wary topaz
remote swallow
wet breach
#

no, the compiler creates it

#

I use maven shade all the time

wary topaz
#

can I just share my screen ๐Ÿ˜ญ

wet breach
#

see, even I shade in bstats

#

the very same way

#

but I don't use IntelliJ

#

and I am assuming it is IntelliJ screwing this up somehow

#

I use Netbeans in case anyone is curious ๐Ÿ˜›

vocal cloud
#

Intellij doesn't have this problem if you don't mess with it

wet breach
#

well I don't know how to fix it if you do mess with it

#

XD

wary topaz
#

frost dms

vocal cloud
#

Well with great power comes the need for great debugging skills

wet breach
#

well I will have to let others handle that as I don't use IntelliJ at all

#

There is nothing wrong with the Pom that I can see, so it isn't maven on this one

#

lol

vocal cloud
#

Honestly this is a baby with the bathwater situation

hoary wing
#

Does anyone know how I can remove the jeb_ when looking at the sheep?

worldly ingot
#

I think there's a CustomNameVisible tag or something

sterile token
#

Any saver that can send a shity item serialization for mongo?

wary topaz
#

I give up on adding bstats

wet breach
#

just copy the class file instead

#

it gives you all the code to do so

worldly ingot
#

It also gives you all the code to do it with Maven and Gradle

#

It really is copy/paste for the most part

wet breach
#

have no idea what they changed, but it has messed up maven doing its thing properly

#

their pom is fine, but whatever it is they are doing or have done its not working right lol. So them just copying the class file provided is their best bet at the moment

sonic goblet
#

Hey guys, I'm currently writing plugin that (in theory) will allow me to paste multiple WorldEdit schematics near each other that will connect creating one large schematic. All the schematic sizes are standardized (64x64) before I take on this task I was wondering if there were any resources that you guys recommend I look at ahead of time to get an idea on the best way to do something like this.

worldly ingot
#

Honestly shouldn't be too difficult to do at all. Paste a schem at x, y, and z, add 64 to x, repeat

#

WorldEdit documentation should cover how to go about pasting a schematic, then you're good to go. It's basically just a for loop from there

sonic goblet
#

๐Ÿ‘ Thanks, I figured as much just wanted to be sure there wasn't something I was missing like WE's pasting system being outdated these days or something

worldly ingot
#

Nah. It's not too bad at all

noble lantern
#

If you are look into structure blocks

They work with raw NBT files buuuut theyre good for proc genned structures like that; its also how vanilla stuff like strongholds are made

sonic goblet
fresh timber
#

How can I check if a slot in a player's inventory has something in it? I am trying to check if the type of an item in the 36th slot of a player's inventory is equal to something but it gives me errors in console if the slot is empty. I need to check if the slot has something in it without using .getType() before I use .getType(). Anyone know how?

short gulch
#

item == null || item.getType() == Material.AIR

sonic goblet
#

^^^ null checking

fresh timber
#

k

short gulch
#

Sometimes will be air

#

so check that too

fresh timber
#

so like

if (player.getInventory().getItem(36) != null && player.getInventory().getItem(36).getType() != Material.AIR && player.getInventory().getItem(36).equals(Material.LEATHER_BOOTS)) {
short gulch
#

That would work yes, however there are some form things you could do to make it better

fresh timber
#

yea ik

#

I could put != null and != air outside so I can do for everything after and just return

#

then if statements

short gulch
#

actually

#

you did item.equals material

#

that won't work

#

on the bottom line

fresh timber
#

oh I forgot .getType

short gulch
#
ItemStack item = player.getInventory().getItem(36);
if(item == null || item.getType() == Material.AIR) return;
if(item.getType() != Material.LEATHER_BOOTS) return;
fresh timber
#

yea

winged anvil
#

So I'm starting a large project, something larger than I've made up to this point. I have a lot of components that don't interact with each other all the time, but occasionally interact with each other. Would it just be better to break up each component into its own project file/jar rather than having one super big one?
Just for organization sake, cause I want to make everything as organized as possible to make it easier to debug and manage at a larger scale. - accidently posted this in #help-server lol

#

yes

#

that is kinda like what someone else had suggested

#

for example, if I'd split up components, I have land protection mechanisms and basically custom enchants mechanisms, which never interact except if i were to want to use a custom enchant to "buff" a players land protection

thin delta
#

Is there a known plugin for returning crouching to the old mechanics (pre 1.16). I want to prevent players from being able to crawl under a 1.5block space

wet breach
#

makes use of NFS and just symlink the jars you need into the directories of the servers ๐Ÿ˜‰

#

then you only have singular jars to worry about and not literal hundreds of the same jar ๐Ÿ˜›

#

also makes updating easier as well

#

I used to run a fairly large network lol

#

well helped anyways

winged anvil
wet breach
#

well just make a note of that for the future ๐Ÿ˜›

#

a lot of people don't know the JVM is happy with symlinks lol

wet breach
#

your only downside of this is that you will have to expose the spigot/bukkit api as you need it for those other plugins

#

but that isn't all that bad since you can do it as its needed

river oracle
wet breach
#

its basically a shortcut

#

its not the real file, just a file that points to the real one

river oracle
#

ahhh

#

like lnk files

wet breach
#

but you can use symlink with NFS

#

NFS = Network File System

river oracle
#

god there is still so much I don't know xD sometimes I forget I've barely touched the entry level knowledge

#

no clue what a NFS actually is / does the name implies what it is, but what is the purpose of an NFS

winged anvil
river oracle
#

๐Ÿค” so for scalability / updating you link together lets just say 100 or so directories so when you change the contents or add something to one its replicated?

wet breach
#

it is a resource that is accessible/linked via network

#

and it can just be a directory on another server

#

but NFS allows them to communicate securely though and the network resource is mountable

#

so if setup right, it just appears as like another HDD but doesn't actually exist on the all the machines ๐Ÿ˜›

#

works perfectly for jars because the JVM loads all jars into memory and thus won't use up network bandwidth except for when it loads up the jars ๐Ÿ˜„

river oracle
#

hmmm interesting. I have a lot to learn when it comes to being system administrator still

wet breach
#

I was the sys admin for this medium sized network ๐Ÿ˜›

river oracle
#

I took an IT class but it taught me nothing was kinda lame I wish I got to atleast learn about interesting stuff like this

wet breach
#

had like 20 dedi's I think there was

river oracle
#

bruh my IT class taught me about the cable colors in 20 year old machines

wet breach
river oracle
#

unfortunate that I have all these stupid Highschool requirements

#

I wanna just do my beloved IT and CS

wet breach
#

oh still in HS

river oracle
#

and mathmatics can't forget that <3

river oracle
wet breach
#

networking would be better suited for you to learn things that would actually apply in running servers

#

for instance, on advanced hardware firewalls

#

you can implement protocols directly on them ๐Ÿ˜›

river oracle
#

damn thats cool

#

I actually hadn't heard of hardware firewalls prior to last year

#

I thought they were the most interesting pieces of hardware I've looked at

#

my school brought some in and showed us

wet breach
#

until you learn you can program the protocols for various software which is awesome because it makes it so much easier to do all kinds of other things

river oracle
#

I think my weakest point in tech in general is networking

#

I have a very rough and rudamentary understanding

wet breach
#

there is a lot you can do with knowing networking beyond just simply opening ports and all that lmao

river oracle
#

I started all my tech stuff 2 years ago I'm proud I've learned as little as I have its such a huge industry

wet breach
#

I am mostly self taught ๐Ÿ˜‰

river oracle
#

I also am self taught school courses don't actually do much for me

wet breach
#

only thing I really got taught was a bit more things in regards to networking and satellite communications in the Army, but I pretty much knew most of everything already

river oracle
#

aha mad respect for being in the army I wouldn't make it xD

wet breach
#

surprised you are now learning I am a veteran

#

despite me having stated this like several times before

river oracle
#

I knew just thought of that statement just now

wet breach
#

and then once you thought you learned networking until you enter the world of virtual networking ๐Ÿ˜›

river oracle
#

its a tough job a few of my cousins were shipped off Afghanistan and Iraq

wet breach
#

and then that just opens all kinds of doors in possibilities. creating virtual lans where even though the servers are far apart they all appear on their own network and can see each other

#

and communicate securely

river oracle
#

that stuff is insane to me

wet breach
#

wait till you see the hardware

#

having to make jumpers with ethernet cords

#

where you go out one port, and come back in on another on the same hardware

river oracle
#

Oh I'm a hardware expert I got a computer running last year I even got the Sound Blaster 3000 working

wet breach
#

I am talking about a network switch

river oracle
#

what tf is a jumper

wet breach
#

jumpers tie ports together to kind of like bond them or to bridge

river oracle
#

hmmm interesting

wet breach
#

these are called physical bridges

#

there is software bridging and then there is hardware bridging

#

software bridging can do alright but it isn't optimal and so hardware bridging is far better

river oracle
#

this makes me wanna see my schools servers xD they'd prob let me, but the thing is as soon as the school knows you are competent at tech they start watching you much closer

wet breach
#

not really the case

#

if anything they would show you to the sysadmin who probably enjoy talking to someone who might actually understand

#

or if you are unfortunate they are a total idiot that manages to barely get by

wet breach
#

that sucks lol

#

also, another cool thing to do with networking and schools use it, is virtual desktop deployments/setups ๐Ÿ™‚

#

where all the desktops are actually on just a server as a virtual machine

river oracle
wet breach
#

but yeah there is lots you can do

river oracle
#

I had a semi-similar setup last year, but I stopped using it because tech people started cracking down on people for other exploits

wet breach
#

lol

river oracle
#

A senior friend of mine who graduated last year was essentially the only good tech guy in the school he handled all the chromebook repairs for their entire class

#

for some reason it takes 2+ weeks for our tech department to fix basic battery issues and other stuff versus just handing it over to my friend and having it back in 1 or 2 days

#

you could argue thats because of volume, but ordering a part for a standardized piece of hardware shouldn't take long

wet breach
#

it isn't always the case of the tech not wanting to do it, rather waiting on approval for things or waiting on some kind of part that needs to be purchased and then shipped etc. At my work, we sometimes get trailers in and we don't start doing work on it until like another month not because we can't but because it has a service due in that time frame and thus instead of having come back in for that service it is better to just wait that time out while it sits in the yard lol

quaint mantle
#

how to add message spoiler text ( config.yml exam ) in plugin resource spigotmc

wide fern
#

when I use event.getPlayer(), is it the same object if it's the same player or a different one? eg. if i add an additional field, can i retrieve it later?

jagged monolith
wide fern
#

I guess I'm asking if I can store data on the player object and retrieve it in future event calls

#

Sorry if I'm not being clear, I always wind up asking these questions when I'm tired af

jagged monolith
#

Why not just create a variable outside of the event and save the player to it.

Player player;

@EventHandler
...
player = event.getPlayer();
wide fern
#

That might work? I'll need to take another look when I'm more awake I guess

#

Like I'm essentially trying to have a field on event.getPlayer that returns different values depending in which player

jagged monolith
#

Pro Tip: Don't code while tired. You'll wake up the next day, take one look at the code and have no clue what's going on?

wide fern
#

I only have time on my pc when I'm tired

#

Unfortunately

#

But yea, hopefully that'll make sense when I look at while I'm walking tmr

#

Ty

cobalt thorn
fierce whale
#

Is there anyway to detect player open survival inventory?

remote swallow
fierce whale
#

I mean open player own inventory

#

I can detect open inventory like chest. But I can't detect open own ineventory

mighty pier
#

how do i not do 5 queries

crimson terrace
mighty pier
#

aah

#

ok

crimson terrace
worn tundra
#

Don't think there is any way to detect it

crimson terrace
#

its a clientside event yeah

worn tundra
#

Yeah

crimson terrace
crimson terrace
#

ah ok, just woke up, too late I see

cobalt thorn
#

I didnโ€™t check if the item had a display name

cold field
#

Hi guys, I remember that there was a website that helped with nms obfuscation, smth like minimapper

#

does anyone have the link?

earnest forum
cold field
#

ty

timid jetty
#

Does playerInteractEvent work for right clicking only or also left clicking. I need a listener for when someone left clicks with a bow in hand

earnest forum
#

both

#

u can check with e.getAction() which returns an enum

#

theres like

#

LEFT_CLICK_AIR or LEFT_CLICK_BLOCK

#

just check if its either of those

timid jetty
#

beautiful thanks

quaint mantle
#

can i send fake advacement messages?

#

with hover and other things

earnest forum
#

u can do the hover with text components

#

its called a tooltip

#

theres plenty of tutorials on youtube

cold field
#

Hi guys, question. Where can I find a list of blockstate id?

tardy delta
#

Google

cobalt thorn
#

Thereโ€™s an event or something to check sign made by the player?

crimson terrace
pastel juniper
#

I want to create a rank shorting system for tablist, but I don't really know how tablist works.

cobalt thorn
crimson terrace
fierce whale
#

is there anyway to detect press E key? (open inventory)
I tried it with PlayerOpenInventoryEvent but It didn't work ๐Ÿ˜ฆ

worn tundra
#

No

short gulch
#

Survival inventories are clientside

worn tundra
#

Only if the player clicks / interacts with it

fierce whale
#

Hmm...

#

Is there any way to fill player's crafting slot?

worn tundra
#

Yeah

fierce whale
#

OHOH

#

How to do that?

worn tundra
#

Experiment with it. Most likely just get the players inventory and set the items at those slots

short gulch
remote swallow
#

rawslots 1-5 iirc are the crafting grid

worn tundra
earnest forum
#

this should help

#

lol

worn tundra
fierce whale
#

But failed... ๐Ÿ˜ฆ

short gulch
#

That was circa 2016 back in the 1.12 days

worn tundra
#

Yeah

short gulch
#

I liked 1.12

#

just worked

remote swallow
fierce whale
#

Ahha Use minecraft basic achivement

short gulch
#

XY, what's your goal?

earnest forum