#help-archived
1 messages · Page 3 of 1
as long as it semi works
how to find out by nickname a licensed account or not
I'm just wondering if someone could explain to me quickly why IntelliJ is recommending me putting @NotNull before the method, (I wrapped in asteriks)
*@NotNull*
public static Boolean doesSenderHavePermission(@NotNull CommandSender commandSender, String permissionNode){
if(!commandSender.hasPermission(permissionNode)){
TextComponent message = new TextComponent(ChatUtils.colorize(FileManager.GetStringFromFile("config.yml", "Messages.NoPermission.Message")));
if(message.getText().isEmpty())
return false;
String hoverMessage = ChatUtils.colorize(FileManager.GetStringFromFile("config.yml", "Messages.NoPermission.Hover").replace("{Node}", permissionNode));
if(!hoverMessage.isEmpty()){
message.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder(hoverMessage).create()));
}
sendMessageToSender(commandSender, message);
return false;
}
return true;
}```
Cheers @fluid basin
what
isn't the array a primitive too since it's O(1)?
Arrays are not primitives, no
an array isnt a primitive as it can be null, even an array containing primitive elements
An array can contain primitives, but the concept of an array is not primitive
oh
just say that you don’t know. why ask why why
UUIDs are not randomly generated with online-mode=false
They are type 3 UUIDs based on the username that joins.
I just need to know. friend asked to know the nickname "KoHfeTkA" already taken?
So if I join an online-mode=false server as 'mbaxter' I will always have the same uuid there
wonky
Hi was hoping that u could help me with adminshop, can u?
Does anyone know why EntityWithers are invisible if you've extended over them?
probably some entity id registration at a guess
perhaps a large increase in traffic/covid
It's been slow all day for me too @iron ravine
https://www.spigotmc.org/threads/directleaks.427265/#post-3743089 can a staff delete this?
report the thread, this isnt the place to get staff to remove or delete things
Oh hey it's that site that injects obfuscated, malicious code into its downloads! (I got bored and took one apart)
They used to just inject a remote killswitch for their plugins but now it's something far more detailed that I haven't bothered to dig into much yet.
So, from the perspective of providing help in the help channel- don't download from there, it's malicious.
I have the some version of their Anti-Piracy source code 👀
hmmm how can I get the time left in a BukkitRunnable
as an example count down when there's 10 seconds left
Any spigot builds for 20w14a?
what are you basing your time off of, as in do you know exactly how long this bukkit runnable will take each time? or is it varying
I know each time
if you dont, what is your idea of "time" for the task being run
ticks
right
are you running a loop, or is your runnable soley for the purpose of doing a countdown
new BukkitRunnable() {
@Override
public void run() {
giveItem();
}
}.runTaskTimer(this, delay, period); //Delays in ticks
like this
I'm a bit new to Java programming atm so I apologize
private int time = 10;
plugin.getServer().getScheduler().runTaskTimer(plugin, ()->{
if(time <= 0) //give item
}, 0L, 20L);
looks good to me ^^
make sure to make it a bukkit task tho
So you can also cancel the scheduler so it doesn't run forever
It is the same time.
oh interesting
public abstract class Countdown {
private int time;
protected BukkitTask task;
protected final Plugin plugin;
public Countdown(int time, Plugin plugin) {
this.time = time;
this.plugin = plugin;
}
public abstract void count(int current);
public final void start() {
task = new BukkitRunnable() {
@Override
public void run() {
count(time);
if (time-- <= 0) cancel();
}
}.runTaskTimer(plugin, 0L, 20L);
}
}
new Countdown(time, plugin) {
@Override
public void count(int current) {
}
}.start();
This is the first spigot link I found when researching on google.
You will find most of your questions if not all your questions on spigotmc.org
Anyone know why some mobs are spawning like this, frozen, and can only be hit once?
huh?
how can i make them have AI then
any nice sqlite library out there?
https://www.spigotmc.org/threads/how-to-sqlite.56847/ First link I found on google for spigot
https://github.com/CyR1en/FlatDB
It uses H2 but it's a flatfile DB and easy enough to use for noobs like myself when it comes to SQL
H2 itself thou makes your jar thicc so it's a give and take
That library looks nice!
yeah it uses classes to make tables
public class AxesTable {
@Column(autoIncrement = true) private int id;
@Column(primaryKey = true) private String uuid;
@Column(defaultValue = "0") private int current_exp;
@Column(defaultValue = "0") private int current_level;
}```
Don't really want to depends on other plugins tho
That is so chill 😄
im not too good with sql so my queries are jank af but it's functional mostly thanks to this xD
I honestly need to find a nice SQL library
I have been working with Apache cayenne
https://cayenne.apache.org I love this so much
What library is old @frigid ember ?
However it is kinda of a pain to setup.
ahhh xD
not sure about relations. I can ask ethan but I just have a table for each of my skills with the players UUID's as the primary key
I wanted a standalone dB file so I guess sqlite is the way to go
For simple DB it's nice for me to use since I don't have too much time to dedicate to making sure new fields exist/get added etc. This just handles it for me xD
diamonddagger im no sql/db genius but quite certain your queries can highly benefit from making them relations rather than standlone tables, in terms of caching results
I shall look into the source code more, I am sure I can find it
I'm not much of a database expert, ethan highkey made this library just so i can have an easier time with it and focus my time on other areas xD
Once I move out of beta I plan to go and start recoding chunks and cleaning things up
Eventually moving away from FlatDB to something else
Yeah makes sense
Im running a custom fork that removes guava as a dep since spigot i think contains it natively so it is just bulk on the jar
just browsed through flatdb, i dont think it has relational support? is that the point its supposed to be "flat"
that kinda went over my head
Yeah...
Yeah, but you probably can expose the driver since it runs using h2 natively to add your own
one to many relations are so powerful and nice tho xD
many to many.....
and many to many
for player -> skills though yes
got a question actually, most/all of my dev work is outside mc, so i got a question about version support
is viaversion the go to plugin for multiple version support
or do many servers have custom versions of that
Yes and no. There is via version and viarewind. (Forward and backwards compatibility respectively). Almost all servers that have multiversion support have those and not custom ones. But they can offer issues in between versions so the experience isn't uniform across all versions even with those plugins
gotcha, thank you
There is probably a way where you can make a spigot.jar support versions 1.8+
when im trying to install JRE8 which thing should i download
I think the bot got them
Hey i have a problem
I cant connect to my server
I have a hyper fall server (same as bungee but 1.16 support) and a spigot server as lobby to connect but it doesnt
anyone good with litebans or have customized litebans?
ive got the jdk-14 what do i do from there
ive dowloaded a file jdk-14 then what do i do
Hi there,
i'm making a plugin that use NMS and i got a problem, i want to make my NPC moving at a player location.
I try this but not working and i don't know why
Constructor<?> packetPlayOutEntityConstructor = getNMSClass("PacketPlayOutEntity$PacketPlayOutRelEntityMove").getConstructor(int.class, short.class, short.class, short.class, boolean.class);
Object packetPlayOutEntity = packetPlayOutEntityConstructor.newInstance(how_get_entity_id_here ?, (short) location.getX(), (short) location.getY(), (short) location.getZ(), true);
sendPacket(player, packetPlayOutEntity);```
i don't know how to get my npc ID
and i don't know if it's the right way to dot it
if you have an solution ping me i gonna sleep, thx
?ban @inland cosmos Ban evading
🔨 Banned 365558671108997142 indefinitely
@sharp nebula You have to spawn the entity first...
Then use that entity id to send the move packet
@sharp nebula that's...not what that means
entity ids are pre-defined for each entity type
Then what is he looking for
He's looking for the entity's id when they are spawned in
i.e. player.getEntityId() something like that
It shows in console when you join the server
Yes but it return UUID
@quick arch i need an int not an UUID that why i'm block. Mby i miss something that i don't undertsand (first time i use nms)
Idk if this is really spigot related, but I seem to have an issue exporting a library. In my class path in intellij I have it checked and scope is compiled. Is there something Im missing that I need to do to include a library with my plugin?
Any help is appreciated 🙂
gradle or maven or no>?
Maven
what library?
JFreeChart and JFreeCommon
Also just more info, I also include each libraries in the artifact section as well.
So they're included with the Artifact and Module Dependencies
@frigid ember i gonn a try this tomorrow thx for the help
Okay a bump... I decompiled the jar file and I can see that the library is indeed being exported with the plugin. Anyone have any ideas why this may not be working? I've been on this for 3 hours and I'm literally dying.
I think I need to initialize the library jars or something.
You haven't actually described the issue yet
My issue is that when the plugin is ran, it cant find the libraries classes
Im getting a java.lang.NoClassDefFoundError
org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: org/jfree/data/category/CategoryDataset
And is that class in that position?
Yes, it was part of a constructor of the same library. I set it to null so it can skip it and see if any other objects come up with that exception and the next one does as well.
I tried some example code from there website, and same thing... When the jar file is loaded, do I need to manually initialize the libraries jar? I can't understand why I can access the classes, since they are indeed being exported
Sorry I wanted to report it to Discord's trust and safety team
what is the best claim plugin?
oh damn
They don't give a crap unless its serious
basically if the problem can be solved by blocking/banning they dont care
Spigot likely just needs a discord hook
so if they decide to join it's just more work for them.
and ban on them.
It's a shame servers cant blacklist image hashes
You could, but you'd need a bot specifically for that kind of thing
I guess that won't really help, I mean someone how uses so many vpns just for fun is surely able to to code a program to change one random pixel of the image to a random value :/ @zenith palm
It does
^ only works on media
can someone tell me what the best land claiming plugin is?
It depends on what you want it for
Creative? PlotSquared I think is one of the popular ones. Survival? Towny or Lands. Factions? Any faction plugin out there
Okay to those who where helping me earlier or care, I found another library and was able to manually import it to my source code, this isn't practical and I dislike it, but thats my solution. Thank you for help 😄
Why is my server crashing?
Sorry our magic 8 ball is busted
Why is my server crashing?
@patent matrix you need to give more information
How do I check whether player's armor has Fire Protection enchantment?
?jd
ItemStack itemStack = new ItemStack(Material.IRON_CHESTPLATE);
if(itemStack.getEnchantments().containsKey(Enchantment.PROTECTION_FIRE))
@frigid ember
player.getInventory().getArmorContents();
Thank you guys 👍
you are my god @fleet crane
You should prefer ItemStack#containsEnchantment() instead
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/inventory/ItemStack.html#containsEnchantment-org.bukkit.enchantments.Enchantment-
No reason to get the item meta, it's on the item stack
Can anyone tell me how to customize the loot tables for chests in the hunger games plugin
Treat each chest as unique? 🤔
And when it's opened for first time add n items randomly or based on rarity
But what about adding items to the regular loot tables of the chests like iron ingots
Like the commands or something for it
Having a weird error with a plugin, need some help: https://pastebin.com/MZJgUdK5
> [02:01:09 WARN]: at me.ulrich.limits.api.LimitsAPI.getPermPlayerLimit(LimitsAPI.java:272)```
https://gyazo.com/12a1c362bb8df0966562682027457c5a
there is no line 272
It seems to be throwing that error for one specific user.
Why are you in a decompiler.
Because I don't own the plugin.
well issue is in getPermPlayerLimit api.
decompilers don't show the right number always.
Ah ok thanks. Unfortunately the plugin isn't open source so I can't do much and the dev isn't that active. 😦
Guessing it was a private plugin?
No I linked it above, it's public on Spigot 😛
Issue is in the config.
o
whatever you are running for the block
type
"LimitedBlocks." + blocklimit + "." + blockpermission
oh nvm
permission*
@viral seal
if (p.hasPermission(FileManager.getConfig().getText("Config.BasePermission").replace("%group%", blockpermission))) {
}
Sorry for being an idiot, what's the issue? 😛
o
well I did notice his uuid wasn't in the yaml file for data
@cloud sparrow just to confirm: the plugin is checking for his uuid in the file but can't find it then proceeds to throw said error?
Tag: '&d&lSKILLS &8|&f'
BasePermission: 'ulimits.limit.%group%'```
hmm weird. i'll let the dev know
thanks a bunch!
hey
i have made a cell that a normal person can rent, but they cant okace or nreak anything only open the door
i have set the priority on 10 for the cell and 1 for the main claim
how do i fiz thet
contact the developer
a server owner is not a developer in my opinion
Have you registered your events and labelled it @EventHandler
yeah, and I have other events in the same class and they get called
it's really weird
Can you write a sysout on the first line of the event to see if it gets called at all?
Can I see your class?
What are you expecting the event to be called?
when?
That class is a custom inventory and I tried moving items to it
I also tried with a chest
and a hopper
nothing works
Kompye can we see how you register the events?
sure
backpack = new Backpack(backpackItemsFile);
getServer().getPluginManager().registerEvents(backpack, this);
Did I hear someone needed help.
Can you provide if there's any other logs?
and what is Backpack? assuming it's a listener or can you provide your event that is specifically InventoryMoveItemEvent?
There's no error or anything but I can give it to you if you want
Backpack is an InventoryHolder and a Listener
I sent the class above
here is the log: https://pastebin.com/YymHZJ4W
Ok I am assuming you do backpack per player which can be obviously laggy of course.
I do
As you registered individual listeners per inventory.
there's only one instance of backpack
when I want a player to open it I just do openInventory(player)
Anyone knows what would be the reason for Proxy connection lost error? (Server crashing and then restarts)
Can you provide a error log @subtle minnow?
@keen magnet but you aren't listening as that'd be just opening whatever inventory 0 is.
Sure one moment
There's no difference per player and will always be the same inventory btw.
@minor laurel I can't send files here can i dm it to you?
Pastebin, doesn't work since it's too large.
@subtle minnow sure and can you convert it from a log to a pastebin while I go do something else instead?
@keen magnet well what's the point of the arraylist for inventories?
there are multiple pages
is that just a cache of 1 inventory that won't change?
@minor laurel It's too large to be converted.
okay
Might be a way to help you with it.
yeah it makes sense
@subtle minnow Give me a few to fire up my log converter then (no idea it is broken).
Just noticed that thought it would mess up like in the past it did.
@minor laurel it worked 😄 tysm for letting me know that
but I still have the event issue :/
If you get a hopper going into a chest does the event fire?
nope
I tried
no
that's the problem
I have this in the main class
Backpack backpack = new Backpack(backpackItemsFile);
getServer().getPluginManager().registerEvents(backpack, this);
He posted this earlier: https://paste.helpch.at/hetororiju.java
I think it's something that has to do with the inventory-per-player logic :/
i mean
is there an event limit per class? though I doubt it
no
i just think the way you design it is wrong
imo
i would have done differently per player inventory
as of moment it looks like it wouldn't scale well
I modified it
because every player had the same inventory
here is the new code: https://paste.helpch.at/ulobujemim.java
this is okaish but still it wouldn't scale imo
but when you will have to add new features to it you for sure youre gonna have a harder time
After removing the InventoryHolder implement, how do I check if a player has this inventory open?
for the events
Hello, how to let a player lay down in 1.14.4? There is no USE BED packet in the latest mc protocol!
😐
Any idea why mySQL while testing inside a testing class in IntelliJ
@Override
public List<String> getTables() {
Connection connection = getConnection();
List<String> tables = new ArrayList<>();
try {
ResultSet resultSet = connection.getMetaData().getTables(null, null, "", null);
while (resultSet.next())
tables.add(resultSet.getString(3));
} catch (Throwable throwable) {
throw new IllegalStateException("Failed to get tables", throwable);
}
System.out.println("Found Tables for mysql: " + tables);
return tables;
}```
Returns ``Found Tables for mysql: [stats, stats_testing]``
When testing inside plugin (same database, same code) it returns ``Found Tables for mysql: []`` Any idea?
I've found out that's it's the mysql driver version 5.1.48 but works fine on latest
Hey together :)
Is it possible to connect with a vanilla MC client to a spigot instance?
No plugins are installed, simply and MC server (spigot)
You use the normal minecraft client to connect to a spigot server, correct
ok, then smth. on my server side goes wrong ^^
Whats your error message on the client
a red X - the server has docker isntalled and uses an imigae for the mc-spigot server
but it seems, that smth. isn't going through the container, to connect to the mc server ^^
Can you screenshot the error message on the client, win key + shift + s
That means that the client can't connect to the server, are you sure that the server is running and the hostName is correct
but it seems, that smth. isn't going through the container, to connect to the mc server ^^
@dusk briar
means, that smth. important is missing, in our docker environment, where the server runs @old heart
and yes, the server runs smoothly
Maybe someone else can help you, i'm not quiet sure what the issue is
Is there a way to pause a for-loop for an X amount of time with a scheduler?
I have a list with commands and I want to execute those commands right after each other but sometimes if the string in the list is wait <seconds I want the for-loop to wait that amount of time to go to the next command
did anyone know what packets will be sent when a player sleep?
did you just thumb up your own message
lmao purplex
what did i do wrong for essentials kits
kits:
tools:
delay: 86400
items:
- 272 1
- 273 1
- 274 1
- 275 1
food:
delay: 86400
items:
- 260 16
- 297 8
iron:
delay: 86400
items:
- 256 1
- 257 1
- 258 1
- 267 1
- 306 1
- 307 1
- 308 1
- 309 1
- 364 16
diamond:
delay: 86400
items:
- 277 1
- 278 1
- 279 1
- 276 1
- 310 1
- 311 1
- 312 1
- 313 1
- 364 16
op:
delay: 86400
items:
- 277 efficiency:1 1
- 278 efficiency:1 1
- 279 efficiency:1 1
- 276 sharpness:3 1
- 310 protection:1 1
- 311 protection:1 1
- 312 protection:1 1
- 313 protection:1 1
- 364 24
- 322 4
?paste
Please paste your code into that
It is normal that I haven't the Material.java, Blocks.java and Items.java when obtain source code with BuildTools ?
https://paste.md-5.net/eyiyoxeney.css
@woeful juniper Are you using essentialsX?
@fleet crane
EssentialsAntiBuild-2.x-SNAPSHOT
EssentialsChat-2.x-SNAPSHOT
EssentialsGeoIP-2.x-SNAPSHOT
EssentialsProtect-2.x-SNAPSHOT
EssentialsSpawn-2.x-SNAPSHOT
thats what im using
looks like numbers around the wrong way
it should be
delay: 86400
items:
- 277 1 efficiency:1
- 278 1 efficiency:1
- 279 1 efficiency:1
- 276 1 sharpness:3
- 310 1 protection:1
- 311 1 protection:1
- 312 1 protection:1
- 313 1 protection:1
- 364 24
- 322 4```
i had that originally but it still didnt work
might be a yml formatting issue
ssam add me
im a big fan
big fan of u
if u dm me my dream will be achieved
and add me too
i had that originally but it still didnt work
@woeful juniper found the issue, you had one space in front of "OP"
oh dang
im gonna give it a try
it worked
lmao imagine one space caused 2 hours of work
fp
so it worked but im not getting the food at the bottom of the kit
for kit op
Negatory
And there is examples and you can just annoy me with questions
But like, vgl is not where I want it to be and I don't have a reason to continue working on it
maybe but i need to understand how the fucc it works first
The core concept isn't that hard, and that's written in the docs
I thought about doing a v3 before but I have no way to tell I'll actually finish that either
the docs are literally broken; wiki on GH tells me i can't 'edit' the wiki (??) when i click a page and your whole site (voxelgameslib.com) is broken
404s
so...ye
also bad ssl
ah the edit page thing is bc the page doesn't exist

and a whole lot of:
There is not much here yet, but in the future this will be the place to be for finding documentation for VoxelGamesLib
well that works
what would be the best license to stop others from selling code yet i still have the right to sell the code if i want to 🤔
Correct, no license at all gives you full control.
(However, it also restricts people from using it at all.)
uh, that easy
Yes, if you include no license, exclusive copyright to the owner is implied
You can say it is "Copyright <year> <your name>. All rights reserved."
No clue why my domain got fucked like that
On work time right now and haven't started my personal PC yet so can't check
not a big deal
ill use the github.io
oh shoot am in the help channel
how do i get a java server online
with a custom ip
hostnames lol
@frigid ember https://lmgtfy.com/?q=WHat+is+DNS
like hypixl when u type in their ip
yea but ok so like im using ngrok and it chnages the ip evertime
i want to use something that doesnt do that so i can get a custom ip
buy a domain name. and link it to a ip
For example google.nl goes to https://172.217.19.195/
its the same just more handy to remember
alr but like how do i get a stable ip that doesnt change everytime i start the server
buy a domain name. for example mcserver.com
and link play.mcserver.com to your server ip
how you host your server?
local?
on your own pc?
yea
okey, does your ip change each time?
alr
@frigid ember Since your hosting the server locally, your IP address will still continue to change unless you have a static IP address provided by your ISP.
if you cant port forward, you would need to make like a vpn tunnel to another server
or proxy
and have it connect to that
doesn't have to be hamachi
buy a domain name. for example mcserver.com
and link play.mcserver.com to your server ip
@crimson raft
Every time that I try I need to paste my port after the ip... Can I make it without a port?
our servers run on a home server through an openvpn tunnel to a VPS
@half cairn use port 25565
Instead of my own port?
if the server listens on the default port you don't have to specify it on the client
My server is hosted on a server with the port 20001
you could do SRV records but that has issues
I'am using SRV records at this moment. But I can only join my server with the port after it
if your SRV record is set up properly, you don't have to
How can I access a variable that is set in a command from another class?
make it a public static field
@crimson raft
Every time that I try I need to paste my port after the ip... Can I make it without a port?
@half cairn you need to make a sub Domain
for example if you have the domain mcserver.com you should link it to your website.
Now you create a sub domain called "play" so you have play.mcserver.com
In the setting of the sub domain. you should be able to define the port in the record
you should do a "A" record for the sub domain
a normal A record is preferred as some dont accept ipv6 by default...
The problem is that if I do that then IntelliJ complains about public not being alowed.
IntelliJ ???
Yes.
oh
IDE.
Modifier "public" is not allowed here
But I can't set the variable outside of a method because it uses the player.getPosition() function.
So it has to be inside the onCommand boolean.
declare it outside, assign in inside
Ah, OK.
So just in the main class then?
You see, one of my commands logs player position when it is run, and the other one makes a call to that variable when it runs.
If you cast int to a coordinate, e.g block.getX(), will it go from 000.00 to 000?
But wait, if I declare the location outside the player boolean what do I pass to it as a stand-in value?
By a coordinate, you would mean a Double. Integers can be cast to Doubles, but they dont have any decimal values.
So if you cast integer to a double it stops being a decimal?
So it would turn from 0.00 to a whole number 0
Great
Good
So yes.
if I declare the location outside the player boolean
I don't know what that means
and yeah a field is probably not the way to do it but that was the question
you should rethink this
Well all I want is to be able to get a position in one if statement and reference it in another.
Hello there, pretty new in here
I wish to install a modpack on my spigot server
And i have absolutely no clue on how i do this
You don't run modpacks on Spigot, you run them on Forge.
And if you need plugins, you have to use Sponge ones (https://spongepowered.org)
So i can't install mod from anywhere except this link you juste send ?
what "mods" are you talking about?
if you mean forge mods, no, they'll only run on forge (or spongeforge)
Well i've been searching a mods list and found one, can i send the link in here ?
What's a good way to split this string?
I'm making a plugin where it needs to write the coords to a config file, the way I'm doing it is as a string:
xCoord;yCoord;zCoord
And then I'm using the following code to split that string
for (Object o : oreLocation.getConfig().getConfigurationSection("placed").getKeys(false)){
String mainString = String.valueOf(o);
String[] sort = mainString.split(";");
World world = Bukkit.getWorld(String.valueOf(oreLocation.getConfig().get("placed." + String.valueOf(o) + ".world")));
Location blockPlaced = new Location(world, Integer.parseInt(sort[0]), Integer.parseInt(sort[1]), Integer.parseInt(sort[2]));
placedOres.add(blockPlaced);
}
This doesn't seem to work though, does any one have any ideas?
why are you storing the keys in an object then converting them back to a string
just make the var in the for loop a string
and use getString instead of String.valueOf(config.get(
Store it like
'-415;78;241'
One second, let me print them
Also, even though you sorted them by colons;
the last one would still have the ':' in your sort, correct?
So are you getting a NumberFormatException error?
Are you sure that the Object : o for loop is running then?
Are these ores also all the same kind of ore? I noticed theres no block-type associated with it.
The for loop is running
I had that idea at first
(This was me coding at 4am)
But I couldn't figure going from 1: to 2: to 3: and so on
I'll try again now lmao
No one knows ?
@random prism Are you using a minecraft server host or running from home
nvm
its a modpack
RayTraceResult rayTrace = player.getWorld().rayTraceEntities(player.getEyeLocation(), player.getEyeLocation().toVector().normalize(), 40);```
I'm trying to use this to get an entity a player is looking at
I couldn't tell you why it doesn't work. I havent played in awhile and I'm not too familiar with modding the client that much anymore.
Wait I might know why
Is it possible to update a premium resource while it is awaiting approval? I have noticed a plugin-breaking bug
I'll give it a try
So what should I do? Is my plugin going to be approved eventhough there is a bug?
Or is a review only to check if there are no illegal data being sent to a personal database or something?
Because if it is actually being tested, nothing will happen because of the bug haha
Probably more or less just quality control.
Having premium resources uploaded would mean you'd want specifications followed, and for them to actually be "premium". If they overloaded the website with premium resources without an approval, nor quality control then there wouldn't be a difference between normal resources and premium, just a price tag.
So I did a bit of debugging and logged some of the strings
For some reason, it prints the coordinates 3 times.
getLogger().log(Level.SEVERE, positions[0]);
getLogger().log(Level.SEVERE, positions[1]);
getLogger().log(Level.SEVERE, positions[2]);
It prints this 3 times
-415
68
241
RayTraceResult rayTrace = player.getWorld().rayTraceEntities(player.getEyeLocation(), player.getEyeLocation().toVector().normalize(), 40);```
Using this detects the player that it's raytracing from
I know it is
Any idea how to make it continue raytracing without detecting the player
For some reason it still doesn't work 🤔 Genuinely lost here.
Location blockPlaced = new Location(world, Double.valueOf(positions[0]), Double.valueOf(positions[1]), Double.valueOf(positions[2]));
Because when I store it as a double it messes it up since "-415.00, 68.01, 241.23" will end up with:
placed:
-415:
00;68:
01;241:
23:
I added another debug line
getLogger().log(Level.INFO, "Ore added at \'" + String.valueOf(Double.valueOf(positions[0]) + ", " + Double.valueOf(positions[1]) + ", " + Double.valueOf(positions[2])) + "\'");
Every time it prints it 3 times
I know
just replace it with a placeholder
I know, it's a block location, it doesn't particularly need to be a double
It can be an Int
probably better then ye
Is there a way to pause a for-loop for an X amount of time, without pausing the whole thread and thus pausing the server?
I didn't
I was giving an example of how it'd be with doubles
It didn't change, it's still
placed:
-415;78;241:
world: world
That's an example of how it'd look if I stored them as doubles rather than integers
I know! I'm saving them as Integers!
ChatSerializer.a("{text: \"Map\", color: \"blue\", bold: \"true\", clickEvent: {\"action\": \"open_url\" , value: \"108.61.239.35:8467\"}}");
This gives me an error saying json is malformed. I dont know json so yikes
Hey, does anyone know about a good "RTP" plugin that does the following:
- RandomTeleports me in "Survival" world only.
- And actully works.
- When people do RTP in "Spawn" world they will get teleported to "Survival" world and random teleported.
Please tell me 🙂
@unkempt vigil why dont just do per world perms?
So, I started debugging again and tried to teleport myself to where the block is on the config and it seems to be getting the location right
How can that help me, @crimson raft?
block rtp in spawn world
not giving the perms in spawn world
random tp in survival only
only give the permissions in survival
Edited my message, @crimson raft.
i dont think you can define it like that to be honest....
must be some specific plugin if you want it to teleport to another dimension let alone random teleport.
How can i check if a player is WALKING, not MOVING, like, he is moving on his own (pressing the movement controls)
join vc 2 if someone can help me with rtp plugin
@ashen dove check if server isn't sending any velocity applying packets to the player and if the server isn't teleporting the player, this way you can know that it isn't knockback
Could someone please walk me through creating a Location object?
I had a look at that, the bit I don't understand is how to define the world the player is in.
so mobs, they kinda all over the place, is there a plugin that fixes it?
OK, but the thing is I'm having to define the variable outside the onCommand boolean so that I can use it outside the if statement in which it is assigned.
I need a plugin where mobs don't all spawn at one person
Paper has a feature where you can have the mob cap per person.
I don't really lag at all
I have dropped frames
so lag isn't the issue I guess
but that plugin is very nice
What, Paper?
doesn't work with 1.15
anybody know how to use IPWhitelist?
?fw is more robust
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
anyone know how to fix the mob spawning issue? if many people are on the server it seems mob spawning is quite bad
i think i set it up properly
hey was wondering if there is a way to make players spawn at the spawnpoint of my hub after leaving and coming back. Wanted to know if there is a config setting for this or would I need to download/create a quick plugin to do this for me, thank you
yaa
i have advanced portals, any way that i can do /server <servername> make it warp to a advanced portals destination?
./server <servername> would be from a different server
easiest would be to use one of the many "teleport to spawn on join" plugins
for example this one https://www.spigotmc.org/resources/spawnx.46890/
kk, was just tryna see if there was an easier config way to do this, thanks
anyone know how to fix the mob spawning issue? if many people are on the server it seems mob spawning is quite bad just @ me
send a timings report @pallid portal
btw the /locate and cartographer's map are killing my server
is there any fix other than killing every cartographer (spigot way)?
https://sourceb.in/7a376a1f66 any ideas why this is happening? When i run the Spigot 1.8.8 jar file (just built it from build tools)
approval takes 1 week usually
You can PayPal choco for express approval
null in server tick loop 😼
really?
lmao
no he doesn't approve
he doesn't do approvals
@subtle blade is it true people pay you to get faster approval?
It's usually the price of the resource + $5
I don't usually do approvals and no we don't take bribes for faster approval
Officially, he doesn't.
Can somebody help me?
I'm kidding 😛 Ask here
Im making a troll plugin where I can type /troll <player> and a GUI opens and I can select the troll. SO i did that and now I want to freeze somebody. But I need to make a listener in a listener then so Im confused. CAn you join gen2?
how do I add slow to the max value?
?
Both
I did: target.setPotionEffect(PotionEffectType.SLOW, Integer.MAX_VALUE, true);
thats what I have
thx bro
hi everyone, I'm looking for a plugin that adds thirst in Minecraft, I wish it was a bossbar that shows you how thirsty you are. and when you have almost the empty bar it gives you negative effects.
Is there one?
P.S. I have already seen the "Thirst" plugin but it is broken in 1.15.2
Does anybody has a server i can try my plugin on?
Bec its a troll plugin and I need somebody to troll
I do but nobody can join i can troll
I cant
I made it so you cant troll yourself
and no ops
public static void addItemsToPlayer(Player p, List<ItemStack> items){
if(items != null && !items.isEmpty()){
boolean dropped = false;
for(ItemStack itemStack : items){
if(itemStack != null && itemStack.getType() != Material.AIR){
if(itemStack.getAmount() > itemStack.getMaxStackSize()){
for (int i = 0; i < itemStack.getAmount(); i++) {
itemStack.setAmount(1);
HashMap<Integer, ItemStack> nope = p.getInventory().addItem(itemStack);
for(Map.Entry<Integer, ItemStack> entry : nope.entrySet()) {
p.getWorld().dropItemNaturally(p.getLocation(), entry.getValue());
if(!dropped) dropped = true;
}
}
} else {
HashMap<Integer, ItemStack> nope = p.getInventory().addItem(itemStack);
for(Map.Entry<Integer, ItemStack> entry : nope.entrySet()) {
p.getWorld().dropItemNaturally(p.getLocation(), entry.getValue());
if(!dropped) dropped = true;
}
}
}
}
if(dropped) p.sendMessage(ChatColor.translateAlternateColorCodes('&', "Your inventory is full, the item was thrown to the ground!"));
}
}
but i need to be op to execute the command
so
wait whats that wasmake
wdym
I could
but then the GUI gets opened to the sender
Is it possible to restart a server in the same cmd?
so does somebody have a server?
Hello guys 🙂
Do you know an anti fly plugin?
just that, not a general anti cheat
Does anyone knows where does this type of color codes come from? \u00A77
Yeah, but where I can see like a full list.. or something like that..
\u00a7 is the unicode thingy for uh this §
but yeah just google "Minecraft color code list"
Ohh
so many sites
My server is loading with 40,000 chunks all of a sudden, I have no idea why https://timings.spigotmc.org/?url=iradabifut
Don't use \u00A7 in source, please. Use the ChatColor constants
my server can barely start up
§
but yeah also that
jkjk
I really don't know why its starting to load with that many chunks
using ultimatehomes how do I set it so everyone can have 10 homes?
Ya read da docs
would I find that in the lang.yml?
what does that mean
do I put that in lang.yml
i have luckperms
/lp editor wont work
how does one make a group/ do that
does anybody have a server I can try my troll plugin on?
use ur own server and fire up two accounts noone is going to add your plugin and op you on it
@frigid ember I did it, but how do I assign someone to a group
@old heart en5 ho do I get a second account?
ty
set online-mode=false in server.properties
it says command not reconized
@round lichen Normally minecraft verifies your username with mojang when you login however if you turn off online-mode in the server.properties file it will allow players who don't have an actual minecraft account to join. Which means if you create another account that isn't a 'real' account it will be able to join
is there a quicker way to add people instead of typing their name per person\
Create a default group?
https://github.com/lucko/LuckPerms/wiki/Default-Groups
ty
Yo Thanks @old heart
do I have to reload the pl;ugin after i do iot
@round lichen You should understand the risks of hosting an offline mode server.
its just localhost
my friend said he cant have more /sethomes (name)
@rough root he's using it as a development server
okies
nope
I used in game commands
it says the can set home
I got it
I had to apply the command to 2 groups
Thanks
Does anyone know of a good value to assign to a Location so I can make it public?
IE declare it outside of the onCommand boolean
How long does it take for a moderator to approve a name change request?
Yes I know I have to wait for a moderator to approve it? I said: "How long does it take for a moderator"
k
i wish my full name was available for taking
Oh no, what did they do this time
They released a new website, distributing server jars
@frigid ember i cannot access to this
(int) entityPlayer.getClass().getSuperclass().getSuperclass().getSuperclass().getDeclaredField("id").get(entityPlayer)```
id is private
ok thx
My code:
entityPlayer.getClass().getSuperclass().getSuperclass().getSuperclass().getDeclaredField("id").setAccessible(true);
sendPacket(player, new PacketPlayOutEntity.PacketPlayOutRelEntityMove((int) entityPlayer.getClass().getSuperclass().getSuperclass().getSuperclass().getDeclaredField("id").get(entityPlayer),
(short) 10, (short) 0, (short) 10, false));
Error:
[20:11:35 WARN]: java.lang.IllegalAccessException: class fr.fr_phonix.specmode.npc.NPC cannot access a member of class net.minecraft.server.v1_15_R1.Entity with modifiers "private"
ha ok, thx, sorry for beginner question 😅
i just found Entity have getId methode
Why is bukkit.getserver().getWorld() not showing up in IntelliJ?
Every tutorial I've looked at says that's the correct command but I can't find it.
Nothing.
bukkit has a red line under it
Bukkit.getServer().getWorld(uid or name)
Calls to getServer() are redundant
Bukkit mirrors all methods statically
Bukkit.getWorld() accomplishes the exact same goal
can anybody help me achieve my goal? https://www.minecraftforum.net/forums/servers-java-edition/pc-servers/3012700-kingdom-of-viritus-two-months-75-people-we-can-do
https://i.imgur.com/Sekngq0.gifv thoughts? (Screen minimized cause I can't record big gifs that much)
Slowly making an RPG plugin and that's inside of it ^
Item output: https://i.imgur.com/HuqjVvu.png
It's somewhat buggy and messy
the server starts with 8gb ram
This is the Spigot discord.
Hello, does anyone know how to get a modded item ? It works with Material.getMaterial(id) but the id of my mods items seem to change, so its not really a good idea
If you mean a Forge mod, it's impossible
🤔 then why can I get them with id ?
Mere chance that an ID was assigned? Because Bukkit does not define any IDs to non-vanilla Materials
I'm aware of that, but we're speaking about Bukkit which has no concept of Forge-added IDs
The Material.getMaterial(id) works fine though, maybe because Im using a cauldron-like system in 1.12 that makes the id's
Well yea that would be nice to mention
Because that's not Bukkit as Spigot knows it
You're on the Spigot Discord server, not Cauldron
googling "spigot disocrd" -> fail
trying "spigotmc" invite url -> success lol
I thought there was a method for spigot, but it seems its the system I'm using that makes it possible, well thanks for your help
@winged barn https://discord.gg/spigotmc/
i know
Likely the reason you stumbled upon it
but i just put spigotmc into the "join a server" box xd
ic, ic
I love AAC, but I feel like it depends on the server
oh thank you
I thought you could make 2D ArrayLists like this?
public ArrayList<Player, Integer> x = new ArrayList<>();
You cannot, kxuy. Lists only accept a single type argument
What are you trying to do?
I thought you used to be able to
no
Maybe not
never
Probably getting it confused with HashMaps
and if its not, it was never in
I thought you used to be able to
well, thats not how java works
I phrased that badly I know xD
A 2d arraylist would be an arraylist within an arraylist
Think I'm getting confused with Python
If you get from the main root of a config would it just be
for(String x : playerData.getConfig().getKeys(false)){
}
yes
did anyone find a plugin to fix mob spawning issues? When many people are on the server and they only spawn to one person or where ever the most players are
I know this is the spigot server but i'm pretty sure that paper has a per player option for mob spawning
is there a way to stop playEffect with RECORD_PLAY from playing? (1.15.2)
Hey, does anyone know of a plugin which allows hostile mob spawners to spawn during day? I see it on lots of servers where it's daytime but mob grinders are still active, which plugin could help me achieve this?
mob spawners spawn in light level 7 or below are you sure this is a plugin or just game mechanics
Hi everyone, can someone help me to understand a timing report ? We have huge lags on our server and we are trying to find the cause
@fiery flower I recommend installing TopLite or something to see what's using all of your ram it's really straightforward
@limber marlin I looked at TopLite quickly and if I understood correctly, it shows which plugin is using the resources. However we don't have any plugin installed on the server, so I don't know if it can help me
The problem is that I don't understand what the events arepresent
Hi guys, I am using BungeeCord PluginMessageEvent and I store values in message to custom object.
https://hastebin.com/jideciyosi.cs
Whenever I get event attribute of this class somewhere outside of this listener, all values are null, why?
When I log this object inside listener values are not null.
Inside: Event{eventState=LOBBY, name='Ocean', category='Sumo', reward=10}
Outside: Event{eventState=null, name='null', category='null', reward=0}
@fiery flower Actually there's a wiki that explains everything http://www.spigotmc.org/wiki/timings/
@frigid ember impressive
@frigid ember I am looking into it now, seems like I can't avoid using them for my case
Protocollib ofc
So I guess you can block certain packets from player to the server
Hii, i bought a multicraft server and I want to build a server with mods or plugins but I don't know how to add them. Is there a guide to create this kind of servers? Where can I find these mods/plugins?
It's kinda late here guess I'll figure it out myself tomorrow. Thanks for the help and clue btw
i have the server the only thing i dont know is how to put the mods
or pugglings, i dont want vanilla
thanks you so much
cause i always use forge
This is the spigot discord not forge... And just Google some tutorials to get started
Spigot does not support Forge mods if that's what you're after
If you want plugins, Spigot will generate a plugins folder for you where you can drop in a plugin binary
?resources
Whole bunch here and on BukkitDev as well
okey okey, thank u
Mmmmm, don't think so
?bungee
?bungeecord

I know there's one for just the regular wiki though
?wiki
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
is there any way to make the console echo to mcrcon?
mcrcon only shows the commands coming from it, nothing from the console
anyone having issues on the spigotmc site? it keeps buggin for me
yee
ok good its not just me
Hey together. I found out, that I would need bungeecord for my MC-Server setup, the questiion here is, if the latest BC-Version is supporting all MC version so that I can connect e. g. vanilla-node1-latest, ftb-node2-1710 and so on. Is this possible with BC and how to correctly setup the config.yml for each server and listener?
so I would need the no longer supported 1.7.10 build from BC to run my 1.7.10 FTB server and another BC instance to sopport all other MC versions, rigth?
yes
may I ask you for a little help refering to docker? I have the images from itzg (mc-server and bungeecord) but the docs are not well documented or better, examples are missing
you can and someone may be able to help
Im not familiar with those specific images (nor do I really use docker)
ok, the docker part wouldn't be that problem, either the BC config file which is shipped by the BC docker image, refering to the string for MCStats
https://github.com/itzg/docker-bungeecord/blob/master/docs/config.yml <<< this would be copied for every BC Instance but then each instance would use the same string
youre gonna need to change the config anyway to add your servers
tha is correct, even if there is only one 1.7.10 server ^^
Does anyone know where I can post a request to pay someone to setup a server for me? I've tried many hosting services and tried to do it myself through multiple tutorials in the past week but I can't get it to work.
@frigid ember
can u help
i removed the for loop and now it wont show up for anyone
plz help
oop
lemme fix that
hi, i got a crash error, it goes something like this
// Who set us up the TNT?
Time: 4/3/20 6:01 PM
Description: Exception in server tick loop
java.net.UnknownHostException: h
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$2.lookupAllHostAddr(Unknown Source)
at java.net.InetAddress.getAddressesFromNameService(Unknown Source)
at java.net.InetAddress.getAllByName0(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at java.net.InetAddress.getByName(Unknown Source)
at net.minecraft.server.v1_15_R1.DedicatedServer.init(DedicatedServer.java:181)
at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:784)
at java.lang.Thread.run(Unknown Source)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------``` i have the crashlog if you want it
lol swift are you trying to load buildtools and a spigot jar as a plugin? 😂
@brisk void leave server-ip alone unless you know what you are doing
You set it to h for whatever reason
Might be a stupid question but if I wish to use SpigotLib do I import it as a dependency in intellij
Swift, you literally have both BuildTools and a Spigot jar in your plugins folder
Just leave it blank
alright, thanks man
yeah ik
Yea but you also have the server and BuildTools in the plugin folder
Neither of which are necessary
how do i take it of
You... delete those two files from the plugins directory?
Also, your event was not registered
Nevermind I'm blind
Just saw it ;P
This log you sent earlier, https://hasteb.in/icukesod.md
You have plugins\spigot-1.8.8-R0.1-SNAPSHOT-latest.jar and plugins\BuildTools.jar
The server as well is in the plugins folder and should not be there
no its not where is it
Unless you removed it because that error log above definitely says it is ;P
whats is it called
As for your scoreboard error, Scoreboard names cannot be longer than 16 characters in 1.8.8 (which is unsupported and you should update)
yea but i want people to use 18.9 when playing my server
what line in the logs does it show the server thing
ok, is it possible to leave the stats-field in config.yml (bungeecord) emptiy or to simply edit a few digits from it?
because I have only a pregenerated config.yml so BC can't generate it's own
@frigid ember what version for longer names
1.13
if you just want older clients to join your server, update to 1.15.2 preferably and use a plugin like ProtocolSupport or ViaBackwards to allow them to join
Doesn't matter anyways. You should be on the latest version regardless
^
anyone have a 1 player bed plugin for 1.15.2
all the ones I found are old versions
Is there a way of spawning Fishing Rod hooks as an entity?
Has anyone messed with PlayerTeleportEvent?
Having a strange bug with scaffolding and it.
Just looking for opinions, if I'm storing Player Data over the memory; yes I use the Map and HashMaps to store the keys and objects. Should I be making them static so that I can access them or is there a better approach?
how is the config part for forced_hosts correctly working?
https://www.spigotmc.org/wiki/bungeecord-configuration-guide/
and scroll to forced-hosts
wait hold on
I asked a question about an hour ago and I'm not sure if it would be rude to ask again
hello. So I am new to all of this stuff with plugins and this stuff and running it on a server. I have never used any of this before and just wanted some sort of help and advice. For someone who just wants to have something in the background to run worldedit and possibly some other plugins, what program does everyone recommend I install? there's so many different types out there, it's hard to know what to do.
Thank you @frigid ember
Paper
Currently looking at making my gems economy global across my entire network.
What sort of storage method(s) should I use to synchronize this?
I'm currently thinking of putting the data into the redis memory cache, then pushing to SQL (as a hard save) every x amount of minutes.
Would this be the best way of going about it?
Trying to use SpigotLib and get this error whenever I try to build
Am I missing a file ?
I was only thinking of using redis because it would allow for more reliable synchronization as it would be relatively faster than SQL with storing large amounts of data into its memory cache at a very quick rate.
@green lodge is gyurix.configfile one of your files or is it from a lib?
lib
You probably need to shade it
In maven or gradle
There are tones of tutorials on it, I’m not really the person to ask
@frigid ember i went to 1.15
and still not letting me do the name thing
this is the logs
Spigotception

Swift if you don't know what you're doing, don't do it
