#help-archived

1 messages ยท Page 140 of 1

rotund hemlock
#

i want to make it when you craft sth i ll get a potion with regen for 8 sec

tidal mica
#

a custom potion crafting with breewing stand?

rotund hemlock
#

i mean crafting on crafting table

tidal mica
#

it should work

rotund hemlock
#

it is xp bottle

tidal mica
#

you can change it

rotund hemlock
#

i want potions

tidal mica
#

simple, or decompile some plugins

rotund hemlock
#

how ?

rotund hemlock
#

i want to make the plugin myself

#

i dont want to copy

tidal mica
#

i want to make the plugin myself
@rotund hemlock then search on google

#

google will help you

rotund hemlock
#

i have

#

i searched for a week

#

but no answers

#

๐Ÿ˜ฆ

tidal mica
#

try to change the words

rotund hemlock
#

i have

#

it wont help me

tidal mica
#

try to view some youtube videos

rotund hemlock
#

i have

#

i have done everything

tidal mica
#

view this

rotund hemlock
#

i have watched this

tidal mica
rotund hemlock
#

already

#

i know how to make custom items

forest plaza
#

i want to make it when you craft sth i ll get a potion with regen for 8 sec
@rotund hemlock do you want to give the player a potion item or effect?

rotund hemlock
#

potion

tidal mica
#

he wants to make a custom crafting, i think

rotund hemlock
#

potion with effects

#

custom crafting but with potions

tidal mica
#

use a custom crafting tutorial

#

and then change the itemstack

rotund hemlock
#

there is no itemstack

#

for potion with effects

rotund hemlock
#

idk how tdo i put it in my code

forest plaza
#

do you want to make a recipe for such potion?

rotund hemlock
#

or where

#

yes

#

but on crafting table

forest plaza
#

do you know how to add recipes?

rotund hemlock
#

yes custom recipes

tidal mica
#

https://github.com/The-SourceCode/Bukkit_Coding_Tutorial/blob/master/Episode_08/CustomItems.java using this,
`ItemStack item = new ItemStack(Material.DIAMOND_AXE, 1);
ItemMeta meta = item.getItemMeta();

meta.setDisplayName(ChatColor.AQUA + "AXE OF ZEUS");
ArrayList<String> lore = new ArrayList<String>();
lore.add(ChatColor.WHITE + "Used by Zeus in the great god battle");
meta.setLore(lore);
meta.addItemFlags(ItemFlag.HIDE_ATTRIBUTES);
item.setItemMeta(meta);`
this is the itemstack

rotund hemlock
#

ik

#

put this is item

forest plaza
#

herobrine sent videos and info on everything you need

#

i suggest you watch them?

rotund hemlock
#

but how

tidal mica
#

here this is a small method:
public ItemStack getPotionItemStack(PotionType type, int level, boolean extend, boolean upgraded, String displayName){ ItemStack potion = new ItemStack(Material.POTION, 1); PotionMeta meta = (PotionMeta) potion.getItemMeta(); meta.setBasePotionData(new PotionData(type, extend, upgraded)); potion.setItemMeta(meta); return potion; }

rotund hemlock
#

i have watched them

tidal mica
#

if you search on google, maybe you find everything

forest plaza
#

what do you not understand?

tidal mica
#

i can't make the code for you

rotund hemlock
#

my code

tidal mica
#

I have given you many methods

forest plaza
#

^

rotund hemlock
#

public void RegenPot() {
ItemStack RegenPot = new ItemStack(Material.SPLASH_POTION);

    PotionMeta meta = ((PotionMeta) RegenPot.getItemMeta());
    meta.addCustomEffect(new PotionEffect(PotionEffectType.REGENERATION, 400, 0), true);
    RegenPot.setItemMeta(meta);
    
    ShapedRecipe RegenPotRecipe = new ShapedRecipe(RegenPot);
    RegenPotRecipe.shape(" E ","GWG"," B ");
    RegenPotRecipe.setIngredient('G', Material.GOLD_INGOT);
    RegenPotRecipe.setIngredient('W', Material.MELON);
    RegenPotRecipe.setIngredient('E', Material.EMERALD);
    RegenPotRecipe.setIngredient('B', Material.GLASS_BOTTLE);
    Bukkit.getServer().addRecipe(RegenPotRecipe);
#

what is wrong pls help

forest plaza
#

you lack a closing bracket

rotund hemlock
#

what does it mean

forest plaza
#

public void RegenPot() { ... }

oblique drift
#

is there a way to get bouncing direction of a dropped item?

rotund hemlock
#

public void RegenPot() {
ItemStack RegenPot = new ItemStack(Material.SPLASH_POTION);

    PotionMeta meta = ((PotionMeta) RegenPot.getItemMeta());
    meta.addCustomEffect(new PotionEffect(PotionEffectType.REGENERATION, 400, 0), true);
    RegenPot.setItemMeta(meta);

    ShapedRecipe RegenPotRecipe = new ShapedRecipe(RegenPot);
    RegenPotRecipe.shape(" E ","GWG"," B ");
    RegenPotRecipe.setIngredient('G', Material.GOLD_INGOT);
    RegenPotRecipe.setIngredient('W', Material.MELON);
    RegenPotRecipe.setIngredient('E', Material.EMERALD);
    RegenPotRecipe.setIngredient('B', Material.GLASS_BOTTLE);
    Bukkit.getServer().addRecipe(RegenPotRecipe);
#

]

#

}

#

it wont work

forest plaza
#

where do you call that function?

rotund hemlock
#

wdym

forest plaza
#

thats a function

#

where do you call it?

rotund hemlock
#

RegenPot();

forest plaza
#

yes

#

where?

rotund hemlock
#

on top

forest plaza
#

??

frigid ember
#

xD

rotund hemlock
#

i have like 15 custom recipes here

#

i cant show you

forest plaza
#

do they work?

rotund hemlock
#

public class CustomItems extends JavaPlugin{

public void onEnable() {
    GodSword();
    SharpnessBook();
    UnbreakingBook();
    FireAspectBook();
    PowerBook();
    VorpalSword();
    DragonSword();
    Leather();
    ProtectionBook();
    ProjectileProtection();
    DragonArmour();
    DustOfLight();
    DustOfLight2();
    NetherWart();
    RegenPot();
#

yes

forest plaza
#

ok, good

rotund hemlock
#

but regenpot wont work

forest plaza
#

did you restart the server?

frigid ember
#

potato why is there a single ] in your code example above?

rotund hemlock
#

i miss clicked

#

yea i have

#

oh yea my server isnt running 24/7

#

i want to make a srever for friends

forest plaza
#

did you put a System.out.print("test"); in your function and check if it gets called?

rotund hemlock
#

it does

#

bc

#

i have it so when the plugin is enabled

small spruce
#

Is your comma key set to enter?

rotund hemlock
#

it will say to console it is enabled

forest plaza
#

yeah but you could have forgot to build the plugin or something

rotund hemlock
#

no other crafts work

forest plaza
#

it would say its enabled but the new function isnt there yet

rotund hemlock
#

nonon

#

what do you wnat to say then

frigid ember
#

in the actual function, print in there

forest plaza
#

did you check if the function gets called??

rotund hemlock
#

yea it does get called

forest plaza
#

how do you know?

rotund hemlock
#

it sends errors to console when i run it

forest plaza
#

wow

frigid ember
#

what errors?

rotund hemlock
#

like is it up to date or sth

frigid ember
#

can you print it

rotund hemlock
#

print what

frigid ember
rotund hemlock
#

@frigid ember print what

frigid ember
#

print the errors you get from the plugin?

#

you said you got errors when you call the function

forest plaza
#

did you put a System.out.print("test"); in your function and check if it gets called?
could you please do this for me? i think you dont understand how plugins work

rotund hemlock
#

hmm

#

1st i am noob

#

and 2nd wait then

forest plaza
#

no problem with learning, but i cant help you if i cant find out whats wrong

green sparrow
#

?1.16

worldly heathBOT
#

Spigot 1.16 is in development with no release date. It'll be out when it's out.

green sparrow
#

?eta

worldly heathBOT
#

There is no ETA. Having an ETA leads to unrealistic deadlines, false hope, and a bad product. It will be ready when it's ready.

hollow thorn
#

is there any version cmd

#

which will get the latest version

rotund hemlock
#

Error occurred while enabling Custom_Items v1.0 (Is it up to date?)
java.lang.NoSuchFieldError: SPLASH_POTION
at me.zap_potato.CustomItems.CustomItems.RegenPot(CustomItems.java:314) ~[?:?]
at me.zap_potato.CustomItems.CustomItems.onEnable(CustomItems.java:35) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[server.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:335) [server.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [server.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugin(CraftServer.java:356) [server.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.craftbukkit.v1_8_R1.CraftServer.enablePlugins(CraftServer.java:316) [server.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.MinecraftServer.q(MinecraftServer.java:402) [server.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.MinecraftServer.k(MinecraftServer.java:370) [server.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.MinecraftServer.a(MinecraftServer.java:325) [server.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:211) [server.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:505) [server.jar:git-Spigot-c3c767f-33d5de3]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_251]

#

this is the error

frigid ember
#

java.lang.NoSuchFieldError: SPLASH_POTION

rotund hemlock
#

so..

#

?

#

what do i do

oblique drift
#

if i have two locations:
from = player location
to = player eye direction
and then i do:
to.toVector().subtract(from.toVector).normalize() will the item fly in the player eyes direction?

rotund hemlock
#

Error occurred while enabling Custom_Items v1.0 (Is it up to date?)
java.lang.NoSuchFieldError: SPLASH_POTION
at me.zap_potato.CustomItems.CustomItems.RegenPot(CustomItems.java:314) ~[?:?]
at me.zap_potato.CustomItems.CustomItems.onEnable(CustomItems.java:35) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[server.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:335) [server.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [server.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugin(CraftServer.java:356) [server.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.craftbukkit.v1_8_R1.CraftServer.enablePlugins(CraftServer.java:316) [server.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.MinecraftServer.q(MinecraftServer.java:402) [server.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.MinecraftServer.k(MinecraftServer.java:370) [server.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.MinecraftServer.a(MinecraftServer.java:325) [server.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:211) [server.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:505) [server.jar:git-Spigot-c3c767f-33d5de3]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_251]

#

what do i do

#

i need help

lyric stratus
#

hey is there a way to take the endmap from spigot and integrate it to a new vanilla server?

neat lion
#

can someone explain this problem

lost connection: Internal Exception: java.io.IOException: Broken pipe

gilded bobcat
#

It says it right there. Lost connection

neat lion
#

it says lwccb lost connection i cropped part out but i can't join server

near mulch
#

Broken pipe part usaully means something is wrong with the networking of the server.

neat lion
#

its worked fine for days it just started in the last hour

gilded bobcat
#

Are you sure the server is up then?

neat lion
#

yea im in console for it and all

#

hosted on VPS btw

near mulch
#

Weird. Ast time i had this was when using mohist and that was caused by mod interference.

woeful lark
#

Try restart your vps

neat lion
#

i did that before and nothing changed

#

it makes no sense

gilded bobcat
#

Does the server log the connection attempt?

#

If not check vps firewall

near mulch
#

Did you restart it and then try to join and get error or was it running for the last 3 days and then that happened ?

neat lion
#

running fine the last few days was about to update viaversion but was checking servers first and this happened

#

when joining this is the error it gives

#

[13:23:51 INFO]: lwccb lost connection: Internal Exception: java.io.IOException: Broken pipe
[13:23:51 INFO]: lwccb left the game.

worldly heathBOT
near mulch
#

Weird, if you restarted i would have told you go check the start up part of the logs for a larger error but, this is the first time i see this while a server has been running without problems.

neat lion
#

nothing changed on the entire system thats the weird part

remote socket
#
stage0:
  location0:
    in_use: true
    user: e6941b1b-ff98-4550-ac83-198ba4b76fdd
  location1:
    in_use: true
  location2:
    in_use: true
  location3:
    in_use: true
  location4:
    in_use: true

How would I go about getting a list of all the user's?

gilded bobcat
#

Did anything change client side?

remote socket
#

Is there a faster way than looping 0-4 and check if they are in use and then if true add the uuid

rotund hemlock
#

Error occurred while enabling Custom_Items v1.0 (Is it up to date?)
java.lang.NoSuchFieldError: SPLASH_POTION
at me.zap_potato.CustomItems.CustomItems.RegenPot(CustomItems.java:314) ~[?:?]
at me.zap_potato.CustomItems.CustomItems.onEnable(CustomItems.java:35) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[server.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:335) [server.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [server.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugin(CraftServer.java:356) [server.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.craftbukkit.v1_8_R1.CraftServer.enablePlugins(CraftServer.java:316) [server.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.MinecraftServer.q(MinecraftServer.java:402) [server.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.MinecraftServer.k(MinecraftServer.java:370) [server.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.MinecraftServer.a(MinecraftServer.java:325) [server.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:211) [server.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:505) [server.jar:git-Spigot-c3c767f-33d5de3]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_251]

remote socket
#

Maybe #getKeys and loop through the in use and check != null

neat lion
#

nothing changed at all as far as im aware ive tried connecting with 1.15.2 working before all this and 1.8.8 in between

quartz furnace
#

Hello is there 1.16 spigot pre release so i can use it on my server ?

neat lion
#

@quartz furnace no not yet

#

i dont think

rotund hemlock
#

Error occurred while enabling Custom_Items v1.0 (Is it up to date?)
java.lang.NoSuchFieldError: SPLASH_POTION
at me.zap_potato.CustomItems.CustomItems.RegenPot(CustomItems.java:314) ~[?:?]
at me.zap_potato.CustomItems.CustomItems.onEnable(CustomItems.java:35) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[server.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:335) [server.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [server.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugin(CraftServer.java:356) [server.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.craftbukkit.v1_8_R1.CraftServer.enablePlugins(CraftServer.java:316) [server.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.MinecraftServer.q(MinecraftServer.java:402) [server.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.MinecraftServer.k(MinecraftServer.java:370) [server.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.MinecraftServer.a(MinecraftServer.java:325) [server.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:211) [server.jar:git-Spigot-c3c767f-33d5de3]
at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:505) [server.jar:git-Spigot-c3c767f-33d5de3]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_251] what is wrong

#

what is wrong

remote socket
#

@rotund hemlock Check for the ID of the version you're using

quartz furnace
#

@quartz furnace no not yet
@neat lion how sad

worldly heathBOT
neat lion
#

can we not post whole logs in here use pastebin or something

#

yes

rotund hemlock
#

?paste

#

can some1 help meiwth shaped potion recipe ?

#

?

remote socket
#

@rotund hemlock SPLASH_POTION isnt a material in 1.8 if that's what your using

rotund hemlock
#

yea

#

1.8

frigid ember
#

just wonderin when does spigot 1.16 come out. People on my server wants to know when we change verision

rotund hemlock
#

but

remote socket
#

It doesnt exist

rotund hemlock
#

what do i do

#

?

remote socket
#

potion.setSplash(true);

rotund hemlock
#

to be honest i dont ant splash potion

neat lion
#

ok hold up on my issue removing nametag edit seemed to fix it. Whats the character limit for 1.8

remote socket
#
ItemStack potion = new ItemStack(Material.POTION, 1);
Potion pot = new Potion(1);
pot.setSplash(true);
pot.setType(type);
pot.setLevel(level);
pot.setHasExtendedDuration(extend);
pot.apply(potion);```
rotund hemlock
#

put with effects

#

but*

remote socket
#

#setType() sets the effect

rotund hemlock
#

wdym how

remote socket
#

Read the javadoc on potions it will help

rotund hemlock
#

@remote socket i want to make a shaped potion recipe. it means you craft it on crafting table and i f you have the right materials then it will give you regeneration potion 3 for 8 seconds

#

i want to make a shaped potion recipe. it means you craft it on crafting table and i f you have the right materials then it will give you regeneration potion 3 for 8 seconds

red ingot
#

Is there any way to connect to a vanilla server via bungeecord?

#

sadddd

remote socket
#

@remote socket i want to make a shaped potion recipe. it means you craft it on crafting table and i f you have the right materials then it will give you regeneration potion 3 for 8 seconds
@rotund hemlock So you don't want a physical potion? Just effect?

rotund hemlock
#

potion with effects

#

i wnat to craft potions with effects

remote socket
#

Use the PrepareItemCraftEvent

#

And then when the recipe is correct

ItemStack potion = new ItemStack(Material.POTION, 1);
Potion pot = new Potion(1);
pot.setSplash(true);
pot.setType(type);
pot.setLevel(level);
pot.setHasExtendedDuration(extend);
pot.apply(potion);```

Use this to give them the potion

rotund hemlock
#

ok i see

#

it seems correct but it doesnt have effects

remote socket
#

Show it

rotund hemlock
#

it is the only hard part

#

public void RegenPot() {
ItemStack RegenPot = new ItemStack(Material.SPLASH_POTION);

    PotionMeta meta = ((PotionMeta) RegenPot.getItemMeta());
    meta.addCustomEffect(new PotionEffect(PotionEffectType.REGENERATION, 400, 0), true);
    RegenPot.setItemMeta(meta);
    
    ShapedRecipe RegenPotRecipe = new ShapedRecipe(RegenPot);
    RegenPotRecipe.shape(" E ","GWG"," B ");
    RegenPotRecipe.setIngredient('G', Material.GOLD_INGOT);
    RegenPotRecipe.setIngredient('W', Material.MELON);
    RegenPotRecipe.setIngredient('E', Material.EMERALD);
    RegenPotRecipe.setIngredient('B', Material.GLASS_BOTTLE);
    Bukkit.getServer().addRecipe(RegenPotRecipe);
#

this is my code

#

public void RegenPot() {
ItemStack RegenPot = new ItemStack(Material.POTION);

    PotionMeta meta = ((PotionMeta) RegenPot.getItemMeta());
    meta.addCustomEffect(new PotionEffect(PotionEffectType.REGENERATION, 400, 0), true);
    RegenPot.setItemMeta(meta);
    
    ShapedRecipe RegenPotRecipe = new ShapedRecipe(RegenPot);
    RegenPotRecipe.shape(" E ","GWG"," B ");
    RegenPotRecipe.setIngredient('G', Material.GOLD_INGOT);
    RegenPotRecipe.setIngredient('W', Material.MELON);
    RegenPotRecipe.setIngredient('E', Material.EMERALD);
    RegenPotRecipe.setIngredient('B', Material.GLASS_BOTTLE);
    Bukkit.getServer().addRecipe(RegenPotRecipe);
#

sry wrong

#

this is right

worldly heathBOT
rotund hemlock
#

public void RegenPot() {
ItemStack RegenPot = new ItemStack(Material.POTION);

    PotionMeta meta = ((PotionMeta) RegenPot.getItemMeta());
    meta.addCustomEffect(new PotionEffect(PotionEffectType.REGENERATION, 400, 0), true);
    RegenPot.setItemMeta(meta);
    
    ShapedRecipe RegenPotRecipe = new ShapedRecipe(RegenPot);
    RegenPotRecipe.shape(" E ","GWG"," B ");
    RegenPotRecipe.setIngredient('G', Material.GOLD_INGOT);
    RegenPotRecipe.setIngredient('W', Material.MELON);
    RegenPotRecipe.setIngredient('E', Material.EMERALD);
    RegenPotRecipe.setIngredient('B', Material.GLASS_BOTTLE);
    Bukkit.getServer().addRecipe(RegenPotRecipe);
#

what do i do with ?paste

remote socket
#
            ItemStack regenPot = new ItemStack(Material.POTION, 1);
            Potion pot = new Potion(1);
            pot.setType(PotionType.REGEN);
            pot.apply(regenPot);

            ShapedRecipe RegenPotRecipe = new ShapedRecipe(RegenPot);
            RegenPotRecipe.shape(" E ","GWG"," B ");
            RegenPotRecipe.setIngredient('G', Material.GOLD_INGOT);
            RegenPotRecipe.setIngredient('W', Material.MELON);
            RegenPotRecipe.setIngredient('E', Material.EMERALD);
            RegenPotRecipe.setIngredient('B', Material.GLASS_BOTTLE);
            Bukkit.getServer().addRecipe(RegenPotRecipe);

@rotund hemlock

rotund hemlock
remote socket
#

For RegenPot you should start the name with lowercase as it's a field

rotund hemlock
#

wdym i am starter please explain

#

doesit matter ?

remote socket
#

It will work fine

#

But it's bad practice

rotund hemlock
#

yea i am bad too

remote socket
#

Change ur code to what I pasted

rotund hemlock
#

๐Ÿ™‚

#

does it work

#

then

#

?

#

@remote socket does it work

#

๐Ÿ˜ฆ

remote socket
#

It should

rotund hemlock
#

but is it 8 seconds long ?

remote socket
#

but is it 8 seconds long ?
@rotund hemlock no

rotund hemlock
#

@remote socket but it seems not to be 8 seconds

chilly hatch
#

are you seeing this message?
p.sendMessage(ChatColor.DARK_RED + "" + ChatColor.BOLD + "" + ChatColor.ITALIC + "BLAD! " + ChatColor.RED + "Nie masz uprawnien do tej komendy!" + ChatColor.GOLD + "(dklessentials.fly)");

rotund hemlock
#

i want it to be 8 seconds

remote socket
#

pot.setHasExtendedDuration(extend); Add this

rotund hemlock
#

where do i put the seconds in there

remote socket
#

where it says "extend"

chilly hatch
#

just make your command executor do something stupid simple

@Override
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
  sender.sendMessage("Hey, we're here");
  return true;
}
rotund hemlock
#

i just put 8 in there ?

#

@remote socket do i put just 8 in there

remote socket
#

I'm not sure

rotund hemlock
#

then it says

remote socket
#

No put true

#

Then put .extend() on the constructor

rotund hemlock
#

true works

#

wdym with constuctor ?

remote socket
#

Then put .extend() on the constructor
@remote socket I think this does same as #setHasExtendedDuration()

#

Hmm

rotund hemlock
#

if i put extend

remote socket
#

Google it or ask someone else

rotund hemlock
#

after sethasextendedduration

remote socket
#

Or read the javadocs on potions

rotund hemlock
#

yea i ll try

#

it after

#

2nc question

#

2nd*

frigid ember
#

they are about to release 1.16.1

rotund hemlock
#

how do i change based damage

#

but you are better

#

hmm...

#

@remote socket i have second question

remote socket
#

yep?

rotund hemlock
#

how do i change base damage on an item

#

i think no

#

i think NO

#

ty

remote socket
#

ItemStack(int type, int amount, short damage) @rotund hemlock

rotund hemlock
#

what is this

#

for base damage i mean it has a custom recipe

remote socket
#

When you create a new item you type

new ItemStack(Material.TYPE, amount, damage);
#

ItemStack regenPot = new ItemStack(Material.POTION, 1);

#

Here you did it before

#

ItemStack regenPot = new ItemStack(Material.POTION, 1);
Do this again but with whatever item and add another parameter

rotund hemlock
#

ItemStack DragonSword = new ItemStack(Material.DIAMOND_SWORD ,1 ,8);
DragonSword.addEnchantment(Enchantment.DAMAGE_ALL, 2);

    ItemMeta meta = DragonSword.getItemMeta();
    meta.setDisplayName(ChatColor.GOLD + "Dragon Sword");
    meta.setLore(Arrays.asList("Good Sword"));
    DragonSword.setItemMeta(meta);
    
    ShapedRecipe DragonSwordRecipe = new ShapedRecipe(DragonSword);
    DragonSwordRecipe.shape(" B "," D ","OBO");
    DragonSwordRecipe.setIngredient('B', Material.BLAZE_POWDER);
    DragonSwordRecipe.setIngredient('D', Material.DIAMOND_SWORD);
    DragonSwordRecipe.setIngredient('O', Material.OBSIDIAN);
    Bukkit.getServer().addRecipe(DragonSwordRecipe);
#

like so

#

?

remote socket
#

This should work

rotund hemlock
#

@remote socket it has an error (int , int)

remote socket
#

Let me see

rotund hemlock
#

material(int int is underfined

remote socket
#

do .setDurability() on the itemstack constructor (the brackets)

rotund hemlock
#

how ๐Ÿ˜ฆ

remote socket
#

Ah

rotund hemlock
#

and wdym with it

remote socket
#

you need to cast the last parameter

rotund hemlock
#

sorry

remote socket
#

the 8 you put is not a Short

#

its an int

rotund hemlock
#

so

#

i have to put

#

ItemStack DragonSword = new ItemStack(Material.DIAMOND_SWORD,1 and sth);

#

?

remote socket
#

ItemStack DragonSword = new ItemStack(Material.DIAMOND_SWORD, 1, (Short) 8);

rotund hemlock
#

oh

remote socket
#

Casting, doing (Object), tells the code to act like the object is the one in the brackets

rotund hemlock
#

it says can not cast int to short

#

ok teacher

#

๐Ÿ™‚

remote socket
#

What?

rotund hemlock
#

it says can not cast int to short

remote socket
#

ItemStack DragonSword = new ItemStack(Material.DIAMOND_SWORD, 1, (Short) 8);
You wrote this exactly?

rotund hemlock
#

yea

mystic sparrow
#

Use byte

rotund hemlock
#

wdym

remote socket
#

It should be short

mystic sparrow
#

Would it?

rotund hemlock
#

oh

#

there was

remote socket
#

Look at the javadocs

rotund hemlock
#

it works

#

just short has capital S

remote socket
#

@mystic sparrow

rotund hemlock
#

every thing is right

mystic sparrow
#

Oh wut

remote socket
#

๐Ÿ‘

mystic sparrow
#

The deprecated is byte

#

okay

rotund hemlock
#

and

mystic sparrow
#

my bad

rotund hemlock
#

does it work

mystic sparrow
#

What error does it give you potato?

rotund hemlock
#

does it have 8 damage on it

remote socket
#

Classes and types should start with capital letters

rotund hemlock
#

when crafted

remote socket
#

It should do

rotund hemlock
#

ande

#

and

#

3rd question

#

just saying

#

ty for the help @remote socket

remote socket
#

np

rotund hemlock
#

3rd question is i wnat to make a custom craft recipe AGAIN but if you hold it it gives you speed

remote socket
#

You will need to make an item with an NBT tag

rotund hemlock
#

๐Ÿ™‚

#

what is NBT tag

remote socket
#

That's rather complex

#

It's extra data ontop of an item

karmic stone
#

hello guys

remote socket
#

thats hidden

karmic stone
#

i need some help

#

do u guys know how to make mods>

rotund hemlock
#

oh then what do i do

remote socket
mystic sparrow
#

Look up tutorials @karmic stone

remote socket
#

I'd recommend using this

karmic stone
#

i have a doubt

remote socket
#

This is spigot not forge

rotund hemlock
#

what is this

karmic stone
#

umm guys sorry

remote socket
#

It's an API to help you make nbt tags easily

rotund hemlock
#

so i have to download it ?

karmic stone
#

i apologize for wasting a few second for your very precious life

#

cya

rotund hemlock
#

ok so i dwonload it

#

what do i do next

remote socket
#

np ๐Ÿ˜‚

#

It's better if you shade the plugin @rotund hemlock

#

Add it to your pom.xml

rotund hemlock
#

what is pom.xml

#

?

#

@remote socket

#

๐Ÿ˜ฆ

#

@remote socket

mystic sparrow
#

It's if you use maven

rotund hemlock
#

?

#

whats maven

abstract cradle
#

@frigid ember you good?

#

you got killed lmfao with all ur stuff

#

and ur mc keeps crashing

#

oh u died apparently

#

oops #general

final sky
#

Is bungeecord not updated for 1.16.1? It's still just a snapshot though

civic totem
#

When does 1.16 spigot come?

hoary parcel
#

Not today

remote socket
#

@rotund hemlock Do you not use Maven?

#

What IDE do you use

rotund hemlock
#

i use java

#

for editor i use eclipse

hoary parcel
#

Eww

rotund hemlock
#

what

#

?

#

@remote socket can you help me ๐Ÿ™‚

final sky
#

Do any of the proxies work for 1.16.1? Waterfall, Bungeecord, and Taverntine dont work yet.

remote socket
#

I'm not sure how to use maven with eclipse

#

I use Intellij

rotund hemlock
#

ok i will download it

#

then

#

ok ?

#

so what do i need to dwonload

remote socket
#

If you want

#

Or you can just research "Use maven with eclipse"

rotund hemlock
#

is it good

vast orchid
#

eww eclipse i havent touched in 7 years orso

#

the git stuff in there was a mess to deal with

#

intellij is way better in the aspect maven also tho

remote socket
#

I prefer Intellij but many also like eclipse

rotund hemlock
#

i wont download

#

intellij

remote socket
#

This is what intellij looks lie

rotund hemlock
#

i k

#

how it looks

remote socket
#

On the side you can use maven

#

And modify your pom

rotund hemlock
#

i ll do it in eclipe

remote socket
#

๐Ÿ‘

rotund hemlock
#

what is group id

#

@remote socket what is group id

reef mango
#

would anyone be able to help me modify my hopper speeds in spigot.yml

#

im running a factions server and hoppers just seem to be clogged everywhere

quick bolt
#

@rotund hemlock group id is your group identifier. :)

Basically, It should be the same for all the plugins you make. The artifact ID is unique to each plugin

blissful verge
#

One quick question I cant find an answer to, how do I put multiple lines into this? (Its an arraylist)
Lore.add(ChatColor.GRAY + "It hurts when you get hit by it" + ChatColor.AQUA + "Recipe level cost: 5");

#

So that the "Recipe level cost: 5" is on another line

mellow wave
#

run Lore.add again

blissful verge
#

Oh thx alot bro

frigid ember
#

What Event would you use to analyse the amount of times a player has repaired and enchanted

lament tide
#

Weird question... A user on my server just mined to bedrock and noticed a "see through block" I thought I'd hop on and fix a glitch or another admin forgetting to fix something they broke... but... its everywhere... and barrier blocks are below the bedrock... is this a Spigot thing?

grizzled hound
#

not afaik

pastel igloo
#

Can i change my buycraft name?

frigid ember
#

Thats the first time i ever see that in my life.

#

And i wanna know how to set this.

quick bolt
#

@frigid ember I think you might be able to tell by the toolโ€™s repair cost NBT tag. But that isnโ€™t only dependent on times repaired afaik.

frigid ember
#

Is there some API part for setting a server to Beta?

#

figured out the Enchantment times @quick bolt

#

only need to get the amount a player has repaired something

quick bolt
#

Oh I thought you meant on a specific tool.

#

Not in general my b

pastel igloo
#

?????????????????????????????????????????????????

#

can i change my buycraft name?

lime hound
#

?eta

clear night
#

Is there some API part for setting a server to Beta?
@frigid ember also interested to know about this ๐Ÿค”

dark shuttle
#

they just put a lot of spaces between the BETA and the player count

tacit escarp
#

You should be able to tell if they are doing that by looking at the ping indicator. It should show offline if you change the playercount

frigid ember
#

disconnected with: Exception Connecting:CorruptedFrameException : Empty Packet! @ net.md_5.bungee.protocol.Varint21FrameDecoder:35 suddenly players cant join my server. tried to upgrade bungeecord did not fix this problem

soft locust
#

I have a weird error when a player joins my server:

java.lang.reflect.InvocationTargetException
at ...
Caused by: java.lang.Error: Unresolved compilation problems:
GameProfile cannot be resolved to a type
GameProfile cannot be resolved to a type
Property cannot be resolved to a type
GameProfile cannot be resolved to a type

It seems to happen when I use GameProfile to create a custom head

blissful verge
mellow wave
#

Now you ran it multiple times

blissful verge
#

yeah

#

I opened the inventory multiple times

#

Heres the command tf is wrong with it:


import java.util.ArrayList;
import java.util.List;

import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;

import me.novato.novatoessentials.utils.Utils;

public class CraftBookCmd implements CommandExecutor{
    
    List<String> Lore = new ArrayList<>();

    
    
    @Override
    
    public boolean onCommand(CommandSender sender, Command command, String laber, String[] args) {
        
        
        if (sender instanceof Player) {
            Player p = (Player) sender;
            
            
            Inventory gui = Bukkit.createInventory(p, 27, Utils.chat("&e&lCraftBook"));
            ItemStack item1 = new ItemStack(Material.STICK);
            ItemMeta item1_meta = item1.getItemMeta();
            item1_meta.setDisplayName("Grandpas walking stick");
            Lore.add(Utils.chat("&8It hurts when you get hit by it"));
            Lore.add(Utils.chat("&bRecipe experience cost: 5"));
            item1_meta.setLore(Lore);
            item1.setItemMeta(item1_meta);
            
            
            gui.addItem(item1);
            p.openInventory(gui);
        }
        
        
        
        return true;
    }
    

}
hoary parcel
#

I have a weird error when a player joins my server:

java.lang.reflect.InvocationTargetException
at ...
Caused by: java.lang.Error: Unresolved compilation problems:
GameProfile cannot be resolved to a type
GameProfile cannot be resolved to a type
Property cannot be resolved to a type
GameProfile cannot be resolved to a type

It seems to happen when I use GameProfile to create a custom head
@soft locust use papers player profile api

soft locust
#

@soft locust use papers player profile api
@hoary parcel thx I'll try that

blissful verge
#

Oh fixed it by clearing "Lore" before adding it

#

How come this wont do anything when I click the item in the menu tho:

    @EventHandler
    public void onMenuClick(InventoryClickEvent e) {
        e.setCancelled(true);
        Player p = (Player) e.getWhoClicked();
        if (e.getView().getTitle().equalsIgnoreCase("CraftBook")) {
            if (e.getCurrentItem().getType().equals(Material.STICK)) {
                p.sendMessage("DEBUG MESSAGE");
                int xplvl = p.getLevel();
                if (xplvl >= 5) {
                    xplvl -= 5;
                    p.sendMessage(Utils.chat("&eSuccefully bought the Grandpas Walking Stick recipe!"));
                    Bukkit.getConsoleSender().sendMessage("/lp user " + p + " permission set ncb.gpws");
                    
                }else {
                    p.sendMessage(Utils.chat("&4Your experience level is too low!"));
                }
                
                
                
                }
                
                
            }
            
        }```
soft locust
#

@soft locust use papers player profile api
@hoary parcel I don't understand how to use it. PlayerProfile is an interface, how do I add one to my custom head ?

hoary parcel
#

Bukkit.createprofile or smth iirc

soft locust
#

it works, thanks !

hollow hedge
#

Highest will have the last say on the outcome of an event, low will run before normal priority events.

frigid ember
#

That's exactly how priority works for Bukkit lmao

#

I was like "why is it upside down"

#

It's not "who gets to mess with the event first" but "who has the final call"

#

Oh don't worry, I did too xd

#

i think alot of people do at the beginning

hollow hedge
#

Everyone starts somewhere.

frigid ember
#

i mean i know i did as well

blissful verge
#

Why wont clicking the item do anything?


import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.inventory.InventoryClickEvent;

import me.novato.novatoessentials.utils.Utils;

public class ClickListener implements Listener{
    
    @EventHandler
    public void onMenuClick(InventoryClickEvent e) {
        Player p = (Player) e.getWhoClicked();
        if (e.getView().getTitle().equalsIgnoreCase("CraftBook")) {
            if (e.getCurrentItem().getType().equals(Material.STICK)) {
                p.sendMessage("DEBUG MESSAGE");
                int xplvl = p.getLevel();
                if (xplvl >= 5) {
                    xplvl -= 5;
                    p.sendMessage(Utils.chat("&eSuccefully bought the Grandpas Walking Stick recipe!"));
                    Bukkit.getConsoleSender().sendMessage("/lp user " + p + " permission set ncb.gpws");
                    
                }else {
                    p.sendMessage(Utils.chat("&4Your experience level is too low!"));
                }
                
                
                
                }
                
                
            }
        e.setCancelled(true);
        }
    }
    

forest thorn
#

Hi, can anyone tell me how to oepn a report?

#

it's mentioned on the rules page, but no further reference is made

#

I tried site search and the wiki, but couldn't find it

alpine lion
#

@blissful verge You should use == to compare Materials. Only other thing past that would be making sure that the events are registered

hollow hedge
forest thorn
#

.equals should work fine afaik

blissful verge
#

Where am I comparing materials? Im just checking the type of a material? right?

#

Heres the "Main" class:


import org.bukkit.plugin.java.JavaPlugin;

import me.novato.novatoessentials.commands.CraftBookCmd;
import me.novato.novatoessentials.listeners.ClickListener;
import me.novato.novatoessentials.listeners.PlayerDeathListener;
public class Main extends JavaPlugin{
    
    @Override
    public void onEnable() {
        
        new PlayerDeathListener(this);
        getCommand("Craftbook").setExecutor(new CraftBookCmd());
        getServer().getPluginManager().registerEvents(new ClickListener(), this);
    }
    
    

}
forest thorn
#

Thanks Schatten, I will send the email I guess

steady cedar
#

wait is this an inventory

blissful verge
#

Yes

steady cedar
#

hm

#

idk from phone i can't read it lel

blissful verge
#

cuz

#

I can open it and all but cant actually use it and clicking it does nothign

frigid ember
#

You should use == to compare Materials.
@alpine lion because....?

lone fog
#

Because they are static fields

forest thorn
#

Its just that the spigotmc rules specify:
If you require staff assistance, please open a report. Do not private message staff members.

#

So I was wondering how to make a report

alpine lion
#

Yeah. Typically .equals is used to compare objects rather than Enums

lone fog
#

because == compares memory locations

alpine lion
#

Yup

frigid ember
#

Fair enough

forest thorn
#

they should both work though

#

so that isnt breaking his code

frigid ember
#

Well it for sure doesn't break mine

alpine lion
#

Yeah. Shouldn't be a problem. And the event is registered. @blissful verge Are you by chance using ChatColors in the inventory title?

blissful verge
#

OHHHHHHHHHHHHHHH

#

IM STUPID

#

but how do I make it work then

#

"&e&lCraftBook"

#

Is the name

#

How tf do I put that to the check

lone fog
#

ChatColor.Whatever

alpine lion
#

.equals(ChatColor.YELLOW + "" + ChatColor.BOLD + "CraftBook")

blissful verge
#

thx

alpine lion
#

Basically, just copy/paste whatever you've set the inv title to where you open it

strange forge
#

trying to run BuildTools for the latest to get 1.16 downloaded and update my plugins

alpine lion
#

lol

#

?1.16

worldly heathBOT
#

Spigot 1.16 is in development with no release date. It'll be out when it's out.

strange forge
#

..oh

#

how did ViaVersion and other plugins update to 1.16 then ๐Ÿ˜…

lone fog
#

Because they run on 1.15

strange forge
#

even third party websites haven't distributed

alpine lion
#

ViaVersion merely "hacks" protocols to allow 1.16 clients to join a 1.15 server

strange forge
#

hm i see

#

and spigotcraft is the special kid i guess? ๐Ÿ˜‚

frigid ember
#

Just like adding another protocol number to BungeeCord lol

alpine lion
#

SpigotCraft is the dev test server for Spigot. So md_5 puts his dev builds up for bug testing

strange forge
#

i see.. well thanks for the help, hopefully it's out so i could support it asap

alpine lion
#

Yeah. Had you had any problems with BuildTools in the past?

strange forge
#

always

#

it never worked with my computer so i always had to download from 3rd party websites

#

yeah not allowed and violates the DMCA but no choice :/

alpine lion
#

By the looks of things, your Maven setup is not installed properly

#

If I were you, I'd look up some stuff about re-installing Maven

strange forge
#

hm? never had any issues with maven so far except build tools

alpine lion
#

Currently running a build for latest should get you 1.15.2

#

Do you use Maven stuff often?

strange forge
#

i'll try reinstalling, hopefully nothing breaks

#

yeah used it a lot for building projects

#

and installing certain jars to my local repo when they aren't hosted anywhere

alpine lion
#

Hmm. That's odd

strange forge
#

yeah

alpine lion
#

I'm unsure if I've already set Maven up before running BuildTools or not. If I remember correctly, it should set up everything it needs when you run it

strange forge
#

it downloads and sets maven up by itself?

frigid ember
#

Which event is for amount of times a player repaired something

alpine lion
#

I'm not positive it does. But I do know that it has its own PocketGit thing

#

@frigid ember If you're trying to get a statistic, it wouldn't be an event

strange forge
#

yeah the portable git, not sure why it even downloaded it as i have git installed as well, seems to be fully automatic so i can't judge

#

i'll play the last card and reinstall maven

#

worth the try i guess

alpine lion
#

Yeah. That'd be my first guess

frigid ember
#

How would I get the amount of times a player enchanted

alpine lion
#

Reinstall Maven, download a new build of BuildTools

#

You can use getStatistic for default tracked stuff

#

Anything else you want to track, you'll have to set up trackers on the various events

frigid ember
#
    @EventHandler
   public void onEnchant(EnchantItemEvent event) {
       Player player = event.getEnchanter();
       
       if (player.hasPermission("EnchantGilde.use")) {
           amountEnchanted.put(player.getUniqueId(),amountEnchanted.containsKey(player.getUniqueId()) ? amountEnchanted.get(player.getUniqueId())+1  : 1);
       }```
#

like this for amount of enchantments

alpine lion
#

Yeah. That would work

strange forge
#

use map#merge

frigid ember
#

yep it works

alpine lion
#

^^

frigid ember
#

but I want to do the same for anvil

alpine lion
#

There is also a specific statistic for it

strange forge
#

amountEnchanted.merge(player.uuid, 1, (old, newValue) -> old + 1);

frigid ember
#

but interaction would also be a click

#

public static final Statistic CRAFTING_TABLE_INTERACTION

alpine lion
#

You want to see how many times they interact with an anvil?

frigid ember
#

@strange forge could also use instead of the lambda just Integer::sum

strange forge
#

ooh right yeah better option actually

frigid ember
#

Yes how many times players repair an item using an anvil

#

Or add items together

#

Just when they use an anvil

#

But not only go in it

#

Really use it

#

You want to look at AnvilDamagedEvent

#

Ty

#

oh nvm

#

that's paper

#

Oof

#

:p

#

paper specific

#

Spigot 1.8.8

#

๐Ÿ˜‚

#

Old

strange forge
#

tbh you might want to use NMS and override with your custom nms.anvil implementation

frigid ember
#

I just take the latest javadocs lol

strange forge
#

to listen to that

rocky pebble
#

ew 1.8

strange forge
#

dont think bukkit has any event for these

rocky pebble
#

:)

strange forge
#

can't blame him for using 1.8, if his users want it he probably cannot do much about it ๐Ÿ˜‚ same with me ๐Ÿ’”

frigid ember
#

:)

alpine lion
#

I'd just use InventoryClickEvent, check if it's an Anvil inventory and if the slot clicked is both the last slot and not empty

#

In that case, they've used the anvil either to repair something or to enchant something

frigid ember
#

That's what I need

#

Will try that

#

<3

tawny gale
#

*** Problem: *** I have been trying to solve my problem for the past 3-4 days:
On my plugins: ** Jobs, zTotem, zNexus, ** (and maybe others), I don't see the ads in the chat on my non-op account

  • Example: * When the totem event begins, I do not receive any notification.
    What I tried to do to solve the problem: Put the permission "*" via the LuckPerms plugin to my account + OP my account
    I'm still not receiving notifications. What seems to be weird is that I receive the announcements of these 3 plugins on my OP account. So the problem is not with permissions. I went to see the developers of these plugins, nobody knew how to answer me so I do not know if it is the sending of the announcement which is done on a single account under the same IP or if the problem comes from 'elsewhere.
    Finally, I restart, stop, reset the plugins (finally the base, what).

(DM or mention me pls)

rocky pebble
#

monkaW

worldly heathBOT
#

There is no ETA. Having an ETA leads to unrealistic deadlines, false hope, and a bad product. It will be ready when it's ready.

hollow thorn
#

?1.16.1

frigid ember
#

@alpine lion can probably also be done using PlayerInteractEvent right?

#
    @EventHandler
       public void onRepair(PlayerInteractEvent event) {
        Player player = event.getPlayer();
        Block block = event.getClickedBlock();
        
           if (player.hasPermission("EnchantGilde.use")) {
        if (event.getAction() == Action.RIGHT_CLICK_BLOCK) {
            if (event.getClickedBlock().getType().equals(Material.ENDER_CHEST)) {```
#

oops did .equals

#

instead of ==

alpine lion
#

PlayerInteractEvent only fires when the player physically interacts with a block/air

#

So if you want to track the number of times the player has clicked on an Ender Chest, that works

#

Putting items into/pulling out of wouldn't work with that

frigid ember
#

Ohh so ill have to use InventoryClickEvent

#

thanks

alpine lion
#

np

soft tusk
#

You can help with DDoS firewall?

grave pollen
#

Heya. I'm creating a simple plugin using Protocollib that replaces a block client-side by messing with the packets. What is the packet i'm actually supposed to mess with? How is map loading handled in MC? I think the Play.Server.MAP_CHUNK is the one used. But i'm not sure.

ionic hound
#

does anyone have a good plugin to running commands all server on a bungee network

grave pollen
#

what kind of commands?

nova badge
#

hey guys, does anyone know why Player#sendBlockChange() is not giving me a permanent effect?

#

when I do that, the block type changes for a small tick and then reverts back to the original type

#

does anyone have a good plugin to running commands all server on a bungee network
@ionic hound I have a plugin for that on Spigot

full sky
#

Hello!
I try to summon a Chest, but it doese't work like I want.
Here is the Code:

public class ChestAPI {
    
    public Chest c;
    
    private static boolean summonChest(Location location) {
        
        Block b = location.getBlock();
        b.setType(Material.CHEST);
        return true;
    }
    
    public static Chest getChest(Location location) {

        Block block = location.getBlock();
        if(block.getType() == Material.CHEST) {
              BlockState state = block.getState();
            if(state instanceof org.bukkit.block.Chest) {
                  
                   Chest chest = (Chest) state;
                   return chest;
                   
               }
        }
        return null;
    }
    
    public static Chest summonChest(Location location, Inventory inventory) {
        
        if(summonChest(location)) {
            getChest(location).getInventory().setContents(inventory.getContents());
            return getChest(location);
        }
        return null;
    }
    
    public static boolean setType(final Block b, final Material m){
        new BukkitRunnable() {
            
            public void run() {
                b.setType(m);
            }
            
        }.runTask(Main.getInstance());
        
        return true;
    }
    
}```
#

I always get an exception Caused by: java.lang.IllegalStateException: Asynchronous block remove!

#

I can't run it in a BukkitRunnable because I want to return a Chest

ionic hound
#

@grave pollen only on l server at a time

full sky
#

Has anyone an idea to solve this problem?

nova badge
#

your setType method is changing the block type Async

full sky
#

yes, I know

nova badge
#

You can't do that asynchronously

full sky
#

ok
and how can I fix this

#

?

nova badge
#

just set the block type without the runnable

full sky
#

I don't use a Runnable

#

I use block.setType()

nova badge
#

public static boolean setType(final Block b, final Material m){
b.setType(m);
return true;
}

full sky
#

ok

#

I will try it

grave pollen
#

@ionic hound Then just connect to the server and run the command as an op?

full sky
#

@nova badge That doesn't work

nova badge
#

it should

#

maybe you're doing the same thing somewhere else

full sky
#

no

#

I don't think so

#

Is there a Method to wait till the BukkitRunnable is executed?

lone fog
#

Think you can do a callback

hardy cedar
#
          public void sendTitleEnable(Player player) {
                PacketPlayOutTitle TitleTimings = new PacketPlayOutTitle(5, 100, 20);
              PacketPlayOutTitle title = new PacketPlayOutTitle(PacketPlayOutTitle.EnumTitleAction.TITLE, IChatBaseComponent.ChatSerializer.a("{\"text\":\"+ WarMode Activated + \"}"));
              PacketPlayOutTitle subtitle = new PacketPlayOutTitle(PacketPlayOutTitle.EnumTitleAction.TITLE, IChatBaseComponent.ChatSerializer.a("{\"text\":\"+ By Someone + \"}"));
              PlayerConnection playerConnection = (((CraftPlayer)player).getHandle()).playerConnection;
              playerConnection.sendPacket((Packet)TitleTimings);
              playerConnection.sendPacket((Packet)title);
              playerConnection.sendPacket((Packet)subtitle);
            }```
#

hewp

#

๐Ÿ˜ฆ

#

the error is "void is an invalid type for the variable sendTitleEnable"

#

i want to broadcast it

#

to all players

#

what how

#

last 1.8.8

#

shoot

silk fulcrum
#

?1.16

patent monolith
#

Is it possible to make a mock server? One that sends fake NMS packets...

#

(No backing minecraft engine/code)

sick nexus
#

mock server? u mean offline mode?

patent monolith
#

well

#

@sick nexus I'm just wondering if it's possible to make a server that sends dummy packets

urban sundial
#

I know you guys get this questions a lot but is Spigot 1.16.1 released yet or not quite yet?

tall cedar
#

?eta

worldly heathBOT
#

There is no ETA. Having an ETA leads to unrealistic deadlines, false hope, and a bad product. It will be ready when it's ready.

urban sundial
#

Thanks

#

I just wanted to make sure I wasn't missing it on the website

patent monolith
#

based bot

frigid ember
#

Hello there can anybody help me with ShopGUI+, if anybody can please dm me

green sparrow
#

?eta

#

?1.16

worldly heathBOT
#

There is no ETA. Having an ETA leads to unrealistic deadlines, false hope, and a bad product. It will be ready when it's ready.

#

Spigot 1.16 is in development with no release date. It'll be out when it's out.

strange forge
#

hello soo, is there any way to listen to players (spectators) exiting an entity?

#

had something like that java @EventHandler(ignoreCancelled = true) public void onPlayerTeleport(PlayerTeleportEvent event) { if (event.getCause() == TeleportCause.SPECTATE) if (event.getPlayer().getSpectatorTarget() == null) Bukkit.getPluginManager().callEvent(new PlayerExitSpectateEvent(event.getPlayer())); } but doesn't seem to work, monitoring the event, the cause is UNKNOWN which makes it not guaranteed to be them exiting the spectated

frosty valve
#

Guys when i run my server with batch file says press any key to continue

strange forge
#

@frosty valve it usually says stuff before that line

umbral shoal
#

uh does anyone know an actual decent casino plugin

frosty valve
#

Any help my server not working

frigid ember
royal spade
#

Does anyone know a good plugin that has a GOOD Shop Economy? Preferably Dynamic prices etc? So it cannot be abused etc... but doesn't break the economy etc.

Open to suggestions. Appreciate any help.

#

Literally haven't found a good one in over a year ;l

umbral shoal
#

.

#

i got pinged

strange forge
#

wow the bot deleted my reply

royal spade
#

same?

#

PM me it Reflexction

strange forge
#

i pinged the 3 of you to answer

#

ShopGUIPlus

umbral shoal
#

why would you do that

strange forge
#

i answered in a single message >_>

blissful verge
#

Could someone tell me how tf to do saving, cause all tutorials I find are for a different af thing.

umbral shoal
#

uh what

#

did you ask for an answer or did you give one

royal spade
#

@strange forge I haven't seen this, thanks! I'll check it out.

strange forge
#

LNova anyway as i was saying, google 'slot machine plugin' or 'casino plugin' and you'll find lots of results, judge by the rating/reviews they have

umbral shoal
#

yeah well i've tried like 4 different ones and one was premium

#

the premium one was complete false advertising saying they had 10+ games while in reality there was just one

royal spade
#

@strange forge Does ShopGUI+ dynamically adjust the values of items?

umbral shoal
#

and one of the other 3 didnt work, while the other 2 where wayy too small

#

like seriously just coinflip doesnt cut it xD

strange forge
#

MrAmos123 wdym dynamically? you can configure the prices and everything iirc

blissful verge
#

I mean I need to technically just save a true / false value, has the player unlocked recipe x or not

strange forge
#

check the thing i sent

blissful verge
#

kk

kind zenith
#

@frosty valve wth is in ur batch file

royal spade
#

I mean like, if someone finds an exploit to generate books then they flood the market with books, I don't particularly want them making millions from books lol

#

If they flood the market with books then the book price becomes worthless

strange forge
#

ohh you mean a plugin that is like an ecosystem?

royal spade
#

idk man I just want a shop system that don't fuck my eco ๐Ÿ˜ญ

strange forge
#

i don't really think there are any of these tbh, have you looked enough though?

royal spade
#

Literally the hardest thing I've found about running an MC server

strange forge
#

economies get destroyed sooner or later, inflation is your friend ๐Ÿ˜‚

royal spade
#

I've looked and tested many plugins yeah over the last year and a half or so

#

inflation sucks ass I need these billionairs ingame to become moderately wealthy cuz they destroy the eco

#

just giving new players diamond shit like bruh

#

need them to sink their items into tax or something. Some major money sink

strange forge
#

maybe do regular economy resets?

blissful verge
#

@strange forge One thing I noticed, is that that file doesn't actually seem to be player based, and changes for everyone, where as I need it to be specific to one person. Please tell me if I just missed something, but I eyed it around and that doesnt seem like a part of the guide

royal spade
#

I mean it'd have to be unprovoked else they'd take their money out as diamonds or some asset

#

and if it's unprovoked then people get mad

strange forge
#

i was a dev in a factions server which did that around every 6 months, clearly players didn't like it but they had to deal with it ๐Ÿ˜‚

raw hound
#

@royal spade SSDynamicShop

strange forge
#

@blissful verge 1 file per player?

blissful verge
#

Is it a part of the guide?

royal spade
#

@raw hound Tried it, it's alright. Except 'everything' becomes worthless eventually, and if you add the bounceback return value time then people just do timed deposits

alpine lion
#

SSDynamicShop's code is horrid

#

lol

#

Took a look into it recently

#

not impressed

strange forge
#

nope the guide mainly talks about how to have other config files beside config.yml, not that you cannot leverage the tutorial though. use new File(player uuid + ".yml"), create the file, load it with YamlConfiguration.loadConfiguration, probably map it per UUID

blissful verge
#

kk but I aint no pro programmer

lone fog
#

Is it a vanilla recipe they are unlocking?

strange forge
#

@alpine lion if you want to judge plugins by good code you'll probably filter out 75% of the plugins ๐Ÿ˜‚ i guess that "bad" code is mostly not taken in mind by owners if they have small servers

knotty hare
#

where can i get latest 1.16 spigot?

royal spade
#

You can't.

lone fog
#

You canโ€™t

alpine lion
#

Yeah. Haha xD It's functional, and it is a pretty nice plugin

strange forge
alpine lion
#

It's just a mess to try to mess with. haha

#

Lol. That he does

strange forge
#

lel

steep echo
#

Anyone know when spigot 1.16 is coming out? XD

alpine lion
#

Saw a video about YandereSimulator's code. That stuff is probably the worst programming I've seen

#

but it works xD

blissful verge
#

It works in less than 10 fps

#

if if if if if if

alpine lion
#

Hahaha yup

blissful verge
#

ifififififififi

#

ifdjkifdifiifififiifififif

#

Its like the only thing he knows is if statements lol

pastel condor
#

anyone know any free dynamic shop, that might have 1.16 support (when it comes out on spigot?)

alpine lion
#

Precisely

lone fog
#

There is no ETA. Having an ETA leads to unrealistic deadlines, false hope, and a bad product. It will be ready when it's ready.
@steep echo

alpine lion
#

Honestly, anything better than SSDynamicShop might be hard to come by

royal spade
#

@pastel condor if you find any good ones that perform well tell me. I don't care if it's paid or even like $100

#

I want this god damn plugin

alpine lion
#

Lol

#

I'd honestly consider making a nice dynamic shop plugin

#

Who knows xD

royal spade
#

SSDynamic is garbage. Either everything becomes worthless because people sell more than buy, or you enable the rubber-banding feature to return the price after time and people just wait for the price to return before selling.

#

It's absolutely aids

steep echo
#

@lone fog oh ok, ty

pastel condor
#

my server shop looks like this @royal spade and has 12 pages

royal spade
#

del pics pls, but yeah I get you. I'm more concerned with the price dynamics.

pastel condor
royal spade
#

iConomy for like (?) 1.7/1.8 was the best

pastel condor
#

oh it's all static ๐Ÿ˜ฆ

alpine lion
#

Lol

#

iConomy was good

#

Died too quickly though

royal spade
#

this is the one

frigid ember
#

yo can anybody help me with making a shop for my sserver

royal spade
#

This was by far the best plugin

#

Someone update this shit please ^^

#

lol

frigid ember
#

literally ShopGUIPLUS is the worst

pastel condor
#

it's expensive

strange forge
royal spade
#

Someone update that DynamicEconomy plugin from 2012 and I'll shoot ya' $20. lmfao

#

shit was the best

frigid ember
#

i was having a problem where from the config file i ddidnt know what to write for having different types of LOGS in the lumber section of my shop, i couldnt type Log_1/2/3 or Spruce_log, Birch_Log

alpine lion
#

Lol. Don't tempt me @royal spade

royal spade
#

Do it

frigid ember
#

@royal spade could you recommend me a good shop plugin

royal spade
frigid ember
#

thanks

royal spade
#

No problems.

frigid ember
#

this is too real no shit lol

pastel condor
#

it's outdated ๐Ÿ˜ฆ

royal spade
#

lmfao

frigid ember
#

the prices change according to the need of an item

royal spade
#

You asked for a good shop plugin, that's what it is.

frigid ember
#

bruh thats extremee

royal spade
#

It ain't up to date. But that's what I remember using for server hosting back then.

#

I remember it being meta af.

frigid ember
#

me and my friend are building a skyblock server and we're stuck at this shop

alpine lion
#

It doesn't look to be open source

#

I'll have to decompile

royal spade
#

BRUH this plugin looks good https://github.com/writeescape/HyperConomy

Dynamic pricing system based on a hyperbolic curve.
Dynamic tax rates. (Rich players can be taxed more than poor ones.)
Supports command-free economies using transaction signs.
Price information, history, and more can be displayed on automatically updating information signs.
Price floor, price ceiling, static pricing, initial pricing, sales tax, purchase tax, unlimited stock option and much more.
#

Shame I can't download it and it's 2 major versions OoD

strange forge
#

oh dang you actually ninja'd me to it

#

๐Ÿ˜‚

royal spade
#

Someone find me a JAR for that MC version and I'll test it out, if it's worth updating then I'll pay someone to make it compatible to 1.15+

strange forge
#

tbh i see no reason why a shop plugin would be incompatible with 1.15

royal spade
#

names?

strange forge
#

well probably just materials

pastel condor
#

it shouldn't be hard to update

strange forge
#

broke literally every plugin so i can't judge

alpine lion
#

Can you not download the jar from the bukkit dev page?

royal spade
#

Yeah but it's 1 year older than Spigot's page I think?

#

Plus.. where can I find Spigot 1.11 download

pastel condor
#

please don't use 1.11

#

it's buggy af

#

just update the plugin

royal spade
#

I wanna test this plugin

pastel condor
#

ah

#

okay

lone fog
#

Isnโ€™t 1.11 still buildtools

pastel condor
#

it is

#

I have a 1.11 server, I'll test it rn

#

it's my minigames server lol

alpine lion
#

BukkitDev version has two more dev releases ahead of the Spigot page

royal spade
#

Trying to use Buildtools: *** The version you have requested to build requires Java versions between [Java 7, Java 8], but you are using Java 11

ffs

alpine lion
#

Lol

#

Just download Java 8

pastel condor
#

yeah

alpine lion
#

I develop on Java 8 99% of the time anyway

strange forge
#

75% of all java software still uses java 8

quartz trench
#

This is similar to hyperconomy with dynamic pricing

royal spade
strange forge
#

also is there any way to listen to players (spectators) exiting an entity?
had something like that

    @EventHandler(ignoreCancelled = true)
    public void onPlayerTeleport(PlayerTeleportEvent event) {
        if (event.getCause() == TeleportCause.SPECTATE)
            if (event.getPlayer().getSpectatorTarget() == null)
                Bukkit.getPluginManager().callEvent(new PlayerExitSpectateEvent(event.getPlayer()));
    }```
 but doesn't seem to work, monitoring the event, the cause is UNKNOWN which makes it not guaranteed to be them exiting the spectated
royal spade
#
amos@Amos-PC:~/BuildTools$ sudo apt install openjdk-8-jre-headless
Reading package lists... Done
Building dependency tree
Reading state information... Done
openjdk-8-jre-headless is already the newest version (8u252-b09-1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
amos@Amos-PC:~/BuildTools$ java --version
openjdk 11.0.7 2020-04-14
OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-3ubuntu1)
OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-3ubuntu1, mixed mode, sharing)
#

wat

quartz trench
#

check your path and java home

pastel condor
#

I tried running the plugin on 1.15.2 and the command do nothing ๐Ÿ˜ฆ

quartz trench
#

which plugin

frigid ember
#

Rough idea on when 1.16 is coming to spigot?

pastel condor
#

hyper shop thing

#

?1.16

worldly heathBOT
#

Spigot 1.16 is in development with no release date. It'll be out when it's out.

quartz trench
royal spade
#

I wouldn't recommend that plugin... ^

pastel condor
#

but [ Development Paused ]

#

so

royal spade
#

Eh, updated yesterday?

quartz trench
#

Check github

pastel condor
#

oh cool

#

what are the pros and cons?

#

because it looks like some people like and dislike it

quartz trench
#

Pros are it's easy to configure prices that adjust based on buy and sell

#

And you can configure fluctuations

#

cons is the data is saved as a config not mysql

pastel condor
#

thats a pro for me

#

because I don't backup mysql

#

I only backup files

royal spade
#

Okay pog, getting 1.11

alpine lion
#

Got it all figured out?

royal spade
#

yeah alternatives was fucking me

pastel condor
#

is it really that good? the dynamic shop

quartz trench
#

ubuntu

#

Try it out and see if you like it

royal spade
#

nah it's trash

quartz trench
#

lol

royal spade
#

If you like everything you have in your shop going worthless then by all means use it

quartz trench
pastel condor
#

what's that?

quartz trench
#

A graph of historical prices from my server

royal spade
#

visualisation of the ssdynamicshop

pastel condor
#

btw your server is still on 1.15.2 ๐Ÿ˜ฆ

quartz trench
#

yeah lol

pastel condor
#

please use via version

#

it would help everyone

royal spade
#

@quartz trench Do you use the bounceback thing? So after an item is cheap and no one trades it, it steadily returns to the original value?

pastel condor
#

let me say it another way, I'm too lazy to switch to 1.15 lmao

quartz trench
#

Yeah I have the stabilization enabled as well as the fluctuation

pastel condor
#

also I see you use tunity, is that any good?

#

just a side question

quartz trench
#

if you turn on stabilizing but not fluctuation it will steadily return

pastel condor
#

for the dynamic shop?

quartz trench
#

and yes I like it they wait for patches to be tested before merging from paper

#

yeah

royal spade
#

Problem with that @quartz trench is on my server people just waited for the price to return

#

Then when it reutned they sold at the new high price

quartz trench
#

Yeah it's not perfect

royal spade
#

This is my problem.

#

I need a better solution

#

Why is Minecraft fucking Economy the worst thing ever?

quartz trench
#

xD

#

fr tho

pastel condor
#

ikr

frigid ember
#
        @EventHandler
        public void onRepair(InventoryClickEvent event) {
        Player player = (Player) event.getWhoClicked();
        
        ItemStack[] contents = event.getInventory().getContents();
        ItemStack firstSlot = contents[0];
        ItemStack secondSlot = contents[1];
        ItemStack thirdSlot = contents[2];
        
           if (player.hasPermission("EnchantGilde.use")) {
               
               if (event.getView().getType() == InventoryType.ANVIL) {
                   
               if (firstSlot != null && secondSlot != null && thirdSlot != null) {
                   
                   if (event.getSlot() == 2) {
                       
                       amountEnchanted.put(player.getUniqueId(),amountEnchanted.containsKey(player.getUniqueId()) ? amountEnchanted.get(player.getUniqueId())+1  : 1);
                           }
                       }
                   }
               }
        }```
#

tryna add 1 to the hashmap each time a player repairs an item using an anvil

#

or adds an enchantment

#

Wait there's an economy for fucking in minecraft?

#

news to me

quartz trench
#

yeah bro diamonds up 13% on the forex markets

tight saffron
#

Does anyone have any idea on how to get the inventory from a MinecartChest/StorageCart. I can't find any documentation/posts about it and I can't figure it out for myself. Coming here as a last resort lol

frigid ember
#

@tight saffron have you tried restarting it? ;)

tight saffron
#

restarting what exactly?

royal spade
#

lol

frigid ember
#
for (StorageMinecart cart : entity) {
    Location cartLoc = cart.getLocation().getBlock().getLocation();
 
    if (cartLoc.equals(this.location)) {
        Inventory cartInv = cart.getInventory();
   
        cartInv.addItem(item);
   
    }
quartz trench
#

getInventory()

frigid ember
#

that should work

#

Tho remove the for if you don't want that part

tight saffron
#

Alrighty then, thank you for the help

pastel condor
#

jmp, your server has the dynamic shop plugin, right?

royal spade
#

@alpine lion turns out the HyperEco auto-downloads dependencies that aren't hosted at the target URL anymore and it won't start

#

fuckin' great

pastel condor
#

lmao

quartz trench
#

yeah it does It's not very active though

pastel condor
#

kk, I'm on it rn

steady cedar
#

okay

#

and what errors do you get

#

lol

#

@pastel arrow

royal spade
#

I'll chuck ya' $20 for ya' efforts if it works for 1.15.2

pastel arrow
#

One sec

#

@royal spade writeescape is updating it

azure steeple
#

big plugin for $20

royal spade
#

wdym?

#

Yapper^

steady cedar
#

i don't open my IDE for 20 bucks

pastel arrow
#

WriteEscape updated that plugin from 1.12 to 1.15

royal spade
#

Where?

pastel arrow
#

IDK go ask in his discord xD

royal spade
#

link to Discord?

#

I don't see it advertised anywhere

pastel arrow
#

find it on his resource pages

royal spade
#

Bruh ya' really making this a puzzle

quartz trench
royal spade
#

@quartz trench ty this looks like the one Writeescape made right just updated?

quartz trench
#

yeah

#

just compiled it

royal spade
#

ty

quartz trench
#

np

pastel arrow
#

@steady cedar my latest code
returns java.io.IOException: Server returned HTTP response code: 400 for URL: https://api.paypal.com/v1/reporting/transactions?start_date=2020-01-01T00:00:00-00:00&end_date=2020-28-02T00:00:00-00:00

steady cedar
#

notice something?

pastel arrow
#
400 Bad Request    INVALID_REQUEST. Request is not well-formed, syntactically incorrect, or violates schema.
#

Tried different links, dates, transaction id's etc..

#

Been trying this for months as I said. I've tried pretty much everything

marsh thorn
#

Why, do you have a problem Astronite?

frigid ember
#
        @EventHandler
        public void onRepair(InventoryClickEvent event) {
        Player player = (Player) event.getWhoClicked();
        
        ItemStack[] contents = event.getInventory().getContents();
        ItemStack firstSlot = contents[0];
        ItemStack secondSlot = contents[1];
        ItemStack thirdSlot = contents[2];
        
           if (player.hasPermission("EnchantGilde.use")) {
               
               if (event.getView().getType() == InventoryType.ANVIL) {
                   
               if (firstSlot != null && secondSlot != null && thirdSlot != null) {
                   
                   if (event.getSlot() == 2) {
                       
                       amountEnchanted.put(player.getUniqueId(),amountEnchanted.containsKey(player.getUniqueId()) ? amountEnchanted.get(player.getUniqueId())+1  : 1);
                           }
                       }
                   }
               }
        }```
tryna add 1 to the hashmap each time a player repairs an item using an anvil
or adds an enchantment does any1 know whats wrong?
steady cedar
#

@pastel arrow the problem is

#

you're using a v1 api

#

literally EVERY API i'm seeing documented

#

is v2

#

so

pastel arrow
#

I've tried v2/ nvp / etc

steady cedar
#

Use v2

marsh thorn
#

no it's easy xD

pastel arrow
#

with "/v2"
java.io.FileNotFoundException: https://api.paypal.com/v2/reporting/transactions?start_date=2020-01-01T00:00:00-00:00&end_date=2020-28-02T00:00:00-00:00

marsh thorn
#

it depends, I speak bad english ^^

#

french

frigid ember
steady cedar
#

@pastel arrow how are you

#

calling the api

#

can you show me the code you're using

frigid ember
#

but than still thats not what I want

steady cedar
#

to make an HttpRequest

#

lol

frigid ember
#

cuz they can spam 3rd slot now and 1 will be added to the hashmap each time

pastel arrow
#

thats the whole method @steady cedar

steady cedar
#

what

#

where

pastel arrow
#

the hastebin

steady cedar
#

where's the hastebin

#

oh nvm

#

i missed it

lone fog
#

Slot may be material.Air and not null

pastel arrow
#
    public static void getTransactions(String accessToken, String startdate, String enddate, String transactionID) {
        try {
            System.setProperty("https.protocols", "TLSv1.1,TLSv1.2,SSLv3,SSLv2Hello");
            URL url = new URL("https://api.paypal.com/v1/reporting/transactions"
                    + "?start_date=2020-01-01T00:00:00-00:00"
                    + "&end_date=2020-28-02T00:00:00-00:00");
            
            HttpsURLConnection conn = (HttpsURLConnection) url.openConnection();
            conn.setRequestMethod("GET");
            conn.setRequestProperty("Content-Type", "application/json");
            conn.setRequestProperty("Authorization", "Bearer " + accessToken);
            conn.setUseCaches(false);
            conn.setDoOutput(true);

            String line;
            BufferedReader reader = new BufferedReader(new InputStreamReader(conn.getInputStream()));

            while ((line = reader.readLine()) != null) {
                System.out.println(line);
            }
            reader.close();
        }catch (Throwable e) {
            e.printStackTrace();
        }
    }
violet heron
#

Hey could someone help me with this?
I am making a small relatively simple plugin with some basic functions, one of them is permissions and before you say anything, I know there are some great plugins for this but I'd like to do it by myself as a challenge and to have less overall load in the server.
I have found several posts in the forum about this and it is mostly working but I am having an issue with (custom) commands. These have been declared in the plugin.yml file, registered in the plugin class and do work... only when the player is OP, otherwise it will show as an unknown command even when the player has permissions

steady cedar
#

why tf

#

is it throwing a filenotfoundexception

pastel arrow
#

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

steady cedar
#

weird

pastel arrow
#

cause transactions api doesn't have v2

#

only v1

steady cedar
#

then it's been replaced

shut quest
#

Hi y'all, still trying to find out why my server have 3k loaded chunks with 13 players on 7 view distance ๐Ÿ˜„

#

Any ideas to lower it? ๐Ÿ˜„

pastel arrow
#

Can't find any replacements other then NVP but thats deprecated to. And apparently can't be used.

steady cedar
#
Use the /authorizations resource to show details for, capture payment for, reauthorize, and void authorized payments. 
#

lol?

#

is this what you're looking for?

pastel arrow
#

no