#general
1 messages · Page 213 of 1
F in advance
Wait I still dont know whether youre a bro or sis
at this point, I don't either
Fucken LOL
pls reveal gender
also theres 2, not 69.65
Waiting... for that to offend someone
Why did I always think you were a female
Because of my feminine looking eye?
omg
Im so sorry
I just spammed "`"
Wat
Lmfao
That was hectic
oww
I wanted to `` the ``
Fuck
for (String a : Betterreports.getInstance().getConfig().getString("staff-report-message")
.replace("{player}", playerName).split("\\n")) {
staff.sendMessage(a);
}``` This should work
Right
Uuuh
Yes
Lemme
yes it will
If it doesnt
I owe you
Fefo is that really your eye
you are looping a string?
Is that a filter or what the fuck happened
Photoshop happened
Indeed im looping a string
Thought your eyes broke or some shit
The goal is to have as many lines as I want in a message in the config
Indeed im looping a string
@gilded nova i didnt see the .split part lol
Ah haha
Why not a string list...?
Look
idk
staff-report-message:
- tim sucks
- Fefo needs serious help
- help
yea ^^
Betterreports.getInstance().getConfig().getStringList("staff-report-message")
I apologize in advance -
then the formating of {player} should be another method usually, so it can be reused for other message formating
Yeah theres not many messages though so I kinda just chucked it in
The for loop also worked
while (!list.isEmpty()) {
staff.sendMessage(list.first().replace("{player}", playername));
list.remove(0);
}
👌 👌 👌
The config is just like this
staff-report-message: |-
This is one line
This is another```
Is anyone here good with configurating / setting Minecraft servers
I love how you report a bug by reporting another player
Nah
its reported BY that person
Yeah my brain is malfunctioning lol
This is the player report webhook
That's actually cool, finish that and I'll put it on my server
deadset?
I don't know what that means so I'm saying that I don't know what that means
@violet rivet help me understand this please.
Hey Zaid! Please don't tag helpful/staff members directly.
Like seriously?
Click it, it'll probably give you more info.
It'll probably be better than stupid buggy TigerReports lmfao I don't even know who put that in the first place
I used to have it save to actual txt files aswell
but I got rid of it because it was pretty buggy
It worked to an extent
It's... I don't want to say it's even okay lol
lol
But hey, at least the reports did get to the discord server
sometimes
LOL
I had issues where the webhook would execute like 5 times
Literally just had to remove the return up a line but i was trying to figure it out for so long
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
i don't understand
Did it lose power?
If youre running on battery try plugging it in
Overheating is common
its not overheating.
wtf is a battery.. cmon now 😛
If it's a laptop, check it's actually charging.
Riperino
its charging
Could be a power delivery device failing.
Perhaps time to take it in and spend some $$$ fixing it
May have to use the stringlist
<Data Name="LongPowerButtonPressDetected">false</Data>
lol thanks a lot Windows
May have to use the stringlist
May??
Do use one
Doesnt seem to like colour codes
Huh?
Why not?
My for loop
not sure
yes i have fans on max speed
Thats probs why
6000rpm isn't much.. try a delta fan
theyre small
chops carrots with ease
it is MSI
Indeed
my laptop
O
Betterreports.getInstance().getConfig().getStringList(ChatFormat.color("staff-report-message").replace("{player}", playerName)); Surely this works
everytime i open youtube on my phone it says "thanks for confirming".. 
Tim please capitalize your plugin name properly
Yeah I had to turn my exposure down all the way to not get my whole room in the background through my case sidepanel
And yeah I might LOL
And no why the fuck would that work lol
shut up dog
Nah
um
ok
The fuck did you do now lmao
Um
Never seen that one before...
dropped my plugin in
and
started it
Worked this time
Worst error I've seen on a jvm was a segfault... I've seen dozens of those on c and cpp but Java.....
Yesss
Lmao
at me.timmy109.betterreports.commands.ReportPlayerCommand.onCommand(ReportPlayerCommand.java:67)
Oh
Numbers in package name
Smh
smmmhhhhh
Wait
Its because i removed the string from the config
smh
No null checks?
I took the whole thing out
Honestly I might just re write this whole thing
Wow its 6/9 today
is it though? https://i.imgur.com/juOZMXr.png
I actually messed up
I put the chat format method in the wrong place
Y'all am pm plebs
thats why it wasnt working with the for loop
24hs format ftw
No youre just weird
Also true
LOL
🔨
find the centipede mother and befriend her
how were you trying to newline & what method did you send that with tim?
Wait I know what it is
forgot the |-
🙂
Chat format doesnt work still
It would help if i actually added it in..
kyori/adventure
Or you could ChatColor.translateAlternateColorCodes
season lightly with adventure-minimessage
Or you could ChatColor.translateAlternateColorCodes
isn't that depracated, or at least heavily frowned upon now?
or regex it
No it isn't?
My format method wont work for more than one string
But since the name is so long people just make a small wrapper method around it lol
you need to loop it
Or format it before splitting and then split
or make the method take in a String[] and then loop each element in the string array
Yeah
@gilded nova instead of &’s do §
i mean you can, but if you are typing its harder to type §
Hey Zaid! Please don't tag helpful/staff members directly.
& is the standard
It’ll pop up a menu for emojis and symbols
Fefo's ChatColor.translate... method literally just wraps String#replace('&', '<that thing>')
yea, then you need to find it, as oppose to just typing &
P much
(I mean a bit more to it but that's the gist of it)
It loops through it to make sure it only replaces the valid ones
And I found out why mojang named brigadier brigadier
Why did they name it that

dammit mojang.
My mind has blown
Nothing will be better than DataFixerUpper lol
that's their migration thingie right?
The one that makes sure your world doesn't break between versions
But they say something like "blah blah blah data flow blah blah optics whatever"
A set of utilities designed for incremental building, merging, and optimization of data transformations.
Whatever that means
ah, so the readme was written by PR, not developers?
I love brigadier as a command library because of the nodes concept, it really takes a functional programming approach and I love that
Thing is, it's not very clear what each thing does and is for, and there is one single class in the whole library that is documented ;-;
Hm
for (String s : ChatFormat.color(getInstance().getConfig().getString("staff-report-message")
.replace("{player}", playerName).split("\\n"))) {
staff.sendMessage(a);
}``` So how would I make colour codes work with this?
nice indents
You out of anyone should know by now that you cant copy anything in IntelliJ without it coming out weird in Discord
so many indents though
Yeah theres a few
how many stuff is your for loop nested in lol
uh
I have a check for instance of Player
Then arguments
a for loop for the string builder
for loop to get get online players, if (player.hasPermission) and then that for loop up there ^
you should do something like:
if (!(stuff instanceof Player)) {
return; // or throw an error
}
// then do the loop
or what ever you are checking for
yea your hasPermissions shouldnt do like this
you will end with with alot of nested stuff
so like return the function or throw as error when you detect is invalid to run
so:
if (!(stuff instanceof Player)) {
return; // or throw an error
}
if (!player.hasPermission("node.stuff")) {
return;
}
// then do the loop
ye much cleaner than nesting everything
you should also be using a logger and not System.out as well for console stuff
or just sender.sendMessage() for commands output stuff
or you can just staff.sendMessage(ChatFormat.color(s)); if you dont need formattedString anywhere else
Yeah, that would be the better way to do it, if you don't need the variable elsewhere
please help
Are you aussie
OMG is luckperms
oh this is my nickname
What do you need help with?
my server's luckperm editor version(?)
Are you aussie
No but it’s a long story
LOL
is
Lol
Same though
Lmao
But we live in Aus
Do you speak Dutch?
Sad
Only words I know are oma and opa
I speak English
And a swear words
Lmao which ones
Lool
Reporting
helps to have a second opinion sometimes, I don't think you'd ever have thought to add reporting to your reporting plugin
A command to issue reports, a way to view reports, a way to close reports, a way to view past reports, list reports against a certain player,
a way to cancel reports
check against reporting against self
Database and flatfile support, configurable commands and aliases, and perms-based everything
exemptions for reporting against certain players
100% customizable locale file with 1.16 RGB support
Basically I have a webhook
One for player and bug reports
The exemptions idea is good
need that
Yeah I was thinking about maybe adding a report id system where they can submit screenshots/videos with it somehow
not sure how id implement that
Web interface
lol
Also I keep getting this sometimes when I run the server.. Weird
It only happens sometimes
Reinstall Java if you can @gilded nova
If it happens on a semi regular basis something with you system is wrong
A core dump is not caused by the program itself but either by the JRE or the OS
*fatal errors
Not coredumps
Almost the same thing 😅
Maybe the hardware change made it unstable
how do you change the (over world) to nothing or to a custom world
are you using multiverse?
yer
You can change the world names in the config
like their displaynames
i cant remember how
@peak isle check the multiverse config. There is a setting to remove it.
ok cheers
@gilded nova that seems likely.
yer
@peak isle /MvM set hidden true
Not the change in itself but the hardware might be faulty or something became lose
okay thank you
You don’t need to change anything in config :p
Just use the command it’s easier
/mvm set hidden true
i did that and my rank prefix has gone now
Only the world prefix should be gone
just restarted it's fixed now thanks
Ok
Docker
u wot
Whale!
With docker you are not supposed to update the application in a container, but rather delete, download the new version and re-create the container
Took me a while to see it xP
Does anyone else just randomly get logged out of their discord accounts?
Happened to me just like 5 minutes ago, so I changed my password.
Not at all
I suggest you uninstall dc, delete everything related to it (in appdata, local, etc or whatever) and change your password again, then download dc again
@sudden ice
On phone-
Not at all still lol but that's weirder I guess?
I've never been logged out on phone but occasionally I'll be logged out on pc 🤷♂️
Stonks
How long does that take to get through
ill time it
And what does task manager say while it is
rip the 200 od people on the server
Oof
Just restart one at a time lmao
Move them around during / after games
They'll never even notice
Ohhhhh yeah that's a problem
Meh, schedule it for later
That way they all know, and will be prepared
mm
Make an announcement like EMERGENCY SERVER SHUTDOWN IN 1 HOUR 
Oh
The server setting does reload on lp reloadconfig
Idk how it'll take effect tho
still iv made other changes
Hey that is some neat information
But it is reloadable
Try it pirie you may just luck out 
Naisu
the ammount of time this discord has saved me

how do i stop the ability of teleporting with the compass?
maybe use verbose see which permission its checking and then deny it
how do i stop the ability of teleporting with the compass?
@deft thistle config?
which config
The world edit config? I think..
i have fawe
Big
its not there
how do i modify a players speed in java?
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/Player.html#setWalkSpeed(float)
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/Player.html#setFlySpeed(float)
declaration: package: org.bukkit.entity, interface: Player
ty
Gonna need a bit more info there. What do you need help with?
You know how to use maven?
is it better than gradle?
Different, probably considered worse by people who use gradle
That's a political mess of a question I won't answer lol
I would install the minecraft dev plugin
is this it? https://minecraftdev.org/
Plugin for IntelliJ IDEA for Minecraft mod development
I would install the minecraft dev plugin
meh, nothing fancy, it just pre-sets a few files for you 🤷♂️ I used it like once or twice lmao
eh it saves me having to search aroun the internet trying to remember what maven repo all the different server softwares are in
plus it generates plugin.yml boilerplate etc, which is nice
jetbrains > any text editor
wut
That's intellisense lol
yeah that makes more sense lol
looooooooooooooool
jetbrains > any text editor
Vim > JetBrains
i like to know how to exit my editor thanks
lol i used to have that one
docker
I think you can exit vim by first getting out of tge writing prompt (Ctrl + A I think) and then type :qw if you leave the w away ut will close the editor without saving the changes
Loading Docker facts, please wait
Please do nit turn off your device while I am still loading
imagine windows saying "I am still installing updates"
Docker has its own implementation into different firewall services, if you have for example IPtables installed, docker will insert special tules i to it for its own networking. This way exposing a port using -p does not require you to open it in zhe firewall, since it is already opened
YOU FORGOT TO SAVE THE CHANGES NOOOO
but for a noob it's very difficult looool
i never have to save changes i only ever get vim with git commits lol
Yes, but that doesnt work when you are in the writing promt (however you get in there anyways)
i should switch the editor to nano but ceebs
Sup
Wassupp
please don't say it, I am running out of facts
dangit

I use vscode for normal java and intelliJ for coding plugins.
VSCode because its lightweight and simple, IntelliJ for plugins because its just.. better
"normal java"
Yup lol
just like
java java
then you code xTreme java
no dumb spigot api
xTreme
i can't not use jetbrains for anything now lol
Docker has advantages and disadvantagesyon3 of the bigger disadvantages is that docker does not support any GUI output whatsoeverxthis is where Ubuntu snaps come into place, their purpose is to allow developers to conpile their GUI siftware once with the needed ressources and fully supply the needed enviroment, in order for the GUI to work
even for txt files
code smarter not harder
Docker has advantages and disadvantagesyon3 of the bigger disadvantages is that docker does not support any GUI output whatsoeverxthis is where Ubuntu snaps come into place, their purpose is to allow developers to conpile their GUI siftware once with the needed ressources and fully supply the needed enviroment, in order for the GUI to work
Noice
txt files is always notepad++ or vscode
I cant load a whole damn ide for that
yes you can
Not really a docker fact but more a snap fact >~>
What if I said it again
nooooo
tbh yeah if i'm just editing a single file then i'll use vs code
but that doesn't happen often at all
Because youre too good for those single files
I use VSCode for Lua, html, css, js, sql, dockerfile, php [while I was writing this, I realized I use it for so much things, I can't list them all]
Yes you can
Its too much tho
I literally use it for anything besides Java or C and any variations of it
everything *
webstorm for anything with JS
phpstorm for anything with php
intellij for anything with java
Nah
I honestly am a huge fan of Jetbrains with their CI and IntelliJ, but PhpStorm just sucks
It is expensive as f, and offers the same feature set you can get with most free editors
yeah i only used it because it was supplied at my last job (and i stole the key so i could use it on my home PC lol)
but it was really useful for working with laravel
i'll call 999
lol, i actually like laravel, makes making php apps so much more tolerable
but i have no interest in pursuing any php work anymore
Laravel is great and I knoe a lot of people who use it, but in some places I find it too bloated
Anyway, never tried WebStorm yet
I did try Adobe Dreamweaver and now I know ehere all these bad web developers come from. The pages may look good, but are unecessary overfilled
LOL
dreamweaver helped me learn, like 16 years ago 🙃
i wouldn't go near the thing now though
although i guess they've made some significant changes since i last used it
But don't you think that the drag and drop thing, just does stuff you don't need and makes the page bigger in size unnecessarily
oh yeah definitely
I used dreamweaver in grade 8, then I grew up
the WYSIWYG html editors are NOT good at all
Bootstrap + jQuery ftw xD
jquery is for people too lazy to learn proper JS :P
plus I use Vue which cuts out any need for it
bootstrap makes me want to rip my hair out
much prefer to write my own css
I am not talking about the element design abilities of bootstrap, but rather the idea to make everything a table with 12 columns, and depending on the screen resolution you can break or make a cell disapear entirely
yeah the grid system is about the only thing i like in bootstrap but there are other better css frameworks that provide the same
There is reduced bootsrrap that only provides the grid, and leaves everything else away
seriously the designs provided by boostrap are horrible
I just need the grid
Why use luckperms when you can just use permissions.yml
hah
Haha
Turbo hows your javaskript going?
ew
Can we expand Clippy to automute everyone that says “Skript”?
^
Skript?
Muted for 1 year
Ah skript
kek
?mute
Description: Mute a member so they cannot type or speak, time limit in minutes.
Cooldown: 3 seconds
Usage: ?mute [user] [limit] [reason]
Example:
?mute @NoobLance 10 Shitposting
?mute User 10m spamming
?mute NoobLance 1d Too Cool
?mute NoobLance 5h He asked for it
I feel so threatened
but yeah you are right turbo, I am a lazy ass that wants to make my life easier xD
jQuery all the way /s
learn one of the js frameworks and you'll say goodbye to jquery forever 🙏
maybe, I am not yet at the frontend of my project, I am still writing the central REST-API and that one doesnt require JS xD
You also say goodbye forever to fast load times
?
But handling that button click with the framework really makes it easier
I was responding to Turbo
haha
what was it again?
$('button').onClick(callbackFunction)
something like that I think
havent used jQuery in a ehile anyway xD
i don't see much issue with load times
function callbackFunction() {
window.location = this.data("target-url");
}
Well have you tried to make a page without a framework and compared load times?
In todays internet times, it may make a difference from 1 second
I have and with my internet connection that makes pages load faster 0.25-0.5 seconds
And that is significant
BrainStone must be on a dial-up connection
Because you times 10 that for mobile connections
Imagine a api having a response time of 3 seconds.. oh god
And yes that difference in load times makes a page feel that much smoother
That’s why I pretty much always stay with vanilla JS
I don’t do much with it and the additional load times are not worth the benefit of making things slightly easier
I think its a case to case basis
9/10
I know for lua there is something called moonscript, you first write your code in Moon and then compile it down to the most efficent Lua code the software can think of
js propably has also something like that
well there is webpack
which minifies the code
idk if that's what you were meaning
Well eith moon, its its own programming language which compiles to lua
I still need to learn it xP
i think the problem you mentioned with load times is only an issue when developers don't bother to split their bundles and utilise lazy loading
stuff i make still gets good scores with Lighthouse
Lazy loading just moves the issue to a later point in time
First load all javascripts and css files before loading the page 
You still need to download MBs of ultimately useless code
That is true
only when it's needed
I read it as show not load in regards to the page
Naj, first load the css, and important js, then the content and last the functionality part
ye
But yes, each function that a lib includes which is not utilized is dead weight
Well in that case I have code that fetches new JS whenever needed. That code wouldn’t be needed if the page wasn’t built with a huge framework
Also that means execution is stopped until that part is loaded in too
i think i did pretty well with the LP website, wasn't even trying to get good scores here lol
should really learn how to do PWA tho
Mobile or desktop score?
What page is that?
it's the Lighthouse tab in chrome dev tools
Thought so
I amma get that later
lol i know
it's just so much more effort to get better scores i'd rather not bother at this point
If you try it with “server side rendering” those scores will be significantly better
the nuxt refactor will take a while
Ah I thought you could already use server side rendering with the current setup
My bad
not really
one thing i really dislike about the vue ecosystem is how hard they make it to migrate to SSR
SSR?
server side rendering
I see
The mere existence of that term perfectly summarizes why JS devs should never touch the backend
Wot
Not the place to advertise
Stop him, its annoying
boi
@gilded nova
@gilded nova that's a paddlin'
A ban
I just pinged them so I had their name up
Let’s raid it
Yeah lets go
Holy shit their voice is annoying
Sounds like a heavy smoker whos lungs are giving out
ah bless
Don’t forget to downvote the stream
Embarassed
Where’s my army of spam bots when I need it?
Someone post “Take that fish stick out of your mouth”
ruthless
Ok im done now lol
other way round for me
no
I meant Turbo 😜
i don't understand
yea what u want
i slept all day
Anyways I’m taking a nap
gn
yeah i got something for that
Please use https://bytebin.lucko.me to send files in the future. I have automatically uploaded crash-2020-09-07_00.35.12-server.txt for you: https://bytebin.lucko.me/wF73eerxCi
Anyone having issues with logging into their facebook account?
Something tried dividing by 0
Method call was "spawnGuards", mentioning villages
if you have a plugin or mod that spawns stuff in villigas, that's probably the culprit
must be a badly coded mod for something like thiis to happen lol
Yes I did see "mca" in the stacktrace
given the fact that they hadn't even followed proper naming conventions (in this case package names), I expect the dev has made a logic error
either bad logic, or broke rule 1 of programming: VALIDATE USER INPUT
ALL user input is evil
The only user input that isn't evil is the programmers input
That's probably even worse
okay i fixed the issue in teh config and its working for me now thanks loves
Rule 1: Don't trust users. Lying by ommision, incompetence, lying, fucking up formats, malicious users. Applies to support and programming lol
👍
So it was user input HAH
ohhhhhh
ooof
:p
i had to remove the mod previously because it was continuously spawning guards without stopping
Lol oop
i had tried fixing the spawn rates but it didnt help, do you know why it kept happening??
additionally how can i remove messages like this that clog the console? they were from mods i removed
The fuck
That's probably forge saying "I found this and I don't know what this is anymore"
But in its own way lol
yeah exactly
If it's not constant, best to leave it imo. Logs can be useful if things go wrong even if they're just spammy - one line might tell you the solution
I mean, if anything, you'd have to load the mods back on again and remove the blocks/items/whatever
Which can take a painful amount of time
I thought the unknown items would've gotten removed after the first start 🤷
There probably is some sort of tool or smth to clean that up as well

the biggest issue that i have been having is that some people cannot join the server as it gives them a java.io exception. i contacted the host and they stated that it wasn't because of them as no one would be able to join if it was the servers fault, however, only certain people are not able to join and i know it isnt because of any mods i have because one of my players came on and then got the java.io exception seconds after. they had gotten it after i removed all mods and made a new world to test why it was happening and it still heppened to them
Aaaayeeeeeee premium tools for freeeee
ohh sweet lol
nice email fefo
It's on my gh anyway so idrc lol
Ah
Does the console say anything
Mm timeout maybe?
Why do people have like 30+ chrome tabs open? I can barely stand 5 max
one sec ill check larry
and no it isnt a timeout
they joined the game and were moving around and talking and then all of a sudden it does that
multiple people have been having it
some people get it immediately, others crash immediately
Any idea on the geolocations? Maybe it's a region that has issues 🤷♂️
Does anyone here seriously play mc
Eh sometimes I play it a bunch and other times not
i usually have 15 chrome tabs open and 3 separate chrome windows.
Helps having 4 monitors.
the only reason why i am playing MC is for the blockfront mod @gilded nova
It's been a while but I used to play vanilla technical survival dead serious
i usually have 15 chrome tabs open and 3 separate chrome windows.
@violet rivet I hate you
But I play it less and less with each update
That's fine 😄
How do you find a tab with all of that?
easy
same usb
I don't lose it
I struggle finding a tab in like 10
can't wait for the grouped tabs feature to be a thing
will make me slightly more productive at work
How do you find a tab with all of that?
i usually have 15 chrome tabs open and 3 separate chrome windows.
15/3=5 tabs per window
You are very smart , underscore
But then you need to remember each of the tabs
@forest helm Usually like 15 per window actually 😛
Or each or the windows
One window per tab
Well now I'm disappointed that I can't find my original mc world, gn
bet mine is floating around dropbox somewhere
i don't even have nitro
not really
We've seen the last
and it was glorious
i wonder what was my last :bongo_anus:
and i stopped paying for nitro a few months ago
tehlo kept me going with gifts lmao
it was a kick but ok
no
turbo is it time
play stupid games win stupid prizes

¯_(ツ)_/¯
Hey lukaor! Please don't tag helpful/staff members directly.
i got banned before any warn
what did you do lol
yea lol dont ping ppl
you're literally not banned
BRUH
because you were kicked 😆
Yo guys rate my setup ||/s||
Pathic I bet you only have like 5 graphics cards
Nice editor turbo 👍
who dat
Yeet
So ya boy is having trouble getting a ArrayList to be listed when a player runs a command
I understand how to get said ArrayList into another class
But I've messed something up
@gilded nova Tom
wot
I understand how to get said ArrayList into another class
sounds like you're abusing a certainstatickeyword
Yeah
I am
big time
oh boy..
Um so basically
My plugin has 2 commands right.
/report and /reportbug.
The goal is to have an arraylist (Strings) and add elements to it like this for example arraylist.add("/report - report a player"); and be able to call that arraylist and send it as a message to the player (from a different class) if the args.length == 0 (/report or /reportbug). This is just to clean up the code a bit as it works fine having the same arraylist for both commands but like thats boring you know.. I want to be able to call it from another class.
So I'm messing around in VS code trying to get the same concept to work but on a bit of a smaller scale
you create a getter method for it?
i guess you should show your code
lol ok
i mean your explanation jn seems ok, but the implementation may not be haha
i dont think it is
I feel like its just a simple issue
This is the setter and getter
Heres where Im trying to get the array
Are you ever instantiating your array list?
you didnt even run setArrayList
and i dont see that you have any constructor to init the ArratList as well
haha
you need to do ArrayList<DATATYPE_HERE>
so like Fefo example basically
List<String> list = new ArrayList();
gotchya
Kinda
Okay I was being stupid. This whole time I was avoiding the List<String> list = new ArrayList(); thing because it wasn't working for me, when I realised all I did was forget to import the fucking class
:bruh:
Yeah nah I completely just disregarded it
honestly
please never answer one of my questions ever again
because its likely just a stupid mistake
lel
I didnt say that did i
surely not
Oh yeah
because I set the prefixes in luckperms bungee
facepalm
I just found out you get a water bucket when drying a wet sponge in the furnace
know everyone a plugin for autogamemode specific players on join ?
If it's in the bottom slot that is
I dont know everyone a plugin
whos that
know everyone a plugin for autogamemode specific players on join ?
server.propertiesforce-gamemode?
yeah no idea
Yeah it copies the whole block with the NBT included
so cool
lol for how long have you been playing this game
lmao
stupid gif
no u
Pretty sure that feature has been introduced around 1.2
nahnah you got something against samosas
anyone know if there is a way to add to commandssuch as lp user @p parent Wood and topography island new @restive sand to a command block?
@rapid echo literally like that
I mean just try it?
Lol what do you mean?
hoot
So I'm making this thing that creates a custom inventory with certain size based on a perm in the form of resizableechest.slots.(# of slots).
And yes I know this is a "try it and see" question but does this make sense to you?
private int getMaxSlots(final Permissible permissible) {
return permissible.getEffectivePermissions().stream()
.map(PermissionAttachmentInfo::getPermission)
.map(String::toLowerCase)
.filter(this::isValidSlotsPerm)
.mapToInt(this::getSlotsFromPerm)
.findFirst().orElse(27);
}
private boolean isValidSlotsPerm(final String perm) {
// VALID_SLOT_NODE = "(?i)^resizableechest\.slots\.(\d+)$"
final Matcher matcher = VALID_SLOT_NODE.matcher(perm);
if (!matcher.find()) {
return false;
}
try {
final int slots = Integer.parseInt(matcher.group(1), 10);
return slots % 9 == 0;
} catch (NumberFormatException exception) {
return false;
}
}
private int getSlotsFromPerm(final String perm) {
if (!isValidSlotsPerm(perm)) {
return 27;
}
return Integer.parseInt(perm.substring(PERM_PREFIX_LENGTH), 10);
}
(and yes I know specifying it's on base 10 isn't necessary but I like things like that to be explicit lol)
What answer were you expecting from other than "try it and see"?
See, I'm not asking if it'll work or not
But if it makes sense to you 👀
gotcha good
Why do you have the check in getSlotsFromPerm?
¯_(ツ)_/¯
Are those functions used anywhere else?
Then squash them
