#help-archived
1 messages Β· Page 38 of 1
Is this a public plugin?
nope
Then you're fine
Does anyone know how i give cash to the player with the Playerpoints API?
https://dev.bukkit.org/projects/playerpoints/pages/api explains it pretty well
If you just gonna use list map
isn't a Map<String, String> a jsonobject
You sure it's freezing?
yep
And not throwing an exception you hide?
uhh
try pausing it in a debugger
This is the perfect time to attach a debugger ;)
it gets the raw content
there is no other try catch
so i'd assume not, but I can try?
if theres no try catch then the exception should have showed if there was one
Who can help me
?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.
How do I get the config from other class?
Publish the instance of your main class via a getter
How? I'm just getting started
It's good I find how to do it. Thank you for your help
public static Main getInstance() {
return instance;
}
yes
thanks π
Does any1 know how to remove certain head from player
cmd or plugin?
anything
https://i.imgur.com/e99q1Yh.gifv - not freezing, it's quitting!!
very exciting
i need command for example /clear (player name) (item)
the command is right, but it is very dangerous if you use it the wrong way it'll clear the whole inventory
do you want to remove all skulls regardless the type?
well you have an outdated version of Git
I dont know if you notice but I don't.
2.26 < 2.4
Latest version is 2.26.2
So unless I time travel into the future
Also it is saying I am using 1.9.5
oops yes I was fooled by sth
did you update it at some point?
why does it say 2.4 required
now I'm confused
I see what's happened. My initial install of git was the 32 bit installer
So the location was set to Program Files x86
But latest version is in just Program Files
who can tell me why i cant Blow threw Walls With huge cannons We have right plugins but it not work
Eclipse > intelligay
Tbf we should all switch to notepad++ and skript
squiggly on the bottom is always a spelling error. Microsoft Word has prepared you for this.
From my issue above, ended up fixing it with
Check check = new Check(gson.fromJson(content, new TypeToken<List<Map<String, String>>>(){}.getType()));
how lovely
anyone knows which plugin is this some wildtp plugin but i cant find it:
if you can't find it it is probably custom
i saw it on like 10 servers already
which one is it?
have you tried using google search?
yes but the ones i find dont have bossbar nor do they have teleport effects like this one
sorry
?paste
.paste
idk what the command is
thanks
idk if it was yours or mine tbh
its not those Ugleh
The type Reload must implement the inherited abstract method Executor.execute(Runnable)
wtf?
anyone know how to fix?
Do you have a class called Reload that implements Runnable without a public void run() method?
run() method?
im new to this
public class Reload implements Executor{
this is the public class
There is more then 1 resource named WildTP
You want a custom made plugin?
What are you trying to achieve
me?
oh ok
ugleh already found it now :3
@vast hinge Executor has an abstract method called "execute" with the paramenter Runnable
implement that
im sorry what
Do you know java?
apparently its this one:
https://www.spigotmc.org/resources/wilderness-tp.18431/
this is weird
cause my other commands are basically the same
but for reload it just dosent work
Whenever you implement an abstract class you need to inherent it's methods
wdym by inherent its methods?
You have commands that inherent CommandExecuter?
i pretty much copied everything from a youtube video except for this reload command
lol
so im just putting pieces together to form something use able
The youtube tutorials are there to teach you, not to copy and paste bud
i didnt literatly copy and paste
Unless this one was badly presented idk
it was
i didnt explain anything
it just showed me how to do it
lol
you have been typing for like 5 minutes now
hey im trying to get spigot onto my server (aternos) so i can run geyser, how do i set up stuff like this?
There are different way classes can interact with each other.
An abstract class is simply a way for a class to be used as a basis for other classes. It's intentions are never to be instantiated on its own.
JavaPlugin is an example of this. When you make your plugin you always have your main class extends JavaPlugin.
An interface class is so that all subclasses within it share a common set of methods. This lets you program parts of your code in a way where you don't have to worry about which of the subclasses you're working (or in your case other persons code your working with) works.
When a class implements another class it takes that class as an exact copy. For example, Dog might Implement Animal, but Bulldog extends Dog.
and I know that isn't a lot typed for 5+ minutes but I couldn't think of the best way to explain it π
^
Yeah they probably have a better description.
Did you post a paste?
no
I need a little advice here. I'm going to implement teams/clan/guild into project. Not sure if I should write it myself or something already exists that I can use now and will scale with what I am doing. Anything you could can recommend?
wait in text or?
.paste
.paste
lol
I thought it was . because it replied after you.
the first time
I need a little advice here. I'm going to implement teams/clan/guild into project. Not sure if I should write it myself or something already exists that I can use now and will scale with what I am doing. Anything you could can recommend?
@naive stratus depends if you want to do it, go for it, if you want sth. tested and working use a library
The tutorial you watched may have been very outdated
me or him
We don't implement Executor anymore, it is CommandExecutor
Please donβt be BCBroz. Please donβt be BCBroz
good old Executer
Here is an example of my command for RPS, you can look at the code for examples https://github.com/Ugleh/RedstoneProximitySensor/blob/master/src/main/java/com/ugleh/redstoneproximitysensor/command/CommandRPS.java
Redstone Proximity Sensor, it is my baby.
do you know any up to date tutorials?
@vale slate You got anything in mind that I could take a look at?
What do you want to make?
best open source license?
I think other people in here have better knowledge what on this market is hot in the moment
yeah
wait some time
The only disadvantage of Maven I guess lol
can happen to all services
Yep, I just mean compared to the good old linking jars to your project offline π
Yep, I just mean compared to the good old linking jars to your project offline π
good times this were
Mcstats isn't the official maven repo lol
oof
ooof, didn't check the link
md5 change ur name to BCrypt
cmon man
sounds cooler too
o wait is that the admin
oof
their services are down at the moment
Yeah I've no idea why that repo is in my pom though
does this make sense
isFinishedErroneously()
sorry but this is too funny
haha
what would u name a future event that didnt complete successfully π
i need some names cmon ppl
how would i check if an item has a specific level of enchantment?
Removing the mcstats repo fixed everything, no idea how that ended up in my pom lmao
copy + paste
I'll stick with my favorite: UserException: We really think this error your fault, if you don't think so, please don't contact our support
will do that
ehh
public abstract class TransactionFuture<T> implements Transaction {
private transient T result;
private boolean finished;
private boolean finishedErroneously;
@Override
public final void execute(Session session) throws TransactionException {
try {
result = result(session);
} catch (Throwable throwable) {
finishedErroneously = true;
throw new TransactionException("Error occurred while obtaining result.", throwable);
} finally {
finished = true;
}
}
public abstract T result(Session session) throws TransactionException;
public boolean isFinished() {
return finished;
}
public T getResult() {
return result;
}
}
there is always a TransactionException
just more of an result approach
if (result.isFinished()) {
if (result.isFinishedErroneously()) {
} else {
}
}```
uh oh
I would leave that in there, it's funny
haha fair enough
Just have something like hasFailed()
too lame
failed is a good idea
public void update(){
Block b = location.getBlock();
BlockState state = b.getState();
if(!(state instanceof Sign)){
signHandler.removeSign(location);
return;
}
List<String> format = signHandler.getFormat(arena.getGameState());
for(String line : format){
int index = format.indexOf(line);
String[] words = line.split(" ");
for(String word : words){
if(!word.startsWith("%")){
continue;
}
String var = word.substring(0);
int value = arena.getVariable(var);
if(value == -1){
System.out.println("ERROR: Variable " + var + " NOT FOUND!");
continue;
}
line = line.replace(word, value+"");
}
Sign sign = (Sign)state;
sign.setLine(index, line);
sign.update();
}
}```
Any suggestions on what I should do? I'll obviously have countdowns in plenty of signs, can you think of a more efficient way to go about those countdowns? Rather than constantly updating and querying more than it needs to?
anyone here that has a text file including all minecraft 1.15.2 custom prices?
for(String line : format){
int index = format.indexOf(line);
dont use an advanced for loop
if ur going to get index
defeats the entire purpose
True ig
if(value == -1){
System.out.println("ERROR: Variable " + var + " NOT FOUND!");
continue;
}
Not only does it defeat the purpose, that is a lot less performant as well
never a good idea to fail silently
no need to concatenate
line = line.replace(word, value+"");
just
line = line.replace(word, Integer.toString(value));
+"" is shorter, I'm sticking with it lol
and use a logger instead of sysout
So many orders lmao
Oops, forgot to substring 1 not 0
Before anyone tells me to fix that too π lol
xD
I'm thinking of having an updateVar() method, instead of constantly updating the entire sign and querying things that don't need to be queried (for instance, updating it for the sake of changing a number for countdown).
Since the Arena class does have its own timer anyway, I'll need a better system to support more timers though, unless I just base everything off the lifetime of the Arena ugh
Why not
try it
Uff okay one second
i got this
List<Pair<String, Integer>> replace = Stream.of(words)
.filter(word -> word.startsWith("%"))
.map(word -> word.substring(1))
.map(word -> Pair.of(word, arena.getVariable(var))
.filter(keyAndValue -> keyAndValue.getValue() != -1)
.collect(Collectors.toList());
replace.forEach(keyAndValue -> line.replace(keyAndValue.getKey(), Integer.toString(keyAndValue.getValue()));
but its so fkn toxic
but I think it is correct
wrote freehand so might be some errors
just one way to beautify it
and lose tons of performance
XD
"beatify"
Ahahah, I need to relearn how to make lambda expressions fml
did u intentionally misspell that
awe
eh theyre pretty easy
just learn about functional interfaces
I first thought about it
beatify sounds better
Yeah I know, I understand your lambda expression
Goes back to while loops
Generally I'll only use Lambda if it greatly shortens my code and doesn't have a significant impact on performance
eh yeah fair
but honestly when it comes to minecraft
from what ive noticed in my short time
its just hashtables for everything
i.e Sets/Maps
because the idea of an event firing when a block breaks and executing some heavy code just makes my heart jump
π yeah
:p
I'm just trying to code some minigame framework... based off of 1 minigame
i can only guess what I'll be reusing.
there actually is a limit to this
what minigame?
nah, event heaviness
not u
major
and yeah im sure there is a limit
since each cycle is 50ms
and only so much can be for event listeners
I think you can go up to 300ms
assuming event listeners are observing every 50ms
then the server will crash
oh cool
A Greek themed infection minigame
covid-19 minigame?
covid-19 minigame?
@fading owl please don't
xD
haha
it would be disrespectful as fuck
to make a covid-19 minigame
pardon my lang
now a spanish flu minigame
on the other hand
π°
somebody is working on it for sure
oh for sure XD
best pr ever
pullrequest?
It's similar to mw3 infection, how the functions of that game is.
or public relations
Well except, there is no timer. There must be 1 survivor.
That's when the game ends.
sounds unique
tomahawks for days
The infected can get "Malice" over time, if they find it too hard they'll eventually win ahahah
It's like a type of point system per-game for zombies, they can spawn in monsters to help them and do other cool stuff
oh god
As for players, there are kits they buy and equip beforehand, every kit has an ability they can upgrade up to 4 times by completing kit-related challenges
Infected players can also redeem "Mutated items" at any point during the game, they have a rewards inventory, they get these items by giving Charon a gold coin in the lobby π
He fishes out an item and it flies up into your face prompting an inventory showing what you got
Yeah I kinda went ahead and turned a simplistic minigame into some advanced complicated thing lol
might be 90 by the time u finish
Hahaha, at this rate maybe.
:p
Some of the features I've had to predesign updates for
Otherwise, they'll just take too long.
I wish I had a good effects designer working with me lol
Then I could do epic stuff like when someone completes a challenge, giant text could appear on their screen with particles exploding around it
unity free assets + client mods
Without mods obviously lol
CustomModelData
Using titles in the center of the screen, positioned with particles at the right position, they'd need to be sent using packets or it'd just be freakin weird spawning it server side lmao
People with 2gb ram laptops when they get an achievement ahahah
well then you'll have at least 2 + 4 =6GB RAM
Then there's the samsung galaxy s20 ultra "Yeh I have 16gb ram, git gud"
Pretty sure it's like 2.4GHz or something though
xD
I really want people to start setting up servers on ships somehow
dump in in oil and raise the clock I guess
Right in the center between countries
I really want people to start setting up servers on ships somehow
@unreal hedge why
Then us Australians won't have poop latency all the time
rofl
π€£
Crafter, you should help me wing this framework π
at least you have internet, some regions in Germany have worse internet than you'll get in the Sahara
Lol, now 5G is being rolled out throughout the country
Nuclear powered ships
Well I'll call Putin if it comes to this
I'd love that ahahah make my own nuclear powered ship then I can stick my middle finger up at Australia for not getting nuclear powered energy
I feel like we should be in general chat ngl
is this a viable way of checking if Vault is installed/
if(getServer().getPluginManager().getPlugin("Vault")!=null&&getServer().getPluginManager().isPluginEnabled("Vault"))
what method should I use instead of Bukkit.getofflineplayer(string)?
pass in a uuid
Add vault as either a dependency or soft dependency first @vernal spruce
Then use either one of those methods.
ik but i want it running
even without
its basically "some features" will be disabled
So yeah, add it as a soft dependency
i already am
Or your plugin might never find vault.
Alright nice, so yeah pretty sure either method would work.
in the FixedSetPrompt#getPromptText() if you want to return more than one line how would you do it?
would you just append \n when you want a new line?
the return type of the method is String :S
@pastel condor Bukkit.getOfflinePlayer(uuid)
or should I just use a MessagePrompt before sending the FixedSetPrompt?
Haven't toyed around with it yet, I'm sure someone here will help though π€
another quic one,does vault always have economy?
@radiant hollow sorry to bug you, do you have any idea how to do what I mentioned above?
You need an economy provider, something along those lines. lemme get it from the docs for you
but.. a server would always have an economy plugin most likely right?
im still checking if economy is null though so i should be good
Most likely, Essentials is a provider for example. Make sure server owners don't assume your plugin is a provider though
Uh Attlantiz, I don't know :{
no worries haha, I'll try with \n and see how it goes
it just seemed a bit hacky xD
Im wondering if theres a way to edit the message, "if you wish to use ip forwarding, please use it in your bungeecord config as well", i want to redirect people to a new ip.
Were you using a domain already, @torn siren ?
subdomain on a hosting site
You could probably try asking them to have the domain simply redirect to your new one and let your players know what the new address is
damn..why do i always lose excitement in making a plugin right at the finish
hmm ok ty
Ey, you could always help me develop my framework ahahah, it gets boring coding alone sometimes
all i need is to add upgradeable levels wich would take me like 15min but im not in the mood
Ey, you could always help me develop my framework ahahah, it gets boring coding alone sometimes
@unreal hedge luckily I have a team behind me
Should I be using a connection pool for my SQL usages or just make a new connection asynchronoulsy each time
because coding alone is poor sometimes
yeah might need to look for peps
k how dumb is placing a javaplugin param on a constructor to avoid static initializer?
so i can grab a reference from main
its not dumb
that's done by a lot of plugins and is arguably better than singleton design (though less fun to do with a lot of classes)
there is a whole debate about it
though those who have truly ascended will say use dependency injection >:)
Β―_(γ)_/Β―
its for 1 class to avoid static init error π
is there a way to generate vanilla structures using a blockPopulator?
hell yeah
So on one of our proxies, all the players that were connected to one server were kicked (50 players)
[00:42:12] [Netty Worker IO Thread #5/INFO]: [/REDACTED|ghostBv] <-> DownstreamBridge <-> [skywars] has disconnected
[00:42:12] [Netty Worker IO Thread #3/INFO]: [jejje] disconnected with: The server you were previously on went down, you have been connected to a fallback server
[00:42:12] [Netty Worker IO Thread #16/ERROR]: [/REDACTED|recolector999] <-> DownstreamBridge <-> [skywars] - encountered exception
java.lang.NullPointerException: null
[00:42:12] [Netty Worker IO Thread #8/INFO]: [ByRacsYT] disconnected with: The server you were previously on went down, you have been connected to a fallback server
[00:42:12] [Netty Worker IO Thread #16/INFO]: [recolector999] disconnected with: The server you were previously on went down, you have been connected to a fallback server
There's no stacktrace nor more information regarding the kick. On the server all the players just appear as "disconnected"
ah, thanks!
question: I can use my Ip private for open a port?
as in, can you host a server on your LAN?
yes. If you are using windows then you'll need to use Windows Defender Firewall to open the port. On linux, then you'll need to use whatever firewall you have there (most common is ufw, which to allow TCP on port 25565 you would do sudo ufw allow 25565/tcp
i thought he meant could he host a game on his LAN
example.. my isp decided to do the NAT approach so now im stuck without being able to port forward
nice.
well if he can't port forward then he could set up a cheap cloud VM and reverse proxy to his server on LAN. I misunderstood the question, thought he was asking how to allow ppl on his LAN to join
he didnt answer to your question yet..
hmm how would i go about creating speed modifier to a timer
do i cancel the runnable and start it again with new time
or create a timer and have a runnable add seconds to it
so i can simply change the amount of seconds
can using \n in spigot when sending a chat message cause any issues?
I'm using the conversation api and I'd like to send more than one message in the prompt
but unfortunately the getPromptText method return type is String
Hey guys so I'm using the dynmap plug-in, and for some reason, others can't see my map, when I can
I'm using a name cheap url redirect to forward to my http://ipv4:port
wtf, you cannot mock ItemStack#getItemMeta() because it calls Bukkit.getItemMetaFactory()? I didn't know that this api sucks so much, this is ridiculous
I wish there were any plans on modernizing, and fixing this ugly api
are you volunteering?
You can always contribute
I mean a true API would be entirely interfaces so you'd have to mock the entire everything to unit test to begin with
I wonder how much hatemail you would get if you made itemsstack final
hi md_5, do you have any idea how I could send multiple messages in a single prompt (conversations api) so that I can provide more information to the user?
\n works, would that be fine?
you could call sendMessage multiple times for the amount of lines you want, but iirc \n is fine
you cant call sendMessage inside a prompt
the message is defined using getPromptText
Hey does anyone know how to get what creative group a material/itemstack belongs to?
I think thats done clientside
Ahhh that would make sense...
it does work, I was asking if any problems might arise from that and if there is a neater solution
Okay so since ItemStacks don't have an ID anymore is there anyway to order them by what their old ID used to be, like they're ordered in the creative menu/JEI
I've just been using their Key atm and ordering alphabetically
ive wondered bout this for so long , whats the difference between bukkit and spigot
the spelling
my nose is bleeding nd i can only use one hand to type ok
patches, api things, bungeecord, some extra settings e.g. spigot.yml. and some other stuff i cant remember.
ok
how can I stop this from happening in my custom generator?
the bars are not connecting properly. Is there a way to update them after I generate them?
not quite sure how this is happening
for(int j = height+1; j <= (int) (height+1.5*width); j++) {
for (int x = (int) -width; x <= width; x++) {
world.getBlockAt(locations[i][0]+x, locations[i][1]+j, (int) (locations[i][2]-width)).setType(Material.IRON_BARS);
world.getBlockAt(locations[i][0]+x, locations[i][1]+j, (int) (locations[i][2]+width)).setType(Material.IRON_BARS);
}
for (int z = (int) -width; z <= width; z++) {
world.getBlockAt((int) (locations[i][0]-width), locations[i][1]+j, locations[i][2]+z).setType(Material.IRON_BARS);
world.getBlockAt((int) (locations[i][0]+width), locations[i][1]+j, locations[i][2]+z).setType(Material.IRON_BARS);
}
}
for (int x = (int) -width; x <= width; x++) {
for (int z = (int) -width; z <= width; z++) {
world.getBlockAt((int) (locations[i][0]+x), (int) (locations[i][1]+height+1.5*width), locations[i][2]+z).setType(Material.IRON_BARS);
}
if you break he bars and place it back , what happens?
give it a try
paper 183
Try it in spigot and see if you have the same issue.
IS it possble to change the motd of a spigot server
yeah, just change it in server.properties
Ive change it there and nothing happened
What plugins do you have installed?
or what server hosting website r u using
ohhh
i think some plugin that has to do with the server motd is probably the issue
there is a plugin to set the motd when I use it it doesnt change the text
i'm trying to use public PathfinderGoalNearestAttackableTarget(EntityInsentient entityinsentient, Class<T> oclass, int i, boolean flag, boolean flag1, @Nullable Predicate<EntityLiving> predicate)
and i have a class that implements Predicate<Player> that im using as the predicate
what should i put as the method in the class to return the true/false?
what should i name the method, i mean
@neat turret u can try deleting the plugin and edit the file 'server properties' itself
ok
remember to restart the server too
/
oh hmm
it looks like its 'connecting' but its not tho
looks like one is connecting, but the other is not
yep now it works thanks
np dude
what is the best way to convert group manager to pex format i am trying to create a server that is not dependent on essentials nor wordledit nor worldguard since those are too heavily used and depended on i want to make a different kind of server or trying to convert to pex since group manager depends on essentials to work
anyone know of a way i would really appreciate it, thanks -Mike
isajdkvsdeiausdjknfdsvcxefwfs
luckperms can migrate data from group manager
I suggest sticking to luck perms also once you have migrated that data π
ya
how do you set the 'welcome' msg from essentials to only show up in the player-who-joined's chat?
is luck perms compatible with latest minecraft
and more importantly is it easy to manage set groups
it works ya and once you learn it it is not bad. It can be intimidating for new users but it does have a web editor that works well
i dont have database tho i prefer to use plugins without database
i can get one but its just more complicated
there are flat file and sqlite options
issues now is without essentials i need to replace some missing commands like /mail /msg /reply (/r)
look for a chat plugin
i tried to look a replacement for /mail cant find any i dont want any GUI or special menu i want a simple compatible plugin for mail
ok i will search up chat plugins
venturechat may be an option for you
Where can I find multiverse core for 1.8.8
if you go to bukkit then click files since they keep it updated should be under "files" tab that is how i do it then it list older versions and on the side it says what version of minecraft it is for
idk tho but that is what i do
hi, anyone has an explanation of what is happening with aternos and his spigot plugins?
@golden vault i tried venturechat and it gives me error on craftbukkit 1.15.2 but thank you for the suggestion
i was testing it
why craftbukkit?
i have always used craftbukkit every since 1.7.10 i have trusted craftbukkit
I have a class that implements Predicate, and want to use it for the predicate parameter for PathfinerGoalSelectorTarget
what does spigot have that craftbukkit doesnt just wondering
i have little experience with spigot
Im not sure what method i need to put in the first class in order for it to work correctly
Should it override test or should it be completely different?
you use.... craftbukkit?
currently yes
Sir this is a spigot server lol
i was gonna switch but i heard spigot is prone to bugs and security flaws
someone told me paper was better
is it not allowed?
Discussing other forks is a nono
By security i wouldnt know what you mean
survival without worldedit worldguard essentials
too many people use those
i want to be different
:s no
is it true that spigot is prone to security flaws and bugs that is what someone told me
Worldguard is pretty necessary though
i seriously do not know
Yea thats fairly inaccurate
craftbukkit is good but uses alot of CPU
that is the issue is it CPU heavy
yes.... was wondering if Spigot is less intense and lighter than Bukkit
?
If youre gonna talk about bugs, paper would be buggier than spigot
As far as i know, spigot does provide slightly better performance but if youre having a hard time with CPU right now it may not be effective anyway
do any of you use anti xray plugins i use to use orefescator or whatever you spell it but i dont think it works anymore
wondering what the best antixray is
ok i got spigot
will try it out and report when done doing some testing
says its not latest version
where can i get lastest version
?bt
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
with that ^
its not, you download it and run it and it makes you a jar on your computer
the only "complication" is you cant just click on it to run it.
can someone help me with staff perms
Anyone have issues with HubBasics saying the default menu is invalid
Does anyone know how much you need to donate for a name change?
I think its $10 @shut isle
I send a chat message using BungeeCord subchannel(Message) while switching to another server. But, Player cannot receive the message.
Do anyone has idea?
bruh where can i find the jar or buildtools for the 20w15a the play.spigotmc.org server is
we'd need more info than that @sudden hill
@quartz trench i dont think it's been released yet
gotcha
sorry
@bronze horizon
- Player is in server1.
- Send
Connect(server2) andMessage(foo)to BungeeCord using Plugin Messaging. - Player was connected to server2. But Message(foo) did not display...
ok so youre using the plugin messaging channel. can i see the code? did you register the events?
wait
nvm
so the player gets connected to the server2 with Connect
yes?
yes
but then the message does not display?
have you tried sending the message before changing servers? haven't personally done a ton with the plugin messaging channel so sorry if i say something dumb
I can send a chat message using Bukkit API when before Connect. But I want to send a chat message from server1 after changed server to server2.
oh so like "Player has left server1 and gone to server2"?
ok and how is the player move being triggered?
through what server (bungee or spigot)
Player will send a command like /home foo in spigot server and home plugin will trigger to Connect to server that containing the home foo.
Finally home plugin will send a chat message like Teleported to foo successfully from server1 to server2 teleported player.
Okay finally, I have been watching this conversation for 5 minutes now, I just joined the discord 10 minutes ago so I couldnt say this but I think the bungee event you are looking for is this: https://ci.md-5.net/job/BungeeCord/ws/api/target/apidocs/net/md_5/bungee/api/event/PostLoginEvent.html
This will call after the player joins server2
from server1
does anyone know how to attach a gui to a item for example click on a clock and a gui opens
thanks gamerduck
I've been screaming at my screen for like 5 minutes now xD
@neat turret so like a clock in the hotbar?
yes
you know on hypixel
yeah
the compass
got it
You should be looking for PlayerInteractEvent and check if the item in the players hand is a clock and check the itemmeta
And then use your method that you use to open the gui
how do you type so damn fast?
oh ok
6 years of coding
So, you mean that I should create home plugin for Bungee too?
wait
^ I thought it was on bungee (from what I read)
ok so i recently added spigot to my server and when i try to join it gives me this error : internal exception io.netty.handler.codec.encoderexception java.lang.outofboundsexeption: 1
Have you added any plugins?
Thats usually a scoreboard issue
Ok, My home plugin is work in spigot server.
yes i have added advancedbans headdrops and simplecommands
So no scoreboard?
there is one but no plugin for it
ken_kentan, my recommendation would make the home plugin for bungee
@quick bison it's most likely something on your scoreboard is a bit too long
how do i fix
oh god
disable it through console
hes here too
π¦
wow uh
β€οΈ
that got heated quick
what file do i change
no file
Go into console and remove it using the /scoreboard command
π
ok
I see.. So, Cannot BungeeCord process Message while player switching server?
ken_kentan, is the plugin a bungee or spigot plugin?
Sorry. I mean spigot plugin and send Message packet to bungeecord using bungeecord plugin messaging.
wait sop do i do sumthin like ?scoreboard clear (im not good with commands)
so you have a bungeecord plugin?
Great question Rebranded, I'm not good with scoreboard commands either so gimme a second
no i have not. just using BungeeCord Plugin Messaging in spigot server.
In the time it took you to find that link, I literally restarted my computer completely, started up minecraft, and created a completely new world
I'll leave it at that of how good my computer is
ok
β€οΈ
xD
[23:07:48 ERROR]: Error occurred while enabling VulcanCore v2.0.0-ALPHA (Is it up to date?)
java.lang.NoClassDefFoundError: com/zaxxer/hikari/HikariConfig
at vulcanprisons.shadowslayz3499.vulcancore.sql.ConnectionPoolManager.setupPool(ConnectionPoolManager.java:46) ~[?:?]
at vulcanprisons.shadowslayz3499.vulcancore.sql.ConnectionPoolManager.<init>(ConnectionPoolManager.java:31) ~[?:?]
at vulcanprisons.shadowslayz3499.vulcancore.VulcanCore.onEnable(VulcanCore.java:130) ~[?:?]```
thank you
is this because my maven didnt setup HikariCP?
it said unknown command for both
try doing /minecraft:scoreboard
or that
no no bungee
And to answer @buoyant path yes, that is most likely due to the fact that maven didn't import it correctly
ohh
Wait no I lied
???
im frickin stupid
Iron, it's because you need to have depend: [HikariCP] in your plugin.yml
nah bro
ok i did it and ran the command but it gives the same error\
unknown command?
Try replacing @a with your name
It might be because @a might be getting all ONLINE players
no it did the command
just it had no effect
i did soreboard objectives reset deaths
anybody know any plugins that allows you to make the guis open with a item or do you have to code it
ChestCommands
Yeah thats okay
scoreboard reset @a said there was 0 entitys that matched selector
k
after doing this Location loc = new Location(Bukkit.getWorld(UUIDInCMD), 0, 63, 0); Block block = loc.getBlock(); block.setType(Material.BEDROCK); how do I set the block or "update it"?
scoreboard reset Rebranded @quick bison
you gotta be online too
@supple arrow wait really?
Yus
yeah he wants like hotbar items
Ohhh
didnt work
@pastel condor is block.setType not working?
@pastel condor try like loc.setBlock(block); or something
because you got the block and changed it
but didnt set the location's block to the updated block
[21:16:49] [Server thread/INFO]: Incorrect argument for command
[21:16:49] [Server thread/INFO]: ...coreboard reset Rebranded_<--[HERE]
ok i did it and it went through but it still does not work
Then it's most likely what you thought it was @ Iron, maven not importing it correctly
I just thought it was a plugin API
[Q] Can I send Bungee Plugin Messaging from 0 players spigot server.
send yes i think get no
@ Rebranded, huh.. weird.. when did the error start happening exactly?
So in the chest commands plugin you can make hotbar items opens gui?
I'm always confused
llvLordvll are you making your own plugin? or are you trying to open a gui from a plugin with a command?
open a gui from a plug-in within a command
ok so you want the item in the hot bar to run /gui open gui or whatever the command is?
exactly what i want
Can someone help me add HikariCp to my build in maven
idk what im doing with maven
i just throw in dependencies most of the time
Is there any red underlines?
No
Welp thats where my help ends cuz I honestly have no idea
YOu could ask @final verge if he's not being mean to me
Im nothing but sweet
@final verge could I have some assistance lol
Idk how to add HikariCP to my maven
i added the dependency but it needs to build
how did you add the dep? also i suck at maven xD I just throw em in and pray for the best and it usually works
He's better at maven than me
You're still better than me xD
I can build but the class is not defined
uh
i think you might have to shade it in but not sure
might try and see what happens
i use gradle mostly and it's super easy with it
change compileOnly to compile
[23:39:52 ERROR]: Error occurred while enabling VulcanCore v2.0.0-ALPHA (Is it up to date?)
java.lang.NoClassDefFoundError: com/zaxxer/hikari/HikariConfig
still this error
ok too much maven/gradle π© im out for a bit
Lol pce
Wait guys whats this https://www.youtube.com/watch?v=6_b7RDuLwcI
fuck you that was a nice contribution to the community
^^
Imagine not being verified...
Imagine being named Phaze
Ez
For the maven problem, in the dependencies area where HikariCP is listed, under version add <scope>compile</scope>
that should cause the shade plugin to include it into your final jar
Yeah what this man said
Lets hope lol
generally when using the shade plugin, you should make it a habit of setting the scope on your dependencies
someone also sent me this
Error occurred while enabling VulcanCore v2.0.0-ALPHA (Is it up to date?)
java.lang.NoClassDefFoundError: com/zaxxer/hikari/HikariConfig
error still happening
did you check your final jar? open with winrar and see if that class exists
or if HikariCP indeed get shaded in
I would also try mvn clean to clean out the build directory
anyone able to help me debug why my yaml file is invalid?
1:
display: '&a&lA'
cost: 0
addpermission:
- essentials.warp.a
2:
display: "&b&lB"
cost: 25000
commands:
- ''
broadcast:
- ''
msg:
- '&a&lRANKS &8Β» &7You've ranked up to &b&lB&7.'
randomcmds:
'1':
chance: 0
commands:
- ''
'2':
chance: 0
commands:
- ''
addpermission:
- essentials.warp.b
delpermission:
http://www.yamllint.com/ says it's on line 7 but i see nothing wrong
how do you create a command which does the exact same as another command
Frostalf it did not compile with it
but its just shorter or more convinient to type
display: "&b&lB" in the first part you using single quotes, this is using double quotes
you remake the command?
@wicked sage line 7 is the only one using double quotes
change them to single quotes
but when I checked it it was still valid for me though
@cloud sparrow how
due to the ' in the middle of you've.
change the outside to "
yeah
for the easiest way to solve.
^^
@cloud sparrow beat me to the next thing I was going to message XD
same here
randomly opened discord and got a lot of notifications here.
@buoyant path clean your build directory and try it again
I dont really know how to do that lol
@ocean hamlet if you don't have any experience use this: https://www.spigotmc.org/wiki/create-a-simple-command/
just delete it
I just put stuff in maven
To learn how to make a command.
delete everything?
or do mvn clean
thanks guys
Ok attempt 3.0
when it comes to the build directory you can either do mvn clean and maven will delete it for you
or you can manually delete that directory
@cloud sparrow thanks bro
https://paste.laravel.io/6L7qq someone was able to make it work with this
im not sure if i need that second dependency
wait nvm
you don't need slf4j but you do need to set the scope on your dependencies
<scope>compile</scope>
since you have shade happening at package and you put in there the default build is package, it should just do it when you do mvn build
is your project open source @buoyant path ?
No its for a server im coding
ah, was going to say if it was I could pull it in to see if the problem happens for me
currently I don't have issues with shading
If I get this working my SQL stuff will be done lol
the only common issue I run into sometimes with shading is accidentally shading in the api sometimes >>
Lol
usually happens because of a transitive dependency
so I have to tell the shading plugin not to put in my jars XD
It seems like a lot of people have the NoClassDefFoundException
I found like 3 spigot threads and a stackoverflow
I use HikariCP and don't have that issue =/
did you finally get your problem resolved @buoyant path ?
Im working on it
instead of using maven assembly im trying to switch to shadwe
shade*
Still got the same error
ill send my current pom
you were using maven assembly? o.O
Does anyone know what this orange line is? Just curious.
https://prnt.sc/s50peq
(Timings report)
updated the plugins versions, added the scope to one of the dependencies it was missing on and then I added another goal to the defaultGoal to see if it makes it a difference since mine uses those three in most of my pom's @buoyant path
Im pretty sure it is lol
Im going to attempt one more thing
someone said on a spigot thread that you need slf4j because of the logging it does for HikariCP
its possible
but does the shader include HikariCP at all? or is just that one thing?
oive poted this problem on this discord before and so i made a spigot server and i have advancedbans headdrops s and simplecommands but when i get in the server it kicks me out immediatly the error is : internal exception io.netty.handler.codec.encoderexception java.lang.outofboundsexeption: 1
well earlier you said it wasn't shading HikariCP into the final jar. The way you verify that is by opening up the final jar with something like winrar to inspect what is in there. Should see a directory in the jar called com
and then if you were to enter that directory there should be another called
zaxxer etc etc
https://gyazo.com/ec657790a1365c8654ca7d60687bf3f4 its not there
wonder why its not shading that dependency in there o.O
this is the most frustrating thing ever lmao
I would probably take a look at the build log from maven
either in the command line window or sometimes kept where maven is installed, if on linux can usually find it in the logs area
https://gyazo.com/4eb73d4c14016a4266e4f040160a0eb0 you talking about this?
hey
anyone knows why my players get kicked for spamming
even when theyre not spamming
i have viaversion and i think
It doesnt say anything about it?
Nick, does console say anything?
<library name="Maven: com.zaxxer:HikariCP:3.4.2">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/com/zaxxer/HikariCP/3.4.2/HikariCP-3.4.2.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/com/zaxxer/HikariCP/3.4.2/HikariCP-3.4.2-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/com/zaxxer/HikariCP/3.4.2/HikariCP-3.4.2-sources.jar!/" />
</SOURCES>
</library>
</component>```
@keen compass it loaded this
i
it also did that
I am at a loss then at the moment as to why its not shading in
What's wrong here?
{
//player
Player player = (Player) sender;
String name = player.getName();
player.sendMessage(ChatColor.BLUE + "You have been granted access to play the game.");
}```
have you tried invalidating caches in IJ and then restarting it @buoyant path ?
Sorry for asking again but does anyone use HubBasics
I can't figure out why my material isnt showing
change
public void onPlayerJoin()
to
public void onPlayerJoin(PlayerJoinEvent event) {
//player
Player player = event.getPlayer();
String name = player.getName();
player.sendMessage(ChatColor.BLUE + "You have been granted access to play the game.");```
Anyone here work with MongoDB?
Missing @ EventHandler as well
^
that too
was gonna say that lol
?events
events Create/new/make: Creates an event, You will be led through an interactive setup
events Edit: Edits an event
events List/ls: Lists all events in this server
events Delete/rm/del: Deletes an event, specify the event ID of the event you wanna delete
events StopSetup/cancelsetup: Force cancels the current setup session in this channel
Gg
Go away, fake cafebabe 
lmao