#help-archived
1 messages · Page 108 of 1
I decided to work on this because every Bible plugin' out there is either poor or outdated
pls have support for latin vulgate

I don't believe in pleb English bibles
but isnt working
isnt there setThunderDuration or something
pls have support for latin vulgate
@fleet crane well as long as the file is formatted properly everything can be loaded
I currently use Json
make sure its a json format people can get the whole bible from lol
dont wanna have to translate the entire thing
Do I have to do something like this?
world.setStorm(true);
world.setWeatherDuration(intsTicks*20);
world.setThundering(true);
world.setThunderDuration(intsTicks*20);
seems reasonable
pls speka english
Ah ok
Forum for beginners?
Yes
I can speak oompa loompa as you can see
I not speak ingles
Im brazil
You are an entirly country? waw
Why is the depraceted sendTitle working and the other with the fade etc isnt?
if i was you id do some web request to some bible api
or some site
to receive the verses
thats the easiest
yo md_5 keep doing what u do
ill c if i can donate more
sometime
spigot is on flames
how did you promote it
@barren abyss must be the params youre passing because the one just calls the other
🔥
player.sendTitle(ChatColor.translateAlternateColorCodes('&',ServerMessageTitle),ChatColor.translateAlternateColorCodes('&',ServerMessageSubtitle.replace("%player%", victim)), 10,70,20);
md5?
public void sendTitle(String title, String subtitle) {
sendTitle(title, subtitle, 10, 70, 20);
}```
md_5 did you remove runTaskAsynchronously method in bukkit scheduler in future versions
why is it deprecated
read the javadocs
i mean scheduleRepeatingasync
or so
or should i use runtimertask
as that isnt deprecated
ok
howd you promote spigot
I don't
it cant randomly get this much attention?
did it just randomly blow up?
no paid promotion for ads?
mhm
huh lucky
btw why dont u take share in premium plugins
u would be riccchhhhh like roddy
but u do so much alreqdy
u deserve
why Chat Component API is in BungeeCord chat
yes
nice
it wouldve been weird to have bungee wiki lol
md5 how old r u and do u go to college or sth or have fulltime job
I'm a uni student
studying what
Magic
long before uni
To?
?
I don't add people on discord
you aren’t accepting friends 😔
except for hot grills
Lol
no definitely hot grills
ok clean
i supported you for long time i never ever expected to have auch a discussion with you
I would never have started coding without you
I’d be a kid with no life
smh it would've been better
that's cool
why do many of yall dislike it when we stay on outdated versions tho, i am not starting no argument just like 1.7.10-1.8.8
yk a large section or almost half the community uses them
because the old versions have bugs and missing features
can we fix these bugs and add missing features, in old versions
then we wouldnt have new versions
i get your poit
just we thought of a mutual fix to this problem
servers can decide what pvp style
But you guys still don’t want that?
you can already change the pvp speed with attributes
besides most the complaints are from the pvp community being ridiculous
if you took 1.8.8 and renamed it 1.17 they would still find a problem
what do you mean
That’s kinda true
lol lie to them or what, i dont get your point
a lot of the criticisms don't seem to be rational
ok
they're just entrenched in the hivemind that 1.8 = good, everything else = bad
so even if you took 1.8 and just called it something else; they would still say 1.8 is better even though theyre exactly the same
my laptop cant cant handle more than 1.8.9
basically 1.9 runs slow alr
with 1.15 i get so low fps
20 fps
and 100 with 1.8.9
why do 1.8 discussions arise every 12hours damn
why dont they abandon mc java and all dedicate to windows edition
Ye mojang has done a terrible job maintaining the game for modest hardware
and they use mono instead and not make it windows edition only
its not modern warfare, people expect to play it on old kids hardware
imagine having to install Optifine because default performance is so bad
(talking about client)
btw the fps i was saying was without optifine
like mojang should get optifine
in default versions
rewrite game in lwjgl 3
use latest netty
they should update their apis
I mean i do run 90fps on shaders ultra
i cant even run shaders
but it's because i have good hardware
my pc would die with shaders on 1.15 probs
why dont they abandon mc java and all dedicate to windows edition
@frigid ember they shouldve done the opposite
console edition should never have existed
yeah they shouldn't have wasted their time on such things
the same
the hell you're saying
yeah iOS would've posted difficulty compared to the others
but wouldn't have been impossible
but they would've at least easily had the same codebase on every other platform
they already bundle their own Java version inside client ...
not with RTX i'd say
yeah
thats why they should focus on it
md_5 can u code anticheats
apply at hypixel 😂
he has better things to do
does hypixel still have the most ridiculous interview process known to man
so damn long
its insane
i bet 80% of time u wont get accepted
like longer than the interview process at FAANG for a 400k/year job
md_5 why havent u applied for discord partner xd
Facebook, Apple, Amazon, Netflix, Google
= FAANG
no
🤣
im gonna be dev
im 14 so i got time
corona will be over then 😛
what should i study to land a job at gogle
at uni
to get a chance for an interview
Computer engineering
i dont wanna study whole cs
must i
i was thinking machine learning or ai idk
i want something that expects us to already know how to code
i dont want to relearn coding
getting a job at google is a tough process and requires a lot more than a degree
you're still years away from uni
ik
go work at Microsoft, they hire anyone
lol
under 18?
microsoft pays low
Fendi you can
bill gate probs takes all cash
i need dat 400k
to feed my family
and L my dad lmao
To work at one of the big tech companies you need a lot more than a degree, you need experience in the field and other things
ik i just said to get a chance at the interview
i dont think they give a chance to selftaught
anyone know a /wild plugin that i can make it tp someone randomly to a different world then where the command is done?
yes
Phoenix616's one is good
wait
idk about the world feature tho
i'll have to check
Ok
ik
microsoft hires anyone?
😄
can add an alias via commands.yml
md_5 whats that type of list thats thread safe again?
depends what youre doing with it
modifying it from different threads
still depends, there's different tools for thejob
ConcurrentLinkedQueue
i want to add data and check contains()
do you need to add data all the time
async from diff threads
not all the time just beginning of program
its unsure how long
then just make an unmodifiableSet
if you dont change the set, then there's no need to make it thread safe
^
well if its at the beginning of the program does it really need to be threaded
?
I haven't quite understood what you're doing
does someone know how to enable this javadoc style in IntelliJ automatically here?
it does look more nice
michael pls
take a guess
the coolest one
The Chossen One
one tselooc eht
not to be annoying or anything, but shouldn't we move further discussions of this kind to #general
no one has a question
making spigot shirts now? o.O
yvan eht nioj
Should probably make a spigot store and sell shirts XD
lets go to general
so i must wait till 18+
indeed md_5
Bukkit.getServer().dispatchCommand(Bukkit.getConsoleSender(), "setblock ~ ~ ~ minecraft:bedrock");
Bukkit.getServer().dispatchCommand(Bukkit.getConsoleSender(), "setblock ~ ~1 ~ minecraft:nether_brick_fence");
Bukkit.getServer().dispatchCommand(Bukkit.getConsoleSender(), "setblock ~ ~3 ~ minecraft:minecraft:player_head{SkullOwner:\"IBM_ESP\"}");
How i get the death location and I put in the command?
PlayerDeathEvent; player; getLocation
and how i put in the setblock command
Location#getBlockX, getBlockY, getBlockZ
md_5 why is some parts of player null in PlayeLoginEvent
because Player is @Nullable
might aswell not pass it
ok
just pass what not null then?
just pass uuid
and name maybe
like pre event does
idk man
i was running into nullpointers and never knew the reason was player is null
for long time
that doesnt sound right
might be a mistake
public final Player getPlayer() {
return player;
}```
yeah idk where you get its nullable from
oh if you mean parts
* Note that this event is called <i>early</i> in the player initialization
* process. It is recommended that most options involving the Player
* <i>entity</i> be postponed to the {@link PlayerJoinEvent} instead.
*/```
All Player related events should always have a nonnull player object associated with them
Are you load: STARTUP
ill check
That’s probably the issue
ah yep
Don’t use startup unless you need to be a generator for the default world
Most the bukkit api won’t work onEnable
how would i repeatedly do something with a cooldown thats determined in config.yml
get a long value from config and multiply it by 20 in a task
20 ticks = 1 second
It’s aimed to be that atleast
ik that part but how would i do the repeating part
FileConfiguration#getLong(path, def)
BukkitScheduler#runTaskTimer(plugin, runnable, 0L, ConfigValue * 20L);
alright thanks
Does the scheduler continue tasks after the plugin is disabled?
How about with reloads?
If I schedule a task to run later in onEnable and then the plugin is reloaded, will that task run?
No it will be cancelled in both situations
In commands.yml I added ``` home:
- "is home $3-"``` which does its job by adding an alias to /is home, however I wanted to change the /home command (from essentials) by doing the same thing. This didn't work, does anyone know?
Ty Despical
Yw
what type of obfuscation mappings has a .at extension?
how do we delete a String from ConfigurationSection?
like im making a command to delete Strings from Configsection and ive tried doing by setting the strings null but it changes it to
CsSection:
string: {}
I want to delete string completely
set null
well null one key lower then
Hi everyone, does anybody know where calls method when player gets compressed with block above him? Thanks
hey quick question: how do I make new line in bungee motd? \n doesn't seems to work
suffocation by block?
@tiny dagger no, i'm tryna make player swim without block above
i found method where player sets his pose to swim but not where he gets his slowness and ability to crawl under blocks
Isn’t that just how it renders
I think you might need to involve packets but I have really not a clue
I'm already using packets for this
but it's not working well
other players see me swimming, but not me. And i dont have slowness and ability to crawl under block. I'm sure server should check it, whether block is above player.
int fallVertTask;
fallVertTask = Bukkit.getScheduler().scheduleSyncRepeatingTask(GenBucketTest.getInstance(), new Runnable() {
@Override
public void run() {
if (world.getBlockAt(genLoc).getType() == Material.AIR || genLoc.getY() > world.getMaxHeight()){
world.getBlockAt(genLoc).setType(block);
genLoc.add(0.0, 1.0, 0.0);
} else{
Bukkit.getScheduler().cancelTask(fallVertTask);
}
}
}, 0L, 30L);
I don't seem to be able to have a TaskId within a method since, it makes me initialize fallVertTask, this changed it to int fallVertTask = 0;, it still shows errors and says it needs to be final, any help?
BukkitRunnable
lambda
he needs to cancel runnable inside that runnable
BukkitScheduler takes a Consumer of a BukkitTask which has a cancel method
And most methods returns a BukkitTask which is cancellable
From BukkitScheduler
Is there any documentation for it?
?jd
I can write an example
That'd help
BukkitTask task = Bukkit.getScheduler().runTaskTimer(plugin, () -> /*runnable*/ {
//code w/o override run
}, 0L, 20L);
task.cancel();
//or
BukkitTask task2 = Bukkit.getScheduler().runTaskTimer(plugin, task -> /*Consumer of BukkitTask*/ {
//code w/o override run
task.cancel(); //cancel inside
}, 0L, 20L);
eh for second one its this.cancel() -> task.cancel() no?
also its not a return method but void I think
bcs its a consumer
yeah it’s task.cancel
Second one should be task.cancel()
Can only use this if you create an anonymous instance of BukkitRunnable which is also another viable option
Yeah I don’t have an IDE on mobile
Lol I typed it too many times on mobile probs but I mean I kind of memorized the order of the clicks now
Lemme take a look at lambdas real quick
I'm assuming you can also do this?
Bukkit.getScheduler().scheduleSyncRepeatingTask(GenBucketTest.getInstance(), new BukkitRunnable() {
@Override
public void run() {
this.cancel();
}
}, 0L, 30L);
hey guys, so I heard about bungeecord being a security thing because something about people being able to connect with any username they want, and therefore can get admin perms. How do I take measures against this?
online mode = true
When using my Placeholders (with PlaceholderAPI Expansions), I attempted to put the placeholder in chat with Essentials - it throws this error.
@Override
public String getIdentifier() {
return "kitleveling";
}
@Override
public String getAuthor() {
return "straggly";
}
@Override
public String getVersion() {
return "1.0";
}
@Override
public String onPlaceholderRequest(Player player, String s) {
if (s.equals("level")){
KitLevelling.playerData.reload();
return String.valueOf(KitLevelling.playerData.getConfig().get(player.getUniqueId() + ".level"));
}
return null;
}
if (Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")){
PlaceholderAPI.registerExpansion(new Placeholder());
new Placeholder().register();
}
You used an invalid format
You have to be sure that anything you shove into the format is "safe", i.e. not using things like % unless they're properly escaped so that they're not considered a formatting token thing
I tried with % and {}, % threw errors and {} just left the placeholders in chat.
You can't have a % left in the format unless you \ it
\% == valid, % == invalid, as that's a format token, so it tries to parse it and gets upset
Basically, you need to make sure that you escape them if you're gonna leave any in there
replace %, with \\% . (\ escapes the \ fun...)
Alright, got it
escape
does it work for yml configuration? 🤔
I'm assuming you can also do this?
Deprecated
new BukkitRunnable() {
@Override
public void run() {
this.cancel();
}
}.runTaskTimer(plugin, 0L, 30L);
Strange, my placeholders still don't work 🤔
I've tried using Maven for PlaceholderAPI and an external JAR
don't forget to switch the declaration after replace :p
String s = "something"
s =s.replace
System out s
if (Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")){
PlaceholderAPI.registerExpansion(new Placeholder());
new Placeholder().register();
}
ohh
you declare your class twice
Oh, lemme change that
lol
Still doesn't seem to work
After reading the documentation, I don't see where it's going wrong 😦
./papi parse <your placeholder> ?
that doesnt work?
also, you shouldnt register your expansion twice
%kitleveling_level% ?
Using % works
yes, because thats how placeholderapi works
it doesnt accept other characters
mvdwplaceholderapi uses {}
also, maybe a tip haha, dont do complex operations in the request method for placeholders, I see ur reloading stuff
is that absolutely necessary? bcs it might drag down performance if the placeholder is fetched many times
Yeah, I'll probably change that - my main focus rn is getting them to work in the first place lmao
Is it worth using the MVdWPlaceholderAPI?
From what I've seen, you need ChatInjector to use PAPI placeholders with Essentials.
basically, if you have papi implemented youre also ready for mvdwplaceholderapi
they have a tag which lets you use papi placeholders directly
really?
So {placeholderapi_kitleveling_level}
yes
Hello, can someone help me to fix my reload command?
Issue being?
An internel error occured
remove plugin.saveConfig or use plugin.saveConfig with non replace
Still doesn't work .-.
whats the error in console?
why are you using an mvdw placeholder there?
Yep. Should just be %minetropical_level%
Ah, I see
Using % throws an error with parsing, even when I escape it with \% or \\%
(with Essentials)
but ./papi parse works?
reload then save would do nothing btw
Yes, /papi parse works
then its an issue with essentials or that injector
looks like a string format missuse
remove plugin.saveConfig or use plugin.saveConfig with non replace
@bronze marten I think I cant understand well what shoul I do to fix?
reload then save would do nothing btw
@tiny dagger How can I reload then?
They're using AsyncPlayerChatEvent's #setFormat() method to format the entire message
Like dumb-asses
They're using AsyncPlayerChatEvent's #setFormat() method to format the entire message
oof
okay xd
@subtle basin give us your console error xd
my suggestion was just I guess, I think bukkit doesnt handle saveConfig if the config already exists very well..?
Does anybody know where is the method which makes player compressed with block above him? Thanks.
@bronze marten
Is it worth replacing the placeholders manually on AsyncPlayerChatEvent from event.setFormat(event.getFormat().replace())?
@subtle basin check bf casting sender directly to player
if (sender instanceof Player) {
Player player = (Player) sender;
}
because Essentials is stupid, that error will be thrown whenever a % is put in the chat
Well, %something
Don't you just love Essentials!? :DD
No, they're not
it's open source tho roast them in a pr >:)
That's a misuse of setFormat()
god knows /why/ they syncronize on the format though o.O
The only downfall is that they don't really escape stupidity in the format
But, they are not throwing the message in there
mhmm
Is DeluxeChat a better alternative?
wym
it doesn't use the official event
and like if you're modifying recipents
deluxe chat won't care and do it's thing anyway
never had issues with it tbh
Does anybody know where is the method which makes player compressed with block above him? Thanks.
?
?
@jolly ember you asked this bf as well, someone suggested to use EntityDamageEvent if youre meaning suffocation
I found only dX method in tick()
But its only set pose
I'm sure that server should handle the ability to crawl under blocks.
which is not possible since it's client side based
Can i post screenshots here?
cant you force it by setting a lucid block on the players head pos?
No i can't, ooof.
imgur
Heya guys, so im taking a look into 'TabCompletion' and there is something i can't figgure out. So when you don't override the regular tab completion, you get a list of player names. And when you type a name of a player, you get all the names that are similar to what you have typed. How would i implement that with my own tab completion?
It will be looking terrible, and it gives speed to player, not slowness.
problem with chat plugins is ultimatly bukkit, I do keep having crazy thoughts of making a chat plugin, but, then I remember the hells of the API... :/
Why is my scoreboard not working?
Many thanks!
you create a scoreboard, flood it with info, but, never actually assign it to the player?
I want to make a chat plugin and sell it for $20
Maybe there's a way to change player's hitbox to one block, so he'll be able to crawl under blocks.
the client doesn't get hitboxes from the server
@jolly ember as pointed out above, its clientside, and not forceable by the server
Not to mention that the server also recals those boxes often
You can't change the hitbox of a player correct?
I mean you can get the hitbox, but not change it
you can change it on the server for PvP aspects, etc
But, the client is still gonna see the hitbox it calculated itself
in server.properties do I leave server-ip= blank or with my local ip? I see some people leaving it blank and some people saying to do it
leave it blank
So how player's crawls under blocks? I thought that the most of this things server can handle.
I have a dynamic ip btw
all the more reason to leave it blank
That's only used on machines where you have multiple interfaces
leave it blank
@chrome lark I have a bungeecord network :/
Well, only really useful on*; or hiding from the world...
you can test it tho to see if you have right to use it
Depends, if you're behind NAT it's fine
uh whats NAT
On my other servers I did put my local ip in there
And it worked i guess
@chrome lark wait if im home hosting I leave it blank or fill it in? im confused
Basically, if everything is on the same box, you can configure all the backend servers to use the loopback interface on 127.0.0.1
Bungeecord changes stuff a bit slightly due to the whole security impact
wait, on my other servers I actually filled it in, did I mess anythign up
You don't want to expose the backend servers to the world, so, using localhost is the best option there if you can; But, if you're behind a router/firewall, you should be fine, assuming you only forwarded the bungee port
you can fill it in, just, then you need to make sure that it's always set properly; e.g. if your home network consistently changes IPs, that's gonna hurt
Yea, don't do that
Only forward the port people will use to connect to the proxy
ok so ill leave it blank
You DO NOT want people being able to access those spigot servers
either don't forward them, or, ideally as well; set them to 127.0.0.1 and use that in the proxy
Wait, I dont need to forward the other ports??
So how server checks ability to crawl under blocks, checking hitbox?
like if bungeecord is on 25565
and the other server is on 25665
I only need to forward 25565?
yes
it knows and adjusts the hitbox @jolly ember
but they don't care about animation
well it doesnt change at all
when it used to
did me setting upa server and port forwarding and stuff somehow change something??
probably a dumb question
but yeah
it knows and adjusts the hitbox @jolly ember
@tiny dagger how?
theres no way I messed up something in my router causing it to become a static ip or something like that right cause of a couple servers???
At least where can it be. I only found animation change.
surely not
It flickers every time I update it aka send it again
The idea is that you basically need to modify the teams prefix/suffix, that's a singular packet to update them both
Yes, don't "send it again"
You need to update the previous one
There are tutorials and stuff on "flicker free" scoreboards and such
Don't really use scoreboards myself though, so 🤷♂️
Oh like get player's current scoreboard and update only the teams instead of sending a new scoreboard consistently?
yes
Thank you it works. Thank you so much
@subtle basin check bf casting sender directly to player
if (sender instanceof Player) { Player player = (Player) sender; }
@bronze marten still not working
Wdym not working lol
T
is there a way to get a list of only items from the Material enum
List<Material> items = Arrays.stream(Material.values()).filter(Material::isItem).collect(Collectors.toList());
try to cache it somewhere so you dont have to perform this many times
awesome thanks!
how do i make a boss
???
a boss
oh a boss
Bukkit.spawnBoss();
guys how do i make the join time faster for my server?
get a better connection\ proxy?
xd yeah ez
wait how to find out my proxy
a custom boss
join time mainly depends from clients' ethernet, the proxy speed, and other stuff
bossbar of the creatures health
how to find out proxy speed
Spigot and Multicraft
oh so it's the servers without any proxy?
anyway if you have full access to the host machine you can just install and use
speedtest-cli
i dont think i have proxy
you're on shared?
Using Vault, does anyone know the best way to get a players primary rank and compare it in the group ladder?
I've fetched the players primary group i just dont any way to compare it in the group ladder to see if its higher or lower
i have a website called hostinger that is my host
oop
how do i make a custom bossbar of a creatures health
have any recommendations about better hosts?
Vps or dedis
no VPS is as shared hosts
I have a vps server
A vps is still better than a game server
still a shared service
well if you have a VPS you can definetively run those commands beesknees
do you have Debian?
Debian?
you just said you have a VPS
n o i dont think s o
yes
wut
i was joking.. please dont be a mac os
FatalPacket macOS server aren't something you would find for minecraft
Bruh, this is annoying me now. So I want player stats to update in a config file, whenever I set the statistic using the custom object (Profile), for example, it adds 2 deaths instead of 1.
I had experience and used a few macOS servers in the past, but I have no idea why would someone get one for minecraft
alright well-
what is debian
A linux distribution
i am pretty sure i dont have it
sigh
and my host isnt even mc specialized
but I doubt that will make any difference
Question
yuh
If there is a persistent data container
and you try to get a key, but the key doesn't exist in the persistent data container
Will it return null?
oh wait nvm
just checked javadocs
sorry for the stupidity
Please help me!
My thread: https://www.spigotmc.org/threads/plugin-attempted-to-register-an-invalid-eventhandler.442211/
Whats the best way to read a config section in order of descending?
It'll function much like a group ladder and the lowest is the highest rank, is there any easy way to achieve this?
groups:
stone:
gold:
diamond:``` it'll essentially function much like LuckPerms or PEX with their group ladder it'll just loop through and put it so that diamond would be the last achieveable rank and any higher it cant achieve
Set<String> keys = ((MemorySection) config.get("groups")).getKeys(false);
keys = [stone, gold, diamond]
KKjzIOOSds{O92928384y378ainzdbxh
KKjzIOOSds{O92928384y378ainzdbxh
I felt that
Lol 😂
There is kinda my phone number > KKjzIOOSds{O92928384y378ainzdbxh
@tulip pendant
There is kinda my phone number
KKjzIOOSds{O92928384y378ainzdbxh
@tulip pendant
@tulip pendant
Is it possible to use spigot in linux?
spigot is even better on linux
okay thanks! I'm planning to host a mc server in linux on a vm on my workstation pc
with 14tb of space
I will be using ubuntu or maybe a super light weight linux distro
yes its fine
dēbian best
alpine
Does spigot works on Slax [Linux] ?
as long as Java works correctly there, yes it should
why would you use Slax anyway 🤷♂️ no idea
super light weight
alpine is 5MB or sth
oh really
stuff like Lubuntu is super light
Wildcard is not allowed at this location
return this.labeledRegistry.values().stream().filter(GoldenModule::isEnabled).<Collection<GoldenModule>, ?>collect((Collector<? super GoldenModule, ?, Collection<GoldenModule>>)Collectors.<? super GoldenModule>toList());```
alpine as main image is used in the docker world a lot
What is the ram requirement for alpine?
general gist is that bar the "fancy" distros, a minimal install of linux can ez fit in 64mb of ram
if you want UI youre spiking into the gigs again prolly
you would have much in terms of free ram on that though, give it a few gigs, go for something minimal like lubuntu, etc
I don't mind sacrificing a bit more ram and storage for an UI.
if i were to change my server from spigot to paper, would it run more smoothly?
my friend tells me that would make server lag faster but idk how makes no sense
rbuh what in the sweet fuck is that
Can I have my minecraft server with Java 11, 1.15.2
Yes, you can
does anyone here know how to tell which way an item frame is facing on a block?
it would be really helpful
🙂
hello?
@anyone?
hmm
i'll check this
thank you for your help friend
it is much appresciated
sry for bad spelling lol
gtg for now
I'm trying to make a small app that displays the locations of structures placed around the world. Would I be able to do this using the spigot api since many of the method revolve around the server itself and I won't have a server running?
So i've intialised a variable outside of the event but still inside the class like so ```kotlin
class CPCommand(private val plugin: CustomPromote) : CommandExecutor, Listener {
lateinit var voucher: ItemStack
}and then inside the command class I intialise it like sokotlin
voucher = item(
Material.getMaterial(config.getString("voucher_object.item")),
amount as Int,
meta = {
displayName = color(config.getString("voucher_object.display-name"))
lore = config.getStringList("voucher_object.lore")
}) Inside the event i check if isSimilarkotlin
@EventHandler
fun PlayerInteractEvent.onInteract() {
if (action != Action.RIGHT_CLICK_BLOCK) return
println("works 1")
if (player.inventory.itemInHand != null && player.inventory.itemInHand.isSimilar(voucher)) {
}``` But it throws Caused by: kotlin.UninitializedPropertyAccessException: lateinit property voucher has not been initialized
But it is intialised because its created on the command and then checked if isSimilar so it shouldnt be able to throw an error
how to change from spigot to paper in multicraft
i'd appreciate some help kinda lost:/
You're definitely in the wrong server to be asking that question
What economy plugin would you guys reccomend? I kinda want 2 currencies like how hypixel has gold and credits
Please help me!
My thread: https://www.spigotmc.org/threads/plugin-attempted-to-register-an-invalid-eventhandler.442211/
please help me
my server hacks
and i want to add plugin on pin
please help me
'my server hacks' wtf
@thorny isle Choco already helped you, did you even listen to what he said?
also why would you need two of them at all
@thorny isle Choco already helped you, did you even listen to what he said?
@sturdy oar you'll help me what write because I'm new
We've already helped you
I could not explain it in a simpler way than what Choco did.
you literally can't handle two events in a single EventListener
@odd knoll not working on 1.15.2
im ukranian and what is "issue"
@sturdy oar it doesm't work on 1.15 BTW.
btw? BTS
im ukranian and what is "issue"
@cinder whale use translator lol
you need AuthMeReloaded
Fendi, it's not compatible.
wtf
login security
why do you need login security
is good plugin&
lmao
?*
tell me why would you need login security?
and by the way, AuthMeReloaded works... whatever
WTF, doesn't work for me lol
you still haven't explained your issue but whatever
nor given a reason for why would you need an auth plugin
Fendi are you running 1.15.2 latest?
Coz for me, AuthMeReloaded doesn't work on 1.15.2
yes 1.15.2 Paper
Hmm.
I've downloaded latest build from Jenkins
I have enemies and they hack the LoginSecurity plugin and I'm looking for a pin code plugin because the AuthMe plugin does not work on my server
Yep. Seems like the development version fixes 1.15.2 support @sturdy oar.
@cinder whale download this one https://ci.codemc.io/job/AuthMe/job/AuthMeReloaded/lastSuccessfulBuild/artifact/target/AuthMe-5.6.0-SNAPSHOT.jar and it should work.
🤷♂️ and that's why you read the big red warnings on the Spigot page
I mean, their warning says nothing about version support, only about features.
And I mean, it doesn't even list itself being 1.14 or 1.15 tested.
it's pretty cool, it has even email support for forgot password function, which is main thing keeping me using it
I mean why would someone use it if their server is online mode
Hello, I am creating a plugin and I cannot execute the main command, could someone help me?
It provided them with the console error and the main command class.
?paste the stacktrace
Console error: https://paste.md-5.net/anupixezoj.bash
MainCommand , line 137
You're putting something in a scoreboard longer than it's allowed to be
Display name '§a§lOverGlowed Network §7� §fnow available in the server expansion' is longer than the limit of 32 characters
AuthMe reload?
@sturdy oar
https://paste.md-5.net/mopifupiba.cpp
Class MainCommand
I smells illegal minecraft server 🤔
@marble scarab I love c++ code 👍
okay for real tho, that's too much nesting
else if(args[0].equalsIgnoreCase("setspawn")){
that's line 137
@odd knoll thats weird because this is what it is in my config:
&a&lOverGlowed Network &7¦ &f%player_server%
oh god what's that code
@marble scarab you're probably not checking if the length of args is 1 and you're doing /thecommand
else if (args.length == 1 && args[0].equalsIgnoreCase("setspawn"))```
It's two spaces Fendi 😆.
yeah but the code is horrible if that's my opinion
I always use custom command stuff, but yh.
It's like a bad idea to fit the whole mechanics of the command into the onCommand method
@odd knoll
I changed what you told me, but it keeps generating the same error.
Can you pastebin the whole class please.
@odd knoll This is the entire MainCommand class, do you want me to paste the other classes?
https://paste.md-5.net/halavuyuzi.cpp
And what's the error?
Not the same error.
Holy indentation
You're doing args[0] in so many places.
Do I have to change it in all the commands?
You need to make sure for EVERY one that the args length is 1.
Otherwise, you're getting something that possibly doesn't exist.
Holy indentation
Instead of just adding args.length == 1 in every else if, just have it in one before you ever use args[0]
@torn robin why I hate reading other people's code 😛
Cynical, if you're using IntelliJ, please CTRL + ALT + L 🙂
yeah that indentation , and code is killing my brain
Please also learn the anti arrow pattern
what's that lmao
you even return false if they’re not a player
No point in encasing the rest in else
No point in the first else if
but if else would be cleaner
switchers are great if you can use the multi case execution imo
it's already != 0
if Len==0 || len > 3
I never manage to focus with a picture background.
me too
And my pic reset when I upgraded to 2020 IntelliJ.
IntelliJ 2020 has been absolute hell.
Well, I couldn't even use it for the first month.
It just wouldn't load any of my projects.
The indexing on 2020 is waaaay slower than 2019 when I open my slightly larger projects (makes sense coz of all the new hover stuff).
I work on a lot of big projects 😟
This one is 130 classes, 6.3k lines. Then probably causes more lag, it uses a massive library that it has to index a lot of.
@odd knoll I have already changed and it no longer generates the error, I cannot execute some commands, but there is no error, it just does not execute and sends me the message of /cynicalproject, which in this case is a message with its commands.
It is as if you just run the MainCommand, and not the entire command.
Probably because you don't do anything if there is no argument.
I honestly can't read or figure out ur code. Too many ifs and elses and sooo much indentation. Not preferred formatting.
I love writing documentation 🙂 , you should as well
@sturdy oar I did. I wrote the whole docs for BattlePass and now v3 is coming out, I don't want to.
no i was talking to the dude before
Ohh lol
The only thing that triggers me
@frigid ember and what is that internal error?
is that I still haven't figured out how to enable compact Javadoc by default
@sturdy oar where do you set project defaults?
@frigid ember that is 5 seconds btw
I'm annoyed of enabling Optimize imports on the fly for every one.
@odd knoll what are project defaults ahahhha
I remember there being some way to set it to be default when you create a project, but IDK.
I have to manually enable it every time I add a new project into IntelliJ.
yeah I have to do it this way each time
i'm having a problem with citizens, when I add text, it doesn't show when I click on the npc
@frigid ember can you please cause it to error again then just send your latest.log file then.
Oh my 🤦♂️
And yh, change what Fendi said.
The thing that always bothers me about other people's code is when they decide to hit the enter key 10 times before writing a new line
oh got that's horrible
Lol
I do space out some of my code,but not by so much
Here's my code @sturdy oar
I only do space after each method
Yea, 1 empty line is fine
your color scheme hurts my eyes
I do that too
Who's color scheme?
the one in the picture you just sent
I'm confusion
the green is too bright for me
oh mine, nah, its pretty good. Each color actually has a meaning.
Ok, IntelliJ seriously took 20 seconds to index my Discord bot. That's frustrating
You don't have to index, but it improves a shit ton of stuff
and its generally limited by your disk read speed and CPU
P sure colours wouldn't show. Didn't realise you could even disable it.
syntax highlighting isn't related to indexing, but indexing does actually help with speeding that up.
At least you don't have a project as large as mine
what's that