#help-archived
1 messages Β· Page 32 of 1
That now was actual help xD Thanks!
lmao np
so I'm back
@pure pasture What are you trying to achieve? Your statements are not practical at all
@EventHandler
public void onClick(InventoryClickEvent e) {
final Player p = (Player) e.getWhoClicked();
if (e.getClickedInventory() == null) return;
if (e.getCurrentItem() == null || e.getCurrentItem().getType() == Material.AIR) return;
if (e.getCurrentItem().getItemMeta().getDisplayName().equalsIgnoreCase("Β§6SkyWorld Menu")) {
e.setCancelled(true);
p.updateInventory();
}
}
``` Tada
You need to trial and error with the functionality, im not gonna do it for you
You can even combine them but meh
but please merge this statements
It is for him to figure it out
Also check if the ItemStack has metadata as that is nullable.
Hello I am having a problem with ShopGUI+. Almost all my spawners are working. But the two that aren't. I can't understand why they don't work. They don't even come up in the shop. and if I remove "spawner: true" then it comes up in the shop, but when I place it, it becomes a pig
13:
type: item
item:
spawner: true
material: MOB_SPAWNER
mob: PIG_ZOMBIE
name: "&fPigman Spawner"
quantity: 1
buyPrice: 5000000
slot: 24
14:
type: item
item:
spawner: true
material: MOB_SPAWNER
mob: VILLAGER
name: "&fVillager Spawner"
quantity: 1
buyPrice: 10000000
slot: 25
The villager does work. But the pigman doesn't work
Can someone tell me what is casuing this error: https://hastebin.com/yubupabote.bash when I try to rename a nether star I'm trying to block players from renaming netherstars!
p.sendMessage(color("&2(&a!&2) &fYou can't rename NETHER_STAR!"));
return true;```
Can you help me with my problem above please
you'll need a account for that
I have an account
oh sorry didn't know that, because you're not verified
Oh ok it's fine
go to the forums tab and then to Spigot Plugin Development --> post new Thread
Does anyone know of a plugin that has /entrytrust?
I'm using griefprevention right now and I remember it having /entrytrust
But it is nowhere to be found
Soo im trying to reload my plugin at runtime, but there's this weird bug that the commands will still point to the unloaded version of the plugin:
/command -> this command is resulting in an error org.bukkit.command.CommandException: Cannot execute command 'command' in plugin Plugin - plugin is disabled.
However, every command prefixed by the pluginname, e.g:
/plugin:command -> seems to work just fine.
Does anybody know how to update the commands without the plugin prefix to point to the newly loaded version?
@vale slate Thank you
Soo im trying to reload my plugin at runtime, but there's this weird bug that the commands will still point to the unloaded version of the plugin:
/command -> this command is resulting in an errororg.bukkit.command.CommandException: Cannot execute command 'command' in plugin Plugin - plugin is disabled.
However, every command prefixed by the pluginname, e.g:
/plugin:command -> seems to work just fine.Does anybody know how to update the commands without the plugin prefix to point to the newly loaded version?
@bronze marten well they are still registered to the old CommandListener
Hmm, I tried unregistering the commands and setting the executor to null when disabling the plugin in onDisable
but that didnt work out
ill try removing them from the commandmap..?
reloading a plugin at runtime is not very good practice
depends
you should definitely not unload the plugin itself, you should reload the things you want to reload
but still, bad practice, just saying
Hello guys
Why bad practise? If I check on load if new version is available, I can download it and restart it
any idee why i can t join on the forum
Why bad practise? If I check on load if new version is available, I can download it and restart it
oh now I know what you're up to do
I mean ofc for a simple /plugin reload its useless to do a full jar reload
but when downloading a new version at runtime its useful
which browser are you using
google chrome
hey, i have a resource world plugin and id like to place a commandblock title for everyone in that resource world, what would i do to exclusively allow it in the resourceworld?
so i had someone's payment on hold for 24 and it was released but he is still not on the buyer list, is there a reason for it?
wdym
i bought plugin yesterday
he bought my plugin
π
whats ur plugin
Arcade
oh cool
so anyone with more power over this?
I think you need to ping one of the staff members
hi what is query in server.properties? and should be enabled for some reason? thanks!
Someone bought my plugin, it was on hold for 24 hours and released yet he doesn't have access to it
hi what is query in server.properties? and should be enabled for some reason? thanks!
@glossy stump https://minecraft.gamepedia.com/Server.properties#Minecraft_server_properties
Not sure sorry, just report your own resource and explain the issue in the report.
me and the buyer? π€
i can add him manually but then i lose control over him
Just report your own resource, I know it seem counterintuitive. Though technically speaking if you've received the money then it should be safe to add them to the buyers list manually.
but then in case of a refund/chargeback i have no way to remove it, it happened once
Yeah exactly. If you're unsure then it's best to report your own resource. The reason you report your resource instead of the user is so that the resource staff are able to attend it
okay
hey, not to be that guy but is it typical for new threads in services to take 2 days to approve? π
but then in case of a refund/chargeback i have no way to remove it, it happened once
@tiny dagger If it is very urgent you and him could set up a purchase contract from a template or so, then you should be safe
@zenith palm next year get my resource?
@whole grove I'm sorry I don't understand
i bought plugin
i'm gonna add him manually
hello, why has my multicraft player changed max amount players? it used to be 200, now it is 10
hopefully they can change it at the report
@neat orbit is it a multi craft you installed yourself or is it with a host?
Did you buy a 10 player plan with them?
no 200
That's what happens when the license expires usually
My license has not expired
Oh true
Your hosts license with multi craft, u need to make a ticket with your host
It happens sometimes
ticket?
which host are you with
You need to login to the client area and create a support ticket
Multicraft is a throwback I havenβt used that since 2012 π
Yeah
I was about to say
I don't know toooo many hosts that use it still tbf
most are using Pterodactyl now
I saw a host the other day running McMyAdmin
now we get nostalgic
haha
I have another questions since u guys are so nice
Now I know what we need to change in here
I have a resource world plugin, and I want to add a permanent title ONLY in the resource world, how do I do that?
i had to ask? wut is the best host for a cheap price
@turbid latch i'm currently using hostinger, it's a little expensive (i pay 15 usd per month) but its good
depends what services you want to use
I get out before the clash begins
shockbyte is good.
i pay 15$ for 3 x 1 gb ram servers
tell me when you're finished
pebblehost is $1 per GB
pebble vps?
ive heard scalacube is good
I know the CEO personally he is really good at what he does.
No pebblehost budget minecraft servers
Why do you need to use a VPS?
is vps bad
Just going to chime in here and recommend Humble Servers (Disclaimer: I work support for them)
just asking to know
what is a vps
depends what you need it for Lopi
If you just want a minecraft server then I don't really think a VPS is the way to go
However if you want todo more on a vps server then go ahead
also depends on how much resources you'll be using
to start off with you probably wont need a VPS
just standard hosting
i bought a vps server now i realize π π€¦
that would explain why you dont have a Multicraft license lol
Hosting offer a 30 day refund policy btw
in case you wanted to change
im good i think
ive already set up my server there
but ty benh
can i move my server from one place to another?
You don't need multicraft or ptero for a vps...
yeah just download the files and reupload them @neat orbit
you don't wanna be using command blocks for servers
you can do it, but eh
title plugin?
there are too many to be counted
I think by now you can say there are too much of them
i mean why not use that
well, I think we suggested that earlier
ya alot of things is possible with spigot and java
VPS do have better performance and sometimes even price but the level of learning u need to do to effectively use one just isnt worth it for majority of small server owners tbh
VPS vs Minecraft host?
ya alot of things is possible with spigot and java
especially with the new resource pack system
yeah, but with the new CustomModelData tag, things got more easy
what if you wanna force a texture pack on a player?
for adventure maps or minigames
put in the server.properties
do they still need to accept texture pack?
well yes, it's the law
ahh.. i see
I'm in 1.12.2 is there a way to get from the Minecraft mob names an EntityType
An bukkit one or a NMS one
So the only possible way is to check if they accept texture pack?
Bukkit EntityType
But the Minecraft mob name should be something like minecraft:zombie_pigman, in Bukkit it's called EntityType.PIG_ZOMBIE so I was wondering if something like that is possible
hi guys i've been using maven but when i export the plugin idk why the original- is lighter than the normal (Im Using IntelliJ IDEA Ultimate)
like here:
oh yeah now i see
I guess there are libs exported
which one was created by maven?
could you post your pom
you're shading your depends
so how can i fix that?
you need to shade the com.comphenix group but not the spigot one
wait a second, I need to look that up for maven
<scope>provided</scope> for the spigot dependency so it doesn't get shaded
you already have that though
yeah
if it is a external plugin
you can probably remove the shading plugin entirely
protocollib is an external plugin, yea
oh, ok then yes
may i have permissions to send a picture
verify your account @frigid ember
@pearl pawn sounds like you don't want to shade anything, remove
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
</configuration>
</execution>
</executions>
</plugin>
yeah
if you want to choose what you want to shade and what you don't want to shade, add provided scope to everything you don't want included
so now i remove scope from the dependency?
one at a time please, this confuses mee
aaaaaaaa
i do apt install oracle-8-jre-headless
pretty sure it works either way
i also did apt install openjdk-8-jre
idk
@vale slate can u tell me what is wrong?
Is it with the jar or is it with my server
Don't install Oracle shit
meh nop
did you install multiple java versions e.g. openjdk and oracle
Java isn't directly from Oracle
a
b
c
who is java from
but i accidentally ran rm -r * 3 days ago on the main directory
I mean, don't run oracles java distros
As they are proprietary and you need to pay from them in a production env
Java is from sun ms
Just use openjdk everywhere
@vale slate i ran rm -r * on the main directory
It's 100% the same code but with a sane licence
might have deleted something java needs
it is not Mini
java was made by James Gosling
java is canadian
@vale slate HELP ME
AAAAAAA
games gosling was canadian
and this discussion doesn't belong here
HELP MEEE
LITERALLY #help-archived
Java was originally developed by James Gosling at Sun Microsystems (which has since been acquired by Oracle) and released in 1995 as a core component of Sun Microsystems' Java platform.
OMG HELP ME
@vale slate it is 100% the same code in modern releases
yeah I can't help if there is a discussion running the chat up
Everything is open source now
would that mess stuff up?
in / or in home
Home
if i did that in / pretty sure the server wouldn't work
shld i just reinstall ubuntu
Wait a second I'll get you somebody, who is better in ubuntu bugfixing than me
ACTUALLY
i have another server
So I'll curl the jar into that
And see if anything goes wrong
EE stuff is open source, maintained by the eclipse foundation
But like, fuck EE, long life spring
^
@vale slate you asked for me?
well @frigid ember has the problem
reads chat
So you killed your server by rm -rfing everything?
in /
root or a normal user?
is this picture the only issue you are having ? https://media.discordapp.net/attachments/690470011382267904/702146051964010576/Screenshot_20200421_211437_com.server.auditor.ssh.client.jpg?width=315&height=682
just redownload buildtools
Cos on the other server its same problem
Can i have the latest link?
i got the link from a year old video
run this command:
wget https://hub.spigotmc.org/jenkins/job/BuildTools/112/artifact/target/BuildTools.jar
--content-disposition
Can someone update a small plugins for me?
the developer is not longer with the community say.
he stopped a server and he went to preach
Then you'd probably have to find an alternative plugin or make a request on the forum for a plugin request.
Worked
was looking for developers here
I mean you could try, it's not really what the discord was made for.
^
it will be much faster for u to take a scroll through here and PM a few https://www.spigotmc.org/forums/hiring-developers.55/
How long does cloninh usually take?
yes
ill fix it up tmr then
do you know how to use screens?
it wont but it will make it harder for u to know if it finished successfully or not lol
u should be fine
If it doesnt work ill just rin ir again
Worst come to worst i clear the directory and restart the process
Good night ty
np
@rigid notch Your bungeecord version is really old, is there a particular reason you're not using a newer one?
my first suggestion would be to see if updating solves your issue
How come you only want 1.8 bungee?
use the latest version, even for 1.8
not really a bungee issue, your server has noexec set on /tmp which breaks the native libraries of a lot of things
If you're on a dedi/vps, remove the noexec flag or there is a property to change where java stores its temp files, would need to google
if you're on a shared host, you'd need to speak to them
it tells you on the page
what's the reason for only wanting a 1.8 one? You wont get any proper support for it, you can use a 1.15 bungeecord and run your subservers in 1.8
But consider upgrading from 1.8 spigot
performance improved over the versions
well there are plugins for that
the plugins arent always too optimal, there's reasons for staying at 1.8 for spigot on pvp heavy servers tbh
everything else should be updated though
no you wouldn't
plugins don't break between versions*
unless they're using NMS and don't do cross version support for some very strange reason
spigot also made plugins mostly compatible between 1.12 and 1.13
if a plugin isn't compatible, just update it? the author will have released a fix
If I have a string like minecraft:zombie_pigman then is there a way to get EntityType.PIG_ZOMBIE?
strip the minecraft: and use EntityType#fromName
But zombie_pigman is not the same as PIG_ZOMBIE so doesn't that throw an error?
Alright so me and a friend made a midi player, the problem is we don't know exactly which instruments/sounds to synthesize to, has anyone made a list for this stuff?
Basically midi channel -> Instrument/sound
1.13+?
how to make a itemstack
1.15 for now
with new ItemStack
1.15
i got git-Spigot-e7dc2f5-a8ec1d6 (MC: 1.15.2) (Implementing API version 1.15.2-R0.1-SNAPSHOT)
wait
I'm looking
it is kinda confusing me
I can use the constructor
ItemStack needs a material passing to it
yes
oh right
I need a plugin can anyone do anything
@zenith siren @rigid raven there is. Registry.ENTITY_TYPE.get()
there is a forum for that
1.14+, can get an entity based on its ID
I need a plugin can anyone do anything oks
pls
so actually ingame i have this plugin called rankgrantplus and baisicly you can give someone a rank through a gui
but there is no way to remove the rank except from typing the command for luckperms
so can you make a gui so when i do /grants (someones name)
it shows all their ranks
and i can click on one to take it away.
that would be uselful
@barren badger there is a forumfor such requests
no there isnt
?services would beg to differ lol
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/
Unless you're looking for an existing plugin in which case we have Spigot Plugin Help
I know next to nothing about bungee
could someone create me a plugin?
there is a forum for that
@rigid notch you don't have a server called "lobby" in your server list, however it is in the priorities list
?services @static jay
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/
wait no i just realised you fixed that error and theres another... hold on
@rigid notch regarding your error, you cannot sping up bungee due to not having access to the specified port
^
Does anybody know why players, including my self, are being kicked repeatedly for "Too many packets!" whenever they have a book and quill in their inventory?
does the bungee server definitely have access to port 25625? (@rigid notch)
wait is it in offline mode?
u dont even have a preofile pic
ok
All the faith he had had had had no effect on the outcome of his life.
If you are really an English professional you will know what this says
This channel really confuses me sometimes...
^true
Samuel, are you using a host or a VPS
ok, and which port have they assigned for your Bungee server?
in ur config it is missing
server_connect_timeout: 5000
yeah
Why is server_connect_timeout so important?
idk?
pastebin does it's job
any way to do this more efficient?
String datanamesearch = "a" + new DecimalFormat("#").format(smiteloc.getX()) + "-" + new DecimalFormat("#").format(smiteloc.getY()) + "-" + new DecimalFormat("#").format(smiteloc.getZ());
i need it as a string
What did you try accomplish Samuel?
Hold a NumberFormat constant, don't create it every time
What is the Error?
If you put your start up script in pause
Does it give you any error before shutting down?
yourclass {
private static final NumberFormat FORMAT = new DecimalFormat("#");
your method() {
"a" + FORMAT.format(smiteloc.getX()) + "-" + FORMAT.format(smiteloc.getY()) ... etc.
}
}```
show ur script for running
i assume there is some bat file used to execute
linux server?
oof
Whats the name of the host
How do I make a generator, which works like the minions at hypixel?
@blissful verge itβs quite a big concept to do but use abstraction.
Abstaction?
The right port as well?
What does that word mean?
i thought mc was 25565 or am i wrong
But you know, is there any information about these types of things? Youtube videos etc.?
okay
Try 25565 Samuel
@blissful verge What I know no one has really tried replicate it yet. So youβd have to make something of your own.
How do the minions at hypixel work?
Go and try out
There are no item generators?
Itβs hard to explain. Or atleast I wouldnβt do it good
But like, I have no idea how to do that really.
u mean he has to do like?
host: myip:25565
Yes
Yes
But like, I have no idea how to do that really.
@blissful verge well that's the difference between a developer and a programmer
savage
Totally wasn't evil
@naive goblet was that go and try out referenced to me?
@blissful verge Hmm put up an abstract class with some abstract methods like getItem etc that is representing the minion
Kind of
why so aggressive
hes asking for help, im asking for context
why would i go try something out to gain context
Howβs that aggressive?
because i wasnt asking you
Does it matter? Weβre in a help channel?
oof
Youβd obviously get the best concept of how it works on the server itself ?
let just helpπ
Or am I wrong ?
IDk
yeah but what a waste of time
It wasnβt meant to be aggressive but sorry if you took it as somewhat unfriendly
If netherportals are disabled and nether hasnt been loaded in yet can you make portals in the overworld and make a zombie pigmen farm that way?
@blissful verge do you want to replicate their minion system entirely or just part of the stuff there?
I mean i'm thinking of you clicking on a generator block, which opens a menu which is basically the same as the minion system
@frigid ember Nether disabled means it wonβt load and initalize any worlds of the type nether so I think no?
So mostly replicating the system.
That would take a lot of work.
@naive goblet thanks
But the block instead of that armor stand
Novato I should say itβs not any easy thing to do as it covers quiete much including offline generating etc but I can try help you if you know basics OOP it shouldnβt be the hardest thing.
Well I think it could work even without offline generating.
Idk
You do it in spigot or Bukkit yml iirc @pearl pawn
Nope?
But maybe some wrong ip or port
if you're hosting off your own machine or something, you're behind NAT, so that IP address is invalid, use 0.0.0.0
Coffee always does the trick
@blissful verge you will need to generate resources even when the chunks are unloaded right?
yeah but you would host from the ip, i.e; localhost (0.0.0.0)
its the client that needs a URI to point to
@naive goblet
yup
Yeah
Make a framwork class for each minion inventory as well
...
Why?
From having to use my brain
Uh ok
sounds like u need a CPU upgrade
Lol
XD
i legit googled that
but anyways cya
peace
you'd need to speak to your provider
Or on the spigot forums
someone registers domain
@fading owl done
XD
*just kidding
But it might finally look like a decent website π³
In b4 its p2use features too and you need to pay for dark mode
did you follow this @rigid notch https://shockbyte.com/billing/knowledgebase/84/How-to-Configure-Your-Minecraft-Server-serverproperties.html
hey do any of you have experience running spigot on the openJDK runtime environment? Should I expect any issues?
i don't, but shouldn't be a problem
ty
huh i used to run it on windows w/ later java versions and it worked just fine
ty ty
I actually use 15 :P
But 11 is the min I would recommend
That's where gc performance is getting nice
Java 14 is a requirement for devs tho, the helpful nullpointer exceptions are π
the moment i decide to upload all the 25+ resources i finished
anyone here already solved the donkey dupe?
heard the one with disconnecting while on it still works
Having nice plugin page is waste of time :)
Tho y do u have 25 diff plugins
most of them do different things
its better to have separated so you can only choose what you need
use gpt-2
You using spigot stellrow?
Or a fork?
The fork that shall not be named fixed that
- command3
- command2
- command1```
i want to blacklist commands
yeah so do that
Hey, ppl said I shouldn't recommend paper anymore, that's why I just say the fork that shall not be named from now on
@hoary parcel didnt test it just saw a vid recent about it
Use permissions to blacklist commands lol
You can't develop something with paper and put it on spigot though right (if you use paper specific api stuff)
yes
thats why paperlib is a thing, so you can still use the most essential things like async chunk loading api
it will just do sync chunk loads for spigot plebs
is it possible to find any Minecraft server jars with spigot + forge? anymore
for like 1.15.2
i wanna run a minecraft there can load bukkt/spigot plugins with mods
Huh I didn't know about paperlib
There are forks for it for mods + bukkit, but, fork discussion is a nono here, so, glhf
is it strictly so? :(
ok so it does it exist?
Guys how do you use the bungeecorf api?#
I mean i know how to use it in programming
But when I upload the finished Plugin onto my Bungeecord server It doesn't work
Do you have to put the api into the plugin folder too?
looks like the default scope of the bungeecord-api is provided, meaning no, you don't need to include it in your plugin jar.
i would assume bungeecord provides those classes at runtime already.
when you say doesn't work can you provide a stracktrace or error message if one exists?
No there's no error message it just doesn't do anything
someone who can help me with a code?
Best way to keep track of custom entities? Rn im deleting them on disable,then respawning them onenable(with crash protection,deleting similar before spawning)
Save them to a config?
Why would you want a better way ? Does it not work?
They do however im not sure if its the best/easyest way
Is there actually another way of sending players to different servers other than with the bungeecord api?
That's not what I need but yeah I guess
@pure pasture I guess technically without the API is to make them run a command
/server
then you wouldn't need to interact with bungee as long as it's present
Im trying to send them to an other server when they perform a command
Actually, I don't think it is a command you can dispatch
Force them to say /server <server>
As opposed to sending the command
You mean p.performCommand?
Yeah I will try that thanks
I don't work with bungee much but that will possibly work
in bungeecord, does the player handshake event happen when the player has connected to a server?
nvm
is the serverConnectedEvent called when a player switches servers in bungeecord?
I am trying to shade https://github.com/aikar/commands/wiki/Maven-Setup into my plugin but it doesn't seem to work...
<plugin>
<version>3.7.0</version>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
<compilerArgs>
<arg>-parameters</arg>
</compilerArgs>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.1.1</version>
<configuration>
<dependencyReducedPomLocation>${project.build.directory}/dependency-reduced-pom.xml</dependencyReducedPomLocation>
<relocations>
<relocation>
<pattern>co.aikar.commands</pattern>
<shadedPattern>me.oriharel.acf</shadedPattern> <!-- Replace this -->
</relocation>
</relocations>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>```
mfw I answer on acf discord and instead of answering he just posts here
that only works if you are already flying
so if he isn't on ground
give him flight
and if he can flight on toggle activate double jump instead
:p
it gets counted as midfalling
theoretically there is no spacebar event called
so we have to do what we have to do..
so midfalling is still flying?
pressing double space again toggles the event
so if you double press space midfalling it boosts you
up
its a bit wanky and needs to cover more things,was made for a private server for fun..
I hate bungeecord
whats wrong with bungee..?
Im too stupid to send players to other servers without the api
i am intrigued about the connection between 2 servers though
so the issue is you and not bungeecord?
I don't know
Maybe it just doesn't work without the api
Which would be bad
Cause I dont get that working
does the plugin "Prism" work on Minehut server?
Your server host shouldn't have anything to do with plugins working or not.
unless the plugin requires myssql, then your host makes a difference π
public class sendPlayerToServerEvent {
main plugin;
public sendPlayerToServerEvent(main instance) {
plugin = instance;
}
public static void sendPlayerToServer(Player player, String server) {
ByteArrayOutputStream b = new ByteArrayOutputStream();
DataOutputStream out = new DataOutputStream(b);
try {
out.writeUTF("Connect");
out.writeUTF(server);
} catch (Exception e) {
return;
}
player.sendPluginMessage(main.inst, "BungeeCord", b.toByteArray());
}
}```
This should work for sending people to other servers but im not sure if I have to do anything in the main class apart from the instance?
hello help, how do i make a welcome message for people that just joined one time only? and after that everytime they join they receive a "welcome back" instead
i can send my config files
if(!p.hasJoinedBefore) {
//your message//
}else {
//your non-first-join-message//
hmm bukkit getonlineplayers or server get onlineplayers?
Oh sorry it's p.hasPlayedbefore
wait what 0:
@EventHandler
public void onPlayerJoin(PlayerJoinEvent event) {
Player p = event.getPlayer();
if (p.hasPlayedBefore()) {
//
} else {
//
}
}
π₯
@bronze marten @pure pasture this did the thing, it made welcome back, but now it changed the welcome messagecolor code and type.
It used to be
Join-Message: '&a&l%player_name%&f, &fwelcome to Craft!'
now it is welcome back to our server
like the entire color code was resetted
i cant find the ServerLoadEvent on bungee, what is it called?

just create runnable
What do you even mean by ServerLoadEvent
on spigot there is a ServerLoadEvent
runnables will run after server load finishes
I need an event that happens after all plugins are done loading
uh
is there one before the server load finishes
ServerConnectEvent and ServerConnectedEvent exists
@bronze marten do i just put that code
in ur listener somewhere @neat orbit
isnt that when a player joins troxx
doesnt have anything to do with loading the server
but why do u need it before all plugins finish loading..? why not just runnable..?
@bronze marten im sorry, i'm stupid. what is a listener?
And LoginEvent
because its part of my plugin loading
that has to happen after all other plugin classes have been created
erm
Doesnβt seem to be one
wut
why not use a sync runnable then?
and running it after the server is DONE loading is kinda not the point, because this is part of loading
bungee doesn't have the concept of a main thread
so why would you run loading stuff after its done loading
this has nothing to do with threads
that was to the sync runnable comment...
oh nvm sorry
In bungee, there is probs nothing for that
oh lol, so even a runnable wouldnt work then?
or are plugins loaded on one thread?
well it would work
but i mean
why do loading after the server is done loading
that seems bad practice to me
I have a groooooss idea
whats the reason for u to load ur plugin as last then?
its an api
where plugins can register
and i need to wait until all have had a chance to register
That doesn't really answer much
i create a guice injector that lets you cross inject types between plugins
which can only be created once
guice injectors are immutable
lazy init it? π€·ββοΈ
hm?
if the backing store is busted, recalc the injector and return it
Saying that, doesn't really sound like a great design
Sounds like something that you're just gonna be tripping over to maintain
it works on every other platform
even nukkit
im just missing this event on bungee
and its not even hacky, this should be possible
Basically, best idea I got involves spinning up a task which will wait for the listener info collection to have a listener in it
for example, on sponge and velocity there are about 6 distinct phases to plugin loading
on bungee theres one
and im not sure what you mean there
it still wouldnt really fix the problem
because you dont know how long it will take for every plugin to have gone through construction
what?
how do you know how long you have to wait for every plugin to be ready
You don't
That's why I suggested a gross alternative
The only other option would be to ask md to shove an event into the proxy
I have one but it is stupid
That moment when the NAT router your isp forced you to have blocks any port forwarding FeelsBadMan
bungee inits the listeners after plugins, hence why my gross hack involves spinwaiting on that
@bronze marten can u help me in private message?
sure
just accept it
can anyone help me
so i have a resource world plugin, and i'd like to add a bar plugin into that specific resource world
what do i have to do?
you can't add a plugin to a world
a resource world
am I stupid or are we talking about different things, because a resource world, like a farmworld, or what
a resource world plugin
i just want the bar to appear
if so it's not enabled for whatever reason likely a config option
depends non the plugin u are using
check ur config
how do i do that? i'm rly sorry guys. i just started with plugins
i have extremley limited knowledge
im trying to learn my best π
well that was on what i was out because a resource world is a normal world
you can get it by Bukkit.getWorld(worldname)
i have spigot
it's still a bukkit method
oh
Hey. Does anyone know an alternative solution to the 'player-idle-timeout' in server.properties so that I can give certain roles exemption to it?
do i just write this in console Bukkit.getWorld(worldname)
some plugins have the option to set the option in their config
do i just write this in console Bukkit.getWorld(worldname)
Oh i thought you are developing a plugin
sorry I was mislead
@twilit mist If you use Essentials on your server, there is a similar value in the config that lets you set a kick timeout and a permission node that exempts players from it.
you must use a plugin offering this option (to Lopi)
@unreal hedge Thank you kindly. I'll have a look in the config.
No worries. @neat orbit I highly recommend learning Java first. The reason is because if you try to make plugins or new projects for the sake of learning, forcing yourself to have to learn tiny things, there could be several better ways to go about what you're doing, resulting in inefficient and possibly ineffective projects. It's best you learn first, apply later.
hello everyone ! is someone available to help me with a weird bungeecord bug ?
thanks π
Could you be a little bit more specific, please?
yes, sorry
who wants a lit packet listener
My bungeecord is freezeing every 40 seconds or so with that sort of errors :
[21:50:32 WARN]: Event ChatEvent(super=TargetedEvent(sender=SanWild, receiver=net.md_5.bungee.ServerConnection@5f42ccd), cancelled=false, message=/feed) took 849ms to process!
[21:50:34 WARN]: Event ChatEvent(super=TargetedEvent(sender=LesBrasDeGandalf, receiver=net.md_5.bungee.ServerConnection@7787009a), cancelled=false, message=/tpyes) took 415ms to process!
[21:50:37 WARN]: Event ChatEvent(super=TargetedEvent(sender=choupacabra, receiver=net.md_5.bungee.ServerConnection@31b976ec), cancelled=false, message=trd) took 416ms to process!
simple to use
It literally freeze the entire network
Spigot servers arent lagging, 20 TPS
Weird thing is that nothing changed before it happens
not even a config file
Bungeecord is latest version, Spigot servers are under 1.8.8
what plugins are installed?
Ping betweens bungee<>spigot (yeah thats 2 physical servers) never fail, always 0.1 ms or so
yep sec
AntiBot, AuthmeBungee, BungeeTabListPlus,ExploitFixer,FastLoginBungee,LIteBans,LuckPerms,MaintenanceBungee,MoveMeNow,PlayerTabComplete,ServerListPlus,ViaVersion
all at latest versions
and tried without some of them (like exploitfixer...)
those plugins werent changed for days, issue just started today to rise
Good, that would have been my next question
π€«
Also got this :
=true, reason=UNKNOWN) took 423ms to process!
Whatβs going on?
Bungeecord
getting spammed or this crap every 1 or 2 minutes, rest of the time its perfectly running
And whatβs the troubleshooting?
uhm, is this error since today
yes
And whatβs the troubleshooting?
@naive goblet ping problems
yep ping is going super high
well, there is your problem
Just suddenly happened?
did you try to ping your server from home?
Remove the plugins etc?
yes, ping is fine
tried to remove some plugins, but like I said, I haven touched anything from the time it wasnt lagging
Is the proxy local?
Is it hosted on ur wifi?
Hmm ovh is great against attacks that could increase ping
and beefy enough
well he/she is able to ping through without a problem
yes
depends on the attack you refer too @naive goblet
Indeed
Server MRTG (network graph)
Iβd say hetzner is worse though
isnt showing anything
Does anyone know how to expose the ThreadGroup/ExecutorService that BukkitScheduler makes use of?
Assuming it makes use of one of those.
no increase in packets sent/received, no errors
have you tried restarting it?
do note that with 1.8 there is problems with the protocol lol
ik but how it would lag now
lets not 1.8 protest here pls
didnt got any error for months
they have nothing to do with that
then I would do a trace route to see where the network slows down
and would probably do it from both ends
^
it is possible it could be an issue with OVH's upstream
yep
will do a traceroute, but as I said I did run ping from both servers to each other
and during a bungee lag
ping wasnt going up
completely lost lol
mostly its ChatEvent, sometimes its ServerConnectEvent, sometimes PluginMessage
oh and I forgot, got SQL errors when it happens (communication link failure)
but not everytime
like 1 out of 5
oh is the SQL externally?
thats luckperms or litebans
on ma mama
would you be so kind and don't spam @frigid ember
ping to each server won't tell you if the problem is outside of the dc
it just tells you the internal network at OVH is fine
Yeah but how external network lag would be a problem ?
all servers are on ovh network
well if the connection to the client is bad
because you are saying that the servers are not being slowed down and its all network related
it is possible that the route to your servers there is something going on
Well, Mc is a tickbased game
Could it be a malicious attack ?