#help-development

1 messages · Page 1420 of 1

sullen dome
#

and to upload pics, just verify

#

or use upload services

thorny bridge
#

oh yea

#

i forgot about those

#

well

#

i got it to work

sullen dome
#

nice

thorny bridge
#

so thanks for the help

sullen dome
#

i mean its the same like:

1: buying stuff to put into my fridge
2: wondering why i can't but it into my fridge, because i don't have a fridge

#

yes, i'm example-king

severe night
#

why spigot does not have org/apache/logging/log4j/spi/AbstractLoggerAdapter ?

severe night
ivory sleet
#

spigot uses java logging

#

so yeah depending on slf4j when using spigot will ofc end with a NCDFE

thorny bridge
#

ok probably another dumb question but, can i put the sword that i just created into a new recipe?

wraith rapids
#

yes

thorny bridge
#

how should i call it?

wraith rapids
#

it requires an exactchoice

thorny bridge
#

would it be like recipe.addIngrident(1, sharpXX)?

wraith rapids
#

it requires an exactchoice as the recipechoice

thorny bridge
#

what is an exactchoice?

#

i am a bit of a noob

wraith rapids
#

look up a recipe guide

thorny bridge
#

ok

#

ok, whenever i go to export the plugin i get this error no suitable method found for addIngredient(int,org.bukkit.inventory.ItemStack)

#

the code: sharpCCr.addIngredient(9, sharpCC);

ivory sleet
#

did you read the error ?

wraith rapids
#

did you read the guide?

thorny bridge
#

yes

#

i did

sullen dome
#

@thorny bridge you used java addIngredient(ItemStack, int)
it want's a material, not an itemstack.

thorny bridge
#

ok, what should i use then?

sullen dome
#

a material

#

not an itemStack

#

and because your sharpXX was an ItemStack, i guess your sharpCC is Too

#

i hate this formatting

wraith rapids
#

link the guide you read

thorny bridge
#

how can i make the itemstack a material

thorny bridge
#

do i need to make a namespaced key, then reference that key?

sullen dome
#

if i am not completely dumb, the guide is completely different from your code

wraith rapids
#

it doesn't look like he actually read or followed the guide

sullen dome
#
 public void onEnable() {
        // Our custom variable which we will be changing around.
        ItemStack item = new ItemStack(Material.DIAMOND_SWORD);

        // The meta of the diamond sword where we can change the name, and properties of the item.
        ItemMeta meta = item.getItemMeta();

        // We will initialise the next variable after changing the properties of the sword
 
        // This sets the name of the item.
        meta.setDisplayName(ChatColor.GREEN + "Emerald Sword");

        // Set the meta of the sword to the edited meta.
        item.setItemMeta(meta);

        // Add the custom enchantment to make the emerald sword special
        // In this case, we're adding the permission that modifies the damage value on level 5
        // Level 5 is represented by the second parameter. You can change this to anything compatible with a sword
        item.addEnchantment(Enchantment.DAMAGE_ALL, 5);
 
   
      // create a NamespacedKey for your recipe
      NamespacedKey key = new NamespacedKey(this, "emerald_sword");

      // Create our custom recipe variable
      ShapedRecipe recipe = new ShapedRecipe(key, item);

        // Here we will set the places. E and S can represent anything, and the letters can be anything. Beware; this is case sensitive.
        recipe.shape(" E ", " E ", " S ");

        // Set what the letters represent.
        // E = Emerald, S = Stick
        recipe.setIngredient('E', Material.EMERALD);
        recipe.setIngredient('S', Material.STICK);

        // Finally, add the recipe to the bukkit recipes
        Bukkit.addRecipe(recipe);
    }```
#

that's from the website

thorny bridge
#

yes, i used a shapeless recipe

wraith rapids
#

but you didn't follow anything in the guide

thorny bridge
#

wdym?

#

i did

lost depot
#

hi, should a plugin assert its own permissions? I tried to do this by using org.bukkit.permissions.Permissible.hasPermission(String) but it's not really working, so i thought maybe i shouldnt even be doing this? idk

wraith rapids
#

define not working

thorny bridge
#

thanks tho

lost depot
wraith rapids
#

what perm did you give and how exactly are you testing it

lost depot
#

so now im confused on where .hasPermission even gets the data from

#

a perm node that i defined in my plugin.yml for usage of a command

sullen dome
#

@thorny bridge

        ItemStack item = new ItemStack(Material.DIAMOND_SWORD);
        ItemMeta meta = item.getItemMeta();
        meta.setDisplayName(ChatColor.GREEN + "Emerald Sword");
        item.setItemMeta(meta);
        item.addEnchantment(Enchantment.DAMAGE_ALL, 5);
        NamespacedKey key = new NamespacedKey(Main.getPlugin(), "emerald_sword");
        ShapelessRecipe recipe = new ShapelessRecipe(key, item);
        recipe.addIngredient(Material.EMERALD);
        recipe.addIngredient(Material.STICK);
        Bukkit.addRecipe(recipe);```

don't except more spoonfeeds
wraith rapids
#

what's the exact node you added and the exact line of code you used to test

sullen dome
#

if i give more spoonfeeds, NNYaKNwhatever will hate me again

lost depot
#

this is how i use bukkit's hasPermission

thorny bridge
wraith rapids
#

what is the node you gave, and the node you are testing

lost depot
#

as to what node i added, just a plugin.foo.bar

#

which is defined exactly the same everywhere

#

in my plugin.yml, in my code, and in the way i assigned it to myself on server

wraith rapids
#

that should work

eternal oxide
#

How did you give yourself the permission?

lost depot
#

i assigned the permission to a group, and parented that group to myself

eternal oxide
#

You mean a LP group?

lost depot
#

yeah

wraith rapids
#

inb4 use groupmanager

deft geode
#

Would it be bad practice to write to the plugin's config files/fetch a web api in an asyncrhonous chat event? I would like to have these things happen when a player chats, but I hate having the lag before it shows up in chat (because it's completing the event)

wraith rapids
#

unless the return feedback of the api is important to how you handle the event, you should let the event continue without blocking it

#

and use the web api on a different thread

lost depot
#

alright, so i just found out it DOES work, but only after i rejoined the server...

#

any way to not have to rejoin?

eternal oxide
#

I guess if its not working you didn't assign it correctly in LP or you didn't define/check it correctly in your plugin.
If player.hasPermission returns false then you do not have the node.

deft geode
wraith rapids
#

yeah, no need to block on the web request then

deft geode
#

Ok sounds good, thanks

wraith rapids
#

schedule it to happen on a different thread and let the event proceed without blocking it

#

possibly batch the messages and only send them once you have x messages in a buffer, if necessary

lost depot
wraith rapids
#

sounds like luckperms is doing something dumb, dunno

eternal oxide
#

Show your actual LP adding code

#

?paste

queen dragonBOT
lost depot
#

do other permission plugins not have this issue in your experience, then?

wraith rapids
#

pex does

#

but pex is trash so that's not really something that counts

lost depot
eternal oxide
#

GroupManager doesn;t 😉

wraith rapids
#

it's also the only perms plugin I use because fuck everything else

#

gm gives me cancer

#

manuadd my ass

eternal oxide
#

You can live with cancer

eternal oxide
# lost depot wdym?

If your plugin is adding the permission to your player via code it soundls like you are not adding it correctly

deft geode
#

luckperms after deprecating another important API feature

lost depot
#

no thats not what i meant, all i did was try to read if a player has a permission, not write it

eternal oxide
#

readd?

lost depot
#

yeah... hasPermission

eternal oxide
#

but... you said you don;t have the permission until you relog

lost depot
#

well yeah, but i set the permission with LP

#

maybe i need to check the lp config again, idk

eternal oxide
#

oh, you are adding the perm i using LP commands and its not updating to the player who's already online?

lost depot
#

yes

#

exactly

eternal oxide
#

Then I'd suggest using a permission plugin that doesn't cache/reflect the player object like that.

wraith rapids
#

luckperms is like the best perms plugin though so you probably don't need to change just because of that

lost depot
#

yeah that doesnt sound like its worth it

eternal oxide
#

depends on how attached he is and wht features he needs

wraith rapids
#

kind of sounds dubious that luckperms is having that issue to begin with

#

perhaps ask them if there are any misconfiguration cases that could cause it

lost depot
#

probably

eternal oxide
#

I would be dubious if he was adding perms via the API or somethign, but via its own commands.

lost depot
#

but i suppose this is turning into more of a #help-server issue and im not a server owner :P

wraith rapids
#

you are very dubious yes

eternal oxide
#

Seems so

wraith rapids
#

the most dubious man

lost depot
#

lol

quaint mantle
#

How would I make something open on join? i have a custom item that is a book and quill

@EventHandler
    public void onPlayerJoinBook(PlayerJoinEvent e) {
        Player p = e.getPlayer();
        p.getInventory().addItem(joinbook);
    }
quiet hearth
#
            Player player = event.getPlayer();
            PotionEffect absorptionEffect = new PotionEffect(PotionEffectType.ABSORPTION, 120 ,4);
            PotionEffect regenerationEffect = new PotionEffect(PotionEffectType.REGENERATION, 30, 2);
            PotionEffect fireResistEffect = new PotionEffect(PotionEffectType.FIRE_RESISTANCE, 300, 1);
            PotionEffect resistanceEffect = new PotionEffect(PotionEffectType.DAMAGE_RESISTANCE, 300, 1);
            player.addPotionEffect(regenerationEffect);
            player.addPotionEffect(absorptionEffect);
            player.addPotionEffect(fireResistEffect);
            player.addPotionEffect(resistanceEffect);
        }```
#

would this be how to give effects when a food is eaten

#

It does not seem to be working and want to make sure that there isnt something wrong with this part

digital plinth
#

my server has too many mv worlds loaded at once apparently

#

any way to like

#

compress the mv worlds?

wide elbow
#

hello someone know how to disabling mongodb logger?
cause it doesn't work

    @Override
    public void onEnable() {
        // Plugin startup logic :d
        System.setProperty("DEBUG.GO", "true");
        System.setProperty("DB.TRACE", "true");
        Logger mongoLogger = Logger.getLogger("org.mongodb.driver");
        mongoLogger.setLevel(Level.WARNING);

        luckPerms = getServer().getServicesManager().load(LuckPerms.class);
        setupConfig();
        setupLogging();
        setupDatabase();
        registerListeners();
    }```
quaint mantle
#

how do i check if the damager is an arrow

#

on entitydamagebyentityevent

ivory sleet
#

Event#getEntity instanceof Arrow

quaint mantle
#

i did that but its not going thru

#

let me retry

#

🙂

ivory sleet
#

@brave glenHander?

quaint mantle
#

i did that

#

but lemme retry

ivory sleet
#

register?

quaint mantle
#

maybe i did something wrong

#

yes i did all that

ivory sleet
#

send code

wraith rapids
#

the damager will never be an arrow

#

the damager would be the entity that fired the arrow

#

at least that is what I assume to be the case, haven't ever actually tried

ivory sleet
#

well I think ::getDamager could be an Arrow

wraith rapids
#

mmmaybe

eternal oxide
#

Damager would be the arrow, you cast to Projectile and getShooter

wraith rapids
#

says the dubious man

eternal oxide
#

dubious to be sure

quaint mantle
# deft geode https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Player.html#openBook(...

thanks I have this:

@EventHandler
    public void onPlayerJoinBook(PlayerJoinEvent e) {
        Player p = e.getPlayer();
        p.getInventory().addItem(book);
    }

    public static ItemStack book;

    public static void init() {
        book();
    }

    private static void book() {
        Material type;
        ItemStack item = new ItemStack(Material.WRITTEN_BOOK, 1);
        BookMeta meta = (BookMeta) item.getItemMeta();
        meta.setTitle("My really cool book");
        meta.setAuthor("KeybordPiano459");
        meta.setPage(1, "This will be page one.");
        meta.setPage(2, "This will be page two.");
        List<String> pages = new ArrayList<>();
        pages.add("This will be page one.");
        pages.add("This will be page two.");
        meta.setPages(pages);
        item.setItemMeta(meta);
        book = item;
     }

but how do I get it to open onJoin?

deft geode
#

As I've said

wraith rapids
#

there's a method somewhere that shows a book to a player

deft geode
#

The method I sent was the way to open a book for the player

wraith rapids
#

iirc on the player class

deft geode
#

It's literally there

#

that's also what I sent earlier

quaint mantle
#

k ty

wraith rapids
#

that said the method is kind of hacky

#

it'll set the player's held item to that itemstack and then prompt them to open the book, and then set the held itemstack back

#

because of protocol limitations

hybrid spoke
wraith rapids
#

did the eventhandler guy change his name

sharp bough
#

is there a better way of checking if a number is int than public static boolean isInt(String s){ try{ Integer.parseInt(s); }catch (NumberFormatException e){ return false; } return true; }

wraith rapids
#

yes, see the javadocs

#

they provide you with a regex to check against a string to see if it can be parsed as an int

#

that said that method is fine

sharp bough
#

i get that

#

i dont understand what it is

gentle jacinth
#

hello, is there anything on api that cancels any light update?

wraith rapids
#

call it statically

#

don't call it on the object

#

call it on the class

#

VarType.isInt

#

basically, learn java

sharp bough
#

24 7 online

wraith rapids
#

i'm a pretty toxic guy

sharp bough
#

all you say is the solution and "basically learn java"

#

lol

wispy monolith
#

what is wrong with this? why does it show an error?

<main class name>.getPlugin().getConfig().get("messagecolor");
wraith rapids
#

what is the error

wispy monolith
#
'getPlugin(java.lang.Class<org.bukkit.plugin.java.JavaPlugin>)' in 'org.bukkit.plugin.java.JavaPlugin' cannot be applied to '()'
wraith rapids
#

the static getPlugin method as declared in JavaPlugin takes 1 parameter

#

that parameter is the class whose plugin should be returned

wispy monolith
#

so what should I do?

wraith rapids
#

you should write a static instance getter in your main class, or use dependency injection to pass your plugin instance around

wispy monolith
wide elbow
#

please pass your instance my object

#

dont use static

#

to getting instance main class

wraith rapids
#

that is the latter alternative, yes, DI

#

regrettably all di tutorials and guides are super overengineered and overcomplicate the sibject with gay shit like di frameworks

wispy monolith
wraith rapids
#

so good luck trying to find a coherent tutorial on it

young knoll
#

To put it in simple English

wide elbow
#

private Main main;

#

and

young knoll
#

Pass your plugin instance into the constructor of other classes

wide elbow
#

i can give u example w8

young knoll
#

Technically the static getter isn’t the worst

#

It’s a singleton after all

wraith rapids
#

myeah

#

though, don't call your main class Main

young knoll
#

^ (But don’t actually call it main)

#

Ah too slow

sullen dome
wraith rapids
#

i seem to have broken by VGA cable

#

great

sullen dome
#

why do you use vga

#

for what

wraith rapids
#

for my second monitor

sullen dome
#

tf

wraith rapids
#

because hdmi cables don't have screws

sullen dome
#

hdmi cables don't need screws.

wraith rapids
#

i want screws

sullen dome
#

why tho

#

unnecessary

wraith rapids
#

so the cable stays firmly attached

sullen dome
#

a hdmi cable never slips out

#

except it's broken

wraith rapids
#

and doesn't break the fucking motherboard when I slip the laptop on top of something

#

most cheap laptop ports are directly welded onto the motherboard

sullen dome
#

i see

wraith rapids
#

twisting them can cause the board to snap

sullen dome
#

well, imagine using a monitor with a laptop

wraith rapids
#

by attaching the cable to the casing rather than the port, that happens less often

sullen dome
#

and not using a pc for that

wraith rapids
#

i'm a pretty mobile guy

sullen dome
#

yeah, then having both is cool. but only using a laptop is pretty... dumb imo

wraith rapids
#

i haven't had the effort to put money and time into finding me an actually good machine

#

i just use shit tier 200 buck laptops

sullen dome
#

a good pc isn't that expensive

wraith rapids
#

i want a good machine and at the same time I don't want to get piss in my eye from shitty lying retailers

sullen dome
#

if you know what you need

wraith rapids
#

and at the same time I don't have the effort to actually put time into researching what offers are scams and what are not

sullen dome
#

yeah, just look where you buy the stuff, and don't ever buy full pc's

wraith rapids
#

and building a machine from scratch is out of the question because of lack of effort

sullen dome
#

buy the components, and build it yourself

wraith rapids
#

yeah, no effort

sullen dome
#

tf

wraith rapids
#

i'll do it later

junior geyser
#

Whats is the best way to send a title to a players screen in 1.8 witout using packets

sullen dome
#

no youre not

wraith rapids
#

by not using 1.8

sullen dome
#

because you will always tell yourself you got no effort

wraith rapids
#

well yes

young knoll
#

Don't think you can without packets

wraith rapids
#

but i'll do it later

young knoll
#

Unless you use some external API

sullen dome
#

you wil never do that

wraith rapids
#

right now though i'm gonna go dig up me a new vga cable

sullen dome
#

you lyer

#

lyier

#

liyer

#

idk

junior geyser
young knoll
#

liar

sullen dome
#

thanks

junior geyser
#

Ok thanks

sinful kelp
#
guiHandler.addGUI(this);```
```java
private References r = new References();
private GUIHandler guiHandler = r.guiHandler;```

References.java:
```java

public class References {
    
    public GUIHandler guiHandler = new GUIHandler();
    
}

GUIHandler has a List, why does the list reset everytime I reference the guiHandler?

sullen dome
#

r

#

love that

wispy monolith
#

didn't fix it

sinful kelp
#

@sullen dome got mad trying to debug kekw

sullen dome
#

why not calling guiHandler g lol

young knoll
#

Or

sinful kelp
#

i will change References eventually

young knoll
#

Not a single letter variable

sullen dome
#

call your Main-class M

#

or Class1

sinful kelp
#

not really helpful :/

sullen dome
#

yeah sorry :/ i like to try to be funny

sullen dome
digital plinth
#

help

#

its added as an external lib

wraith rapids
#

real men call their main class IIiIiiiI

quaint mantle
#

guys e.setRespawnLocation() for the respawnevent

#

doesnt work?

sullen dome
#

i call mine asöäfujhaspfg

quaint mantle
#

any1 could help plz

sullen dome
#

obviously in lowercase

digital plinth
sullen dome
#

because brrr

quaint mantle
#

it doesnt D:

sinful kelp
#

so no one has any ideas for my problem?

digital plinth
#

code pls

wraith rapids
#

now to fucking resize and move all of my windows back to the second monitor

#

this new cable is slightly thinner and also black

sinful kelp
#

Will more context help for my problem anyone?

sullen dome
#

i think because you initialize guiHandler everytime? idk

wraith rapids
#

i think it's a good allegory for what's happening in the western world's population

sinful kelp
#

@sullen dome i only initailize it once

#

unless initializing References is initalizing

#

it again

#

idk it confuses me

wraith rapids
#

people are becoming limp dicked spaghetti wristed pencil necked pussies

sinful kelp
#

i need a static reference to it

wraith rapids
#

and also black

sullen dome
#

what is r.guiHandler() doing

#

or what is it

sinful kelp
#

nothing tbh

#

Oh wait

#

I can use a static instance

#

im so dumb

#

its ok

#

thanks!

spare mason
#

hello

sullen dome
#

hello

wraith rapids
#

plus I can't exactly put together a laptop myself

#

and getting a well performing laptop is gay anyway

spare mason
#

i want to make what a mob spawn in the player position with a delay

#

help me please

sullen dome
#

i use a laptop as well, but i use it to run my server-console and sftp stuff

#

because i dont like having thousands of windows open

wraith rapids
#

i move around frequently and need my machine in a lot of places

#

i can't really bolt myself down to one workstation at a fixed location

sullen dome
#

i have a 50€ laptop tho

#

runs on ubuntu

wraith rapids
#

how's the specs

sullen dome
#

dunno

#

i3 something

wraith rapids
#

probably better than mine

sullen dome
#

intel hd 4000

#

can't even start minecraft, because incompatible

wraith rapids
#

the processor is "fine" but because of the shitty passive ass heating, it's always throttled down to like 600mhz

sullen dome
#

i cant even use it rn

wraith rapids
#

it feels like i'm back in 1990 something

quaint mantle
#

my

#

code

sullen dome
#

it says please insert a proper boot device when booting. idk if my ssd is broken, or my laptop slot

quaint mantle
#

and all the sysout are printing correctly

wraith rapids
#

consider locating the fucking enter key on your keyboard

#

and then figuring out where the spacebar is

sullen dome
#

me? why

young knoll
#

shift enter technically

wraith rapids
#

and realizing they're not the same key

sullen dome
#

tf

wispy monolith
#

still didn't fix it

sullen dome
#

i'm confused

wraith rapids
#

talking to this frenzy fuck

quaint mantle
#

damn

sullen dome
#

lol

wraith rapids
#

who
speaks
like
this

quaint mantle
#

someone's mad 😳

wraith rapids
#

i'm perpetually mad

quaint mantle
#

i can see that

sullen dome
#

NNYaKNwhatever get's mad pretty easily tho

quaint mantle
#

lol

wraith rapids
#

also do you realize how gay it is to link to some shady script ass website just to show an image

sullen dome
#

he's not verified tho

#

dunno why

#

it's so easy

quaint mantle
#

lolll

wraith rapids
#

i haven't had the effort to make a sockpuppet account to verify with

quaint mantle
sullen dome
#

NNY i love you

#

and your angry side

#

nothing but love

quaint mantle
#

hmm

#

uhm so anyone knows why it doesnt work?

wraith rapids
#

this webpage literally doesn't work without javascripts

#

and all it does is display an image

#

it's trying to shove 3 cookies and several style sheets and a bunch of scripts up my ass just to display an image

quaint mantle
#

ok well let me send my code

#

directly here

#
     public void onRespawn(PlayerRespawnEvent e) {
         Player player = e.getPlayer();
         Fighter fighter = Fighter.getFighter(player.getName());
         System.out.println("SUPPOSE BEFORE CHECK");
         if(fighter.isInGame())
         {
             System.out.println("SUPPOSE TO RESPAWN");
             Game game = Game.getGame(fighter.getGameId());
             Random rand = new Random();
             Spawn spawn= game.getSpawns().get(rand.nextInt(game.getSpawns().size()));
             System.out.println("SETTING THE LCOATION");
             e.setRespawnLocation(spawn.getLocation());
             System.out.println("SET THE LCOATION");
             player.getInventory().clear();
             player.getInventory().addItem(new ItemStack(Material.BOW));
             player.getInventory().addItem(new ItemStack(Material.STONE_SWORD));
             player.getInventory().addItem(new ItemStack(Material.ARROW));
         }
     }
wraith rapids
#

alternatively you can link the image directly here

sullen dome
#

no he cant because he's not verified

young knoll
#

(If you verify)

sullen dome
#

thats why people use gyazo and shit

wraith rapids
#

you can still link the image

#

observe

#

this fucking magic

quaint mantle
#

mhm

wraith rapids
#

of rightclicking an image and copying the link to the image

sullen dome
#

who gives a shit

wraith rapids
#

rather than the webpage the image is on

quaint mantle
#

so

#

for my problem

#

any1 knows?

wraith rapids
#

i give a shit cause this website is gay

#

the respawn location you set might get overridden by other plugins or game mechanics

#

i'm not totally sure how the ordering on that goes

quaint mantle
#

then is there a way of respawning the player on a location?

wraith rapids
#

i vaguely remember many people having issues with doing this same thing

#

the problem is that a lot of things also want to set the respawn location

#

beds, respawn anchors, other plugins

#

there is a way, but I don't remember what it is exactly

sullen dome
#

maybe try this
p.getInventory().setItem(p.getInventory().firstEmpty(), new ItemStack(Material.DIAMOND_SWORD));
i remember i had problems with addItem as well

quaint mantle
#

mhm

sullen dome
#

(i guess firstEmpty is the first empty slot, but idk, test it)

young knoll
#

Add a 1 tick delay for adding items

sullen dome
#

why that

wraith rapids
#

yeah the respawn logic doesn't play nice with inventory changes

sullen dome
#

oh

young knoll
#

Because the game doesn't like you doing things in the event

wraith rapids
#

i think it like re-nukes the inventory or something when the player is actually popped back in the world

young knoll
#

Potion effects don't work either IIRc

wraith rapids
#

the whole game is kind of fucked around the whole respawning logic

quaint mantle
#

no the problem is that he just doesnt respawn at the location i gave

sullen dome
#

but setitem definitely works tho

#

oh

#

i see

#

then add a 1tick delay, like coll said

quaint mantle
#

how do i set the tick delay

#

?

wraith rapids
#

run a delayed task

quaint mantle
#

do i need a whole ass scheduler

#

alrighty then

#

thanks

sullen dome
#
Bukkit.getScheduler().runTaskLater(Plugin, () -> {
//your task
}, 1L);
wraith rapids
#

to put it in perspective

#

to deliver the 8kb payload of this image

#

the webpage is like 30kb

sullen dome
#

you're really on hate today

wraith rapids
#

it fucking pisses me off how incompetent and complacent everyone is in this modern age

sullen dome
#

just ignore it lmao

wraith rapids
#

shit like electron is literally ruining this planet and this industry

sullen dome
#

if i would rage at incompetent people, i would probably die

sullen dome
wraith rapids
#

it infuriates me how fucking bad things are

hidden delta
#

Use BukkitRunnable class instead.

wraith rapids
#

it's not deprecated

#

and there is no precedent for bukkitrunnable here

sullen dome
#

definitely not deprecated

kind coral
#

it is not opening, anyone knows why?

hidden delta
#

which version?

sullen dome
#

1.16.5

kind coral
wraith rapids
#

you're talking about some other similar method that is deprecated

hidden delta
#

Uh I use 1.8.8

sullen dome
#

WTF

#

SEE NNY

quaint mantle
#

so instead of e.setRespawnLocation

sullen dome
#

if i would rage about such people, i would die

quaint mantle
#

I just teleport the player 1 tick later

sullen dome
#

so i just let them be

young knoll
sullen dome
#

helps both me and them

wraith rapids
#

i don't rage about 1.8 people

rigid otter
#

Hello! Can I extract spigot.jar, combine with my lib and complier run together in 1 jar?

wraith rapids
#

i just kindly tell them to fuck off when they want help from me

sullen dome
wraith rapids
#

you haven't seen me not-kindly

sullen dome
#

well

kind coral
rigid otter
#

I already test, I can run it now

sullen dome
#

i guess yk?

wraith rapids
#

raving about global warming pisses me off

#

people virtue signalling by tweeting about "i donated $20 to this charity that plants trees" piss me off

sullen dome
#

i don't think the website has a gender

rigid otter
sullen dome
#

yeah second one is really dumb

wraith rapids
#

if you actually gave a singular shit about global warming you'd strap yourself into a nuke and mail yourself to china and india

sullen dome
#

HOLY

young knoll
#

I'm down

sullen dome
#

god

young knoll
#

Can someone provide the nuke

sullen dome
#

i'm coming with you

#

well no

#

my nuke goes right to mars

young knoll
#

What did mars do to you

sullen dome
#

huh?

#

nothing

eternal oxide
#

I'm praying for a HUGE asteroid. Something like the dinosaurs might have seen.

sullen dome
#

i just want to piss off that fucking world

#

dont wanna live here

#

mars is cool

wraith rapids
#

global warming taxes and tariffs and charities are the new indulgence from the middle ages

#

where you pay money to get a place in heaven

#

it's just all bullshit, nobody actually gives a shit about anything

young knoll
#

Oh I can buy that now? Cool

sullen dome
#

lol

young knoll
#

What does god do with the money

wraith rapids
#

look at this one fucking burger joint advertising that their employees' T shirts are manufactured from recycled plastic

#

now the people who buy the fucking burgers shipped from overseas at that joint feel good about themselves because they're supporting the fight against climate change

#

they feel like they've contributed something

#

they're fucking saints now

eternal oxide
#

They told us 40 years ago we only have another 20 years of oil. That didn't pan out did it.

wraith rapids
#

dude we recycle our ketchup barrels into stools and chairs and tables

#

look at us being eco friendly and pretending we're doing something about something

#

come consume some burgers here

#

you can do it with a clean conscience

sullen dome
#

now you know why i want to go to mars

#

or moon

#

or sun

cold field
sullen dome
#

or somewhere

#

just not the earth

eternal oxide
#

Actually, we ship our ketchup bottles half way around the world to be recycled into furniture and clothes then shipped back and sold to us at extortionate prices.

wraith rapids
#

the EU just banned plastic forks and shit

#

so now everybody is shipping their plastic forks and shit in small cardboard packages from russia and overseas

#

because that's how we save the environment

eternal oxide
#

They banned plastic straws here.

wraith rapids
#

and look at how EU mandates all websites to display a warning about cookies

sullen dome
#

what

wraith rapids
#

the old crippled cum socks don't even fucking know what a cookie is

young knoll
#

Actually in the UK they use biscuits

wraith rapids
#

you know those "accept cookies to use the site" popups and banners?

#

those shits that started popping up on every site a few years ago?

sullen dome
#

ah that type of cookie

#

i thought food cookies yk

#

lol

wraith rapids
#

well, the reason they exist is because the EU mandates that all sites have to warn the end users about the cookies

#

for the sake of privacy

#

that they need to get the consent of the end user to save cookies on their machine

#

sounds good on paper, right?

sullen dome
#

god

wraith rapids
#

you should be allowed to opt out of tracking, right?

sullen dome
#

what are you telling now

wraith rapids
#

well, nothing fucking changed

#

the only thing that changed was that now every site has an annoying fucking popup telling you to accept all cookies or you can't use the site

#

and everybody accepts the cookies because they have to, to use the site

sullen dome
#

well

wraith rapids
#

the only thing that changed was that it's now way more fucking annoying to browse the internet

sullen dome
#

do you accept them without clicking on accept?

#

if not, you dont have to tho

#

i never clicked on that accept cookies button

wraith rapids
#

if you want to use the site without cookies, 99% of the time you need to go into some arcane multi paged settings popup somewhere to individually toggle them off

#

or you just need to live with the accept cookies banner/popup forever

sullen dome
#

well i never needed

#

yeah i just ignore that

cold field
#

just accept the cookies and when you have finished cancel them...

wraith rapids
#

see, this is the thing

sullen dome
#

idk if that helps that much

wraith rapids
#

I didn't have to ignore this flashing fucking animated banner shit that covers 33% of the page before

#

I didn't have to click random ass buttons everywhere to get access to the site before

#

all of this is completely redundant and unnecessary

sullen dome
#

only accepted cookies on youtube, because you have to now

#

or you cant even access youtube website

wraith rapids
#

majority of sites do that

#

even google does it

sullen dome
#

never had that outside of google

wraith rapids
#

basically any newsletter or publisher does it

#

all retailers do it

sullen dome
#

and google can't take more data from me than they already have lol

#

they probably have everything about me

wraith rapids
#

yeah but that's not the point

sullen dome
#

even without that fucking cookies

wraith rapids
#

having access to control your privacy and cookies is good

cold field
#

@wraith rapids do you listen ted talks?

wraith rapids
#

forcing everyone to have to click stupid buttons to use websites is not

sullen dome
#

tf we live in 2021

#

privacy doesnt exist anymore

wraith rapids
#

the mandate was put in place with the pretext of privacy

#

because privacy is what the people want

#

privacy good

#

tracking bad

eternal oxide
#

Then we got track n trace!

sullen dome
#

to use my pc i have to create a microsoft account

wraith rapids
#

it didn't change anyone's life for the better

#

it just made the entire internet more cluttered and annoying to use

sullen dome
#

you know how much data microsoft has about me?

wraith rapids
#

it's a prime example of how fucked up everything is these days

sullen dome
#

they probably know at which times i go pissing

wraith rapids
#

the entire world is going soviet union

#

nobody cares about anything

eternal oxide
sullen dome
#

i don't have a dog

#

sadly

eternal oxide
#

They would know that too 🙂

sullen dome
#

yeah probably

wraith rapids
#

everything is covered in red tape and all the things that happen are made to happen just so that some corporate or political or governmental entity looks better

sullen dome
#

i mean they know at which times i use my pc

#

so they know for 90% at which time i'm at home

wraith rapids
#

it's all just an enermous, pointless machine lubricated with shit

sullen dome
#

if you want privacy, you are not really allowed to use a phone

#

or pc

#

or tv

eternal oxide
#

I laugh when people talk about their privacy. I bet they never opened up the Sceduler on their PC and checked what runs every day.

sullen dome
#

or whatever

wraith rapids
#

and at the same time, people voted the "accept cookies pls" button into existence

#

for the very sake of privacy

sullen dome
#

i dont wanna know what these 213 processes are, running right now

eternal oxide
#

I'm not sure anyone voted for it. The EU is a dictatorship

wraith rapids
#

the old cum socks making the calls did

#

and we voted the old cum socks to be there

#

good old democracy

eternal oxide
#

Thing is we didn;t. MEP's have zero power. all decisions are made by unelected officials in the EU

sullen dome
#

imagine there are people voting CDU at germany

#

mostly 60+ aged people

cold field
#

bruah

sullen dome
#

because they have no clue what that means

#

and they don't live anymore when shit happens

wraith rapids
#

the fundamental problem with the modern world is that it's very complicated

#

back in the day, shit was simple

sullen dome
#

or people voting AFD

#

they basically want not-germans out of germany

wraith rapids
#

you shat some seeds into a field, and 6 months later, you went out to reap the shitty and undersized harvest

sullen dome
#

because theyre all agressive, and shit

wraith rapids
#

then the king's officials would come and take half of what you have or you'd be taken behind the barn

sullen dome
#

the world exists of dumb people

eternal oxide
#

Shit was only simple before the Internet because people had no clue what was really going on.

wraith rapids
#

but the modern worls is super complicated

sullen dome
#

dude germany doesn't know how the internet works

#

idk how it is in usa

wraith rapids
#

everywhere you look, it's set of complicated systems run by highly specialized people, who need a lifetime of experience and training and education to do their jobs properly

#

economy, logistics, politics, even the way how individual industries are run and how the world behaves

sullen dome
#

but germany is like
hey, let's implement an upload-filter, so you cannot upload stuff from other people

people cannot have those uploadfilters, because it's an fucking AI that costs so much money

wraith rapids
#

it isn't physically possible for a person to understand comprehensively all of these things in a single lifetime

sullen dome
#

and a small website cannot afford that if theyre not even make profit

wraith rapids
#

so people can't make well educated decisions

#

and since they don't understand how everything works, they're easily led astray or group under some single-issue banner

eternal oxide
sullen dome
#

well

wraith rapids
#

it's all going down in the next 50 years i'm telling you

sullen dome
#

i mean dude

cold field
#

I disagree

eternal oxide
sullen dome
#

twitch would be dead

eternal oxide
#

Big asteroid, I'm telling you!

quiet ice
sullen dome
#

germany is their second-biggest country

#

after usa

#

we're all bots, right?

quiet ice
#

Yes

sullen dome
#

youtube would be dead

#

twitch

wraith rapids
#

either way, everything is shit and nothing has any value

sullen dome
#

facebook

#

well nvm

#

who gives a shit about facebook

wraith rapids
#

i'm content with just complaining about things because I can't fix them

#

fuck your shitty world, I'll just live my life and watch it drown in its own excrement from the sidelines

sullen dome
#

yeah pretty much

wraith rapids
#

i won't partake in it but that doesn't stop me from being angery and complaining about it

eternal oxide
#

Back in the 70-80's during the cold war (here in the UK) we had US nukes at our local air base. Everyone was fine with it as we knew if war started we'd be the first to go, so no pain there.

quiet ice
#

I got a copyright claim from using CC SA 3.0 licensed music on YT not so long ago; copyright is a joke nowadays

sullen dome
#

you know that germany helps at the war at east countries?

#

without germany the usa couldn't fly the drones in east

#

we're helping them killing civilians

wraith rapids
#

good, the world is overpopulated anyway

cold field
#

aahhahaha

quiet ice
#

don't remind us about that

wraith rapids
#

imo we should just nuke the entire near middle and far east

#

and also africa

eternal oxide
wraith rapids
#

and parts of russia

quiet ice
#

what about south america?

wraith rapids
#

and south america

#

and middle america

#

canada is fine

quiet ice
#

Australlia too

sullen dome
#

because theyre so dumb, they cannot difference between a terrorist and a few cars of marrying people

#

they bombed a women, picking vegetables in their garden

#

LIKE WHAT TF

#

thats what i complain about

wraith rapids
#

africa is going to be a serious issue in the future

quiet ice
#

And liveleak (the only site hosting videos of this) shut down yesterday

wraith rapids
#

it's an enermous disease factory

sullen dome
#

its like the usa can say we did nothing wrong

AND GERMANY ACCEPTS THAT

wraith rapids
#

the only reason we don't have 50 different kinds of pandemics and 300 more strains of covid going around right now is that what is in africa, stays in africa

sullen dome
#

theyre like

if they say they did nothing wrong, they're right

wraith rapids
#

they don't have reliable means of transport to get out of the shitstain regions

#

but inevitably, that will change

eternal oxide
spare mason
#

in the schedule when i repeat the task how i can define the delay of the ticks

sullen dome
#

YEAH OBV

wraith rapids
#

with the second parameter

sullen dome
#

because it affects jer

eternal oxide
#

OOh, real questions. OTT off

sullen dome
#

but it doesnt affect her if civilians get bombed in east

wraith rapids
#

that's barely a question

#

more like an admission of "i didn't bother to read the docs or use google"

eternal oxide
sullen dome
#

can we move to general with this shit? lol

wraith rapids
#

general doesn't exist

spare mason
#

yes

#

when end

sullen dome
#

i dont think dev channel is the right place for politics lol

wraith rapids
#

this is general now

sullen dome
#

well

quiet ice
#

I've muted general because of all the shitshow there

sullen dome
#

if you say so

wraith rapids
#

post general in memes

quiet ice
#

spigotcraft is now serious, so general is now for memes, which is why help-dev is now general

eternal oxide
spare mason
#

no, i need what never stop

eternal oxide
#

then use a repeating task

spare mason
#

yes

#

how i can define the ticks

wraith rapids
#

with the second parameter

sullen dome
#

my brain is like boom

wraith rapids
#

like have you tried reading the scheduler documentation

quiet ice
#

Read the documentation

sullen dome
#

are you using BukkitRunnable or BukkitScheduler

spare mason
#

}, 20 * 20, 2880);

sullen dome
#

god

spare mason
#

this what define

#

20 * 20 what means

sullen dome
#

just use a calculator if youre dumb at math

wraith rapids
#

lol

quiet ice
#

it'll run every 2880 ticks with a delay of 20 * 20 ticks

spare mason
#

idk much

#

what

quiet ice
#

The delay is the delay between the registration and the first start

sullen dome
#

what do you wanna do alejo

quiet ice
#

The period is the delay between runs

wraith rapids
#

the first programming language people should learn is english

spare mason
#

I want what have a delay of 12 hours

eternal oxide
quiet ice
#

Delay or period?

spare mason
#

a delay

sullen dome
#
Bukkit.getScheduler.runTaskTimer(Plugin-Class, () -> {
//task
}, timeInTicks);```
quiet ice
#

then have ,20 * 60 * 60 * 12, 0);

#

if you use a calculator you can inline the maths into a single number

spare mason
#

ingles no is my native language

quiet ice
#

Yes, the delay to the first start, then it runs every tick

eternal oxide
spare mason
#

sorry

sullen dome
#

god... google that lmaoi

#

so now take 43200 * 20

#

and you have your needed ticks-value

quiet ice
#

864000

spare mason
#

I need what a task run with a delay of 12 hours

wraith rapids
#

did you know that a kilogram of potatoes costs several dollars at the grocery store

sullen dome
#

am i the dumb one rn?

wraith rapids
#

did you also know that a hectare of potatoes has an annual yield of about 40 tons

sullen dome
#

that's delaying your task in the time, you put in on timeInTicks

#

NVM

#

im dumb

#

runTaskTimer uses start, delay, but for start just use 0 i guess

wraith rapids
#

did you know that fucking milk is cheaper per litre than soda drinks

sullen dome
#

i love milk

#

milk best

quiet ice
#

Don't use task timer for something that should run only once

wraith rapids
#

you know, that shit that comes out of a living animal

sullen dome
#

shouldn't it run every 12 hours?

spare mason
#

why I can't only put }, }, 20 * 20, 2880);

wraith rapids
#

that needs to be housed and fed and kept healthy

quiet ice
#

yeah okay, I'm getting confused

cold field
#

...

wraith rapids
#

yet a bottle of fucking water and concentrated artificial flavors and shit is somehow more expensive to buy

spare mason
#

}, 43200);

sullen dome
#

so Alejo, you want to run a task every 12 hours?

quaint mantle
#

is there any event that allows me to delete an arrow when i lands?

wraith rapids
#

it's fucking incomprehensible

sullen dome
#

then

eternal oxide
cold field
#

https://www.youtube.com/watch?v=QX3M8Ka9vUA @wraith rapids I think you should watch this

The global economy is in crisis. The exponential exhaustion of natural resources, declining productivity, slow growth, rising unemployment, and steep inequality, forces us to rethink our economic models. Where do we go from here? In this feature-length documentary, social and economic theorist Jeremy Rifkin lays out a road map to usher in a new ...

▶ Play video
sullen dome
#
Bukkit.getScheduler.runTaskTimer(Plugin-Class, () -> {
//task
},0L, timeInTicks);

timeInTicks is 12 hours in ticks, so 43200 * 20

#

thats all you need

wraith rapids
#

does it have something important or useful to say

quiet ice
#

or 864_000

cold field
wraith rapids
#

what does it matter how things should be

quiet ice
#

nah, it's capitalist propaganda

sullen dome
#

it doesnt matter how things should be

wraith rapids
#

we can't change this collision course anymore anyway

quiet ice
#

Or communist

sullen dome
#

as long as no one does it how it should be

wraith rapids
#

what matters is that shit is not as it should be

cold field
spare mason
sullen dome
#

10000 is not every 12 hours

quiet ice
#

what the hell is 10_000

#

where did you even get that number from?

wraith rapids
#

A Third Industrial Revolution is unfolding with the convergence of three pivotal technologies: an ultra-fast 5G communication internet, a renewable energy internet, and a driverless mobility internet, all connected to the Internet of Things embedded across society and the environment.
i hate it already

sullen dome
#
}, 0, 43200);```
0 is the time in ticks, after the task will start
wraith rapids
#

renewable energy is gay

#

5g won't be reliable across the globe and in rural areas

sullen dome
#

so in this case, it starts instantly, and runs every 43200 ticks

quiet ice
#

We all know that nuclear power is best

wraith rapids
#

and i personally don't like iot

quiet ice
#

Especially when it is used for spacecraft propulsion

wraith rapids
#

we have literally not even reached true 4g yet

sullen dome
#

well look at germany's mobile internet

cold field
wraith rapids
#

renewable energy? the issue is that it's not free

quiet ice
#

It's very costly

wraith rapids
#

the initial investments and maintenance are significant

sullen dome
#

15€ for 3gb 4g

#

that's fucking insane

wraith rapids
#

double that with the redundancy necessary and it comes at a cost

spare mason
#

}, 0, 43200); with this the task repeat with a delay of 12 hours ?

quiet ice
#

Would you build a solar panel road because it gives free energy? No. It comes at a cost

sullen dome
#

oh my bad

wraith rapids
#

not just the solar panel, but the inverter, the battery, the mains hook, the everything

sullen dome
#

43200 * 20, my bad

quiet ice
#

How many times did we tell you it is 43200 * 20

sullen dome
#

no

#

its my bad

#

i forgot it

quiet ice
#

Or simply 864_000

spare mason
#

if i put

#

43200 * 20

#

i have a error

sullen dome
#

send a ss

spare mason
#

with

#

scheduleSyncRepeatingTask

sullen dome
#

WTF

wraith rapids
#

nuclear and solar are also mutually incompatible

quiet ice
#

Then go with 864_000L

wraith rapids
#

solar fluctuates continuously and significantly

sullen dome
#

use runTaskTimer instead of scheduleSyncRepeatingTask

wraith rapids
#

while nuclear can't adjust its rate of production rapidly

quiet ice
#

solar fluctuates?

wraith rapids
#

from day to night

spare mason
#

I need what the task repeat multiple times

quiet ice
#

That isn't too rapid though

wraith rapids
#

yeah

quiet ice
#

It is forseeable

sullen dome
#

dude

#

we explained it like thousand times now

wraith rapids
#

but do you know how long it takes to drive a nuclear power plant up or down

#

it takes days

quiet ice
#

Though the most forseeable form of energy is tidal energy

wraith rapids
#

the nuclear plants can't adjust their production rapidly enough and that will either result in net deficit or excess

quiet ice
#

Invest in that now, even though france had a monopoly on these for multiple decades with the Rance power plant

sullen dome
#
Bukkit.getScheduler.runTaskTimer(Plugin-Class, () -> {
//task
},0L, 864000);

THIS IS WHAT YOU NEED

wraith rapids
#

which means that you're going to need plants that can freely adjust their output to make up for it

sullen dome
#

and //task is your task that you wanna run

wraith rapids
#

and the only such plants we have right now are diesel and coal plants

sullen dome
#

whatever it is

wraith rapids
#

the unintended consequence of using solar is increasing our dependency on coal and diesel plants

quiet ice
sullen dome
#

you can work with that? lol

wraith rapids
#

same happens with wind as well, less so with hydro

sullen dome
#

didnt knew that

quiet ice
#

Java even accepts 1_8_55_4585 as a valid number

wraith rapids
#

for renewable energy to be feasible, we need to come up with a better medium of storing energy

quiet ice
#

underscores are ignored by javac

sullen dome
#

so it would be the same like 18554585

wraith rapids
#

for some areas things like dams and water pools and shit can suffice

#

but that's not doable everywhere

sullen dome
#

what's the difference then

wraith rapids
#

and we literally don't have enough raw materials on earth to make enough lead acid batteries

quiet ice
wraith rapids
#

1_000_000 is more readable than 1000000

sullen dome
#

well i never go on such high stuff

#

so yeah i never needed that

wraith rapids
#

but yeah point is that renewable energy isn't as free as people often think it to be

quiet ice
#

In the end, using energy at all is dumb

wraith rapids
#

power is very cheap anyway

vast quest
#

How is my plugin 8mbs? I just started using Spigot instead of paper and like I havent done anything that should make it 8mbs

wraith rapids
#

you're probably shading in something stupidly big

quiet ice
#

Did you shade in spigot?

eternal oxide
#

maven?

vast quest
#

Yes i use maven

#

but like

wraith rapids
#

i think shading in spigot would result in like a 50mb jar though

quiet ice
#

That might be true

vast quest
#

before while I was using paper it wasnt even going more than 10kb

eternal oxide
#

it would only shade teh API if thats yoru depends

wraith rapids
#

mmm true

quiet ice
#

Or go research better energy sources, which have the potential to fuck up something even more

wraith rapids
#

once saw like a 200mb jar from a guy who had shaded in every dependency and dependency of dependency used by mojang and paper

eternal oxide
#
        <dependency>
            <groupId>org.spigotmc</groupId>
            <artifactId>spigot-api</artifactId>
            <version>1.16.4-R0.1-SNAPSHOT</version>
            <scope>provided</scope>
        </dependency>```
#

notice the scope

vast quest
#

I didnt even add something thats so much

#

I just added a updatechecc

quiet ice
#

use provided wherever applicable

vast quest
#

want me to send the jar

quiet ice
#

The scope is often pretty important

#

Unzip your jar

eternal oxide
#

Just check your pom

quiet ice
#

Look at what it contains

vast quest
#

this is my pom

#

hold uop

#

im dumb

#

imma paste it

#

oh and I get this error

#

from maven

#
  - META-INF/LICENSE
  - META-INF/NOTICE
  - META-INF/licenses/ASM
  - META-INF/maven/net.bytebuddy/byte-buddy-dep/pom.properties
  - META-INF/maven/net.bytebuddy/byte-buddy-dep/pom.xml
  - META-INF/maven/net.bytebuddy/byte-buddy/pom.properties
  - META-INF/maven/net.bytebuddy/byte-buddy/pom.xml
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 http://maven.apache.org/plugins/maven-shade-plugin/
quiet ice
#

pom looks okay at first glance, though there is something that should not be there

vast quest
#

whats it

quaint mantle
#

I'm trying to get the sent message and if it is equal to :heart: or whatever, it will display a heart. replaceAll() isn't the correct method

@EventHandler
    public void onChat(AsyncPlayerChatEvent e) {
        Player p = e.getPlayer();
        if (e.getMessage().equalsIgnoreCase(":)")) {
            e.getMessage().replaceAll(":smile:", "\uD83D\uDE0A");
        } else if (e.getMessage().equalsIgnoreCase("<3")) {
            e.getMessage().replaceAll(":heart:", "❤️");
        }
    }
quiet ice
#

Strings are immutable

vast quest
#

?

quiet ice
#

i. e. use e.setMessage(e.getMessage().replaceAll())

quaint mantle
#

ah k

quiet ice
#

ignore it, I might have said something dum

wraith rapids
#

use .replace

#

replaceall uses a regex

quiet ice
#

        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
            </resource>
        </resources>

gives me concerns, though it is likely needed

vast quest
#

Ok so now I opened the jar as a rar file

quiet ice
#

and?

vast quest
#

com files size is 11,535,512 and net files size is 8,385,811

#

bytes I believe

eternal oxide
#

what is yoru package? com or net?

quiet ice
#

what is within the com and net folder?

vast quest
#

comphenix

#

protocolib

eternal oxide
#

oh, are you using Intelij? and Artifacts to build?

vast quest
#

Wdym by artifacts?

eternal oxide
#

Artifacts on teh left to build

vast quest
#

Idk

#

I use maven lifecycle

eternal oxide
#

on the right hand window?

vast quest
#

Yes

eternal oxide
#

ok, good, and you package?

#

I saw the yes

vast quest
#

what?

eternal oxide
#

do you have any manually imported libs?

vast quest
#

spigot bot warned me for spam

vast quest
#

I just added the protocollib dependancy

#

and added a update checker

eternal oxide
#

Yeah, don;t do that

vast quest
#

what can I do instead?

eternal oxide
#

all libs you add in your pom.

vast quest
#

I do]

#

oh wait

eternal oxide
#

you didn;t manually add any? Can you SS your dependencies in IJ?

vast quest
#

nvm I did not put
<scope>provided</scope> for protocollib

#

in the pom

#

so it probably just downloaded it all

eternal oxide
#

Sounds likely

vast quest
#

its back to 6 kbs now

quiet ice
#

You did in the pom you sent to us

vast quest
#

I didnt?

#

oh I did

#

wtf

eternal oxide
#

shh its fixed 🙂

vast quest
#

Yep

#

fixed is fixed and nothing matters from now on

#

oh cool the maven error is gone too

sturdy elk
#

difference of ReplaceALL and Replace?

young knoll
#

replaceAll uses regex

wraith rapids
#

like i said

#

one uses regex, the other doesn't

vast quest
#

How can I see if a plugin is enabled

young knoll
#

From code?

vast quest
#

without using depend

young knoll
#

iirc Bukkit.getPluginManager.getPlugin(name) != null

vast quest
#

Thanks

young knoll
#

That may only be loaded, you might also want to check isEnabled

vast quest
#

so

#

if(Bukkit.getPluginManager().getPlugin("ProtocolLib") != null)

sturdy elk
vast quest
#

Ok so

vast quest
#

?

#
        new UpdateChecker(this, 91846).getVersion(version -> {
            if (!this.getDescription().getVersion().equalsIgnoreCase(version)) {
                logger.warning("There is a new update available. Please install it as soon as possible from the spigot page!");
            }
        });
``` how can I make it so it waits for the UpdateChecker to be done to continue?
glossy scroll
#

It already does that if its on the main thread i believe

quaint mantle
#

would ScoreboardManager manager = Bukkit.getScoreboardManager(); Scoreboard board = manager.getNewScoreboard(); Objective obj = board.registerNewObjective(String.valueOf(game.getId()) + "-arena", "dummy"); Score score = obj.getScore(ChatColor.GOLD + "One In The Chamber" + ChatColor.RED + " ID: " + game.getId()); score.setScore(0); System.out.println("SETTING SCOREBOARD"); for(int i=0; i<game.getFightersInGame().size(); i++) { Fighter f = game.getFightersInGame().get(i); Score score1 = obj.getScore(ChatColor.YELLOW + f.getName() + ": " + fighter.getKills() + " kills"); score1.setScore(i+1); } player.setScoreboard(board); work or would i need to use the third argument 100%?

vast quest
#

the update respond comes like 5-6 seconds after the server is already started

#

and everytthing is done

#

after that

summer scroll
#

CompletableFuture?

glossy scroll
#

You must be running it in a task or async?

#

Oh yes

#

getVersion waits for server to startup

#

I wouldnt advise for you to hault the server for it to complete... why would you want to?

vast quest
#

oh

#

cuz I want it to get the response

#

not haulting the server

vast quest
#

but I just want the plugin to continue after the response is there

glossy scroll
#

Why is that?

#

Unless you dont have a real reason to... i dont see the point

quaint mantle
#

mhmmmhmm

vast quest
#

cuz I just

#

need to

eternal oxide
#

You don;t prevent yoru plugin loading if there is an update.

vast quest
#

Nono

#

I want it to give a response

#

before continuing

eternal oxide
#

you update check and notify them there is an update when teh response comes back

vast quest
#

like there is a update or not

glossy scroll
#

Thats not a very conventional way to do things

#

I advise against it

#

It means almsot nothing

eternal oxide
#

If you prevent yoru plugin starting until it has a response your plugin will fail to start if there is any internet issues.