#help-development
1 messages · Page 1361 of 1
still duplicates
hm
you must be adding another glass pane somewhere in your code
does it keep adding?
or just up to 2?
try this:
@EventHandler
public void onUseOfSyringe(PlayerDropItemEvent e) {
e.setCancelled(true);
Player player = e.getPlayer();
if (player.isSneaking()) {
if (!player.getItemInHand().equals(Material.STAINED_GLASS_PANE)){
player.setItemInHand(Material.STAINED_GLASS_PANE);
}
}
}
oh sorry
it adds again if you drop the added item yes
set the player.setItemInHand(//item);
hmm it still duplicates
like this
ohh i may know why already
oh?
bcz when u get the grass then theres grass in hand
mhm?
what do you btw want to do?
with the event
like when player drops item you want to only give the glass and remove the grass?
okay
but only when shifting as you can see in the code
and by remove grass you want to remvoe any blocks
yes
okay
@EventHandler
public void onUseOfSyringe(PlayerDropItemEvent e) {
Player player = e.getPlayer();
Item dropItem = e.getItemDrop();
if (player.isSneaking()) {
e.setCancelled(true);
dropItem.setItemStack(null);
player.setItemInHand(item);
}
}
try
@EventHandler
private void onDeposit(InventoryClickEvent e) {
if (e.getCurrentItem() != null) {
if (e.getCurrentItem().getItemMeta().hasDisplayName()) {
if (e.getCurrentItem().getItemMeta().getDisplayName().contains("God Sword")) {
if (e.getInventory().getType() == InventoryType.CHEST || e.getInventory().getType() == InventoryType.ENDER_CHEST) {
e.setCancelled(true);
}
}
}
}
}```
Simple bit of code to not allow the "God Sword" to be placed in a chest/echest, cancels every inventory click event in the echest except hotkeying it in.
Is this a minecraft glitch??
first off remove the nesting
second dont check for an item meta check for an nbt tag
Ik, I've been working on a lot of things to test why this is an issue
Hey what's with the error?
Error: https://paste.md-5.net/azirurunuk.cs
Code: https://paste.md-5.net/hopehimuxu.cs
But InventoryClicks are still being cancelled always except when hotkey'd in
oh wait ur checking for an item in an inv
send fullclass
then check for the slot
even tho e.getAction() has has InventoryAction.HOTBAR_SWAP
You talking to me??
yes
I'm not
I am just trying to cancel the placement of the "God Sword" into a chest/echest
It works perfectly, except hotkeying in
Which makes no sense
try InventoryMoveEvent ig?
Ik what that is, problem is I need to be able to get the player from it
and with that you cant
thats exactly what I do
it makes no sense, InventoryClickEvent is supposed to trigger on a HotKey swap
do you know whats the error?
try the InventoryMoveItemEvent
You cant get a player from that
first off
@EventHandler
private void onDeposit(InventoryClickEvent e) {
if (e.getCurrentItem() = null) return;
if (!e.getCurrentItem().getItemMeta().getDisplayName().equals("God Sword")) return;
if (!e.getInventory().getType() == InventoryType.CHEST || !e.getInventory().getType() == InventoryType.ENDER_CHEST) return;
e.setCancelled(true);
}
}
remove the nesting
@wide dune
Okay
"{ return; }" bruh
Thanks, I'll try that
its 3am
yeah you wouldnt need the {} in that btw haha
ok
can someone help me?
I have everything in the right place and it is working for my friend yet when I do "mvn package" it doesent add any of the configs nor plugin.yml (anything in the resources folder) into the compiled jar.
Once again ZoiBox, same thing
every action is blocked except hotkey swap
I think its a MC glitch
didn't work no, sorry for the delay my internet went down ._.
while (player is in chest inv) {
e.setCanceled
}
idk if that would work
but u can try
also
alot
of the time
its a local host issue
and works fine on the actual server
Nah not this one haha
oh ok
I'm not on local
cause ive had it alot I cancel moving in invs and stuff and it doesnet work on local but works on vps
ye
can someone help me?
I have everything in the right place and it is working for my friend yet when I do "mvn package" it doesent add any of the configs nor plugin.yml (anything in the resources folder) into the compiled jar
hey my bungeecord and spigot server dont communicate together through plugin messages the bungee dont do actions idk why i did debugs and the debugs dont send idk why
do you have a player connected?
yes i do
and when i try to do player.sendData doesnt do anything when player.getServerInfo.sendData it returns null
like sends npe to console
please its 4am Im not going to bed till this is fixed
line 28 is commented out on your bungee. It will alwasy return at that point
ah block comment
You are sending a FORWARD packet from yoru bungee. Thats a client message
comes from client to bungee
nevermind it got sent
lose the casts
item.setDurability(item.getDurability() - 1);
if you dont know what a cast is you need to go and learn more java
Why do you cast it to int/short?
Why does addMana produce a java.lang.NullPointerException even though removeMana works in https://paste.lucyy.me/obezifuves. The full code is https://paste.lucyy.me/asesuselop. Also got https://paste.lucyy.me/loyobiduke as event handler
[Server thread/WARN]: [Elementals] Task #213 for Elementals v1.5.1 generated an exception
java.lang.NullPointerException: null
at net.Plugins.Elemental.ManaSystem.addMana(ManaSystem.java:38) ~[?:?]
at net.Plugins.Elemental.ManaSystem$1.run(ManaSystem.java:66) ~[?:?]
at org.bukkit.craftbukkit.v1_16_R1.scheduler.CraftTask.run(CraftTask.java:81) ~[minecraft_server.jar:git-Spigot-0287a20-7560f5f]
at org.bukkit.craftbukkit.v1_16_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:400) ~[minecraft_server.jar:git-Spigot-0287a20-7560f5f]
at net.minecraft.server.v1_16_R1.MinecraftServer.b(MinecraftServer.java:1061) ~[minecraft_server.jar:git-Spigot-0287a20-7560f5f]
at net.minecraft.server.v1_16_R1.DedicatedServer.b(DedicatedServer.java:354) ~[minecraft_server.jar:git-Spigot-0287a20-7560f5f]
at net.minecraft.server.v1_16_R1.MinecraftServer.a(MinecraftServer.java:1009) ~[minecraft_server.jar:git-Spigot-0287a20-7560f5f]
at net.minecraft.server.v1_16_R1.MinecraftServer.v(MinecraftServer.java:848) ~[minecraft_server.jar:git-Spigot-0287a20-7560f5f]
at net.minecraft.server.v1_16_R1.MinecraftServer.lambda$0(MinecraftServer.java:164) ~[minecraft_server.jar:git-Spigot-0287a20-7560f5f]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_281]
it is the addManaPerSecond run causing problem but actual problem stems from addMana line 38 which is bossbar.get(p.getUniqueId()).setTitle("Arcane Power: " + getPlayerMana(p));
for one thing
bossbar.get(p.getUniqueId()).setTitle("Arcane Power: " + getPlayerMana(p));
bossbar.get(p.getUniqueId()).setProgress(getPlayerMana(p)/ MAX_ArcanePower);
bossbar.get(p.getUniqueId()).setVisible(true);
bossbar.get(p.getUniqueId()).addPlayer(p);
please use variables. And
Double original = getPlayerMana(p);
Double now = original + amount;
why are you using Double? Use the primitive double instead. It is much faster and uses way less memory.
Java has autoboxing and unboxing. So it should be able to cast that Double to double
Plus, the nullpointerexception probably means the key doesn't exist in the map
Public Class main_class() {
Public Void Main(new string() {} args[]) {
Return Console.log{"Hallo, world"}:
}
}
Why is this not working
But I make it onPlayerJoin event so why doesn't that work
then it may be something else
we don't know what the heck you are talking about without a full stacktrace
What does that mean
send your full error
.
lmao
then fix it
Debugging time boy!
to tell us you’re getting spam
no it is related to above question
I know that but i tried changing code loads and if you saw above you would see the pretty much same method works in a different method
Show the line
dude there’s a null value, there’s not much else to help you with
either the boss bar being returned is null or the mana is null
Show line 38
i’m going to assume it’s the mana because you’re not using primitives
hence if you’re gonna do that then check if the mana “Double” (notice i didn’t say “double”) is null first
I dont know what that means
it means it’s null because you’re working with number objects and not primitives
check if original is null before working with it or else change the number type(s) to primitives
even the code is social distancing
Ok but I don't know what a primitave is and how to change type to primitive
lookup java primitives
_lucyy haha
if (!(amount == 0))```
instead use
```java
if (amount != 0)```
Is that error
doesnt fix it, but better
no im joking with you
ok
And add a fucking space between if and the bracket !!!
dude
i wrote it here
obv in code i use auto-formatting lmao
Not that hard to type a space though
LOL
Don’t need formatting for that
who cares in discord
doesn't really matter tho
then go into you ide, and use your spaces dafuq
have fun with it
It’s Google’s style of coding
and dont trash me with such dumb shit
** mortal kombat voice ** finish him
And add a fucking space between if and the bracket !!!
looks like trashing to me
¯_(ツ)_/¯
^
Biased
it’s not that deep guys
yeah but bitching at people is fun lmao
yeah it is
If you couldn’t tell that was sarcastic/ironic you have issues
ikr :P
i don’t think it’s anyone’s fault let’s all be friends
there's your dumb space
now go shittalk someone other than me
i think the issue is that text online can be perceived the way it wasn’t meant to
❤️
Okay mister codeman9999
how do i public Javadocs of my plugin? and put it in subdomain (my domain is bluetree242.tk)
its a private repo btw
.tk
Lol
so you just wanna link your repo to your domain?
.tk might be free but its what I can get now
no, javadocs
just copy the generated html to somewhere in your webroot
uhh, javadocs but closed source?
Yea it’s mw bro .tks are lit
this thing
that doesnt seem like a great combination
lmao
@unreal kayak you have to manually write javadocs then
Then generate it either using the plugin or one in ide
Lmao no
Have you tried googling?
it auto generates the web content files for you
if youre using maven you want the javadoc:javadoc goal
Maven 🤮
i honestly use both
😮
Gradle > maven
sure its a little verbose but it works
Bloated
youre bloated
meh i mean its not bad, but some people just prefer gradle over it cause its faster and has better codelike integration in it
Lmfao
I joined 49 mins ago
lmao
If you are experienced with Gradle use it. If you are not Maven is simpler and its perfect for plugin development.
what is your question
Why you haven’t stopped talking to me 🤔
because i wonder what you're shittalking about all the time
Shittalk?
looks like you need attention
so i gave it to you
Let's keep conversation civil.
because i'm a nice person
aiyo chill
Yeah
and i'm willing to answer questions.
but thats not possible if you dont ask
chill
First message I sent is my question
you think i search in 200 messages?
This
You can query a user
dunno how
and i dont work with packets in no way, so no clue.
if your question goes under messages, just ask after like 15 minutes again
For you Spigot lads it might be necessary to rephrase in Spigot terms. Why does BungeeCord use BungeeCord as their main channel for plugin messaging (=custom payload)? This channel is an invalid Identifier, as it contains capital letters
dunno
🤦
hey how can i hide the score numbers in the scoreboard ?
No way
frick xd
okay
LMFAO
It's a scoreboard lol
Hardcoded to have numbers
you can't hide them, but you can set them all to zero
okay ty
thats pretty hot
thats cool
Pitch and volume
reversed
Don't remember the order
?ask
If you have a question, please just ask it. Don't look for staff or topic experts. Don't ask to ask or ask if people are awake or available. Just ask the question to the channel straight out, and wait patiently for a reply.
oh
?guys can someone DM me and help with code, it's simple (not for me tho)
bruh
?ask guys can someone DM me and help with code, it's simple (not for me tho)
Bro
?ASK
So I have a plugin which Im putting into multiple servers which are connected by bungeecord. Is it possible for them to send eachother data?
lol
Yes, google Plugin Messaging Channels
Thanks
Custom payloads ftw
I coded it so that when u type /kit in-game (if u have perm) you will be granted kit, so i wanted to improve it by adding more kits, so before creating another kit (let's play /kit god for example).. I wanted to change the command from /kit to /kit default... BUT I CAN'T I did everything and I can't change basecommand from /kit ONLY to /kit default HELP
The base command cannot contain a space
wut?!
Can I send packages from the spigot plugin to bungeecord?
I'm sorry if I wrote something wrong, because English is not my native language
CustomPayloads
yeah I already posted in 2 times on spigotmc.org and in other discord servers and people told me the same, I just don't know where to exactly add it in my code, people said where but there were many errors
can I send prnt.sc links here?
and my plugin.yml https://prnt.sc/11539bn
if (args.length >= 1) {
switch (args[0].toLowerCase()) {
case "god":
//code here
break;
case "team":
//code here
break;
default:
//code here
}
}```
lmao
what does case "team" serve for?
you add whatever sections you want. Each one would be a kit
oh, thought it was sum else
you made it so simple
thank you sooo much elgar
ur best
@eternal oxide
np
true
is a switch case better?
better than what?
Sorry I have no idea what you are asking
I know many who use a switch case with the args
hey elgar, now when I do random letters like /kit sfafda it still gives me kit default
/kit god works tho
yes, anything unknown will enter the default
You should create a method that takes the seconds left and evaluates the String to display.
do you know the way to prevent that?
why?
So your code is modular and can react to arbitrary input instead of hard coded cases.
In the `default: section give an error message that its un-unknown kit.
if you actually want a kit called default ad a section case "default":
Comes down to readability. I for my case would use a Map<String, Something> for routing sub commands.
But switch case with default is fine.
Same goes for if else
But i would def create new methods for each case so my onCommand method has only one responsibility.
is there also a way to create error message when some other kit which doesn't exist at all is being used, eg. /kit croatia... I created an error msg when a player doesn't have perm tho
if its an unknown kit it will enter the default: section
yeah but I prevented that already by adding case to default
no
when I type /kit adiofnadfo
nothing happens
but /kit default
and /kit god
are only ones that work
then you removed default:
whats the difference between using Bukkit.getLogger().info() and System.out.println()?
I didn't say change it. I said add a case
System.out.println() just prints using stdout for the current jvm instance and Bukkit.getLogger().info() will use the slf4j logger implementation for proper logging.
The benefit of logging is that you can have a ton of different logs in your code and if you need to print them out you can change the log level of your logger.
So you can deploy your code with all the debug messages (The higher the log level the more verbose the messages should be) without having to remove your logging messages.
You just need to adjust the log level when you deploy you plugin before uploading it to Spigot. You could even provide a config entry for the user to specify different log levels
based on how verbose the user wants it console output to be.
you need both case "default": and default:. case "default": is called when you actually type /kit default. default: is called when anything that is not known is typed.
ohhh
so I should use case "default": for specific kit, and default:for unknown kits?
Anything in a case statement is a kit type, everything else is sent to default (no case statement).
ok, thanks man
I'll try to add some error msg to default:
and prevent it from giving any kit to play
er
do I have to use break; before default:too?
BRO i actually did it
hi is my api good? api not done yet and docs not done but is this good? https://tbdocs.bluetree242.tk/
default:
player.sendMessage(ChatColor.DARK_RED + "" + "This kit doesn't exist!");```
how are we meant to know if you have no docs or code lmao
go to Arena u will find some docs
there are docs
yeah these are far too vague
.
https://javadoc.lucyy.me/lucycommonlib/1.4.2/ take mine for example, they're by no means great but they're acceptable
every method has a comment stating exactly what it does and details of each parameter
is there a way to detect the items dropped when a specific player mines a block?
oop they havent updated properly, ill have to rebuild them
sorry i am looking for you, the javadocs are just being really slow today
@humble stirrup I have all api that people can use with comments, and what they return, bc only Arena and ArenaBuilder can be used as the api, others are gonna be given comments later
if you can't use them then dont publish them as part of the javadocs
u can use them
declaration: package: tech.bedev.thebridge242, class: MainListener
but rarely because they are only used for me to get stuff, no addons will need them
event listeners have no reason to be part of your javadocs
intellij put it not me
oh wait forgot xd I'm stupid
well this is fantastic, i rewrote some javadocs but they've all disappeared
yikers
Is there a way to kick players when getting their name from an array? Not by player.kickPlayer ?
anydesk code... ouch
what's wrong with kickPlayer
also please use a pastebin
Lucy's Pretty Pastebin
?paste if you hate yourself
Sure hold on 🙂
what are you trying to achieve by this
@humble stirrup can you pls send your pastebin files? I wanna make my own
thats not anydesk
gh/lucyy-mc/haste-server
still some kind of remote software... it hurts
is my wifi card being crap or did that take forever to load
i do that when i'm waiting for school to open
https://paste.lucyy.me/oxabobeved im making an ban form "geyser form for bedrock clients" i get the player names from an array so i guess .player.kickplayer wont work since i use selected names from that array
Lucy's Pretty Pastebin
yea indeed ill swap that up thanks ill check if player kick works was not sure
if you use CLOUD or brigadier and set the type to string you wont have issues
source: i develop velocity plugins and that uses brigadier
Yea kick player did not work although it is a valid name. I'll check if there are other ways
https://pastebin.bluetree242.tk/ my paste in -> made by luccy (thanks for making it open source)
Lucy's Pretty Pastebin
https://pastebin.bluetree242.tk/about#md bruh if youre going to copypaste my stuff at least keep my credit
Lucy's Pretty Pastebin
hmm, I really wanted it but its my pastebin sorry
im gonna put the about#md back -> I feel u should be mentioned as the creator
lol
its on my website thats what I mean
please read
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
guys can i make alot of money from minecraft server with my own unique plugins??
spigot is a community, not a business
profit is not our main goal, nor should it be yours
@humble stirrup I'm about to get ur about.md back
done
people gonna laugh that I couldn't make my own but whatever
really if anyone did not make a money after wasting his time he will left this field
and spigot is a library
i've been doing this for about a year, i havent made one penny
wtf, do u have minecraft server
??
u can write plugins for minecraft server if it is unique and awesome and u may get money
i love minecraft but idk should i enter it or no cuz iam afraid to not make money after all of that effort
You know most people write plugins as a hobby here?
@humble stirrup how to remove?
but hypixel makes alot of money!!
I've been writing MC plugin for 7-8 years (ish). The amount you make wouldn't even cover the electricity cost to host a server.
I wouldn't trust giving my monies to some "Pro_Dev_Yeah" guy tbh
.
"Pro_Dev" yikes
yeah!
YEAH
lmao
Oof
wdym? I'm not a js dev
(yet)
then you need to go to Specsavers
tell steps to remove .-.
wdym??
removing my name from the meta is removing my credit
pretty self explanitory, I don't trust like dat
not even there and still shown
wdym with trust like dat???
How do I make PLAYER_HEAD work in a 1.12 GUI, whenever I put Material.PLAYER_HEAD it doesn't recognise it, any ideas?
you're acting like you expect me to help
I mean, I dunno if ur gonna get far with the name "PRO DEV YEAH!!!"
😦
would it cover a cost of cake once a year?
not if they're not premium B)
We all know the cake is a lie
i donot understand what do u mean but ty
Well I bagel why you choose that name is beyond me
what reda is trying to say is that you look and act 12
dude see ur name it is so confusing??
wdym with 12??
hey, everybody needs a little self confidence boost, dont they?
i thought internet has outgrown moking online nicknames since runescape fell off the radar.
You mean RedaAM? That's my actual name.
im curious. what's the last thing you people coded? is it plugins or spigot issue fixes?
been working on a new css sheet for my javadocs
In my case, plugins. never fixed spigot issues. At most unmade some papermc patch for my personnal use x)
I don't website Is that good?
css is what makes websites do the pretty
im just gonna keep it for you, its ur work, until i learn js
completely removing an authors name from something is a bit scummy ngl
javadocs style is preference. i only once saw a differently styled javadoc and it wasn't much of a good 1st experience. everything in some weird place and looking different from usual. lol
yeah im keeping the general layout, just changing the font and colours to fit my personal branding
function comes first
Im having an issue with what appears to be the plugin.yml Could not load 'plugins\CraftableMonsterEggs.jar' in folder 'plugins' org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:162) ~[patched_1.16.5.jar:git-Paper-570] at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:148) ~[patched_1.16.5.jar:git-Paper-570] at org.bukkit.craftbukkit.v1_16_R3.CraftServer.loadPlugins(CraftServer.jav
a:389) ~[patched_1.16.5.jar:git-Paper-570] at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:251) ~[patched_1.16.5.jar:git-Paper-570] at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1055) ~[patched_1.16.5.jar:git-Paper-570] at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:289) ~[patched_1.16.5.jar:git-Paper-570] at java.lang.Thread.run(Thread.java:832) [?:?] Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
are you using maven or gradle
name: CraftableMonsterEggs
version: 1.0
author: Chewie
main: me.chewie.CraftableMonsterEggs.Main
api-version: 1.16
description: Craftable mob eggs including creeper and dolphin
if someone could help me out, id appreciate it, no rush
.
me?
yes
no
ah
he probably using the ide
yes
ij or eclipse?
lmao
Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
ij
included plugin.yml in the build?
yes
Is it in the root of the jar?
Screen shot your IDE/project
you can post images here..?
And if you open the jar with an archive manager, can you find the plugin.yml inside?
you need to verify to post images
@humble stirrup Have you ever done anything with vue.js?
nope
kk
i don't really work with frameworks
its good for front end.
yeah i have been meaning to
yep, thanks, silly mistake
Is using craftbukkit api faster than using spigot api
isnt craftbukkit lighter
a test on my (design by lucy) pastebin: https://pastebin.bluetree242.tk/gowitixogi
Blue Tree's pastebin
you can only get faster at an api by using it. that's the thing about personal skill.
"your"
kekw
Why would you use something with less features and similar preformance ?
spigot isnt an api?
i need performance for my plugin
i mean it does have its functions added to the bukkit
ftw 
how your plugin interfaces with the api is what affects performance
not what the api is
@unreal kayak in my eyes u are scum
that is good right
if (isCrashSkull(item)) {
return true;
}
SkullMeta skull = (SkullMeta) item.getItemMeta();
if (skull.getOwner() != null) {
if (skull.getOwner().length() > 16 || skull.getOwner().contains("\u00A7")) {
return true;
}
}
}```
get skull owner length
what's even the point of hosting your own
Is there any plugin or method to make a command that stores the CMD error of a server?
what do you mean by a CMD error
safer to put my code
Any error that is manifested in the cmd
I do not check what people put
but my data aren't stored on ur server
hypixel premium plugin 
why does it matter
maybe u steal my code (will not happen but alot of people do it)
if you think people give a shit about your code then you are very wrong
ik
someone screenshot that and pm please
and I want to help people too but I have no time
going straight in the meme folder
ik my code is useless and bad but still valuable to me
clearly you have time to steal my pastebin tho :P
@humble stirrup
I wanted to ask u to learn js and html but can't :/
what?
yeah that still doesn't mean much
so that skull.getOwner()returns a string if you need that. string.length() ... how do you use it later on?
maybe i dont see the point in the overall scheme.
I'd go with OfflinePlayer getOwningPlayer()
and then it would be a bit more readable. and the cached value make some operations faster later.
my code is literally 130k lines but i have it open source
lmao
have you tried github? simple and quite cool.
open source is only for cool people
in 1 class?
no lmao
1 whole project
no one puts that many in one class
if you're putting all of your code into one class, you're doing it wrong
lmao
Ah yes 130k in one class
fixed
Example: I have a plugin and it manifests an error, if I type /cmd on the server, it would return me the error that was manifested in the server cmd
let me remove everything about "Lucy"
lmfao
the fact you're using .tk is hilarious
^
I think the license say I can edit code, not sure
who the hell is going to use ur paste
me only
i think lucy wants your paste to open source
and my friend
I host it myself for a reason
what license is your project under lucy?
it's based on hastebin so mit
👀
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
you have to open source it
i knew this one dude who would just write 14k lines of html css js in index.html and got paid good for it.
his lates qoute "now everybody wants a damn shop and databases, nobody wants to recieve a customer call or email anymore"

what?
You didn't even read the license carefully Blue_Tree
https://pastebin.bluetree242.tk/about#md I left this
Blue Tree's pastebin
its usefull
and its ur design
everyone know
it doesn't follow the terms of the license
I mean lucyy technically has every right to take your site down if you do not follow the MIT license as well, so open up github and put the source there
^
I clonned the repo and used it for my own, also I can do these changes on my fork
I will do it
is your fork MIT?
yes it is, inherits from upstream
what must be open source? my edits?
whole thing
its simple I forked already
ok hes being a dumbass https://github.com/BlueTree242/haste-server
FBI OPEN SAUCE
Oh
if u could fork it from hastebin, I can fork It from you
what is spiget.org
you were talking about it being closed source Blue_Tree
lmao who doesn't know it?
me
I at least had the dignity to maintain the license and appropriately credit the upstream
the api i think used to fetch info about resources
ah
its the api for spigot resource info
you couldn't just use the updated api from spigot?
hmm it show stuff we can't get
your changes are literally just removing my name from everything anyway
kekw
Blue_Tree just use lucy's paste
i respect your code
oMg WoW oNe fIlE
clearly you dont
idk that seems good tho lol
spiget is prolly outdated
no I'm serious I just don't want people to tell me that I don't know how to remove you from the files
I do
but I wanna leave it
drags __lucyy towards the trash can
Quit your bullshit 🚰
I leave names of authors all over the place
anyway I'm leaving you in the pastebin
If u remove lucy i remove your site. Easy.
reason: your hard work
*I DMCA the site
Blue_Tree you don't understand the point of forking
:D
ye true
Damn :D
you arent contributing
you are just relabeling everything
there is no different between using lucy's hosted site
and yours
safe yourself some bandwith
lmfao
I'm gonna make the description configurable lol
Pull out a craftbukkit rq
you struggled changing the meta tag, good luck
have you even see his discordsrv plugin?
he literally complained why it isnt premium yet
nope
anyway I leave the name
Yikes
wut? no
yes you did
I wanna delete it from spigot it cause lag
imagine writing premium plugins
i was talking about my new plugin
TheBridge242
have you seen the class names?
nope
I made this plugin when I was a super begginer, forgot about CompletableFuture and everything is on main thread, and alot of lag happen, I just wanna recode or no longer update the plugin
meh i wouldnt care if it was open source and premium
it was literally 2 months ago
I was doing joke, I'm probably not going to make anything premium
yes. p2w servers will love this
at most I will but still post it as a release on git too
no it was 5 months ago
JESUS CHRIST
it was on november
also you publish javadocs for your impl code
that was last update
??
not first commit
WTF
feel free to destroy my code tho
nah ur code can't be destroyed license prevent 😉
DOES ANYONE SEE THAT
no i'm illiterate
static much lmao
idc if my code is bad, I was a begginer whan i started, and spigotmc discord is full of people worse than me
he is right its bad code
my code is shite
if (!this.getDescription().getName().equals("DiscordSRVUtils")) {
setEnabled(false);
}``` the good old anti-fork
I'm on phone and my screen was just IMPORT IMPORT IMPORT
no anti rename lol
why?
idk gonna remove later
no im being serious, that isn't bad code. It's horrific
you seem to like renaming other people's stuff
but... this plugin is no longer maintained (don't tell anyone people in my discord server will be mad)
it's still your code
brb gonna tell everyone in your discord
What's a This Coard?
bc I can't update anymore its laggy and i can't use completablefutures unless I reset code
idk i can't read
I mean if you think that's bad, look at TotalFreedom's measure against forking the entire project
https://github.com/TotalFreedom/TotalFreedomMod/blob/devel/src/main/java/me/totalfreedom/totalfreedommod/FrontDoor.java
Where is the meme Channel...
literally any channel
True
except for #help-archived
#announcements and #rules is another type of meme
any one know what packet is sent to server
when player craft with auto recipe book
we are having problem
people usuing spam bot
and lagging server
with auto crafting thing
Craft Recipe Request
ok thanks
so what would u suggest
how to solw this
do runnable
and check for every player
if they are clicking more then some number which is set
lol
lol
Listen for incoming packets and track the time between each sent. Then throw away each packet that does come earlier than N ms relative to the last one.
You could also create a function that increases the delta time when a high frequency is detected so that dt(t1) is directly proportional to f where f is the packet frequency measured over dt(t0).
Or in simple words: If ony boi spams then you increase his time between accepted packets.
So the first 5 packets come in normally and after that you start increasing the time.
If they are spam crafting it shoudl trigger a crafting event
even if they are just spamming packets
I also thought that the craft event is probably the heavy part and not the amount of packets. Because those should be handled pretty easily.
If that's the case just detect the last 10 crafts per player and average the time between first and last.
ok thanks
If you get 10 crafts in a VERY short time, kick the player
Are you sure its a spam crafter and not some automated crafting machine?
Hi, how could I calculate chunks corners with chunks coordinates ?
some guy recoreded it how he is crashing
it is auto clicker
made to click
every 20 ms
just track events then
Chunk coordinates?
from chunk multiply by 16, +15 to get opposite corner
Oh.. that make sense 😂
java.lang.IllegalArgumentException: Invalid key. Must be [a-z0-9/._-]: creeperEgg It is probably some dumb mistake, but I do not see any issue
By "last hit" you mean the killing blow? Then yes.
cannot use upper case letters. creeper_egg, creeper-egg
ok, ill see if that fixes it
No upper case chars. So creeper_egg instead of creeperEgg
Okay 😭
Yes. The death event is only fired if the entity received damage and its health is at zero.
I dont think you should manually fire the EntityDeathEvent. It will be called when the health is set to zero...
I think the cause is specified when the event is created. I dont see a way of changing that.
Unless you fire the event yourself
thanks for code
No probs. But you should try to find a smarter way of limiting the time between packets more dynamically.
https://paste.md-5.net/zamahakeyo.js
Just making an Inventory serializer/deserializer but theres issues with ItemStack.deserialize(map) - double being casted to an int
Could anyone help please?
yo i have no ideas for what kind of plugin i should make, any ideas?
?services
If you wish to request or offer development/art/building/administration services, please do so at https://www.spigotmc.org/forums/services-recruitment-v2.54/
lol
how is that requesting or offering a service 🤔
he's requesting ideas
but i was meaning that he could look at what people are asking for there
get some ideas from that
Make me a plugin which makes a new realm to explore while tripping on Acid.
Make me a plugin which makes a new realm to explore while tripping on Acid.
?
Question. I noticed getting the locations BIOME in any form of datapack custom biome gives a NPE. is there a way around this or is this just a thing to deal with?
Edit: Nevermind ran across a thing from engine hub talking about bukkit not supporting the custom biomes and thats why. eh hmm work around it is for that annoyance.
omg @vapid thorn you're alive!!
😄 Haven't seen you in ages!
hi @covert urchin
yea forgot bukkit didnt support the custom biomes. so yea it broke wayshrines
lol
why are you running on Bukkit?
o.O
bukkit base shows in #biome all the vanilla biomes in keyed
so paper/spigot/bukkit don't support custom biomes?
apparently not
for example
warped plains
they are actually named custom biomes
under the namespace starmute:<biomeName>
interesting 😮
so if these things don't support the thing that your plugin runs on... how is this even a thing?
probably because bukkit the base api doesnt even know what biome the location is in because its not a keyed item
voice?
sure
Spigot only recognizes the default biomes in the biome enum, unfortunately
Correct
possible to then add it in a custom instance or inject it maybe?
I mean you can probably inject new entries into an enum
Not easily though
You’re probably better off just using NMS
doesn't injecting stuff into an enum sort of get rid of the point of the enum
hey @vapid thorn I'm not sure you're even still around but I'm here again.
hi
trying to figure out how to build my plugin in this IDE. I'm trying out a new java IDE called paint.exe but whenever I export the project I just get a png?
oh I see, is png a plugin name generator? I'm thinking that I have to convert this with Excel in order to generate names for my plugin objects to make them more perpendicular?
@covert urchin make sure you're using https://ms-paint-i.de/ and it's updated
paint won't work without that installed
you should get correct exporting then
That IDE is developed by someone on the paper server (they might be even here too)
thats my fav IDE
its just a png file and a license...
fone
what?
im not using your code lmfao
better not be
chill idgaf wht ur doing
are we bluetreeing again
spigot is strange today
there are days where it isn't
rarely#
maybe
looks more like a dick than karate imo

