#help-archived
1 messages ยท Page 140 of 1
i mean crafting on crafting table
i mean crafting on crafting table
@rotund hemlock then use this https://bukkit.org/threads/how-to-make-custom-crafting-recipes.301328/
it should work
it is xp bottle
you can change it
i want potions
simple, or decompile some plugins
how ?
try to decompile this https://dev.bukkit.org/projects/custom-crafting-recipes
how ?
@rotund hemlock use http://www.javadecompilers.com/
i want to make the plugin myself
@rotund hemlock then search on google
google will help you
try to change the words
try to view some youtube videos
i have watched this
and here this is the code https://github.com/The-SourceCode/Bukkit_Coding_Tutorial/tree/master/Episode_08
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?
potion
he wants to make a custom crafting, i think
idk how tdo i put it in my code
do you want to make a recipe for such potion?
do you know how to add recipes?
yes custom recipes
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
but how
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; }
i have watched them
if you search on google, maybe you find everything
what do you not understand?
i can't make the code for you
my code
I have given you many methods
^
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
you lack a closing bracket
what does it mean
public void RegenPot() { ... }
is there a way to get bouncing direction of a dropped item?
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
where do you call that function?
wdym
RegenPot();
on top
??
xD
do they work?
public class CustomItems extends JavaPlugin{
public void onEnable() {
GodSword();
SharpnessBook();
UnbreakingBook();
FireAspectBook();
PowerBook();
VorpalSword();
DragonSword();
Leather();
ProtectionBook();
ProjectileProtection();
DragonArmour();
DustOfLight();
DustOfLight2();
NetherWart();
RegenPot();
yes
ok, good
but regenpot wont work
did you restart the server?
potato why is there a single ] in your code example above?
i miss clicked
yea i have
oh yea my server isnt running 24/7
i want to make a srever for friends
did you put a System.out.print("test"); in your function and check if it gets called?
Is your comma key set to enter?
it will say to console it is enabled
yeah but you could have forgot to build the plugin or something
no other crafts work
it would say its enabled but the new function isnt there yet
in the actual function, print in there
did you check if the function gets called??
yea it does get called
how do you know?
it sends errors to console when i run it
wow
what errors?
like is it up to date or sth
can you print it
print what
yes @frigid ember here: https://www.spigotmc.org/threads/1-16-latest-new.3249/
@frigid ember print what
print the errors you get from the plugin?
you said you got errors when you call the function
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
no problem with learning, but i cant help you if i cant find out whats wrong
?1.16
Spigot 1.16 is in development with no release date. It'll be out when it's out.
?eta
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.
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
java.lang.NoSuchFieldError: SPLASH_POTION
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?
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
hey is there a way to take the endmap from spigot and integrate it to a new vanilla server?
can someone explain this problem
lost connection: Internal Exception: java.io.IOException: Broken pipe
It says it right there. Lost connection
it says lwccb lost connection i cropped part out but i can't join server
Broken pipe part usaully means something is wrong with the networking of the server.
its worked fine for days it just started in the last hour
Are you sure the server is up then?
Weird. Ast time i had this was when using mohist and that was caused by mod interference.
Try restart your vps
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 ?
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.
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.
nothing changed on the entire system thats the weird part
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?
Did anything change client side?
Is there a faster way than looping 0-4 and check if they are in use and then if true add the uuid
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]
Maybe #getKeys and loop through the in use and check != null
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
Hello is there 1.16 spigot pre release so i can use it on my server ?
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
@rotund hemlock Check for the ID of the version you're using
@quartz furnace no not yet
@neat lion how sad
@rotund hemlock SPLASH_POTION isnt a material in 1.8 if that's what your using
just wonderin when does spigot 1.16 come out. People on my server wants to know when we change verision
but
potion.setSplash(true);
to be honest i dont ant splash potion
ok hold up on my issue removing nametag edit seemed to fix it. Whats the character limit for 1.8
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);```
#setType() sets the effect
wdym how
@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
@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?
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
Show it
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
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
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
For RegenPot you should start the name with lowercase as it's a field
yea i am bad too
Change ur code to what I pasted
It should
but is it 8 seconds long ?
but is it 8 seconds long ?
@rotund hemlock no
@remote socket but it seems not to be 8 seconds
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)");
i want it to be 8 seconds
pot.setHasExtendedDuration(extend); Add this
where do i put the seconds in there
where it says "extend"
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;
}
I'm not sure
then it says
Then put
.extend()on the constructor
@remote socket I think this does same as #setHasExtendedDuration()
Hmm
if i put extend
Google it or ask someone else
after sethasextendedduration
they are about to release 1.16.1
how do i change based damage
but you are better
hmm...
@remote socket i have second question
yep?
ItemStack(int type, int amount, short damage) @rotund hemlock
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
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
?
This should work
@remote socket it has an error (int , int)
Let me see
material(int int is underfined
do .setDurability() on the itemstack constructor (the brackets)
how ๐ฆ
Ah
and wdym with it
you need to cast the last parameter
sorry
so
i have to put
ItemStack DragonSword = new ItemStack(Material.DIAMOND_SWORD,1 and sth);
?
ItemStack DragonSword = new ItemStack(Material.DIAMOND_SWORD, 1, (Short) 8);
oh
Casting, doing (Object), tells the code to act like the object is the one in the brackets
What?
it says can not cast int to short
ItemStack DragonSword = new ItemStack(Material.DIAMOND_SWORD, 1, (Short) 8);
You wrote this exactly?
yea
Use byte
wdym
It should be short
Would it?
Look at the javadocs
every thing is right
Oh wut
๐
and
my bad
does it work
What error does it give you potato?
does it have 8 damage on it
Classes and types should start with capital letters
when crafted
It should do
np
3rd question is i wnat to make a custom craft recipe AGAIN but if you hold it it gives you speed
You will need to make an item with an NBT tag
hello guys
thats hidden
oh then what do i do
Look up tutorials @karmic stone
I'd recommend using this
i have a doubt
This is spigot not forge
what is this
umm guys sorry
It's an API to help you make nbt tags easily
so i have to download it ?
np ๐
It's better if you shade the plugin @rotund hemlock
Add it to your pom.xml
It's if you use maven
@frigid ember you good?
you got killed lmfao with all ur stuff
and ur mc keeps crashing
oh u died apparently
oops #general
Is bungeecord not updated for 1.16.1? It's still just a snapshot though
When does 1.16 spigot come?
Not today
Eww
Do any of the proxies work for 1.16.1? Waterfall, Bungeecord, and Taverntine dont work yet.
is it good
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
I prefer Intellij but many also like eclipse
i ll do it in eclipe
๐
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
https://gyazo.com/f7e3d320b4df5402617d57619f2ede69 these are my current settings but im not sure what i should change
@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
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
run Lore.add again
Oh thx alot bro
What Event would you use to analyse the amount of times a player has repaired and enchanted
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?
not afaik
Can i change my buycraft name?
How?
Thats the first time i ever see that in my life.
And i wanna know how to set this.
@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.
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
?eta
Is there some API part for setting a server to Beta?
@frigid ember also interested to know about this ๐ค
must be something like this but overflow
they just put a lot of spaces between the BETA and the player count
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
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
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
Ok so @mellow wave Now it does this lol
Now you ran it multiple times
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;
}
}
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 typeIt seems to happen when I use GameProfile to create a custom head
@soft locust use papers player profile api
@soft locust use papers player profile api
@hoary parcel thx I'll try that
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 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 ?
Bukkit.createprofile or smth iirc
it works, thanks !
Highest will have the last say on the outcome of an event, low will run before normal priority events.
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
Everyone starts somewhere.
i mean i know i did as well
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);
}
}
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
@blissful verge You should use == to compare Materials. Only other thing past that would be making sure that the events are registered
To open a report on a specific user see image below. If you have a general question might want to check the FAQ first: https://www.spigotmc.org/threads/official-support-faqs.311785/.
Otherwise I believe you might be able to send an email to tmp-support@spigotmc.org
.equals should work fine afaik
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);
}
}
Thanks Schatten, I will send the email I guess
wait is this an inventory
Yes
You should use == to compare Materials.
@alpine lion because....?
Because they are static fields
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
Yeah. Typically .equals is used to compare objects rather than Enums
because == compares memory locations
Yup
Fair enough
Well it for sure doesn't break mine
Yeah. Shouldn't be a problem. And the event is registered. @blissful verge Are you by chance using ChatColors in the inventory title?
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
ChatColor.Whatever
.equals(ChatColor.YELLOW + "" + ChatColor.BOLD + "CraftBook")
thx
Basically, just copy/paste whatever you've set the inv title to where you open it
o/ anyone know the problem?
trying to run BuildTools for the latest to get 1.16 downloaded and update my plugins
Spigot 1.16 is in development with no release date. It'll be out when it's out.
Because they run on 1.15
even third party websites haven't distributed
ViaVersion merely "hacks" protocols to allow 1.16 clients to join a 1.15 server
Just like adding another protocol number to BungeeCord lol
SpigotCraft is the dev test server for Spigot. So md_5 puts his dev builds up for bug testing
i see.. well thanks for the help, hopefully it's out so i could support it asap
Yeah. Had you had any problems with BuildTools in the past?
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 :/
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
hm? never had any issues with maven so far except build tools
Currently running a build for latest should get you 1.15.2
Do you use Maven stuff often?
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
Hmm. That's odd
yeah
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
it downloads and sets maven up by itself?
Which event is for amount of times a player repaired something
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
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
Yeah. That'd be my first guess
How would I get the amount of times a player enchanted
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
@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
Yeah. That would work
use map#merge
yep it works
^^
but I want to do the same for anvil
amountEnchanted.merge(player.uuid, 1, (old, newValue) -> old + 1);
but interaction would also be a click
public static final Statistic CRAFTING_TABLE_INTERACTION
You want to see how many times they interact with an anvil?
@strange forge could also use instead of the lambda just Integer::sum
ooh right yeah better option actually
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
tbh you might want to use NMS and override with your custom nms.anvil implementation
I just take the latest javadocs lol
to listen to that
ew 1.8
dont think bukkit has any event for these
:)
can't blame him for using 1.8, if his users want it he probably cannot do much about it ๐ same with me ๐
:)
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
*** 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)
monkaW
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.
?1.16.1
@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 ==
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
np
You can help with DDoS firewall?
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.
does anyone have a good plugin to running commands all server on a bungee network
what kind of commands?
for message broadcasting across multiple servers with bungee, you can use this : https://www.spigotmc.org/resources/bungee-chat.12592/
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
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
@grave pollen only on l server at a time
Has anyone an idea to solve this problem?
your setType method is changing the block type Async
yes, I know
You can't do that asynchronously
just set the block type without the runnable
public static boolean setType(final Block b, final Material m){
b.setType(m);
return true;
}
@ionic hound Then just connect to the server and run the command as an op?
@nova badge That doesn't work
Think you can do a callback
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
?1.16
Is it possible to make a mock server? One that sends fake NMS packets...
(No backing minecraft engine/code)
mock server? u mean offline mode?
well
@sick nexus I'm just wondering if it's possible to make a server that sends dummy packets
I know you guys get this questions a lot but is Spigot 1.16.1 released yet or not quite yet?
?eta
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.
based bot
Hello there can anybody help me with ShopGUI+, if anybody can please dm me
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.
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
Guys when i run my server with batch file says press any key to continue
@frosty valve it usually says stuff before that line
uh does anyone know an actual decent casino plugin
Any help my server not working
Is it possible to make your own menu like this with 1.16 spigot?
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
wow the bot deleted my reply
why would you do that
i answered in a single message >_>
Could someone tell me how tf to do saving, cause all tutorials I find are for a different af thing.
@strange forge I haven't seen this, thanks! I'll check it out.
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
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
@strange forge Does ShopGUI+ dynamically adjust the values of items?
and one of the other 3 didnt work, while the other 2 where wayy too small
like seriously just coinflip doesnt cut it xD
@blissful verge saving as in? YAML? https://bukkit.org/threads/473063/
MrAmos123 wdym dynamically? you can configure the prices and everything iirc
I mean I need to technically just save a true / false value, has the player unlocked recipe x or not
check the thing i sent
kk
@frosty valve wth is in ur batch file
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
ohh you mean a plugin that is like an ecosystem?
idk man I just want a shop system that don't fuck my eco ๐ญ
i don't really think there are any of these tbh, have you looked enough though?
Literally the hardest thing I've found about running an MC server
economies get destroyed sooner or later, inflation is your friend ๐
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
maybe do regular economy resets?
@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
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
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 ๐
@royal spade SSDynamicShop
@blissful verge 1 file per player?
Is it a part of the guide?
@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
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
kk but I aint no pro programmer
Is it a vanilla recipe they are unlocking?
@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
where can i get latest 1.16 spigot?
You can't.
You canโt
Yeah. Haha xD It's functional, and it is a pretty nice plugin
the dev seems to acknowledge that too
lel
Anyone know when spigot 1.16 is coming out? XD
Saw a video about YandereSimulator's code. That stuff is probably the worst programming I've seen
but it works xD
Hahaha yup
ifififififififi
ifdjkifdifiifififiifififif
Its like the only thing he knows is if statements lol
anyone know any free dynamic shop, that might have 1.16 support (when it comes out on spigot?)
Precisely
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
Honestly, anything better than SSDynamicShop might be hard to come by
@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
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
@lone fog oh ok, ty
del pics pls, but yeah I get you. I'm more concerned with the price dynamics.
it has an okay buy / sell interface
iConomy for like (?) 1.7/1.8 was the best
oh it's all static ๐ฆ
yo can anybody help me with making a shop for my sserver
literally ShopGUIPLUS is the worst
it's expensive
Someone update that DynamicEconomy plugin from 2012 and I'll shoot ya' $20. lmfao
shit was the best
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
Lol. Don't tempt me @royal spade
Do it
@royal spade could you recommend me a good shop plugin
@frigid ember https://dev.bukkit.org/projects/dynamiceconomy-v-01
thanks
No problems.
this is too real no shit lol
it's outdated ๐ฆ
lmfao
the prices change according to the need of an item
You asked for a good shop plugin, that's what it is.
bruh thats extremee
It ain't up to date. But that's what I remember using for server hosting back then.
I remember it being meta af.
me and my friend are building a skyblock server and we're stuck at this shop
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
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+
tbh i see no reason why a shop plugin would be incompatible with 1.15
names?
well probably just materials
it shouldn't be hard to update
broke literally every plugin so i can't judge
Can you not download the jar from the bukkit dev page?
Yeah but it's 1 year older than Spigot's page I think?
Plus.. where can I find Spigot 1.11 download
I wanna test this plugin
Isnโt 1.11 still buildtools
BukkitDev version has two more dev releases ahead of the Spigot page
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
yeah
I develop on Java 8 99% of the time anyway
75% of all java software still uses java 8
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
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
check your path and java home
I tried running the plugin on 1.15.2 and the command do nothing ๐ฆ
which plugin
Rough idea on when 1.16 is coming to spigot?
Spigot 1.16 is in development with no release date. It'll be out when it's out.
Try out DynamicShop https://www.spigotmc.org/resources/ss-dynamic-shop-1-13-1-15-2.65603/
I wouldn't recommend that plugin... ^
Eh, updated yesterday?
Check github
oh cool
what are the pros and cons?
because it looks like some people like and dislike it
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
Okay pog, getting 1.11
Got it all figured out?
yeah alternatives was fucking me
is it really that good? the dynamic shop
nah it's trash
lol
If you like everything you have in your shop going worthless then by all means use it
what's that?
A graph of historical prices from my server
visualisation of the ssdynamicshop
btw your server is still on 1.15.2 ๐ฆ
yeah lol
@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?
let me say it another way, I'm too lazy to switch to 1.15 lmao
Yeah I have the stabilization enabled as well as the fluctuation
if you turn on stabilizing but not fluctuation it will steadily return
for the dynamic shop?
and yes I like it they wait for patches to be tested before merging from paper
yeah
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
Yeah it's not perfect
This is my problem.
I need a better solution
Why is Minecraft fucking Economy the worst thing ever?
ikr
@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
yeah bro diamonds up 13% on the forex markets
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
@tight saffron have you tried restarting it? ;)
restarting what exactly?
lol
for (StorageMinecart cart : entity) {
Location cartLoc = cart.getLocation().getBlock().getLocation();
if (cartLoc.equals(this.location)) {
Inventory cartInv = cart.getInventory();
cartInv.addItem(item);
}
getInventory()
Alrighty then, thank you for the help
jmp, your server has the dynamic shop plugin, right?
@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
lmao
yeah it does It's not very active though
kk, I'm on it rn
Someone update this plugin: https://github.com/writeescape/HyperConomy
I'll chuck ya' $20 for ya' efforts if it works for 1.15.2
big plugin for $20
i don't open my IDE for 20 bucks
WriteEscape updated that plugin from 1.12 to 1.15
Where?
IDK go ask in his discord xD
find it on his resource pages
Bruh ya' really making this a puzzle
https://github.com/RedTech64/HyperConomyX this is the most updated one on github
@quartz trench ty this looks like the one Writeescape made right just updated?
ty
np
@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
notice something?
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
Why, do you have a problem Astronite?
@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?
@pastel arrow the problem is
you're using a v1 api
literally EVERY API i'm seeing documented
is v2
so
I've tried v2/ nvp / etc
Use v2
no it's easy xD
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
https://discordapp.com/channels/690411863766466590/690470011382267904/725433762904670281 just found out it is working when I remove the && thirdSlot != null
but than still thats not what I want
cuz they can spam 3rd slot now and 1 will be added to the hashmap each time
thats the whole method @steady cedar
the hastebin
Slot may be material.Air and not null
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();
}
}
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
๐คทโโ๏ธ
weird
then it's been replaced
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? ๐
Can't find any replacements other then NVP but thats deprecated to. And apparently can't be used.
Use the /authorizations resource to show details for, capture payment for, reauthorize, and void authorized payments.
lol?
is this what you're looking for?
no