#help-archived
1 messages Β· Page 178 of 1
enough for coding bukkit plugin
where did you learn it?
read songoda source code
yeah i recommended don't do my way
what is that
There are much better source codes out there not songoda
Learn Java 8 and object oriented programming with this complete Java course for beginners.
βοΈContents βοΈ
β¨οΈ (0:00:00) 1 - Basic Java keywords explained
β¨οΈ (0:21:59) 2 - Basic Java keywords explained - Coding Session
β¨οΈ (0:35:45) 3 - Basic Java keywords explained - Debrief...
well i like the core stuff so i came for it
But yeah read other source codes
this?
no please don't freecodecamp
I tried there website
9h and you will get tired
It sucks
wich one then
Free preview of my Java course: https://course.alexlorenlee.com/courses/learn-java-fast
Learn Java quickly by watching this video to the very end. If you do, you will walk away as a better java programmer :)
Here's how to learn java in 13 minutes, for beginners. I've been pr...
Utilize our Java tutorial to learn the basics of the popular language, including Java objects, in this introductory course.
I told one, but don't read it all at once or you will start forgetting important information. You need to follow along and experiment or you won't remember everything
Practice builds muscle memory after all
Anyway there are plenty of them out there and I wouldn't say a specific video or guide is "the best"
your experiment/skill depend on your study
so choose the tutorial you think it's the best for you
Choose one of the ones sent
so choose the tutorial you think it's the best for you
^^
so
i follow this tutorial
i just remember that they have English
and my country language too ^-^
Well i'm from Vietnam
@frigid ember @brave vector Server outdated! How is that even possible again
Server outdated? did you have Via on your backend server?
server version is: 1.16 or 1.16.1?
there is no spigot 1.16 tho, only 1.16.1
oh damn
that would be great
1.16.1 is the version
Hmm can't connect
I get a message: If you wish to use ip forwarding please enable it in ur bungeecord as wel
Bungeecord is disabled this time
maybe is a spigot setting im missing now?
that's because bungeecord is set to true in your spigot.yml
yeah i just found it, sry i have 5 hours on screen trying to fix that thing
i thought that your problem is connect to the proxy
i thought that your problem is connect to the proxy
@brave vector with bungeecord enabled. I disable it to see if i can connect normally from 1.16.1 *not proxy, outdated version
oh i understand
are you using paper or spigot?
spigot 1.16.1
not paper then
nop, wait imma about to connect
did you read the docs?
because you didn't read it seriously
how i do is show how many players join
if i send here link to that
i get warn?
is to spigot website
what is papi
PlaceHolderAPI
yeah i know
python is easier
This server is running CraftBukkit version git-Spigot-0287a20-7560f5f (MC: 1.16.1) (Implementing API version 1.16.1-R0.1-SNAPSHOT)
So how is it even possible to get the Outdated version error?
@delicate nymph rebuild with buildtools
uuuuh..... that's not.... a valid version
then you wont get it
justmango can you please help me with more thing?
also yeah bit strange having craftbukkit and spigot in same sentence
yeah but its usually not typed anywhere
wait where did you get ur spigot from
?bt
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
from official site
one sec then
where you got it from
g e t b u k k i t
OH DAYUMN
yeah im most likely sure it is
don't
that website contain outdate build
someone told me that they have malware in the server jar
its basically an illegally shared version of spigot wich is also unverified
can someone help me please
get spigot from here,its gonna give you the latest version
ok so from where i should get a 1.16.1 version? build tools?
?bt
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
why the TAB reborn not work,,,?
yeah go with --rev 1.16.1
i must tab on my server but why isn't work?
ok imma do that and come back with what happened
what do you mean by "not work"? what is it that doesn't work?
ur gonna end up with a legit spigot.jar in ur folder
justmango you know why isn't work
not much else
my god that english
then build later
ok i ll try that
this is my build so it cleared
yeah bt
wich is also unverified
try this first then build later
who can help me please
why the tab reborn not work?
wow
guys imma do both and what works is good π
and once again dont share spigot jars in here
if you know then don't share it
i just want to finish his issue
why don't you use this https://www.spigotmc.org/resources/tab-1-5-x-1-16-1-rgb-support.57806/
so by finishing his issue,you make him avoid learning to use buildtools to get a new version of spigot once its out
why did you say Tab Reborn
OMFG
bcf on minehut is show tab reborn
minehut succ
i not on server pro bcf how players join?
i mean im expecting a average english level for being able to even configure a minecraft server
?paste
oh god
Long code? Are you programming?
but isn't work
there fixed,
please tell me what the error
@inland oxide what the fuck
oh, i really should sleep
use less weed
it's like am
thats just them in general
can someone please please help me
no herbs involved
i mean like 9ish
no yaml error hmm
grammar
yes
https://www.youtube.com/watch?v=QONzSMqxzWU this is all you need
Basic English Conversation Practice - Learn English Conversation for Beginners.
- Link download Text & MP3 Basic English Conversation: https://goo.gl/YNTGhn
β Thanks for watching!
β Please share and like if you enjoyed the video :) thanks so much β₯
βββββββββββββββββββ
βΆ Ple...
I'm out of here before I get a stroke
thats why i said "my eyes"
hm i will see that later
by that he means
but can you please tell me how i reset the plugin tab
you need to have a better english level to configure a plugin
remove datafolder
LMAO
So i tried JustMangoStudio's version and i get "Outdated Version still on 1.7.10"
Shouldn't we worry by the way about the console not even loading the server like worlds plugins etc?
well i delete it now
Shouldn't we worry by the way about the console not even loading the server like worlds plugins etc?
excuse me what????
deleted
what u run in the .bat file?
what does console show when you start the server?
what params
me pants are wet brb
?paste
@inland oxide good luck
deleting the server/plugins and server is better way
dont say that,he might actually do it
well sorry
removing your cpu
were talking about that level of intelligence..
when your pc is running
you can't touch to your mainboard when the pc is running lol
The server is up by a company. I used it in the past all works great. So, i can't set the start parameters since they do. ++ One thing, they don't recognise spigot-1.16.1.jar. When i rename it to craftbukkit.jar they recognise it, and thus i was able to run the server before with that spigot version
Now thats what my console shows: https://paste.md-5.net/nunujulowa.coffeescript
so you have problem with startup script
and the initial handler keeps spamming until it auto restarts and all things same again
you can't touch to your mainboard when the pc is running lol
it does not matter, then we get an electric shock
how are you gonna get a shock at 3.3v....
or maybe not
oh bungee
dont worry, you're terminator 2
ok nice and dry
how are you gonna get a shock at 3.3v....
@frigid ember the same way i got shocked messing with arduino once
π€£
justmango
H O W
had to wash two cars
i not find date foldor
but my chores are done.
folodr
foldor?
datafolder is your plugin folder
lets say using ur fingers to hold 2 cables on a led didnt go well
folder
hodor?
Anyone saw my pastelinks?
why i can't up picture?
I collapsed my home's electrical network
sadly i got no experience in bungee so i cant give any advice
Shouldn't we worry by the way about the console not even loading the server like worlds plugins etc?
@delicate nymph did you mean on BungeeCord or on Spigot???
what about bungee>?
^
this is not the bungeecord problem
oh good
has a bossbar.yml
and config.yml
errors.txt
translantion.tml
animations.yml
advancedconfig.yml
i not see date...
oh god
?
What you see here: https://paste.md-5.net/nunujulowa.coffeescript is what i see too. I only have plugins in spigot. The thing is without bungeecord spigot loads normally and server opens so i can join. With bungee enabled i see the above console, and i get the outdated version error.
@ripe token how old are you?
you should learn the basic computer tutorial too
12.7
99
oh
-1
0xffff
i knew how to use IE when i just 3 y/o
doesn't really answer my question @delicate nymph
but please help me how i reset the tab?
0xffff
@inland oxide that's -1 lol
is the channels
has a bossbar.yml
and config.yml
errors.txt
translantion.tml
animations.yml
advancedconfig.yml
@ripe token "too much young for this" ask friend with same language to help
i want the server to load normally, like load worlds, and spigot plugins. i dont have bungee plugins
my friends not good on this things
when it's 9am and you realize you have the whole day ahead of you
I started creating and building a server 3 years ago
i berof 6 months
@inland oxide depending on what you need to do
well, maybe first sober up
today i spent like 2hrs finish a plugin then another 3 finished a plugin request from bukkit lol
but please only tell me how i do reset the tab
i just removed my server, because it makes no sense, developing mc is better
only that please
remove TAB folder
i don't think is help but ok
and please dont use /rl, /reload, /restart
you better then me
honestly I'm usually asleep at this time
only use /stop
pretty busy for discord if you ask me
i sleep 6h/day
@inland oxide grab some coffe then ur good
sometimes 4h/day
and sometimes full night
its like 2am in Sydney
I either sleep 2hs or 12hs lol
i get like 0.5l energy drink in me everyday
nothing in between
energy drinks are succ
i bet those perogis look mighty fine right about now even with ketchup
coffee better
Any other clues guys? Sry if im the odd one but im for too many hours and not seeing light on the case
got mr. buzz going with the IV
@delicate nymph just send us full spigot logs
With bungeecord on i only get this: https://paste.md-5.net/nunujulowa.coffeescript
OMG
nothing else
drink air
i just need spigot fffffffffffffffffffffffffffffffffffff
wow is work ty π
wut there is a 0.3 out?
they are the server console logs
i'm going to die
me too
are you even running BungeeCord AND Spigot at the same time????
mojang keeps messing with the protocol
shoot, got drunk and mojang released a version on me
on the web panel i have just ticket the Enable Bungeecord if that answers. I dont disable spigot
what did they change this time?
someone know how i do
every 5 seconds:
console command "bc click me:"
and if you click is open the discord link
json
BossBoardCast
if you don't know json
one sec
use BossBroadCast
im?
failed to bind port lol
bungee config: https://paste.md-5.net/bofokozuru.makefile
well it tells you the problem right there
is plugin? i not see that on plugins
it should be solved if you send this log 20` ago
it's not even starting
@inland oxide Did they change the way bossbars are handled?
I remember there was a big bungee bug earlier this month
With the 1.16 update
spigot is locking my difficulty at peaceful despite ingame saying it is hard
it's not even starting
@frigid ember Thats what i tried to say π
have no clue still drinking my coveffe
and please last thing
OMG
braked?
rainbow prefix
because you weren't even sending the spigot logs
rainbow prefix to owner rank
f me dude im dumb
Rainbow prefix use a lot of line
do you have access to the server.properties?
can you please tell me how i do that?
change the port in server.properties and config.yml (Bungeecord) too
so it matches the one in the bungeecord config
is with animations.yml i think
can anyone help me
@sturdy oar https://streamable.com/dxqy55
- "&6M&eango is good"
- "&5M&6a&engo is good"```
Got beds working
query.port=..., port=... or server-port=... ?
yeah
query.port is unnecessary
@frigid ember It got changed between versions
@wheat mirage classic way?
@sturdy oar It doesn't work unless you compile protocollib yourself lol
make the player invisible while sending a packet of a sleeping player
ok. So should i change and the port= itself?
with his skin and name
it's server-port, set server-port to 10710
its rly annoying to pull off
@vernal spruce That's actually a custom NPC
i mean thats how you create a npc with packets
I assume this is a Mojang issue, Mojang plz
hard part is faking it sleeping
@vernal spruce No the whole thing is an npc
oh god the gui scale
@vernal spruce no, but close. And yeah he works well π
@sturdy oar Fake a bed, send the metadata packet. I only have protocollib code and the current maven builds are broke.
there isnt much ai involved as ur just handling closest target
@vernal spruce u couldnt be more wrong π
@brave vector ???
Couldnβt you just write your own pathfinder goals?
the part is "fake a bed"
yeah there is mostly a reason why not even hypixel has pvp bots
@frigid ember i changed to 10710 but after the restart it was automatic rechanged to 10800 due to bungee config i suppose
nope thats the thing
Itβd be hard as shit but you could write custom entities with custom pathfinding goals.
sleeping packet requires a active bed
@sturdy oar yeah
Still spigot doesnt load
@frigid ember i changed to 10710 but after the restart it was automatic rechanged to 10800 due to bungee config i suppose
@delicate nymph so change bungee port
@winged sparrow That's what I did, lol.
The guy is a custom entity with custom pathfinders
@sturdy oar Agreed, but now they can sleep in any directions
I love that
Can someone tell me if there's a plugin for blocking people from placing blocks above the nether roof?
i will research about pathfinders soon
It's about 50/50 my own
I'm not reinventing the wheel but most of his behaviour is custom
Fun fact: forcing an entity like a zombie with a arrow attack AI will make it actually draw the bow back
Can someone tell me if there's a plugin for blocking people from placing blocks above the nether roof?
@sage fiber is your server version 1.8?
@frigid ember i changed to 10710 but after the restart it was automatic rechanged to 10800 due to bungee config i suppose
@delicate nymph what kind of hosting service forcefully sets a port that is already in use
@sage fiber is your server version 1.8?
@brave vector No we are 1.16.1
that's stupid
@winged sparrow I've done this before, pretty sure it doesn't.
oh got 1.8
I did it yesterday Liq
The one that is available for me sadly
so why player can come to the nether roof
Now it doesnβt shoot an arrow but the bow gets drawn back like how skeletons do it
1.16
last time i simulated that sleeping without a bed was rly painfull
guys I need help for a server thing
Iβd have to write some AI for it to shoot the arrow but the bow gets drawn back
Oh yeah I've just spawnerd one in @winged sparrow it works
btw please don't use web panel
it really succ
Why am I getting broadcasts from command blocks executions on console?
If it doesnβt implement IRangedEntity, it will delete itself and throw an error
turn off command block enable?
it's already
i have to use it to enable the use of bungee for example
gamerule commandBlockOutput false
is a human a ranged entity though π€
New problem
it's the bad idea
Also gamerule logAdminCommands false
@vernal spruce you don't know much about ai lol
Server is online mode. on bungee i have it on false, same as on server properties
@sturdy oar there's a setting in spigot.yml to disable command block output in console
@winged sparrow I've done one better with my recent code, the pathfindergoalbow thing for skeletons allows the strafing behaviour to be applied
command-block is unnecessary
I use command blocks
i don't use it
btw spigot still doesnt seem to load on console
well it's unnecessary for you, but necessary for me
btw spigot still doesnt seem to load on console
@delicate nymph still says "port on use"?
failed to bind port
give me 1 min
web panel is always succ
because it will never run on a machine whose port is already being used by another service
damn I totally regret installing WorldGuard, it's completely trash
the problem isn't web panel, the problem is the provider
there is no other sadly
not to mention the fake info in the documentation
what better TAB or kiteboard?
yes still failed to bind port
i don't know with what to use
Documentation literally shared fake info... great
if you create a worldguard region, IT'S NOT PROTECTED by default
It is though
it is
It is
it is for me at least
it is
not in my server
Unless you have bypass perms
spawn-protection=0
You're an OP, or you messed with the config
idk if there is a config option to disable automatic protection
Apparently you are though
but for me it always protects it
i always set OP level to 1
fefo, you know my server ip from the paste, can you try to set me up the config?
I'll probably reset config
@delicate nymph if the server won't even start because the host provider is stupid enough to force a port that CAN'T BE USED, then there's nothing that can be done
ok i see, so i just play with ports?
how i do rainbow text on TAB
the provider is forcing a port
but user can change jar file π€
that can't be used
?
that port is being forced
because it is like that
from the bungeecord config
if we change it there, it changes also on properties
no it isn;t
no, it's not bungeecord that changes the server.properties server-port
thats how this host does it
it isn't change anything
it's the provider
can you give me the name of the host provider?
nitrado
burn them
hi, can someone help me, im making a spigot server with the chestcommands plugin so i decided to open a test menu, but it says "you dont have permission to use that command" and i have no permission plugins.
evyatar see the plugin's wiki that u are using. All info is there
they have stupid things like Chunkfix and Server-Chcker
yes they do
may be Server-Checker change the spigot port
anyone
op <your name>
server checker use is to just say that there are no errors in ur console, no use at all
wait add member permission: chestcommands.open.*
never mind i will search on google
well thats no good
guess the protocol has changed
Hmm what is the meaning of this: [/78.143.39.35:7179] <-> InitialHandler has pinged
@quick arch
With the class file you gave me yesterday, is there a way to use a custom entity rather than the Bukkit Zombie class? I have an NMS custom entity extending from EntityZombie that I would like to use, though I'm not quite sure how to go from NMS to Bukkit, especially in this sort of thing.
No idea, never used a custom entity class before
hmm alright, i'll see what i can do
I just don't want it to really act like a zombie haha
One message removed from a suspended account.
/kill @e[type=minecraft:armor_stand] or something similar
make sure not to do it with an ! or that will kill everything except the armor stand
the command i put up there will delete every armorstand fyi
One message removed from a suspended account.
are you opped?
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
might want to go through the parameters of the /killall command to see if you can /killall armorstand or something
essentials?
if you have it ^
One message removed from a suspended account.
/minecraft:kill @e[type=minecraft:armor_stand]
ahh yeah that would work
Unless you are like.. running 1.7 or smth
could anyone help, i'm trying to have my players the ability to select prefixes based on lp.
do you guys know any plugins?
so if a player has like 4 ranks, they can choose inbetween the prefixes of those ranks. a [helper] for example, could select a [unicorn] prefix if they had access to it.
Just something like DeluxeTags then just give different groups different permissions.
Hello, we're using bungeecord proxy for minecraft 1.12.2,
but when we try to connect to the server, we meet this error:
Can't connect to server: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection timed out: no further information:
can anyone help us ?
Eclipse or IntelliJ?
IntelliJ is great, it also has the MCDev plugin that'll help you easily setup new minecraft projects.
in IntelliJ while exporting a project using maven, is there a way to export it into my localhost\plugins?
yes? it has to export somewhere
start with an event
please help I am following a tutorial but its broken
Separate your events into separate classes please and thank you
Put @Override over that
import :p
Oh yeah you donβt have it imported
like this?
@Override is good if you want the compiler to scream at you
It still doesnt work
hover your mouse
yes and implements Listener
import what?
and that is?
import this : import org.bukkit.command.Command; import org.bukkit.command.CommandSender;
I cant find the commandSender
just copy paste those
in?
and add them above the class member
Why is it so hard
the imports in the future should be done by hovering over it
it's hard because you just started
that's why
How can I set a custom entity's PathfinderGoals?
I have an entity extending from EntityZombie and I have tried to override initPathfinder() though it just results in a NullPointerException and I'm unsure why
his video
yes programming it's hard
programming is like bike riding
An exemple of command```java
package fr.bob.npc;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.event.Listener;
import org.bukkit.plugin.java.JavaPlugin;
import net.md_5.bungee.api.ChatColor;
public class Main extends JavaPlugin implements Listener{
@Override
public void onEnable() {
System.out.println("demarage");
this.getServer().getPluginManager().registerEvents(new Join(), this);
this.getServer().getPluginManager().registerEvents(this, this);
super.onEnable();
}
@Override
public void onDisable() {
System.out.println("dodo...");
super.onDisable();
}
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
if (label.equalsIgnoreCase("npc")) {
if(!(sender instanceof Player)) {
return true;
}
Player player = (Player) sender;
NPC.CreateNPC(player);
player.sendMessage(ChatColor.DARK_RED + "Un" + ChatColor.BOLD + " NPC " + ChatColor.RESET + "" + ChatColor.DARK_RED + "Vient de spawn !");
}
return false;
}
}
I dont
there is a set of rules
you gotta know
which is why a java tutorial would be better
than a bukkit tutorial
Why does his get colors
Shall I tell you something
My father cant program
But he helps a lotta people who can
He is a teacher
In Object Orientation
He sais
ok it's cool !
help yourself from my example
?
package fr.bob.npc;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.event.Listener;
import org.bukkit.plugin.java.JavaPlugin;
import net.md_5.bungee.api.ChatColor;
public class Main extends JavaPlugin implements Listener{
@Override
public void onEnable() {
System.out.println("demarage");
this.getServer().getPluginManager().registerEvents(new Join(), this);
this.getServer().getPluginManager().registerEvents(this, this);
super.onEnable();
}
@Override
public void onDisable() {
System.out.println("dodo...");
super.onDisable();
}
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
if (label.equalsIgnoreCase("npc")) {
if(!(sender instanceof Player)) {
return true;
}
Player player = (Player) sender;
NPC.CreateNPC(player);
player.sendMessage(ChatColor.DARK_RED + "Un" + ChatColor.BOLD + " NPC " + ChatColor.RESET + "" + ChatColor.DARK_RED + "Vient de spawn !");
}
return false;
}
}
whith that
ehm
what does that mean
what you sent
Its like talking Chinese to me
I have no idea what you mean
But his tutorial has colors
and mine doesnt
I have to go eat all the time
Do you do a sport?
Or go to the gym
But why does it not get colors
his next to mine
is anyone here wanting to maybe expand their portfolio & help make me a plugin? just asking! i am trying to find a plugin that allows players to change their prefixes based on their lp ranks. basically, if u hace access to 4 ranks with 4 prefixes, you can select and change which one of the prefixes u want displayed by ur name, without losting the permissions of the ranks.
Just dupelicate the ranks 4 times each and make them all a different prefix
Or watch a tutorial on YouTube how to make a plugin
Just use gradle or maven and include the api as a dependency
You do realise this discord isn't only for people that are capable of making plugins, right?
Then telling someone, who is asking for a plugin for their server, to make it themselves, maybe, just maybe, isn't the best of solutions
idk
just a thought
Okay so upon making a custom entity with NMS, I can override initPathfinder() and keep it empty to rid of all the pathsfindergoals,
though how would I thus add pathfindergoals without it resulting in a NullPointerException
Howdy all and welcome to my all-new series for Plugin Development! New videos every Monday. Join my discord for help and more :)
Download Eclipse: https://www.eclipse.org/downloads/packages/release/2019-03/r/eclipse-ide-java-developers
Download Java Jre: https://www.oracle.c...
This tutorial
But it doesnt work very well
i was trying to link a github download link instead of uploading the ressource on my ressource page - but clicking the download button makes the download fail...
what am I doing wrong?
start understanding the language before trying to talk.
I watched this tutorial
It was for beginners
Its done
But It came with a error of .yml
But its
How to put it in a server
Like make it to a plugin
Its done
my code
To make this
Into my server
How to put it in my server
How to export it or smth
this cannot work. , even if you are able to "put it in your server". your code does not register the command and would do nothing.
learn java first
yes but stop hopping into an api with no basic knowledge about java
What is API
If u dont want to learn the basics first, then stop asking for help
I want to learn it
Or dont expect people to help u
I thought this were the basics
have you tried to calculate 10*9 in preschool before learning how 1+1 works? I don't geuss so
so?
what are u trying to say lol
ok so open that link, learn java and then when u know the basics and have problems then come back
the link I sent is free
I stop here, gl, if someone wants to help ok but dont expect much lol
I built a robot
With a Ardruino
yea?
no
I am 13 years old
I want to learn
Yea
On the link?
Learn how to apply powerful object-oriented programming concepts in Java
I know
But I want to learn to code in java
@brave vector
how i chaneg the time on TAB
whats the sound id for the purple achievement
the one that plays the rewarding music
Shall I learn a different language
@rich quest But whats wrong with my plugin
I just typed the same what he typed
ehm
what is it?
thank you for helping me
I will go offline
Boolean was something that returns stuff he said
https://www.youtube.com/watch?v=r4W4drYdb4Q This is his tutorial.
Howdy all and welcome to my all-new series for Plugin Development! New videos every Monday. Join my discord for help and more :)
Download Eclipse: https://www.eclipse.org/downloads/packages/release/2019-03/r/eclipse-ide-java-developers
Download Java Jre: https://www.oracle.c...
You can watch it to know what he types
someone else recommended me this to as a resource to start learning java https://www.jetbrains.com/academy/
might wanna try some basics on there before spigot
Java is difficult?
Any programming language takes time and effort to learn
Years to become proficient enough with it to be productive on a daily basis
Higher abstract languages like java, don't take very long to use or learn.
however you still need to learn the basics
Basics are all you just need π
difference between an amatuer and professional is how well you know what you are using. Not whether or not you can use something. You don't need to be a professional to make plugins, but it certainly wouldn't hurt to be professional either where your plugins are most likely to be of higher quality due to your knowledge of how java works if you get that far π
On Bungeecord, how can i stop players from auto completing commands they have no permission to? And i don'T mean the arguments of a command but the main command. So when they type /ba they get autocompletion for /ban etc..
I heard people use the config.yml of Bungeecord. But i can't use that since i have Luckperms
hello I have a spigot server with some friends in 1.16.1 and when we reset the servers some chuncks have ilummination problems
how can I fix it?
Just a quick question, I might be pepega, but it is bukkit + spigot available for MC 16.1?
I found 1.16.1 RC on the maven repo, but couldn't find relevant bukkit version
I think Spigot doesnt supply bukkit anymore
@quick arch How does the method you gave me know what entity to map the skin to? Is it through the setEntityID? Asking since Iβm working with custom entities and it doesnβt map the player to anything, it just exists haha
Just a quick question, I might be pepega, but it is bukkit + spigot available for MC 16.1?
@stuck vine Don't use Bukkit. Use Spigot or (even better) PaperSpigot
PlayerInfoData and one of the wrapper class
@grim halo @gusty comet Thanks
ah i see
@gusty comet doesn't LuckPerms for BungeeCord stop command names from showing in tab list?
No doesn't work
I thought it did π€
And i didn't find anything about it on the internet. It's all about the sub-args
This account has 0 permissions and still gets those recommended
But not the bungee ones
Do i have to "tell" the executor that he has no perms?
Well, the project I'm currently working on might be of your interest then lmao
why?
It's literally for that, in a Bungee setup, to not show command names based on permissions π€£
l i t e r a l l y
Well yeah, so.. Can you tell me how it works? π
@quick arch Isnβt the PlayerInfoData more meant to specify which skin is being mapped rather than what entity is being mapped to? Basically Iβm wondering how exactly it knows to disguise the specific zombie you spawned. For context, it spawns my zombie and the player skin as two separate things
Yeah, basically, it intercepts outgoing "Declared Commands" packets and rebuilds the packet so the ones you don't have perms for, aren't listed
Because if it is the entityID then comes the problem with getting an entityID from my custom entity haha
alrighty
https://i.imgur.com/dSN9IhC.png Why there is this error? Code: https://i.imgur.com/gMVg2zP.png
https://i.imgur.com/yn3W53w.png
I may be wrong but I think you need to specify what type of item is breaking for the effect to play properly
Ohhhh so the error isn't cause of the block place thing....
I doubt it
how do u check if an argument is invalid? for example the command is /weather clear, and if someone types /weather 123, it returns the usage in plugin.yml, how would you make it return the usage message i set? it works for /weather, but not if someone puts random characters after weather
@tranquil edge if it's your plugin, you can set the "usage" for the command to be whatever you want, but if you want it to be "dynamic", instead of returning false from onCommand, return true but send the message you want if it doesn't match the expected parameters
https://paste.md-5.net/yofepisezo.sql
https://gyazo.com/26861a5597e74f34d940d098aca0788b
name: DelayBuckets
version: 1.0
author: Lazinq
main: me.Lazinq.DelayBuckets.DelayedItems
depend: [WorldEdit, WorldGuard]```
I moved from eclipse to IntelliJ for maven but it says invalid plugin.yml?
is it your plugin? is it your command?
by "usage" you mean what's inside the if (args.length == 0) block?
or the actual usage from plugin.yml?
just send that again after all the other checks, at the very end
and return true instead
do you know what happens if you return false?
yeah but remove if (args.length == 0) { lol
its not executed
@tranquil edge you are the one responsible for what happens inside onCommand, so anything in there constitutes the "execution" of the command in some way or another
if you return false, the "usage" entry under the command entry in your plugin.yml gets sent to the sender
yeah like that
and it doesn't know, but you already checked from the possible arguments you consider valid
if it's not valid, it'll just send that message
huh?
commands:
weather:
usage: Β§cUsage: /weather <sun/storm/reset>
if you return false from onCommand, that will be sent to the sender
any1 knows good plugin to disable 32k enchanted swords and stacked items like armor. Like if you open shulker box/chest with these illigals they revert to normal none stacked and with normal enchants. but you can still bypass it with hopper and chest. pls i need help im looking for this plugin aready 1week and i couldnt find it anywere. help?
dm me at mth#4616
help?
it would be cool if spigot made a standard hex color code format
because with each plugins making their own format, it's a mess
Those never get fired
I thought spigot did have a standard
it would be cool if spigot made a standard hex color code format
@pastel condor &x&1&2&3&4&5&6
That ChatColor.translateAlternateColorCodes recognizes
Yep. try it
Yeah
Are there any tutorial out there on how to setup an EntityType for a custom NMS entity?
Itβs just kinda annoying so plugins made their own
actually wait i dont think i'll need it π€
So ChatColor.translateAlt(β&β, β&x&f&d&0&0&0&0β) would be red?
Those never get fired
@gusty comet those are for the argument suggestions
not for the command names
Should be
But its annoying since it's 14 characters for one color π But you can write your own method for that easily ```
public static String translateAlternateColorCodes(String input) {
input = ChatColor.translateAlternateColorCodes('&', input);
input = input.replaceAll("#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])", "&x&$1&$2&$3&$4&$5&$6");
return input;
}
Of course if you arenβt getting an input from somewhere itβs better to use ChatColor.of
This just makes it into "#FFFFFFHello world!"
@gusty comet those are for the argument suggestions
@frigid ember yes but never get fired
dumb question but are you registering the listener? xd
had to ask lol
still super weird..
Called when a CommandSender of any description (ie: player or console) attempts to tab complete.
Note that due to client changes, if the sender is a Player, this event will only begin to fire once command arguments are specified, not commands themselves.
Not sure if thatβs relevant
Okay tabcompleteevnet fires now
TabCompleteResponseEvent is for when a backend server responds
not when bungee does
Yes but how the f*** can i disable Command suggestion for players who don't have perms? e.g. /tempb turns into tempban
I ve looked so much : (
Couldn't find anything xD
that's the command name
Yes
Plugins wishing to remove commands from tab completion are advised to ensure the client does not have permission for the relevant commands, or use PlayerCommandSendEvent.
Yeah but packets are gae xD
So
With playercommandsendevent i can cancel the suggestion?
Literally all plugins do it but not sure if via packets
You can remove the command from the suggestion list
@lone fog how
With spigot yes you can remove suggestions
But haven't found anything with Bungee
when the TabCompleteRequest packet gets received by proxy, it literally checks if the sender has the permission for the registered command, but if when registering the command you don't specify a perm node but instead you check on execute, it'll default to true anyway, then if you check on execute that's another thing
when the TabCompleteRequest packet gets received by proxy, it literally checks if the sender has the permission for the registered command, but if when registering the command you don't specify a perm node but instead you check on
execute, it'll default to true anyway, then if you check onexecutethat's another thing
@frigid ember How can i specify the permission node directly?
plugin yml
you specify it in the plugin yml
if you have it setup properly you dont even need to check in the execution
Oh
because it doesn't check in bungee
Yeah maybe it only works with Packets idk
I thought there would be an easy event for it
But don't think this is the case
@frigid ember How can i specify the permission node directly?
if it's your command, check the constructors forCommand