#help-archived

1 messages · Page 188 of 1

frigid ember
#

yes

vernal spruce
#

So best way would be to store ur own

frigid ember
#

ok

#

thank you

vernal spruce
#

Either database or config

keen compass
#

not going to really matter what you store

frigid ember
#

name = offline uuid (offline mode)

#

no

#

its generated from the name

#

not THE name

keen compass
#

can't guarantee that a player is the same player in offline mode unless you implement some kind of registration system

frigid ember
#

authme?

vernal spruce
#

yeah but he wants online mode

frigid ember
#

and offline

#

Im making it for anarchy servers

#

name ≠ online uuid (online mode)

#

What?

keen compass
#

Oh you want online mode uuids

frigid ember
#

and offline

#

so working for offline is better

keen compass
#

you want both?

#

o.O

vernal spruce
#

i mean storing ur own uuid = lastname

frigid ember
#

yes

vernal spruce
#

would cover both

frigid ember
#

way to get uuid:

#
OfflinePlayer op = Bukkit.getOfflinePlayer(/* your name to lookup*/);
if (op.hasPlayedBefore()) {
    UUID uuid = op.getUniqueId();
} else {
    //hasn't played before
}```
keen compass
#

Query mojangs api for UUID's

frigid ember
#

just make it online

keen compass
#

if it doesn't exist make your own

#

but I mean since you are in offline mode you can't guarantee that they are the true owner of a given name

frigid ember
#

@frigid ember bro i ALREADY said that getting a offlineplayer by name is deprecated

#

yes

vernal spruce
#

@keen compass does mojang api even accept requests from a offline server?

frigid ember
#

thats the reason why im here

#

@frigid ember bro i ALREADY said that getting a offlineplayer by name is deprecated
@frigid ember ur stupid

#

look what is sent

keen compass
#

@vernal spruce Mojangs API will accept any request so as long as it is valid

frigid ember
#

thats not player name

#

look what is sent
@frigid ember ITS DEPRECATED

#

bruh

frigid ember
#

/* your name to lookup*/

keen compass
#

deprecated doesn't mean it doesn't work

frigid ember
#

yeah, but it might get soon removed

keen compass
#

the reason it is deprecated is because using a players name isn't guaranteed since players can change their name

vernal spruce
#

Its a more of a no touchy method

frigid ember
#

yeah

wraith thicket
#

If we're talking about getting offline players by name, then it'll work just fine. As long as you're willing to wair 300-3000ms if you enter a name that hasn't joined the server

frigid ember
#

hm

keen compass
#

Doesn't guarantee it will map to the same UUID if they have

frigid ember
#

uuid is always meaned offline but its online and offline

#

what?

#

like

vernal spruce
#

Just dont bother and try either ways

frigid ember
#

uuids in offline are generated from name and on online from mojang

#

nope

#

they are

#

online are from session

keen compass
#

which comes from Mojang

frigid ember
#

yes

#

and that means from mojang

#

yes

#

or am i wrong?

keen compass
#

Offline mode servers

#

generate UUIDS from the player name

#

since it doesn't query Mojangs stuff

frigid ember
#

ye

wraith thicket
#

Oh, we're talking about offline mode here?

keen compass
#

Online mode servers query the API from Mojang

frigid ember
#

and online

#

i want my plugin on both

#

possible

#

oh sorry

#

i have a question. What even means unique? How is it possible that they aren't similar

#

it means by name

#

?

#

unique by name

#

by player

#

yes

#

not name

keen compass
#

UUIDS are unique due to low collisions when generating them

frigid ember
#

but i mean the techinc behind it

#

low collisions?

#

wdym?

keen compass
#

however despite that, there is accounts with the same UUID's and names btw

frigid ember
#

oh ok

keen compass
#

it means the odds of someone having the same UUID as someone else is very low

#

it has already happened

frigid ember
#

ah

keen compass
#

odds that you will have such players on your server is very low as well

#

But it is still a problem however

frigid ember
#

so two online players can have the same UUID?

keen compass
#

yes

frigid ember
#

Isn't there any way to stop that from happening?

#

like comparing

#

if it already exists

#

wtf

keen compass
#

you can't stop it from happening but you can mitigate it so you can still make them unique 😛

frigid ember
#

two online players simply cant have 2 same uuids

keen compass
#

essentially you tack on an additional identifier to them

#

to make them unique

frigid ember
#

never

keen compass
#

@frigid ember who told you it was impossible?

frigid ember
#

#

WTF

#

server checking name and uuid

#

try it yourself

grim halo
#

@frigid ember I have seen your code. You do not have the right to call anyone a noob.
I swear to god.

frigid ember
#

lol stop that. your a noob too. You don't even know how to setup rich preference properly

#

go to launcher.propetes

#

and try to change ur name

naive goblet
#

Why call someone noob lol

frigid ember
#

idk

naive goblet
#

Doesn’t make sense in a help channel

grim halo
#

@frigid ember No worries he is an absolute beginner too. Listen to Frostalf for advice and ignore petakou

frigid ember
#

ok thank you

#

bruh

#

ignore?

#

really?

#

im begginer?

naive goblet
#

Are you?

frigid ember
#

wait

naive goblet
#

What’s your gh

torn robin
#

stop using the wrong your

#

gosh dangit

keen compass
#

I am not entirely sure what launcher.properties has to do with anything

naive goblet
#

;-;

frigid ember
#

yeah

naive goblet
#

What’s the right one lol

keen compass
#

you're

naive goblet
#

Instead of?

keen compass
#

your

naive goblet
#

“What’s you’re gh”

grim halo
#

lol

#

no

torn robin
#

lol stop that. your a noob too. You don't even know how to setup rich preference properly

frigid ember
naive goblet
#

Oh

grim halo
#

Whats you are gh makes no sense XD

torn robin
#

I would like to see some actual evidence of UUIDs being the same

naive goblet
#

Yeah I got confused as hell

frigid ember
#

@frigid ember No worries he is an absolute beginner too. Listen to Frostalf for advice and ignore petakou
@grim halo https://prnt.sc/tl8rvm

Lightshot

Captured with Lightshot

keen compass
#

@torn robin I had a list somewhere trying to find it

#

anyways there is duplicate names

#

that map to different UUIDs

torn robin
#

How recent are these UUID duplicates?

keen compass
#

and then there is UUID duplicates. Which is rare but has already happened

grim halo
#

Generate 10 Million UUIDs by UUID.random and see how many duplicates you get. I bet you there wont be a single one

naive goblet
#

That’s not nice

keen compass
#

but basically Mojang ends up eventually fixing the UUID problem

#

but not the name one

torn robin
#

any evidence for the UUIDs? other than "it has happened"

grim halo
#

UUID is essentially a long long (2^128) - 1 values

keen compass
#

Not entirely sure how I would prove it, if they eventually get fixed since Duplicate UUIDs cause more problems then duplicate names do

torn robin
#

are you saying they already got fixed?

keen compass
#

Yes, but the problem is still there. Just mojang has to manually fix it by generating a new UUID for whoever reports the problem first lol

naive goblet
#

Oof

torn robin
#

I can't imagine any programmer would reasonably compensate for such an unlikely event

frigid ember
#

yeah. Because they are called unique

#

So the code is coded in a way they MUST be unique

grim halo
#

Thats the chance to generate the same UUID twice 1 : 340,282,366,920,938,463,463,374,607,431,768,211,456

keen compass
#

they are suppose to be unique, but once you start getting into the laws of large numbers, duplicates are guaranteed to happen

naive goblet
#

Just because they’re called unique doesn’t mean they’re actually unique

keen compass
#

I didn't say it was common

frigid ember
#

i mean plugin devs

#

not mojang

grim halo
#

Its possible but highly unlikely

keen compass
#

Anyways, duplicate names still continues to be a problem however

#

you can have 2 players with the same name

#

but 2 different UUID's

naive goblet
#

How

frigid ember
#

yeah

torn robin
#

That's a much lesser issue

naive goblet
#

Doesn’t it check for the name when creating an account?

keen compass
#

they changed their names to the same thing within the same time

torn robin
#

really just funny to see

naive goblet
#

That’s possible?

keen compass
#

Yep

naive goblet
#

Thought it was patched

keen compass
#

Even if it is fixed

grim halo
#

One loggs out -> changes the name -> someone else changes the name to this guys name and loggs in -> problem?

keen compass
#

The players still have the same names

naive goblet
#

Yh

keen compass
#

so, that is something that all plugins do not account for however

#

as far as I am aware

torn robin
#

no plugins should be basing anything off of player names

keen compass
#

while true, there is cases where you need the player name however and all you have is the UUID

#

when you query mojangs API, its not guaranteed which UUID you will get 😛

torn robin
#

what's a username that's duplicate? I'd like to test it

keen compass
#

uh let me see if I can find you one

naive goblet
#

Can you even check that?

frigid ember
#

Basically I need to get block update events. Can anyone help? Example:
I place rail and I place another rail next to it, the rail nearby changes direction. How to get an event of that nearby rail?

naive goblet
#

Like I mean sites like namemc

frigid ember
torn robin
#

there's the list

#

first one I think of would be BlockPhysicsEvent

frigid ember
#

I was searching but I didn't find anything related

torn robin
#

you might have to listen to BlockPlace specifically and check nearby blocks

#

Next has 2 duplicates

frigid ember
#

I'll take a look at that, thank you!

naive goblet
#

Wth

#

It does lol

torn robin
#

also not sure what you mean by when you query mojangs API, its not guaranteed which UUID you will get :stuck_out_tongue:

#

assuming you have their UUID already, whichever name you get "Next" or "Next" doesn't matter?

#

while true, there is cases where you need the player name however and all you have is the UUID

keen compass
#

there is 2 profiles

#

the top one you will notice didn't change their name till 2020

#

the bottom one was able to have that same name before that happened

#

so, it does happen that players can have the same names but different UUID's 😛

torn robin
#

Just tested it, it's consistently one player

frigid ember
#

Okay, this might seem stupid, but how to broadcast a message to whole server?

torn robin
#

bukkit#broadcastmessage

keen compass
#

@torn robin its not recent they have the same names right now

#

it is an example that it is possible to happen

torn robin
#

wym?

#

Inkreased never had duplicate names

keen compass
#

if you look at the username history

torn robin
#

LockerBlocker (the original name for one of the accounts) made the account in 2015

#

The other person made their account I'm guessing 2020

#

the first account changed their name long before the other person even made their account

#

6/2/2016 they changed it to Godcreased

keen compass
#

there you go

#

oh wait

#

nvm

#

I can't read >>

#

stupid 1's

torn robin
#

I'm agreeing it's possible, next has duplicates

frigid ember
keen compass
#

there we go

#

that has an active duplicate

#

not sure if it is still possible to have duplicate names created

frigid ember
#

it's not possible

keen compass
#

but there is still players running around with duplicate names

naive goblet
#

@frigid ember yeah it’s an event which is ran often

frigid ember
#

7 times...

keen compass
#

anyways just some fun facts that most people don't really think about 😛

naive goblet
#

Don’t make some heavy checks and it should be fine

frigid ember
#

The problem is that I might make heavy checks

#

Anyway I'll try optimizing it

naive goblet
#

Heavy?

keen compass
#

depending on what you are doing you can do your stuff outside of the event

#

Oh, also it is possible that a player can end up with 2 UUID's with no name change history as well. Which most plugins that track players don't account for

#

this one is possible if you purchase an account, and it fails

#

and then you create it again 😛

naive goblet
#

Ngl it would be nice to have 2 uuids

keen compass
#

while payment is processing it doesn't prevent your use of the account

#

yeah, bit weird how you would explain how you have 2 UUID's XD

carmine eagle
#

Do any of you know a plugin that gives you points by playing different minigames a little bit like MC Champions or Mondays?

naive goblet
#

Frost ah yes

#

There is a bunch of plugins which could achieve that

keen compass
#

I am sure there is a way to handle it

#

just as far as I am aware most developers don't account for these glitches happening

#

or even just thinking that they are possible

frigid ember
#

How are you even supposed to deal with it?

naive goblet
#

Frostalf though the question is, is it worth handing it

#

I mean if it’s hypixe yes probs

grim halo
#

I didnt even know this was possible...

naive goblet
#

But I mean just having a casual server

keen compass
#

probably not since the odds of encountering the scenarios above is probably just as equal to it happening 😛

#

The duplicate name one was a problem a couple years ago

#

since there was like a lot of players running around with the same names

#

this caused problems with some plugins that used both UUID and player names

frigid ember
#

item duping here I come

keen compass
#

I mean technically it can still cause problems, just not common to see anymore

#

chat plugins for instance

#

can't cope with 2 players with the same name

#

which btw, 2 players with the same name can log into a server

#

just as long as the UUID's are different

frigid ember
#

good luck others trying to message/pay you

keen compass
#

Pretty much that is exactly what happened

#

one player would be pretty much a ghost

#

still existing in the server but can't really use commands

#

and others can't do commands to them

#

also the ban command doesn't work properly if you use the name

#

IE, only 1 player will get banned using the name

sturdy oar
#

Guys I need help with big O notation

keen compass
#

and then you are left with the other not being bannable still existing in the server XD

sturdy oar
#

Is it the same complexity to search for a value in an HashSet or for a key in an HashMap. If not why not

grim halo
#

Yes. The HashSet is essentially just the key tree of a HashMap

naive goblet
#

HashSet implements a HashMap though?

keen compass
#

HashMap is faster because keys are associated, HashSet member object is used for calculating hashcode which can be the same for two objects

#

so HashMap doesn't use Member objects for the keys, HashSet does

#

So one has greater odds of key collisions while the other doesn't

sturdy oar
#

I mean it's UUIDs

#

I'm saving them in a set

#

It's basically a set of player UUIDs that have an active animation

#

Then I remove them from the set when animation finishes

keen compass
#

@naive goblet HashMap implements Map, HashSet implements Set

#

so no they are both different

naive goblet
#

Hmm where was that

#

Perhaps not implements

grim halo
#

Ok but speaking if big O notation they are both the same. O(1)
How fast this operation is was not in question. Also the difference is negligible.

wraith thicket
#

HashSet uses a HashMap internally

naive goblet
#

Hmm yeah

sturdy oar
#

Also I am using a particular set

#

ConcurrentHashMap.newKeySet

grim halo
#

Why do you need a thread safe keyset?

sturdy oar
#

I have multithread animations

#

They start/end from other threads

#

So I think it's not safe to use a regular HashSet

keen compass
#

HashSet is not thread safe

grim halo
#

ConcurrentHashMap.newKeySet
@sturdy oar

sturdy oar
#

This is what I'm using

grim halo
#

If you dont have constant access from different threads its somethimes just better to sync with the main thread via the BukkitScheduler

#

I think get() is nonblocking but put def should be.

keen compass
#

for future reference

#

😉

grim halo
#

Ah nice. I kept a table myself that i made manually with the jmh but i dont have some of these implementations.

frigid ember
#

Limited pvp is server or client side?

grim halo
#

server side. Every damage event is calculated server side.

frigid ember
#

Ok so I can create plugin that removes that shitty pvp?

pastel nacelle
#

you? probably not

#

but one exists already

grim halo
#

I dont think i understand what you mean by "shitty pvp". Do you want to prevent ppl from attacking each other?

keen compass
#

I think they want the old mechanics

frigid ember
#

Yes

keen compass
#

However, I don't know which things it is specifically, but there is a couple things that the client does predict

#

so for that thing or two it can seem weird when changing to old mechanic style

#

other then that, very possible to do

pastel nacelle
#

there already exists a plugin for that

#

old combat mechanics

grim halo
#

Dont you just need to set the attack speed attribute at a high value?

frigid ember
#

I want to cancel rail rotations. I tried cancelling all BlockPhysicsEvent with setCancelled(true) but still that doesn't work as expected.
Any suggestions?

pastel nacelle
#

there is also some movement on paper's side to create a fork or a patch to restore it

frigid ember
keen compass
#

set the metadata tag for the orientation

grim halo
#

Or do you actually listen for swing or packets adn react to them

pastel nacelle
#

since the plugin is not an exact reproduction

#

metadata is unrelated to block state

frigid ember
#

@keen compass why it's impossible to cancel it?

pastel nacelle
#

metadata is the aborted fetus of something that was meant to become the PDC

#

i believe what you want to modify is called blockdata by bukkit

keen compass
#

set its shape

pastel nacelle
#

for whatever reason bukkit seems to invert the concept of data and state

frigid ember
#

I want to get BlockPlaceEvent and change those blocks manually, Physics events sends too many events for one block

keen compass
#

you don't need to cancel the event, just need to modify the blockstate as mention earlier

#

NBT works too, but probably best to stick with the API though 😛

frigid ember
#

Okay I'll do that

opaque swan
#

[16:15:12] [Server thread/WARN]: Unable to create attribute: null

#

How i can fix?

frigid ember
#

you know how little this narrows down?

#

Is this a full error message?

opaque swan
#

Yes

#

Is spamming

frigid ember
#

At least send first 5 lines

#

or to pastebin/etc

#

Make sure the plugin you're using is the same version as spigot

opaque swan
#

Okok

keen compass
#

just fyi

#

what you posted isn't an error

#

it is a warning

#

odds are, it isn't really going to affect what is going on in the server

spare frost
#

What's the material for the 6 sided wooden log in code
is there an enum for it in Material

sturdy oar
#

Yes

grim halo
#

Yes. i think its just OAK_WOOD

keen compass
spare frost
#

Its not there

#

@keen compass whats the name of it

grim halo
#

Are you on 1.8?

keen compass
#

You have to specify which type you want in 1.16

#

there is no generic

#

if you are using an older version it was just called LOG

spare frost
#

im one 1.12

grim halo
#

Then there is no enum for that

spare frost
#

How do I get it then

pastel nacelle
#

what do you want

#

this smells like an xy question

spare frost
#

I want

#

to get the 6 sided oak wood

pastel nacelle
#

what for

spare frost
#

The Material for it

keen compass
#

oak log is the generic in older minecraft versions

#

its name is simply Log

pastel nacelle
#

that doesn't answer the question

keen compass
#

or OAK_LOG

#

either one works

spare frost
#

Why does what im going to do with it matter

pastel nacelle
#

because this is clearly an xy problem and there is probably a better way to do what you want to do

spare frost
#

I want to detect when a player clicks it

#

I'm trying to get the Material so I can do .getType ==

keen compass
#

Just told you the material names for it

spare frost
#

its not appearing

#

im in version 1.12.2 btw

grim halo
#

In 1.12 there is no material for 6 sided logs

spare frost
#

The only thing with LOG in it is LOG and LOG_2

keen compass
#

yes

spare frost
#

which are different colored logs

keen compass
#

That is it

spare frost
#

no its not

keen compass
#

LOG is for OAK_LOG, SPRUCE_LOG, BIRCH_LOG, JUNGLE_LOG. Log2 is ACACIA_LOG and DARK_OAK_LOG

grim halo
#

You can use either the metadata byte or go over the MaterialData. I dont know how it was done back then.

spare frost
pastel nacelle
#

don't know if orientable was a thing back then but that's what you want to check

spare frost
#

@keen compass but does it automattically make it 6 sided wiht the texture?

keen compass
#

doesn't exist in 1.12

#

as stated earlier

#

you are stuck with what I told you

spare frost
#

It does exist dude

#

if its not in Material, where do I get it from then

dusky sigil
#

how can i make a straight line up of particles?

keen compass
#

if it isn't in the Material list, it doesn't exist

grim halo
#

@spare frost You can go with Block#getData()
It returns a byte that defines how the block looks like.

spare frost
#

@keen compass Bruv it does

#

in game it exists

#

in 1.12.2

pastel nacelle
#

broh

#

you aren't picking up what he's putting down

keen compass
#

it doesn't exist, however I know how you can get in the game however

#

but it isn't a real 6 sided log

#

you need to use the command block with a certain byte value and it will make it use the texture you are wanting

#

but as I said, the 6 sided log does not exist in 1.12

pastel nacelle
#

not as a distinct material

grim halo
#

Am i beeing ignored or just wrong?
You are on 1.12 so you dont have to worry about deprecation.
Just use Block#getData() to check if a placed Block is 6 sided log

pastel nacelle
#

myes

#

ideally you would use orientable

#

but i don't think that is a thing in 1.12

spare frost
#

I know, not as an enum in Material but I can still get it through code

pastel nacelle
#

then why are you asking for the material of it

spare frost
#

I already dropped that

keen compass
#

give @s minecraft:command_block 1 0 {BlockEntityTag:{Command:"setblock ~ ~ ~ minecraft:log variant=oak,axis=none",auto:true}} relevant command, however while although it has the texture of a 6 sided log, it is still a command block

pastel nacelle
#

you have already been told how to do what you want to do, by the way

spare frost
#

when I found out it wasnt possible in that way, I was like how else to I get it then

pastel nacelle
#

also what

#

how is that "still a command block"

spare frost
#

the id of it is 17:12

#

of 6 sided oak block

#

how do I reflect this in code?

grim halo
#

I dont think you need a command block to represent a 6 sided log.
Just get the data byte and check if its >12

spare frost
#

greater than 12 or equal to 12?

grim halo
#

Ok Kyrix im not giving you any advice if you ignore me. bye

spare frost
#

I'm asking u

#

im not ignoring

pastel nacelle
#

they already told you

#

twice

#

and you ignored em

#

now you reap wat you sow

spare frost
#

my bad

frigid ember
#

Hello Is There Away I Can Make It So My PuTTy Doesn't Go Inactive. I'm Trying To Run My Mc Server On There

spare frost
#

I didnt see it

keen compass
#

Generally it is wise to not argue with those you seek help from 😉

#

or ignore them

pastel nacelle
#

anyway

dusky sigil
#

how can i make a straight line up of particles?
anyone?

spare frost
#

I'm not

frigid ember
spare frost
#

but okay

pastel nacelle
#

if you cant handle dealing with bytes representing block state

#

update to 1.15

keen compass
#

I should have clarified, @pastel nacelle it is a command block until placed

pastel nacelle
#

that abstracts them into things like orientable

keen compass
#

however even when placed, the game still considers it an OAK_LOG

grim halo
#

@frigid ember Use Screen and let the server run in a seperate screen window

frigid ember
dusky sigil
#

its a warning

frigid ember
#

how to fix? @dusky sigil

spare frost
#

ill write up something then send code

dusky sigil
#

i dont know anything about intellJ

frigid ember
#

What is Screen?

vernal spruce
#

Linux version of running shit in different versions lol

#

Windows*

dusky sigil
#

@frigid ember Definition of screen (Entry 1 of 2)
1: a protective or ornamental device (such as a movable partition) shielding an area from heat or drafts or from view
2: something that shelters, protects, or hides: such as
a: a growth or stand of trees, shrubs, or plants
b: a protective formation of troops, ships, or planes
c: something that covers or disguises the true nature (as of an activity or feeling)
his geniality is just a screen
d(1): a maneuver in various sports (such as basketball or ice hockey) whereby an opponent is legally impeded or the opponent's view of the play is momentarily blocked
(2): SCREEN PASS

keen compass
#

screen is a way to separate processes without terminating them in your main shell screen

grim halo
#

Screen is a terminal multiplexer

#

Or what Frostalf said

vernal spruce
#

Basically allows you to run multiple servers at once for an instance

frigid ember
#

Can u make it so i understand? i'm a little dumb

#

okay

grim halo
#

You can think of it as a new console window.

frigid ember
#

how do i get "Screen?"

vernal spruce
#

Well might be time for you to learn linux if ur planning to use it

grim halo
keen compass
#

almost all linux distros have screen by default

frigid ember
#

alpine and older (headless) ubuntu versions don't

grim halo
#
  1. "apt-get install screen"
  2. "screen" and read
    Here are the basics
  • List active screens
    screen -ls

  • start new screen with <name>
    screen -S <name>

  • resume (or jump to) screen with name
    screen -r <name>

ctrl + C to exit active screen

keen compass
#

well shouldn't be using an outdated linux version 😛

frigid ember
#

if it's attached on some session and you're not able to attach it, use -d to deattach iirc

#

you don't have to write names if it's the only session

#

Thanks Once Again

#

btw one cheap hosting provider gives cheap servers but with old kernel and old system version. that sucks but it is damn cheap

#

so there are some occasions when you might have to use old systems

vernal spruce
#

More or less

spare frost
#

getData is deprecated

dusky sigil
#

how can i make a straight line up of particles?
So right now im thinking that this is hard and thats the reason no one is answering

vernal spruce
#

Because we dont use it anymore

dusky sigil
#

Is this a hard thing to do?

vernal spruce
#

What r u trying to do @spare frost

spare frost
#

Trying to see if a block is a six sided log block

#

there isn't an enum in Material for it

vernal spruce
#

So right now im thinking that this is hard and thats the reason no one is answering
@dusky sigil nope its just soo asked 1 google and u found the answer

#

Six sided?

dusky sigil
#

nah

#

i just want

#

a stright line

#

up

vernal spruce
#

Create a vector then draw a particle from start to finish with a runnable

spare frost
dusky sigil
#

that sounds fun

spare frost
#

Is there any other way I can do it without deprecation?

grim halo
#

That would only include oak wood

spare frost
#

yes

#

thats what I need

grim halo
#

You are on 1.12 There wont be an update ever so deprecation is not an issue.
I have search but everythin has led to the deprecated byte values

vernal spruce
#

Also can you explain again 6 sided log?

#

You mean stripped?

spare frost
#

when 1.12.2 was out and it was the official supported version, there wasnt a way?

#

@vernal spruce no no one sec

#

this

vernal spruce
#

Well 7smile said the truth i guess

#

Checking byte is only option

spare frost
#

Hmm

#

Strange

keen compass
#

just because something is deprecated doesn't mean it can't be used

#

or doesn't work

#

since you are on an old version, this isn't even relevant

#

second, I already told you 6 sided log in game is considered oak_log

spare frost
#

there is no OAK_LOG sir

keen compass
#

the only way you are going to identify it differently is by its byte value

spare frost
grim halo
#

Whoever asked for a straigth particle line. Here is an example i just wrote.

  public void particleLine(final Location from, final Location to, final double delta) {
    final World world = from.getWorld();

    if (world != to.getWorld()) {
      throw new IllegalArgumentException();
    }

    final Vector deltaVector = to.toVector().subtract(from.toVector());
    final double distSquared = deltaVector.lengthSquared();

    deltaVector.normalize().multiply(delta);
    final Vector stepVector = deltaVector.clone();

    while (stepVector.lengthSquared() < distSquared) {
      world.spawnParticle(Particle.CLOUD, from.clone().add(stepVector), 1);
      stepVector.add(deltaVector);
    }

  }

@dusky sigil i think

keen compass
#

oak_log is the default type in 1.12, it has an id of 17 with a byte value of 0

spare frost
keen compass
#

look for LOG_OAK

spare frost
#

Nothing

keen compass
#

well its is LOG then

#

and just going to have to use the byte value to determine the types

spare frost
#

so am I doing it right

grim halo
#

The while should probably be replaced by a for loop but im too lazy to do the math rn

keen compass
#

Log2 is for the 2 other types I listed earlier

spare frost
#

should the btye value be 12?

#

byte

#

im only cheking for the oak variant

keen compass
#

I am not entirely certain of the byte value

#

but that appears to be correct

#

I don't have way currently to verify that as I don't really mess with old versions of MC nor really keep that stuff around

spare frost
#

ok

keen compass
#

the only downside is that the moment it is picked up if I recall

#

it will revert

#

so that is something you are most likely going to have to handle

dusky sigil
#

@grim halo thanks for doing all that FUN stuff yourself (:

keen compass
#

also it will revert on being placed as well too not entirely sure on that

#

just have to handle changing it back is all

dusky sigil
#

do i import the bukkit vector or the java vector?

keen compass
#

Bukkit vector

dusky sigil
#

kay

keen compass
#

Java vector is just an array

#

doubt that is what you want 😛

grim halo
#

The bukkit vector. Its a geometrical vector (x, y, z)
The java vector is more of a stack thing (i think. Never rly used it)

dusky sigil
#

doesnt a vector also have speed?

#

more so

#

a direction

#

?

grim halo
#

A vector can represent speed

vernal spruce
#

java

#

Vector(int initialCapacity, int capacityIncrement) Constructs an empty vector with the specified initial capacity and capacity increment.

grim halo
#

Its a arrow thats points in a direction. The lenght represents the speed and the direction... well represents the direction of the speed

vernal spruce
#

bukkit Vector​(double x, double y, double z) Construct the vector with provided double components. Vector​(float x, float y, float z) Construct the vector with provided float components. Vector​(int x, int y, int z)

keen compass
#

Vectors are trajectories of an object

#

it does account for the speed of an object

#

so you can use vectors to know where an object will be ahead of time 😉

frigid ember
#

Also implies that the 4 ARMOR slots are accessible.
yet the size is 5 and not 9?

#

Anyone know why I can't access the 4 "crafting" slots?
Well I just iterate through the opened inventory but it's as if it won't interact with those 4 🤔

keen compass
#

you have to interact with those 4 specifically. Also the reason it doesn't show 9 is because there is only 5 slots for crafting

frigid ember
#

Also implies that the 4 ARMOR slots are accessible.

#

That's not the point anyway

keen compass
#

the reason it implies that the armor slots are accessible is because the only time you will have the 4 slot craft matrix is in the player inventory

dusky sigil
#

how can i get an entity location without getting the x y and z or is there no way to do that?

keen compass
#

entity.getLocation()

hardy cedar
#

guys fast question im trying to do that


    @SuppressWarnings("deprecation")
    @EventHandler
    public void Command(PlayerCommandPreprocessEvent e) {
        Player p = e.getPlayer();
        if(e.getFormat().equals("queue leave")) {
            p.getInventory().setItem(3, playerhead);
        }
}
dusky sigil
#

i want to do something like this

#

ZombieLoc = new Location(Zombie.getLocation());

#

but it doesnt work

keen compass
#

because new Location doesn't take a location

frigid ember
#

use Zombie.getLocation().clone()

keen compass
#

^

frigid ember
#

the reason it implies that the armor slots are accessible is because the only time you will have the 4 slot craft matrix is in the player inventory
@keen compass why would iterating through the top inventory of the view not iterate through those 4?

grim halo
#

You can create a new location with the same values with .clone() as Location implements Cloneable

dusky sigil
#

like this?

#

ZombieLoc = new Zombie.getLocation().clone()?

#

cause that doesnt work

grim halo
#

new implies the call of a constructor.

frigid ember
#

get rid of the new keyword lol

dusky sigil
#

ZombieLoc = Zombie.getLocation().clone()

#

doesnt work too

frigid ember
#

Location ZombieLoc = Zombie.getLocation().clone();

grim halo
#

is Zombie the instance of some entity?

dusky sigil
#

Cannot make a static reference to the non-static method getLocation() from the type Entity Main.java /Boss/src/me/ronsiv/Boss line 68 Java Problem

#

yea

#

its a entity

#

wait

#

waitt

#

sorry

vernal spruce
#

oh boy static location hmm

dusky sigil
#

i was being a idiot

#

i refrenced the wrong one

frigid ember
#

lmeo

grim halo
#

@hardy cedar getFormat isnt a thing anymore. Are you on 1.8?

dusky sigil
#

can i add 10 in y for a location?

#

for example location x is

#

x y z

#

and location x2 is

frigid ember
#

So getting the top inventory from the view won't do it?

dusky sigil
#

x y +10 z

frigid ember
#

Huh, thanks I guess

grim halo
#

Yes you can add and subtract values from xy and z as you like

dusky sigil
#

how do i do such magic?

lone fog
#

location.add

dusky sigil
#

witchary

grim halo
#

If you want to add only 10 in y direction you call
loc.add(0, 10, 0)

hardy cedar
#

@hardy cedar getFormat isnt a thing anymore. Are you on 1.8?
yup but ty i could fix it

dusky sigil
#

@grim halo in the code you sent, whats the double delta?

grim halo
#

Its the distance between each point

dusky sigil
#

oh

#

so if i make it zero

#

will it just be a stright line

#

i imagine that would be laggy tho

grim halo
#

So smaller values mean a more defined line but more performance impact. If you make it 0 then the distance between each
point is 0... so it will never reach the end

dusky sigil
#

now i am curios

#

curia[piotgrtsdzxhyt

grim halo
#

And freeze the server

dusky sigil
#

that sounds

#

fun

grim halo
#

because im dumb and write a while loop instead of calculation something with a for loop

dusky sigil
#

so

#

if i do 1

grim halo
#

then you would only have an arithemtic error bc you are dividing by 0

dusky sigil
#

its a particle for each block?

grim halo
#

1 = 1 Block.
I think a value between 1 and 0.4 is fine

dusky sigil
#

aight

#

thanks

#

and

#

how do i make the particles stay for an amount of time?

grim halo
#

What version are you on?

dusky sigil
#

1.15.2

#

or just 1.15

grim halo
#

I had something in mind that there is a particle lifetime but im not quite sure... let me look it up

dusky sigil
#

so im doing this

#
ZombieLocEnd = ZombieLoc.add(0, 10, 0);
 particleLine(ZombieLoc, ZombieLocEnd, 0.4);```
grim halo
#

Ronsiv the first letter of a variable should be lower case

dusky sigil
#

and it doesnt work

grim halo
#

Yes because end and start are the same location

dusky sigil
#

what

#

what do you need them for

#

oh wait

#

no i added 10 to zombielocend

grim halo
#

You need to clone one and add 10 to it

dusky sigil
#

whats wrong with doing 2?

#

also, how do i do that?

#

do i add .clone() to zombielocend

grim halo
#

zombieLocEnd = zombieLoc.clone().add(0, 10, 0)
Otherwise you just put the loc in a new variable and add 10 to it. So both variables point to the same Object

frigid ember
dusky sigil
#

well

#

if i had to guess

#

its because youre loading chunks

grim halo
#

@frigid ember Did you pregenerate the world?

frigid ember
#

...

#

its a small spawn

dusky sigil
#

sorry im just throwing a guess

frigid ember
#

should not lag. Its 1.12.2

dusky sigil
#

lol

frigid ember
#

my 1.16 server is not having any issues

#

but thats not the problem

grim halo
#

@frigid ember Did you pregenerate the world?

silent shuttle
#

simply reduce the view-distance

grim halo
#

If yes -> run your server once with the --forceUpgrade parameter. Otherwise the server has to update the chunks live.

frigid ember
#

no

silent shuttle
#

ok

grim halo
#

No dont just reduce the view distance... its a chunk loading problem and the server should be able to handle that

frigid ember
#

it was lagging on 4 render distance

silent shuttle
#

ah ok

#

i thought the server lags

frigid ember
#

they were loaded few times

#

and its just a spawn

silent shuttle
#

how much big

grim halo
#

If yes -> run your server once with the --forceUpgrade parameter. Otherwise the server has to update the chunks live.

frigid ember
#

200x200 around

silent shuttle
#

hmm

frigid ember
#

im not updating from 1.12.2

#

maybe if mojang add multithreading and lag fixes for game

#

sure

pastel nacelle
#

being largely on a single thread is not the issue behind performance

silent shuttle
#

1.16.1 is also optimized on server-side

frigid ember
#

I will pay 5$ for someone who fixes it

pastel nacelle
#

the issue behind performance is that nobody optimizes anything

frigid ember
#

its not much

crimson sandal
#

1.16.1 runs really well

frigid ember
#

but its something

silent shuttle
#

yeah

frigid ember
#

yeah for 500 player server....

pastel nacelle
#

in 1.16 though mojang has indicated interest in actually putting some time into optimizing things

frigid ember
#

But we have entity lag yay

pastel nacelle
#

they actually did a pretty nice optimization pertaining to chunk data

#

it's not much, but it means they are moving in the right direction

grim halo
#

So you are on 1.12.2
Do you have high hdd usage? Does your server run on an SSD?

frigid ember
#

SSD

#

and its like 5%

#

XD

#

and tps are good ram

#

what is good

#

cpu too

#

i mean usage

silent shuttle
#

@frigid ember get a NVMe ssd

frigid ember
#

its shared host

silent shuttle
#

are u using a hdd

frigid ember
#

SSD

#

i said

silent shuttle
#

ok

grim halo
#

Wtf Kshitij... you dont need an NVME for minecraft. SSD is more than enought

pastel nacelle
#

most competent shared hosts provide nvme

silent shuttle
#

its a shared host. u never know how much the cpu load is, and u also don't know how much cpu you have

frigid ember
#

im happy with SSD and ryzen

silent shuttle
#

they didnt "gurantee" you

crimson sandal
#

A shared host and you have 500 players?

silent shuttle
#

lol

frigid ember
#

its just for testing

#

to dont waste money lol

silent shuttle
#

weird, my message got deleted

frigid ember
#

its because of "spam"

silent shuttle
#

ah ok

#

"repeated messages"

frigid ember
#

i blocked bot 😂

silent shuttle
#

🤣

grim halo
#

Ok lets try to narrow down the problem.
There are essentially 3 things that can be wrong here.

  1. You dont heve the necessary IO speed.
  2. Your world version is not compatible with your server version and the chunks need to update
  3. Some plugin hooks into the ChunkLoadEvent and delays it
crimson sandal
#

Yeah if it's just a test server, I would disable all plugins and see if you still have the problem, to start

silent shuttle
#

the only thing i can see is that, it is a "shared host", where we never know how much of cpu usage is available for the server

frigid ember
#

okay

silent shuttle
#

but weird

frigid ember
#

should i just rename plugins folder to plugins2

silent shuttle
#

ur other world loads fine

frigid ember
#

should disable?

silent shuttle
#

yeah

#

rename to plugins2

frigid ember
#

ok

dusky sigil
#

@grim halo alright the particles work now but how do i make it so they live more?

grim halo
#

Schedule a BukkitRunnable

dusky sigil
#

that sounds like a lot of fun

#

you'll have to elaborate

silent shuttle
#

BukkitRunnable allows to make timers (loops) and delayed tasks

#

i had seen a tutorial but i forgot

dusky sigil
#

how do i implement one?

silent shuttle
#

give a sec

#

it is very fun

dusky sigil
#

it does sound compelling

grim halo
#
    final int tickDelay = 10;
    Bukkit.getScheduler().runTaskLater(plugin, () -> {
      System.out.println("This will run after 10 ticks.");
    }, tickDelay);

Here is a example

silent shuttle
grim halo
#

This example is a bit more beginner friendly i think

    final int tickDelay = 10;
    Bukkit.getScheduler().runTaskLater(this, new Runnable() {
      @Override
      public void run() {
        System.out.println("This also runs after 10 ticks.");
      }
    }, tickDelay);
silent shuttle
#

ok guys, good night

frigid ember
silent shuttle
#

gotta go

frigid ember
#

update: issue occurs on clear server without any plugins

silent shuttle
#

ok

#

so its the world problem

frigid ember
#

?

#

really\

silent shuttle
#

and unrelated to the cpu usage

#

lol

bold anchor
#

Not using lambdas, ew.

crimson sandal
#

Or a hardware issue?

silent shuttle
#

no

frigid ember
#

no

silent shuttle
#

other worlds load fine right? @frigid ember

frigid ember
#

it was happening on other hosting

crimson sandal
#

Oh do they

silent shuttle
#

ok gn guys

frigid ember
#

i thinkkk

#

gn

silent shuttle
#

ty

frigid ember
silent shuttle
#

good day

grim halo
#

If it was also happening on another host then the world is not compatible with your server version

frigid ember
#

how can i fix the world?

grim halo
#

@frigid ember That code is unreadable. Try early escaping

frigid ember
#

??

grim halo
#

eg

   if (!CHFenabled) {
      return;
    }
frigid ember
#

why return?

#

oh its !

#

i can read it can u pls read it too?

chrome lark
#

It's an NPE, meaning that something you're trying to call a method on is null

grim halo
#

Write readable code and i will be glad to read it and give you advice.

chrome lark
#

looks at the map you created

#

or, well, didn't create

grim halo
#

ah badwordcount...

#

the classic public static HashMap

frigid ember
#

what?

crimson sandal
#

This is driving me crazy! Trying to run CraftBukkit from source, after running BuildTools and applyPatches I'm getting this error when trying to run Main 🤔

chrome lark
#

you never init the field, it's null

bronze acorn
#

hold on you're trying to do what now lol

frigid ember
chrome lark
#

We've told you

crimson sandal
#

hold on you're trying to do what now lol
@bronze acorn me? 😄

chrome lark
#

You have a field which you haven't set, hence it's null, hence the NPE

#

Go create the map

frigid ember
#

badwordCount?

chrome lark
#

yes

pastel nacelle
#

basically (again); learn java and try again

bronze acorn
#

yeah james

#

xd

grim halo
#

I swear petakoumak just called 2 ppl "noobs" today/yesterday... because they asked something.

crimson sandal
#

Yeah I'm making a PR to CraftBukkit and I made a new project to make some new patches but I can't get it to run with a fresh BuildTools

grim halo
#

Those errors look like the obfuscation mapping might be off

frigid ember
#

public static HashMap<String, Integer> badwordCount = new HashMap<>(); ?

chrome lark
#

can you see the NMS sources in the project?

#

yes

crimson sandal
chrome lark
#

The fact that it's all red....

crimson sandal
#

That's just the version control, because they're not staged?

chrome lark
#

Reimport the maven project, or try the famous "reset caches"

#

all of the commits should be fully applied by the point you come to edit it

crimson sandal
#

Huh? NMS code isn't going to be committed is it?

bold anchor
#

It will be to a sub repo for patches and stuff.

subtle blade
#

NMS code will never be staged nor committed

#

That’s normal

crimson sandal
#

Yeah that's what I thought

#

Idk what's causing this error in PiglinAI though, it doesn't happen in my older instance of BuildTools hmm

bold anchor
#

huh

crimson sandal
#

All I've done is run BuildTools --rev 1.16.1, run applyPatches and then imported Bukkit & CraftBukkit into IntelliJ as maven projects

#

Oh and mvn install

#

on both

frigid ember
#

Where can I find how rails work?

#

I need the actual algorithm

#

So InventoryCloseEvent doesn't get called when a player closes their own inventory?

#

sucks

vernal spruce
#

i think it does

bold anchor
#

Player inventory is very much clientside most of the time

vernal spruce
#

sort of

#

we still have full acces over it

frigid ember
#

Welp, this:

public void onInventoryClose(final InventoryCloseEvent event) {
  System.out.println(event.getView().getType());

doesn't get called with the player inventory xd

bold anchor
#

It won’t tell you you opened it either

frigid ember
#

iirc it only gets called when chests/furnaces/etc are open

#

you're out of luck

pastel nacelle
#

the player inventory is considered to be always open by the server as far as i understand

frigid ember
#

if you want one key shortcut like "e", you can use "f" key which will swap hands, but I don't recommend that

vernal spruce
#

imagine if we had acces to keypresses

#

ma gawd

keen compass
#

to an extent you technically do

#

just not through the API

vernal spruce
#

i mean overall as a server without forge

keen compass
#

you don't need forge

#

there is packets that contain key presses

vernal spruce
#

is it?

#

well that sounds intriguing

keen compass
#

the only limitation is that you can only capture the key presses that are defined and not just any arbitrary key press

vernal spruce
#

ahh thats what i meant

#

detect buttons like r b c v

keen compass
#

so that means if someone maps the forward key to say the up arrow, it still shows it as a w key press in the packet

vernal spruce
#

basically any key press

livid spruce
#

Question, however, one can method as Boolean.parseBoolean(); in a Generic Class ? So I have a string and I want to make it a T. Casting wouldn't work in this context i think?

tacit trellis
#

How can I get EntityPlayer from GameProfile?

vernal spruce
#

Dont think you can

#

As that would need that player to be online in the first place

#

but i might have some code

pastel nacelle
#

you can but it involves nms fucknuggetry

vernal spruce
#

let me check

keen compass
#

@tacit trellis get the UUID to fetch the relevent EntityObject

pastel nacelle
#

iirc loka has a an util for that

vernal spruce
#

1 min

tacit trellis
#

But the GameProfile is a NPC

keen compass
#

NPC's still have UUID's

vernal spruce
#
    private Location loc;
    private QuestsMain pl = JavaPlugin.getPlugin(QuestsMain.class);
    public Npc(Location loc,String nume) {
        this.loc=loc;
        MinecraftServer server = ((CraftServer)Bukkit.getServer()).getServer();
        WorldServer world = ((CraftWorld)loc.getWorld()).getHandle();
        GameProfile gp = new GameProfile(UUID.randomUUID(),ChatColor.translateAlternateColorCodes('&', pl.getConfig().getString("Npc.Nume")));
        gp.getProperties().clear();
        gp.getProperties().put("textures", new Property("textures","
"));
        EntityPlayer npc = new EntityPlayer(server,world,
                gp,
                new PlayerInteractManager(world));```
frigid ember
#

Aren't the key presses processed client side and the packets bounded to those are sent appropriately to the server?

vernal spruce
#

more exactly

#

EntityPlayer npc = new EntityPlayer(server,world, gp, new PlayerInteractManager(world));

tacit trellis
#

well I tried this and it gave me NullPointer ((CraftPlayer) Bukkit.getPlayer(profile.getName())).getHandle()

vernal spruce
#

i kinda spooned you the code above

tacit trellis
#

oh

livid spruce
#

Question, however, one can method as Boolean.parseBoolean(); in a Generic Class ? So I have a string and I want to make it a T. Casting wouldn't work in this context i think?

vernal spruce
#

Npc packets are quite annoying ngl

tacit trellis
#

Why new PlayerInteractManager(world))?

vernal spruce
#

after like figuring out how to do it,the guy was like 'i dont want it anymore because it flashes sometimes in the tab'

#

Why new PlayerInteractManager(world))?
@tacit trellis because PlayerInteractManager playerinteractmanager

#

the perameter is a interactmanager

#

wich has this parameter

#

public PlayerInteractManager(World world) {

tacit trellis
#

I did this: java EntityPlayer npc = new EntityPlayer((MinecraftServer) p.getServer(), (WorldServer) p.getWorld(), profile, new PlayerInteractManager((World) p.getWorld()));

vernal spruce
#

p.getworld is a normal player?

tacit trellis
#

yes

vernal spruce
#

then just do p.getworld

#

no need to cast it

tacit trellis
#

it need WorldServer not World

vernal spruce
#

ahh yeah

#

nvm then

#

welp ur right

#

forgot i get worldserver

#

WorldServer world = ((CraftWorld)loc.getWorld()).getHandle();

tacit trellis
#

(WorldServer) p.getWorld() doesnt work?

vernal spruce
#

you need the handle

tacit trellis
#

true

vernal spruce
#

not the world itself

pastel nacelle
#

or rather, you need the world itself, not the bukkit wrapper

vernal spruce
#

depending how you look at it

frigid ember
#

how rails work guys?

vernal spruce
#

what you mean

frigid ember
#

the actual algorithm which rotates the rails correctly after you place it

tacit trellis
#

How do I cast p.getServer to MinecraftServer?

vernal spruce
frigid ember
#

that doesn't answer anything

vernal spruce
#

MinecraftServer server = ((CraftServer)Bukkit.getServer()).getServer();

#

It just does a physiccheck when a block is placed

#

and checks adjacent block

frigid ember
#

Well I know

vernal spruce
#

no algorithm or shit

frigid ember
#

(it's retextured rails)

vernal spruce
#

Yeah u should use normal textures when asking for advice

#

i guess

frigid ember
#

@toxic pine stop

wraith thicket
#

?ban @toxic pine

worldly heathBOT
#

🔨 Banned 584764082163286028 indefinitely

vernal spruce
#

and gone

pastel nacelle
#

shouldn't you include a ban reason

vernal spruce
#

dont think it matters

wraith thicket
#

You guys are my proof 🙂

rare prairie
#

makes no sense for these peoples

deft epoch
#

Hey! I ran /version on my server and got this response

#

19.07 23:34:49 [Server] Server thread/INFO This server is running CraftBukkit version git-Spigot-8fc58f1-50484a6 (MC: 1.16.1) (Implementing API version 1.16.1-R0.1-SNAPSHOT)
19.07 23:34:49 [Server] Server thread/INFO Checking version, please wait...
19.07 23:34:49 [Server] Thread-27/INFO You are 91 version(s) behind

pastel nacelle
#

it makes sense because when they appeal 2 years from now nobody will remember why they were banned lol

deft epoch
#

How do I update spigot?

wraith thicket
#

?bt

worldly heathBOT
vernal spruce
#

@pastel nacelle im confident md has trust in his moderators

pastel condor
#

🔨 Banned 584764082163286028 indefinitely
Thats a very long time.

wraith thicket
#

Good thing I'm a junior moderator 😄

vernal spruce
#

also i think cafebabe is logging us 👀

pastel condor
#

👀

crimson sandal
#

Lol what did I miss 😄

wraith thicket
#

And reporting to NSA btw

vernal spruce
#

but were from EU though

wraith thicket
#

But if you wear a tin foil hat, you'll be protected

quick arch
#

not from Choco

cinder monolith
#

hey there I

#

I'm playing on a server which has spawn world as well as survival world.

#

whenever trying to exit nether portal from nether, we are spawning in a void world instead of survival world.

#

does anyone know how to fix it?

vernal spruce
#

There is a plugin involved for multi world

#

Are you using multiverse?

cinder monolith
#

yes

#

multiverse-core

vernal spruce
#

Checked config options for some kind of "use worlds nether"

#

As you have 2 normal worlds but only 1 standard nether world

cinder monolith
#

yes

vernal spruce
cinder monolith
#

thanks

crimson sandal
#

Oh wow, I just updated to IntelliJ 2020 and it has a new font and it can parse JavaDoc inline

#

That's gonna take some getting used to

pastel nacelle
#

ew

rare prairie
#

inline methods is ugly

crimson sandal
#

You can toggle them, guess it's useful to see what the JavaDoc will look like

#

Although the font size looks huge now :S

rare prairie
#

thats why I don't use Intellij

#

so much feature

#

and also unnecesary (for me)

pastel condor
#

I really like eclipse and intellij

crimson sandal
#

I used to use eclipse but IntelliJ just takes my productivity to the next level

pastel condor
rare prairie
#

Its own decision what we can use

crimson sandal
#

I get IntelliJ Ultimate edition free through University too 😛

rare prairie
#

I got MS Paint for programming lessons

frigid ember
#

I got IRL notepad for notes, vim for editing, netbeans for IDE (eh
I was lazy to set up vim), gimp for image manipulation
I have somewhere a graphic tablet but it's easier to use old notepad
(oops it's not #general sorry)

crimson sandal
#

Well, anyone can get IntelliJ for free now, if they have a student email

frigid ember
#

isn't intellij open source?

crimson sandal
#

They offer an Ultimate edition with additional features, for Hibernate and Spring support etc

agile whale
#

I switched from eclipse to intellij and intellij is 20x better

quick arch
#

isn't intellij open source?
Community only

dusky sigil
#

I want a mob to tp to a random spot within a area, how can i do that?

crimson sandal
#

I can't tell if I like this font, even after I've made it smaller

dusky sigil
#

thats pretty smol

agile whale
#

Which part are you unsure about, teleporting the mob or figuring out the random location?

dusky sigil
#

the random location

#

also making sure that

#

yknow

#

there isnt a block over there

crimson sandal
#

And lol, updating IntelliJ fixed that issue I was having running CraftBukkit

agile whale
#

Just use random to create a random set of coordinates

odd knoll
#

Sometimes intellij will just randomly flip out. Been fine for me for a while now tho.

dusky sigil
#

and how do i check if that block isnt already a block?

agile whale
#

Find the highest block at that location and teleport them there

#

Or just iterate through all blocks on the y coordinate until you find air

dusky sigil
#

hmm ok

#

wait

#

sure i can gen random coordinates

#

but i want it to be custom

#

so should i add a number to a location?

#

look at that

#

i answered my own question

pastel nacelle
#

'random' isn't very descriptive

#

are you talking about different distributions or something