So, I am coding a plugin that changes a player's prefix. How do you make it so that only the prefix changes according to the plugin and let the suffix be set by other plugins?
↧
Changing only the PREFIX of the player
↧
Permissions with MakeYourOwnCommands
Hello. I created commands with MakeYourOwnCommands. All the commands has the permission "myoc". The group "player" has the permission myoc but they can't do the commands! If you know how to solve this problem, please tell me.
PS: i use PermissionEx
PS: i use PermissionEx
↧
↧
One extra item with /give if i cancel the PlayerDropItemEvent
Hello if i cancel the PlayerDropItemEvent and i give me a item with the /give command i get one extra item.
So if i do /give player stone 3 i get 4 stone.
I think it is a bug or ?
So if i do /give player stone 3 i get 4 stone.
Code (Text):
@EventHandler
public void dropItem(PlayerDropItemEvent event)
{
event.setCancelled(true);
}
public void dropItem(PlayerDropItemEvent event)
{
event.setCancelled(true);
}
↧
Generating point between 2 regions
Ok so I am creating a plugin that needs to find the point in between 2 regions given below as an example
1 2 3 4 5
1 / X X X /
2 / X X X /
3 / X X X /
4 / / / / /
5 / / / / /
/ Represent where I want to get the point and X represents where I dont want the point
I have access to all the points (5,5) (1,1) (2,1) (4,3)
And I want to randomly select a point in the /.
1 2 3 4 5
1 / X X X /
2 / X X X /
3 / X X X /
4 / / / / /
5 / / / / /
/ Represent where I want to get the point and X represents where I dont want the point
I have access to all the points (5,5) (1,1) (2,1) (4,3)
And I want to randomly select a point in the /.
↧
AddItem supposed to stack?
So I'm trying to use Inventory.addItem(itemstack) to add an item, I always thought these items stacked by themselves, or do I have to write the code to make these stack?
↧
↧
How to make giants attack
how can i get the giants to attack some entity?
ps: method #setTarget(LivingEntity) doenst works
ps: method #setTarget(LivingEntity) doenst works
↧
PlayerBucketFillEvent does not work when filling a bucket with milk.
I'm back (again) sigh... and this time I am having some difficulty with logging the bucket fill event, when a player goes to fill a bucket with milk. The code that is present does not do the job. I have tried many other ways (Item Stack, bucket, etc) and still have failed. Any solutions spigoters? I am thinking this may require a hack-filled solution.
Here's the code:
PlayerBucketFillEvent does not work when filling a bucket with milk.
Here's the code:
Code (Text):
// track who fills buckets...
@EventHandler
public void onFill(PlayerBucketFillEvent e) {...
@EventHandler
public void onFill(PlayerBucketFillEvent e) {...
↧
removing entities
Little bit of a wordy question but hope you get the point:
So my code is spawning entities when the plugin is enabled, and is removing them when disabled. My issue is, sometimes the plugin is not disabled, such as when the server is forcibly closed (I'm on a VPS) and I need to prepare for that risk. That means, when I start the server again the previous entities will still be there.
Please don't suggest: "kill all entities of that type before spawning the new ones on enable" -...
removing entities
So my code is spawning entities when the plugin is enabled, and is removing them when disabled. My issue is, sometimes the plugin is not disabled, such as when the server is forcibly closed (I'm on a VPS) and I need to prepare for that risk. That means, when I start the server again the previous entities will still be there.
Please don't suggest: "kill all entities of that type before spawning the new ones on enable" -...
removing entities
↧
Server crash
Hello,
I tried to figure out why does my server crash after a while? Server has been up and running for 3 weeks but now today it has crashed 2 times already and will probably crash again soon. Also wanted to mention that i haven't installed plugins today so it shouldn't be plugin problem but i'm not sure.
Here is my crash-report:
https://pastebin.com/tBL8PmZF
I tried to figure out why does my server crash after a while? Server has been up and running for 3 weeks but now today it has crashed 2 times already and will probably crash again soon. Also wanted to mention that i haven't installed plugins today so it shouldn't be plugin problem but i'm not sure.
Here is my crash-report:
https://pastebin.com/tBL8PmZF
↧
↧
How to block plugin exploit
I've seen many hackers viewing my plugins with "Plugin Exploit", also I tried it with a user account and I can see plugins.
Plugin exploit is from a hacked client, I will not say the name for some reasons, but lot of people know it.
How I can prevent that?
Plugin exploit is from a hacked client, I will not say the name for some reasons, but lot of people know it.
How I can prevent that?
↧
Skript
How to set an image to a variable ?
↧
Adding lines to a string list with cmd
Hello. I'm trying to add a command that adds the users input to a string list in the configuration.
So far I've got:
Thank you...
Adding lines to a string list with cmd
So far I've got:
Code (Text):
if(args[0].equalsIgnoreCase("addmessage")) {
String addmsg = "";
for(int i = 1; i < args.length; i++)addmsg += " " + args[i];
addmsg.replaceFirst("", "");
// somehow do stuff here to add the string "addmsg" to a new line under the string list in the config
String addmsg = "";
for(int i = 1; i < args.length; i++)addmsg += " " + args[i];
addmsg.replaceFirst("", "");
// somehow do stuff here to add the string "addmsg" to a new line under the string list in the config
Thank you...
Adding lines to a string list with cmd
↧
Half the world is water
Hello everyone!
Today i have spent hours upon hours
trying to figure out why this isnt working.
I made a singleplayer world and then tryed
to load it through multiverse, and it went all
well but half the world was an ocean.
Thanks
~ Nelson
Today i have spent hours upon hours
trying to figure out why this isnt working.
I made a singleplayer world and then tryed
to load it through multiverse, and it went all
well but half the world was an ocean.
Thanks
~ Nelson
↧
↧
need help with plugin error
Okay, so I am relatively new to spigot api and java in general, but anyways, I was attempting to make a plugin to check all players echests to see if they have more than 20 spawners in their echest (spawners already arnt stackable) and then notify console. I keep getting a nullpointerexception but I do not know how to fix. Any help would be much appreciated.
import org.bukkit.Material;
import org.bukkit.OfflinePlayer;
import org.bukkit.command.Command;
import...
need help with plugin error
import org.bukkit.Material;
import org.bukkit.OfflinePlayer;
import org.bukkit.command.Command;
import...
need help with plugin error
↧
Reflection API Question
Is it possible to query fields inside a method with Reflection?
Or is it possible at all? If so, what library would allow me to do such thing?
Or is it possible at all? If so, what library would allow me to do such thing?
↧
Java Error Closing Server
I start my server and after 20 minutes or something like this it appears this message and stops
Java Error Closing Server
Code (Text):
java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method) ~[?:1.8.0_151]
at java.lang.Thread.start(Thread.java:717) ~[?:1.8.0_151]
at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:957) ~[?:1.8.0_151]
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1378) ~[?:1.8.0_151]
at...
at java.lang.Thread.start0(Native Method) ~[?:1.8.0_151]
at java.lang.Thread.start(Thread.java:717) ~[?:1.8.0_151]
at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:957) ~[?:1.8.0_151]
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1378) ~[?:1.8.0_151]
at...
↧
Event on item slot active in hotbar
Well how did i could check what item is active in hotbar? without clicks or something like that ?
↧
↧
XenForo
Hello!
I have a few forum pages on my website that I want to have default users to be able to post, and see their post and posts by an Admin (or the sticky threads), but I don't want them to see other posts by other default users. I wanted this done in my reports section, ban appeals section, staff applications section & purchase help section.
Any idea on how to do this?
Thanks!
~ cxil
I have a few forum pages on my website that I want to have default users to be able to post, and see their post and posts by an Admin (or the sticky threads), but I don't want them to see other posts by other default users. I wanted this done in my reports section, ban appeals section, staff applications section & purchase help section.
Any idea on how to do this?
Thanks!
~ cxil
↧
Event no triggered
Hi!
I actually work on a cosmetics menu, and I have a problem.
When I player click on a item in the main menu, I redirect the player in a second menu:
https://pastebin.com/17hwPYJn
Then I wait for another click on the second menu:
https://pastebin.com/4jwJJK6E
This two code is two differents classes. I have registered these classes.
But this time, I don't have any message on chat (not even this one in the other class because it broadcast the msg outside of the...
Event no triggered
I actually work on a cosmetics menu, and I have a problem.
When I player click on a item in the main menu, I redirect the player in a second menu:
https://pastebin.com/17hwPYJn
Then I wait for another click on the second menu:
https://pastebin.com/4jwJJK6E
This two code is two differents classes. I have registered these classes.
But this time, I don't have any message on chat (not even this one in the other class because it broadcast the msg outside of the...
Event no triggered
↧
How much would it cost to build a host?
Hello,
I was wondering what are the costs of building a hosting provider like mcprohosting, server.pro and many others. From hiring the developers to advertising the company.
I was wondering what are the costs of building a hosting provider like mcprohosting, server.pro and many others. From hiring the developers to advertising the company.
↧