A feature-rich Minecraft plugin which enhances gaming experience
git clone git://soophie.de/poppy
1
{2
"java.configuration.updateBuildConfiguration": "automatic"2
"java.configuration.updateBuildConfiguration": "automatic",3
"editor.insertSpaces": false4
}4
\ No newline at end of file
51
task local (dependsOn: 'jar', type: Copy) {52
from project.file('build/libs')53
into 'E:/run/spigot-16.5/plugins'53
into 'E:/run/spigot-17/plugins'54
}54
\ No newline at end of file
10
usage: /skull <player>11
standby:12
usage: /standby <true, false>13
kit:13
\ No newline at end of file13
kit:14
world:15
usage: /world <name>15
\ No newline at end of file
10
import org.bukkit.ChatColor;11
import org.bukkit.GameMode;12
import org.bukkit.Material;13
import org.bukkit.World;14
import org.bukkit.WorldCreator;15
import org.bukkit.WorldType;16
import org.bukkit.command.Command;17
import org.bukkit.command.CommandSender;18
import org.bukkit.entity.Player;
116
}117
}118
});120
new WorldCreator("creative")121
.type(WorldType.FLAT)122
.generateStructures(false)123
.createWorld();124
}126
@Override
242
player.sendMessage(ChatColor.GRAY + "Standby mode is now " + (enabled ? "enabled" : "disabled"));243
}245
if(label.equals("world"))246
{247
if(!player.isOp())248
{249
player.sendMessage(DefaultConstants.Messages.NOT_ENOUGH_PERMISSION);250
return true;251
}253
if(args.length != 1)254
{255
return false;256
}258
World world = Bukkit.getWorld(args[0]);260
if(world == null)261
{262
player.sendMessage(DefaultConstants.Messages.WORLD_NOT_EXIST);263
return true;264
}266
player.teleport(world.getSpawnLocation());267
}268
}270
return true;
12
public static final String NOT_ENOUGH_PERMISSION = ChatColor.RED + "You don't have enough Permission to perform this command!";13
public static final String ALREADY_INGAME = ChatColor.RED + "You're already ingame!";14
public static final String NOT_INGAME = ChatColor.RED + "You're not ingame!";15
public static final String WORLD_NOT_EXIST = ChatColor.RED + "This world does not exist!";16
}17
}