#help-archived
1 messages · Page 7 of 1
Try googling it, it'll probably be quicker for u https://stackoverflow.com/questions/3099527/how-to-remove-everything-from-an-arraylist-in-java-but-the-first-element
ah thanks, i did but formatted the question wrong google coulnd help
Is there a packet for parrot dancing? It's handled on client side I think.
thanks
oh shoot was that what he was after my mistake @narrow crypt
weird, #hasPotionEffect() doesn't seem to be working
I thought you wanted to remove everything in the list except the first one
nah keep everything but the first one
But you wanted to remove the first item and keep the others
exactly I sent you the wrong so link
haha
means I can't do anything with plugin
it's fine tho I still have other tricks
Will try
I have a weird situation on my server.
We have a problem with 2 observers in a specfic locaction.
They stopped checking for updates. Sofar removed them and replaced them, also we have restarted the server
Block updates
the block updates. Yes. If you put a block in front of them they dont output a signal
Anyone wanna help me with a simple kill level plugin?
I have that for my plan
Not sure how to implement it
and grab their kills
That would work a lot better than storing kills as Minecraft does it for you
That's not my issue though
and you can always reset someone's statistic
Alright? Well you asked us for help and we are providing you with help.
I don't know how I would implement my plan above
Grab their current level if any else return 0;
Grab required kills for level from hashmap for currentLevel + 1 if there's a level above;
Check if current kills > requiredKills
and so forth
Example from the config
levels:
'1':
kills-needed: 10
'2':
kills-needed: 25
You could use an algorithm.
Or fixed amounts of kills, either way.
With an algorithm to count kills needed, you could just make a method that returns the amount of kills needed to complete that level;
If you are using that config you'll need to use a ConfigurationSection and grab the kills-needed.
public int experienceToLevel(int level) { fill in here }
I'm on my phone atm though so I cant really give a better example
I was thinking of looping through the HashMap.
The HashMap is ordered as <Level, KillsNeeded>
I think that's an inefficient way of handling it really.
And you dont have to loop through HashMaps
for (String levelStr : section.getKeys(false)) {
int level = Integer.parseInt(levelStr);
int killsNeeded = getConfig().getInt("levels." + levelStr + ".kills-needed");
availableLevels.put(level, killsNeeded);
}
Just find a key in the hashmap ? Lol
Yeah I have that in the main class
The method I have, you pass their kills. With the HashMap the key is the Level
Dont forget to try and catch the NumberFormatException
if (availableLevels.containsKey(level)) {
int requiredKills = availableLevels.get(level);
}
Hi ... Ist es möglich bei einem Bungeecord Netzwerk gleich alle run.bat dateien mit einer Datei auszuführen und damit alle Server mit einem Klick zu starten?
public int getLevel(int kills, int level){
if(availableLevels.containsKey(level+1){
if(kills >= availableLevels.get(level+1){
return level+1;
} else{
return level;
}
}
}
I'll try that
Hi is it possible to start every run.bat file of a network witch one file?
Wouldnt it be better to name it to hasExperienceToLevel and return a boolean?
Then make another method to addLevel(int i)
The kills don't reset?
Why not just use an inverse equation to find the level from the kill amount (if your using an equation, which is better suited for this)
Then resetKills() method?
Could have custom requirements KingAlterIV.
w
Hi is it possible to start every run.bat file of a network witch one file?
@tacit aurora ?
Are Spigot snapshots ever released?
Not as jars.
But developers can access snapshots?
Unless you are someone like md_5 who gets them but is only for him
Pretty sure it's against the EULA for them to release jars
No @coarse shoal who said they could.
Only specific people have access to the snapshot jars
such as md_5 who's a moderator of bugs for Mojang from what I have seen publicly.
Huh?
I'm talking about how Spigot is developed against the latest Minecraft Snapshots?
Are those snapshot versions of Spigot available
Jheez thanks 😅
Also @cloud sparrow i'm not sure what you're referring to about snapshot jars only being access by certain people
hi
how can i surf the plugin
or how can i talk to some one if they are willing to make a plugin ?
or work on my server if they want
Look at resources on www.spigotmc.org to see plugins
Hi all, quick question - should packets sent via PlayerConnection#sendPacket() be on a different thread? Following a tutorial that doesn't mention much about this, but would it be wise for the following code to be run on a different thread?
public void addNPCPacket(EntityPlayer npc, Player player) {
PlayerConnection connection = ((CraftPlayer)player).getHandle().playerConnection;
connection.sendPacket(new PacketPlayOutPlayerInfo(PacketPlayOutPlayerInfo.EnumPlayerInfoAction.ADD_PLAYER, npc));
connection.sendPacket(new PacketPlayOutNamedEntitySpawn(npc));
connection.sendPacket(new PacketPlayOutEntityHeadRotation(npc, (byte) (npc.yaw * 256 / 360)));
}
is PlaceholderExpansion not a thing anymore?
@frigid ember Thanks for the reply, but a little confused - it's fine to not use the main thread?
Would you recommend a different thread or the main thread for sending packets?
Can someone tell me a plugin that shows kills beside a players name when they kill someone?
Player (#ofKills) killed Player2 (#ofkills) with diamond axe
What is the difference between server worker and server thread?
@frigid ember what's your preferred library to use for MySQL?
Are Spigot snapshots ever released?
@coarse shoal No. Never.
Pre-releases, occasionally
The snapshot builds are only for the test server. Too unstable for public release
But what about for the purpose of developers, or forks of Spigot?
Developers shouldn't be writing against a volatile, ever-changing API, and forks are on their own
They're forks for a reason
They have their own update processes
RE: PlayerConnection#sendPacket(). It be called asynchronously but why would you do it intentionally? If you're on the main thread, call it on the main thread. Don't throw it on a separate thread just because you can
That's why methods like Player/World#spawnParticle() or Player#sendMessage() or Player#sendTitle() are all async-friendly
They hold no state on the server. It's just queueing a packet
how can i surf the plugin that is all ready made
Actually should not be deprecated anymore. It's no longer draft API. md can probably remove it
?resources @shadow pendant
ty
o/
yessir
@frigid ember why don't you just leave the level as an int instead of changing it to a string in config and changing it back to an int https://discordapp.com/channels/690411863766466590/690470011382267904/696821434156187749
Ok just curious because I'm still learning
I am you

Not sure why that’s yelling at you. It should be fine
@subtle blade Is that meant for me?
Yes
niiice
I’d give your IDE a restart or something because that definitely looks right to me
Make sure you’ve imported that class too though
which one? i have not import suggestions so im assuming I have it
Ctrl+Shift+O to organize your imports in Eclipse
The exact choice, though you should import everything you’re using
Yea RecipeChoice import should be what you need
Hey guys? My server just crashed and gave me a bunch of Spigot.Watchdog text. Any ideas why or what I should be searching for?
Oh you’re missing a closing bracket
curly bracket? it doesnt say so anywhere
How do I change the hotbar position from the player to the fifth position?
Ah its NCP doing it
There should be a setSelectedSlot method or something in playerinventory
setHeldItemSlot ?
That’s the one
What does this mean: The method setIngredient(char, MaterialData) in the type ShapedRecipe is not applicable for the arguments (char, RecipeChoice.ExactChoice)
Usually it means the method doesn't exist but uh, it most definitely does. https://hub.spigotmc.org/javadocs/spigot/org/bukkit/inventory/ShapedRecipe.html#setIngredient-char-org.bukkit.inventory.RecipeChoice-
Which is why I'm confused it's telling you that
What does the error mean? Can we just suppress it like a warning?
It wants a MaterialData you are giving it something else.
a RecipeChoice and none of it's parents are extended by MaterialData
There's a method override to accept a RecipeChoice
Which, again, is why I'm confused
hello If i donate to spigot will i be able to change my nickname?
I'm still convinced you're missing a closing brace
@subtle blade whats the minimum amount to donate for a nick change?
$10 but you get all the perks as a result
Where do i find these perks?
ok thank you
What does legacy mean? Does that mean deprecated?
Legacy means old and should not be used. Was replaced by something more modern
Might work on getting to the Patron badge.
The Cake badge is special for the fact that it is only used in combination with other badges. SpigotMC does not accept under $10 donations, so a Cake badge might be used with a Redstone badge to symbolize $15.
Ah, you're not missing a closing brace. Just some strange indentation lol
lol I gotchu
Choco do the medals reset as it says after a specific goal does that mean you'd lose them at some point?
No you keep your medals afaik
Xubels I copy/pasted your code into my IDE (though I added some returns to get rid of nullability errors, should not change anything) and it works just fine for me
https://i.imgur.com/hsrvmsz.png
So I honestly have no idea
Ah was just confused due to this sentence:
Once a rank has been earned, the user's badges will "reset" back to $0, and the badges are reapplied as each milestone is reached
Oh? Maybe that is the case then
Seems like it goes lower as you donate higher as they gave a example.
Well, you can. Though by "badges" it means things like "benefactor"
For example, a user who has contributed $125 in total will not get the Nether Star badge, but instead the Supporter rank and Lapis Lazuli + Cake badges.
Right
what was the protocol site?
Xubels I copy/pasted your code into my IDE (though I added some returns to get rid of nullability errors, should not change anything) and it works just fine for me
https://i.imgur.com/hsrvmsz.png
@subtle blade can u gimme that code in a hastebin?
Ah that actually makes sense nvm
thank you
@fleet crane might as well mention you while you're in #general, but RecipeChoice.ExactChoice is still deprecated. It's had to have been at least half a year if not longer since it's been around
Yeah I still got the same issue.
only works for shaped recipes
Isn't that what is mentioned above?
Yea but the entire class is deprecated and states draft API
(it's actually been 1 year & 4 months since it's been added lol)
Hey @cloud sparrow do you need someone to test the plugin, referring to https://discordapp.com/channels/690411863766466590/690470011382267904/696753127860338839
@fleet crane next update on Bungeecord do me a favor and store the ServerBoostrap as a variable
It would make it a lot easier to directly manipulate with the IO handlers via plugins
Thanks;)
Very quick question.
When I open a local server which uses a version of Spigot 1.15.2, a second console appears on screen.
It looks similar to the original vanilla console for servers.
Any way to disable it, or it's cmd variant, so only one stays on screen?
(It's not from BuildTools)
No particular issue or rush, I just prefer to keep the screen tidier. + I can alt tab way easier to multi task while the server is running.
nogui on startup to disable that
(as in, when running the jar)
java -jar spigot.jar nogui
asking again, is there something like player.isHit or player.isAttacked?
Thanks, Choco.
It might be --nogui. I don't remember lol
im making a speed check. So if the player is hit then disable toggling speed check for blank milliseconds
Couldn't you check if the player takes damage? Or is it not possible in your scenario?
if it was in a event like the player has weakness, it would toggle the speed check
Oh.
I don't have any ideas then.
Logically it should be something like that.
If not it's an oversight in my opinion.
how do i use it as player.the entity event?
Looks fine to me. Why not try it?
seems like a weird main class name though to me but that may only be me.
I was going to do Queue but it was tricky to spell so I just left it as JoinMain
seems good
Alright thanks
oh ok thanks
What connection pool is recommended to use with hibernate?
Anyone know how to fix
org.bukkit.craftbukkit.v1_8_R3.block.CraftBlockState incompatible with org.bukkit.block.Skull ??
Location location = map.getValue();
int position = map.getKey();
World world = Bukkit.getWorld(String.valueOf(KitLevelling.leaderboard.getConfig().get("locations." + String.valueOf(position) + ".world")));
Block block = world.getBlockAt(location);
block.setType(Material.SKULL_ITEM);
UUID player = KitLevelling.topPlayers.get(position-1);
// Setting the block to the skull
Skull skull = (Skull) block.getState();
skull.setOwner(String.valueOf(Bukkit.getOfflinePlayer(KitLevelling.topPlayers.get(position-1))));
skull.update(true);
The error is on
Skull skull = (Skull) block.getState();
It should be a skull
block.setType(Material.SKULL_ITEM);
I'll add a check though
use Material.PLAYER_SKULL
or yea for 1.8
use that
yea i know
i didnt see 1.8 originally
Alright, I'll try SKULL
so i've registered a command
using CommandMap#register
but now i need to set its tab completer, similar to what PluginCommand#setTabCompleter offers
however Bukkit#getCommand doesn't return a command that is registered with CommandMap
Cheers, it worked
Wait
How do you store doubles?
Surely they'd mess up the config
How so?
21.43
Yea?
'21.43'
If you're setting it as a value, key: 1.00. If you're setting it as a key, '1.00': "some value"
Could not pass event EntityDamageByEntityEvent to AntiSkills v1.0
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-db6de12-18fbb24]```
?
do i sent it as msg.txt?
ItemStack item = new ItemStack(Material.SKULL_ITEM, 1, (short) 3); why is it mad at me for this?
red underline
"SKULL_ITEM can not be resolved or is not a field"
@EventHandler
public void DamageEventSpeed(EntityDamageByEntityEvent e) {
if (e.getEntity() instanceof Player & e.getDamager() instanceof Player) {
Player p = (Player) e.getEntity();
if (!Z.cheat.contains(p)) {
Z.addcheat(p);
Bukkit.getScheduler().scheduleSyncDelayedTask(Main.getMain(), new Runnable() {
public void run() {
Z.removecheat(p);
}
}, 5);
} else {
Z.removecheat(p);
Z.addcheat(p);
Bukkit.getScheduler().scheduleSyncDelayedTask(Main.getMain(), new Runnable() {
public void run() {
Z.removecheat(p);
}
}, 5);
}
}
}```
since hastebin says something went wrong
@frigid ember ty
Bukkit.getScheduler().scheduleSyncDelayedTask(Main.getMain(), new Runnable() {
is it the Main class problem?
OK
SOMEONE
EXPLAIN TO ME
it returned?!?!?!
why did it do that!??!
OH MY GOD
its >
not <
🤦
its still happening
the registerEvents for the main file is giving me an error for StrafeForwardCheck
ty!
Any idea why it says "The server is currently full" when I set the message using e.disallow?
https://media.discordapp.net/attachments/696100387505176596/696878082690383973/Screenshot_1.png
e.disallow(PlayerLoginEvent.Result.KICK_OTHER, Util.color(main.getConfig().getString("queued")
.replace("%time%", String.valueOf(timeTotal))
.replace("%index%", String.valueOf(index))
.replace("%size%", String.valueOf(size))));
hey guys so i tried
to open my server
and no one but me can join
port open chcekers also report my server as closed
how do I fix this?
When I get a location it seems to be the corner of a block
So to get the center would you just
x = location.getX() + 0.25;
z = location.getZ() + 0.25;
or
0.50
Hey if two plugins are interfering with each other with commands, how can I change one of the commands?
If you want your command to override, use the command event, check what the command sent is and if its the one you want cancel the event. Then after that run whatever code you want
@grim sapphire ^
Im not the developer of either of these plugins
Just trying to troubleshoot with a user in my support channel
Can you modify plugin.yml without having to compile OS code?
No idea sorry
Any idea why it says "The server is currently full" when I set the message using e.disallow?
https://media.discordapp.net/attachments/696100387505176596/696878082690383973/Screenshot_1.png
well what have you tried
06.04 21:25:52 [Server] Server thread/WARN Task #29366 for GAListener v1.3.2 generated an exception
06.04 21:25:52 [Server] INFO java.lang.NoSuchMethodError: org.bukkit.Server._INVALID_getOnlinePlayers()[Lorg/bukkit/entity/Player;
06.04 21:25:52 [Server] INFO at com.swifteh.GAL.GAL$6.run(GAL.java:409) ~[?:?]
06.04 21:25:52 [Server] INFO at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftTask.run(CraftTask.java:81) ~[spigot-1.15.2.jar:git-Spigot-800b93f-8160e29]
06.04 21:25:52 [Server] INFO at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:394) [spigot-1.15.2.jar:git-Spigot-800b93f-8160e29]
06.04 21:25:52 [Server] INFO at net.minecraft.server.v1_15_R1.MinecraftServer.b(MinecraftServer.java:1036) [spigot-1.15.2.jar:git-Spigot-800b93f-8160e29]
06.04 21:25:52 [Server] INFO at net.minecraft.server.v1_15_R1.DedicatedServer.b(DedicatedServer.java:399) [spigot-1.15.2.jar:git-Spigot-800b93f-8160e29]
06.04 21:25:52 [Server] INFO at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:984) [spigot-1.15.2.jar:git-Spigot-800b93f-8160e29]
06.04 21:25:52 [Server] INFO at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:824) [spigot-1.15.2.jar:git-Spigot-800b93f-8160e29]
06.04 21:25:52 [Server] INFO at java.lang.Thread.run(Thread.java:745) [?:1.8.0_121]```
GAListener...Any ideas guys?
Oh god that's, a lot of text...sorry.
Old version of GAListener on a new server
Shoot, so doesn't support 1.15.2, bah
Any other listeners that work with Crates and Votifier you'd recommend perhaps?
Quick question; any ability to set priority command aliases in commands.yml?
I think SuperbVote is practically the successor, Shark
Hey guys, there's a plugin I really like, but it only works for 1.13. Can an experienced member please help me make it work for 1.15? I have the source code
Okay, so with that being said...just install this in the Plugin directory itself? I've seen some say to put it in Votifier's "Listener" directory and that seemed...odd.
anyone know why
is giving me a CraftCommandMap instead of SimpleCommandMap?
here are better screenshots
i would assume CraftCommandMap is the server's actual implementation of SimpleCommandMap
Hey if two plugins are interfering with each other with commands, how can I change one of the commands?
@grim sapphire You can use the plugin name before the command to run a command from a specific plugin e.g. if you wanted to run fly from essentials but it was covered you could do /essentials:fly
if you don't have a way to run them any other way there's a plugin I seen called UltraCommand, it lets you make alias commands from anything with top priority
Sorry, I figured out I can do a priority/override command in Commands.yml
@smoky tundra i don't really know what exactly that means, but i get the gist. How do i get around it? I need a way to get every single command and set it's permissions.
well you should be fine with what you're doing right now, but setting the permission of a command might be difficult because some people may have hard coded the commands permission with the actual logic of the command
i'm not worried about that, this is a all-in-one plugin not running with anything else
because the knownCommands field is NOT in CraftCommandMap
hmm assuming that assuming CraftCommandMap simply extends the SimpleCommandMap here, maybe try using getSuperclass() and then calling getDeclaredFields() to get the fields of SimpleCommandMap instead
you are right about CraftCommandMap extending SimpleCommandMap i will try that
getSuperClass() isnt a method
in CraftCommandMap
the line where you have highlighted where you're printing out the fields of commandMap, commandMap.getClass().getDeclaredFields() should becommandMap.getClass().getSuperclass().getDeclaredFields()
my bad
yeah
What's a good dedicated server host?
ive heard good thinks about Kimsufi which is a child company under OVH
Hi! any can help me with Bungeecord?, for security
Hey is it possible to omit resource updates from search results?
I think "search only descriptions" did the trick
- descriptions
cheers
This is probably really early to ask, and I haven't really seen too much, but do we have any idea how compatible plugins will be going in to 1.16? Sorry for probably a stupid question
Plugins that use Attributes will have to change some stuff for sure
pretty sure theres a tickbox for that
@fleet crane Hey bro, can you help me pls
so my method of adding a permission to every single command
seemed to
not work
or at least isnt doing what i wanted
i can still see all these commands
when i tab complete
and i thought adding permissions to them would prevent them from showing up? but that didnt work
Why are you adding permissions to all commands? What is it you're trying to hide exactly?
If they don't have permission for the command, they won't have it autocomplete
them showing up on the tab complete
yea i dont have permissions for them... but for some reason they still show up
if the commands still show, its that plugins fault for not using the API
not opped or anything
you can see stuff like bukkit:reload doesn't show because that does it correctly
and a lot of those look like Essentials commands
nope i only have 3 plugins running
Actually not even. Just misc plugins
ProtocolLib, LibsDisguises, and my own plugin
LibsDisguises ALSO appears in the tab list, for some reason
well did you define permissions for the commands in plugin.yml
^ there's a permission option for commands
no, i used Command#setPermission
wonders why that method exists
when i used it on the commands from my plugin it works
that should still probably work, but idk its not the normal method
however using it on others commands, did not
Yea, there are setters for a lot of fields that shouldn't really be set at runtime by a plugin
actually
my bad, it did work for all the commands i specified
the knownCommands map didnt grab everything i wanted to, for some reason
which is perfectly reasonable because i'm fully aware this is very unconventional
yay reflection causing trouble
yea it doesnt grab the commands from other plugins, could be startup order... not sure
putting the startup on POSTWORLD made it work the way i intended however doesnt sound like the right thing to do 😳
are you doing all that reflection stuff as soon as your plugin is started?
yes
you could just make it wait until the server has fully started
i'm fairly certain "POSTWORLD" is the default option for the startup field anyway
yea, this plugin wasnt writted by me, im just updating it
thats good info, because it was on startup
I have a problem when I die in minecraft in the lava or in the water it tells me that I cannot send messages and that I check the chat options but I already checked it and this is fine and it is happening to 5 people on the server
spanish?
from personal experience, i dont know if this applies to you, but i had that problem when a plugin used Entity#remove on a player
is it just lava or water? does it fix when they respawn?
that tends to happen when a plugin/server removes a player, or if a player tries to chat when dead
if it's the former, then you'll have to isolate which plugin is doing this
what I am saying is that it does not allow you to log in when putting / login does not allow it to send the message, is there any way to deactivate it for a moment?
I also don't know the commands it has
well the player needs to be alive for them to issue commands/send messages
have they actually respawned
i meant does it fix when they relog 😄
yes, but they appear dead and I don't know how to do it since I tried to teleport them and put them in creative
martoph And how do I get them to become a cash register?
well there's two problems i can think of:
- they havent clicked respawn
- their spawn is being cancelled by a plugin
is there any command to disable it momentarily?
or some way to make them resend or something? since the plugins the creator of the server does not believe that they can be
Why would ItemStack#clone be useful instead of just setting an ItemStack object to another ItemStack
Like
ItemStack newStack = oldStack.clone();
#vs
ItemStack newStack = oldStack;
@grim sapphire are you familiar with the difference between == and .equals?
== checks if two objects have the same pointer, .equals checks for contents
newStack.equals(oldStack) -> true
newStack == oldStack -> false
#vs
ItemStack newStack = oldStack;
newStack.equals(oldStack) -> true
newStack == oldStack -> true```
because all you are doing is setting newStack to point to the same data that oldStack is
but the first method makes newStack a new object with the exact same data
.clone() creates a new object of it?
Why would ItemStack#clone be useful instead of just setting an ItemStack object to another ItemStack
Same pointers. Making changes tonewStackwould affectoldStackas well
Yes
ItemStack is mutable so you would need to clone it if you don't want to modify the old one
Same thing with Location and Vector
is it beneficial to return a cloned newStack?
public ItemStack getNewStack() {
return oldStack.clone();
Any pros to this?
You can't modify the getNewStack in a way it affects oldStack
Encapsulation
When I try to verify myself using #verification it doesn’t send anything on https://www.spigotmc.org/conversations/
Hello
I have a Magma server, compatible with plugins and mods, but something quite strange happens to me and it seems to be related to the Essentials, since if I delete it it doesn't happen.
The thing is that when I go to sleep, it stays as if another player is missing and the night does not pass, nor does the spawn keep me in bed, I have tried sleeping alone and with other people, but they just do not sleep!
It seems like eternal night xd
Does anyone know what could be due?
There's two more problems, Magma =\= Spigot and Mods and Plugins don't go well together.
if we have already installed Spigot, and want to change to Paper can we switch the two without issues?
You should be able to switch without any major issues. Not sure about smaller more obscure ones though
I have never had an issue
@fleet crane
Guys.. i'm begging you! How long do i have to wait for a response to my Forum-Ban-Appeal?
I did not uploaded anything malicious. I uploaded nothing.
I'm not the guy who uploads shitty stuff... I'm the guy reporting shitty Stuff!
So why i'm banned?
I'm running a free to play survival server since 7 years and paid for a bunch of ressources for which i can't get updates for anymore...
I donated to SpigotMC also and i support everyone how i can help with my knowledge because i'm a helpful Person.
I wrote this E-Mail 4 days ago (https://paste.craft-together.de/jucuzesora)
And it seems like no one feels responsive to answer me.
I'm very disappointed.
and you were replied to yesterday
where?
by email....
I'm sorry but i get no email from you.. i've checked the spam-folder also
Whops.. There is it way back in the spam folder.. 🙈
Okay.. I'm sorry again.
I see the screenshot now.. but i'm cant explain to me what i see there..
Is this an uploaded ressource? Then i guess my Account was stolen.
Don't even know what a "Discord Voice Server Attack Gateway" should be 😮
Is it possible to confirm this? Maybe by checking the history of logged IP's?
I can't change my password while i'm banned.
I lost my account on the site, someone changed my password, then my email, I've got emails as proof.
send an email to support
Any suggestions why this is not longer working in those spots? It worked before
normal mp4
I was getting this error before:
*** Error, this build is outdated ***
*** Please download a new build as per instructions from https://www.spigotmc.org/go/outdated-spigot ***
*** Server will start in 20 seconds ***```
So i ran my update tool. The server is still 1.15.2, and I am still getting that message.
I believe so.
Is there a command I can run to check my build number?
/version
it says:
This server is running CraftBukkit version git-Spigot-56f8471-7554e08 (MC: 1.14.4) (Implementing API version 1.14.4-R0.1-SNAPSHOT) Which is wild because its definitely not running 1.14.4
i have bees though I'll reboot my entire server pc and see whats going on from there
16 gb in my pc and task manager shows there's like 15 gb unallocated
set max heap size using -Xmx2G
it's java
Sometimes people have 32bit java and wonder why they cant set Ram above 2GB
I just haven't been bothered
I reset my computer regularly
and only just installed my software dev stuff today
after league of legends consuming my life for the past 2 months
😛
this is amazing program, but sometimes apps are out of date
it saved so much time for me when I used windows
I didn't either a couple years ago
I certainly wouldn't recommend it to everyone still, but linux for desktop keeps getting better
what do you use your computer for?
its just like installing fresh os but with preinstalled chosen apps and configuration files
are all supportive of linux because that's the kind of industry y'know
in my opinion right now it's either for people who do a lot of development work or people who know nothing about computers
for example I could install linux on my parent's computer and they basically would not notice
people who know nothing about computers
they only need a web browser and email client
the only downside is no microsoft office
only if you pay a subscription right?
I think mac fits into the "knows nothing about computers" category
noo
beteter
free to use but requires microsoft account
ive used this recently a year ago
might use it myself then, I get headaches from libreoffice sometimes
me too xD
I'm probably not going to convert them though, I can't even convince them to store their important files on a NAS with automatic snapshots and offsite backups instead of on their 10 year old usb 2.0 external hard drive that is probably dying
is there a problem with google's office
yeah for most people it's enough
to have cloud based stuff
i have small storage server made of RaspberryPi+ 500GB drive and hamachi for LAN Network emulation
raspberry pis are awesome
I wonder if you can run ZFS on them
probably not enough memory
arduino is pretty cool
yeah sure it is
the whole open sourced thing is really epic
buy some esp8266 modules
open source compatible but with WiFi
all for the low price of $3
no, make awesome wifi based home automation gadgets :)
I
I've always wanted to
but it's like I already have google smart home stuff so it'd be weird to have 2 interfaces
use HomeAssistant, it's an awesome open source smart home hub
what's taking more ram? Pex or LP?
Dont know
But LP comes with web interface for easy configuration
Pex has more complicated commands
okay ill use lp
/lp editor
i know
Anyone willing to help me? I'm having some troubles with my plugins and tnt...
@normal swift it's not, once you start using docker with docker-compose you'll never want to go back
i brb
https://paste.gg/p/anonymous/88f3dd3dbccc41478ae774630d73bbbd
why does it send me the default no-permission message(im sorry but you dont have acces....) to me
It has to do something with the sudo.overwrite permission since if i remove that if/else statement it works fine
i gave myself all the permissions from the plugin
Getting oversized chunk error in console after filling the world with world guard any suggestions?
@narrow crypt you put sudo overwrite permission in sudo.exempt permission
yea isnt that possible?
AHH
YES
still the same @normal swift
if (target.hasPermission("sudo.exempt")) {
if (player.hasPermission("sudo.exempt.overwrite")) {
no
if (target.hasPermission("sudo.exempt.overwrite")) {
only
its just like in essentials plugin
essentials.tp.bypass and essentials.tp.bypasscooldown
or essentials.tp.*
for everything
but IF the target has sudo.exempt and the PLayer has sudo.exempt.overwrite
2 different people
https://cdn.discordapp.com/attachments/551613805176815655/697050894398914601/unknown.png
I am getting this error, I am not sure what it is but I am using the server jar file as my library, do I need a certain version of JDK or something?
its simple
update spigot
or
Okay lemme see if the new version works
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
Okay thanks
or use paper which conveniently patches the jar at runtime so you don't need builtools :-)
I usually use paper for servers but I tried a long time ago to use it for a library but it didn't work so I'll retry that as well
@narrow crypt let me compile your code and i will try to fix it
thanks :D
Latest version? I can use it as a library and a server, works fine?
you can send me plugin.yml on pm nad information about plugin so i can copy settings
what happened
Also do I have to put api version in the plugin.yml?
yes
1.15?
i forgot the purpose of the plugin: let others perform commands,
the error came from that the sudo'ed person didnt have permission to the command i gave
Ok ty
for 1.13+
like i did /sudo player say hi
i tested it on myself
I only had sudo permission, no permission to do /say
haha
Every day we're learning something xD
no problem
you can implement c:Message just like essentials did for 1:1 say message with prefix included and other stuff
but why should i use sudo.exempt.overwrite instead of sudo.exemptoverwrite
I'm confused, am I able to use the paper server jar as a library?
no
i thougth that one person need to have these both permissions
Ah
sudo as root .exempt as child and .overwrite as child to a child you know
just like a tree
yea to keep it nice ordered
yes
great thanks
i made the overwrite so the admin can still sudo the sudo.exempt guys
if you have moderators with sudo.exempt
so they can't sudo each other
I'm hella confused now
@proven elbow what do you need
your plugin will only have sudo command?
So I am doing plugin development, I need to get the library to do it?
i like to make small plugins
I have a paper server but I don't know if I can use that library
can you send me jour jar? i want to test it 🙂
yea sure 1 second
https://getbukkit.org/download/spigot
@proven elbow this
i sent the wrong one im sorry
I don't know what that is
ah
I have a question. So I am decent at java and have done it for around 3 years now. I am finally starting to get into databases now and moving away from json storage. I have successfully setup hibernate with data but I am running into one issue. I am not able to update and add a new column to a table. I have done some research and it seems like that hibernate will not handle updating tables to add new columns. So how do I approach this. I really just want a simple solution that automatically lets me update my data from my server. Do I use another solution such as MongoDB or do I stick with hibernate and continue to find a way to automatically update tables? I want the process to be as simple as possible. Sorry for the long question 😦
IntelliJ
Could you give me an example?
@proven elbow install Minecraft Development Plugin for automatic project creation
and Start Watching SourceCode on Youtube
he helped me sometimes
@velvet halo you have to send a query to the server, like when you want to add a Player to the players table, you would use a query like " INSERT INTO players (uuid) VALUES (p.getUniqueId().toString());"
I don't think you are understanding my question.
I am using an ORM to make it easier for myself to not really have to create sql queries
Inserting data is easy todo
However I want to know how I can add a column to an existing table that exists automatically
Have you used Hibernate ORM before?
Does Hibernate not have an alter table method or class available?
Because you would use the Alter Table SQL query to add a column to an existing table. I havent used Hibernate; so I dont see why it wouldnt have that in there? Or is it only for building databases?
@normal swift This plugin is nice, does it matter what server library I pick?
Yeah that is what I am doing but it doesn't seem to let me 😭
@velvet halo I dont see why it wouldnt work. Did you look over the final query it sends to the server and make sure its correct?
Yeah
[00:25:16] [Server thread/INFO]: Hibernate: alter table User_UserLocation add constraint FKgyrufx3oevwlqku9pi5wh6cwc foreign key (User_uuid) references User (uuid)
[00:25:16] [Server thread/INFO]: Hibernate: alter table UserLocation add constraint FK1w5eri4xn1065dy8pla8p3gcb foreign key (user_uuid) references User (uuid)
``` So here I create a relation between User and Location to create a one to many (user to man locactions) relation. It creates tables correctly so I know my queries are working
and altering tables works.
Ok nevermind...
It does work
but not when I add an enum to the entity
That is really strange
[00:29:15] [Server thread/INFO]: Hibernate: alter table User add column username varchar(255)
I can add a string
I'm struggling, I'm giving up now
@iHusker can you add your enum as a string? Enum.toString()?
And that's because you have the column set as a varchar, it only takes strings
That is true
I could take that approach
LOL
I know why it is erroring
So I am setting the column name to group
however that is also syntax for an sql statement
So it thinks I am trying to group something by something lol
UGH
lol
Solution
@Enumerated(EnumType.STRING)
@Column(name = "user_group", columnDefinition = "VARCHAR(16)")
private Group group;
Do not use group as a column name lol
🤣 🤦♂️
Lmao
I can't update my resource ..
what happens
nothing ..
completly nothing?
just the message of "update"
when i try to upload the new resource
it does not work
that's why i can't "update it "
try "post update resource"
nope :x
i think that your resource is updating successfully but your browser display that is not
try to clear cache in your browser
i think i know the issue
you should put in tag your skript version not minecraft version
to which version you trying to update
Glad it worked
joined this server in search of answers, recently got GWarp plugin and im trying to allow nonOP players to use it. The website said i could do this in the "PLugin-Config" file but all i downloaded was the jar file
where can i find the config file
Searching for a top 10 kills leaderboard for a 1.13.2 server. Can someone help?
- Customizable
I'm having some issues with PlaceholderAPI.
I register the expansion and all that with
PlaceholderAPI.registerExpansion(new Placeholder());
But whenever I load I get the following error:
Could not load 'plugins\KitLeveling-VERSION-1.0.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: me/clip/placeholderapi/expansion/PlaceholderExpansion
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:135) ~[server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) ~[server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugins(CraftServer.java:292) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:198) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:525) [server.jar:git-Spigot-db6de12-18fbb24]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_241]
Caused by: java.lang.NoClassDefFoundError: me/clip/placeholderapi/expansion/PlaceholderExpansion
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_241]
at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_241]
at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:64) ~[server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[server.jar:git-Spigot-db6de12-18fbb24]
... 6 more
Caused by: java.lang.ClassNotFoundException: me.clip.placeholderapi.expansion.PlaceholderExpansion
at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_241]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[server.jar:git-Spigot-db6de12-18fbb24]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_241]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_241]
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_241]
at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_241]
at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:64) ~[server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[server.jar:git-Spigot-db6de12-18fbb24]
... 6 more
In your plugin.yml, you should have softdepend: PlaceholderAPI
probably just depend: PlaceholderAPI if it fails like this
Silly me 😅
Searching for a top 10 kills leaderboard for a 1.13.2 server. Can someone help?
- Customizable
@light fern
I think papi has some PlaceholderExpansion for that iirc
I can't find it
I feel like the plugin.yml should accept both softdepend & softdepends and depend & depends because I can NEVER remember whether or not it's plural
when you set intellij to download documentation of dependencies, it does that
fancy
intellij does that on default yeah
i was wondering how it did that for ages
i'm feeling like going soon to intellij
if you're used to eclipse or whatever you use i'd just stick with that
joined this server in search of answers, recently got GWarp plugin and im trying to allow nonOP players to use it. The website said i could do this in the "PLugin-Config" file but all i downloaded was the jar file
@proud ferry config file is generated on first run. it is in /plugins/(Name of Plugin)
that's the minecraft development plugin, btw
adds linting for pl0gen.yml among it's other ❤️ features
I am using IntelliJ but I am planning on going to eclipse 🤡
oh no
thats illegal
i mean, if you value yourself that little, go for it
I don't like the new font I am moving to eclipse
you can always change intellij look by installing plugins
im using material dark lite
i use fira code
Yeah it is really nice to program with
Nope lol
SHIT
They made their own font called Jetbrains mono
I could probably make my own in a similar style. That one is actually one of the few dark themed programming fonts that looks okay
This is mine
I like clean, minimal pastel colours
Ever heard of Source Code Pro?
i havent touched the colours since i installed it, only the font
i guess it look somewhat like the jetbrains font
go with hack font
.<
Wow I want consolas font
Arial ( ͡° ͜ʖ ͡°)
oh no
xD
what about coding with emojis ( ͡° ͜ʖ ͡°)
( ͡ʘ ͜ʖ ͡ʘ)
see
you think you're joking
but sir that is a possibility
https://www.emojicode.org
that's exactly my point lmao
windows+. spamming intensifies
Screams in pain
🏁 🍇
🍿 🔤Hey!🔤 🔤Hi!🔤 🔤Howdy!🔤 🔤Aloha!🔤 🍆 ➡️ list
😀 🐽list 0❗️❗️
🍉
You're God damn right
Is that "Hey" in console I hear? Yes it is
You could type Hello World
🏁 🍇
😀 🔤 Hello world! 🔤
🍉
Hell yea
Honestly easy af
seems fair
Making plugin by using EmojiCode
rip help channel
Is there a standard way to use databases in a plugin at the moment? Seems like the old bukkit database provider was removed.
Hm, do you think is that possible to cast ItemStack from player inventory into interface that I made and this item is also created by class that extends ItemStack and implements interface that im talking about
cuz I can see that hashCode of this object is the same even when player is triggering interact event
ah that makes sense, mysql and sqlite are still shaded into spigot. nice
@cobalt tree if the stack from the player's inventory is an instance of your interface then yes
btw are you planning on doing that through a plugin?
The SQL driver is still provided by Spigot, yes, you can safely use those
@minor spruce it should be but I can see it's not. It's weird cuz like I said hashCode is the same.
I got this:
java.lang.ClassCastException: Cannot cast org.bukkit.craftbukkit.v1_15_R1.inventory.CraftItemStack to org.XXX.item.ItemInterface
So I thought lol its CraftItemStack so I used reflection to get ItemStack instead but I got this:
java.lang.ClassCastException: Cannot cast org.bukkit.inventory.ItemStack to org.XXX.item.ItemInterface
Hey anyone knows what version of guava spigot 1.8 comes shaded with? I'm getting errors because I seem to be using a newer version of guava as a dependency than spigot provides
you'd have to set the item in the player's inventory to an instance of your interface before you can cast
idk about 1.15, but in 1.8 CraftItemStack and net.minecraft.server.ItemStack are final so you have to modify the spigot source
What is ItemInterface. What are you doing?
oh. Yea, you can't (and shouldn't) extend ItemStack. CraftBukkit won't recognize it as an implementation because it converts between ItemStack, CraftItemStack and n.m.s.ItemStack
shit
Any ItemStack returned from Bukkit is a Bukkit copy of NMS item stacks
i knew it
I made the whole system for custom items that are included in my resource. After that I thought why not to cast it to interface when player is triggering interact event
I can see now that's not possible
Yea, not exactly how that works unfortunately
extending the itemstack works for setting in inventories or as a builder
Sure, only for that instance you've just created. Though if you're fetching it from Bukkit at all, it will never work. It returns copies
Though again, Bukkit is not meant to be extended or implemented (with the exception of things like BukkitRunnable)
See the package summary of org.bukkit
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/package-summary.html#
If I add my project to for example GitHub, should really every file end with an empty line so also README.md or the plugin.yml?
Adding newlines to the end of your file is convention. Some automated systems (generally older ones) consider lines to be terminated by a carriage return. If not present, it may ignore the last line of your file and cause failures
(especially in Java where the last line of your program is usually a closing brace, which is vital lol)
Alright, thank you. that means I am not only going to add an empty new line to the Java source files, but also to configuration files etc
Better safe than sorry, really. It's a good habit to get into
I wouldn't worry too much about it for README files or whatever though if you want to, it's fine
Generally it's recommended for source files (and configurations, I suppose)
thanks for the help
https://media.discordapp.net/attachments/696100387505176596/696878082690383973/Screenshot_1.png
Can someone tell me why the "Server is currently full" message is still there when I use e.disallow on PlayerJoinEvent
plugin?
Its mine
well
it's hard to tell with out a code extract
but surely e.dissallow, disallows the connection?
I dont see PlayerJoinEvent#disallow on the docs...
ah
you're using PlayerLoginEvent
Oh
Phaze, what did you put in the .disallow(Result
whats the result, if you set it to PlayerLoginEvent.KICK_FULL
that's why
if thats not the case
then somewhere is using PlayerLoginEvent#setKickMessage or PlayerLoginEvent#setResult when they are kicked
Who can help me with one plugin? im not developer
what i must do when i see this on chat? (an internal error occurred while attempting to perform this command) im trying to type /tc (this is plugin terraincontrol) (my english is not good i think sorry)
maybie is not version of plugin same as your version of mc
plugin is 1.8.9 and server is 1.8.8 i think this must work
or plugins have problems
has anyone plugin terraincontrol for 1.8.8 mc version ?
@frigid ember
it doesn't support 1.8.8
it will not work.
Literally says that on the page
get a developer to try to make it support it mate
else u can't use it.
it's built for 1.9 only.
Your biggest issue is running a 4 year old server
"bUt mY pLaYeRs WaNt ThIs VeRsIoN" doesn't matter
theyre not lmao
u need server booster
okay maybe you know how i can make biome/world without ocean village and other ?
hardcore server
theyre not lmao
@glad flax Mmmmm, I'm gonna have to disagree with you on that one, chief. 1.8.9 was released in December of 2015
.8 released in July, even
everyone can help me make map for server hardcore?
i don't want have ocean and village
and mountaints
package for my server is complete only i don't can make this biome
maybe name other plugin what can do that ?
pls help
@frigid ember if u not required to have infinite world, you can use WorldPainter
this is hard ?
No, just search for custom brushes and go make the world
this is not hard, but you need a lot time to paint good world
okay thank you can you send me link to this ?
Anyone know why PlayerInteractEvent is firing twice for me
here's some code
if (p.getInventory().getItemInMainHand().getType().equals(Material.STICK) && e.getClickedBlock().getType() != Material.AIR) {
Material block = e.getClickedBlock().getType();
p.sendMessage("hello :)" + " - Love " + block);
}
It sends a message twice which is strange
could I get some help from forum staff? I'd like an account I made to be deleted because i want the email i used on it, but apparently its banned for "alt" so I cant
oh I thought an interact event was right click, whoops
Hello, So i have problem with this code
it doesn't dispawn mobs on chunk generating any idea how to fix it?
@EventHandler
public void onSpawn(CreatureSpawnEvent e) {
e.setCancelled(true);
for (Player p : Bukkit.getOnlinePlayers()) p.sendMessage(e.getEntity().getType().name());
}
just clear the entities from ChunkPopulateEvent's chunk
ok thanks
Hey guys! I don't know how "offtopic" is this but here it goes. I've created a new world using ProjectWorlds and a new portal using ProjectPortals, but unfortunately all the players are getting "You do not have permission to travel". Any hints why...?
I have a map built on 1.12 and when I try to convert it to 1.15.2 (using single player's optimize world) some chunks are lost. Is it because there is too big difference between two versions and I should do it partially (1.12 -> 1.13.2 -> 1.14.4 -> 1.15.2)? And is --forceUpdate something that could solve that issue?
did you set permissons for players?
@alpine vector nope, I didn't. how can I do that if you don't mind?
@serene inlet you are using spigot right? ProjectWorlds is sponge plugin
Oh, sorry, I'm using Sponge
im having trouble with randompackage, could anyone help me resolve this error? https://hasteb.in/kusuxeyi.shell
yea xd
this is the config for the enchant
maybe wrap the keys in ""
applies to > "applies to" ?
or dont try to use spaces when in yaml
for(Entity entity : e.getChunk().getEntities()) entity.remove() is this right way of doing it?
don't think so
cant you set its health to 0?
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/Entity.html#remove--
it just marks the entity for removal
Entity doesn't have setHealth
LivingEntity does
