Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RenoSG
- RenoSG plugin is a plugin that is based on a pot pvp. After game gets required amount of players pre-match will begin and player will have some time to look around and find themself best direction to go. Last to live is a winner.
- Author: FaceSlap_/Activated_
- PRICES
- ◆ Source (With Updates): $40,99
- ◆ Jar is included in resource purchase!
- Want re-sell rights?
- Re-sell rights are €150
- [SPOILER="API"]Will post when I have written up the final documentation[/SPOILER]
- Required Plugins:
- None
- FEATURES
- Configuration
- Announce - Bungee announce that the game is about to start
- Data saved in MongoDB
- Synchronized data and settings
- Chest configuration in game
- Start Countdown
- Pre-match Countdown
- Feasts Countdown
- PvP Countdown
- Deathmatch Countdown
- Enderpearl Cooldown
- CombatTag
- CustomTab
- Leaderboards
- Lobby support as fallback server
- Lobby support as waiting world
- Glass Border (Like Badlion)
- Colors system (Main color, Secondary color, Middle color) - can be edited in gui in game - http://prntscr.com/lsjit9
- Points system (gain points by killing other players)
- Settings for players - based on points rewards
- So much more..
- DEFAULT CONFIGURATION
- [CODE]MONGODB:
- ADDRESS: 'mongoAdress'
- PORT: 25565
- DATABASE: 'mongoBase'
- AUTHENTICATION:
- ENABLED: false
- USERNAME: 'mongoUser'
- PASSWORD: 'mongoPassword'
- DATABASE: 'mongoBase'
- COLORS:
- MAIN: '&6'
- SECONDARY: '&f'
- MIDDLE: '&e'
- ROADS:
- MAKE-ROADS: false
- ROAD-MATERIALS:
- - 'COBBLESTONE'
- - 'GRASS'
- - 'GRAVEL'
- - 'STONE'
- CHAT-FORMAT:
- ENABLED: true
- FORMAT: '&e<player_display_name>&7: &e<message>'
- SERVER-PREMIUM: false
- LEADERBOARD-FORMAT: '&f<pos>. &e<name>&7: &7(&6<amount>&7)'
- PREFIXES:
- GAME: '&7[&6&lPotSG&7] '
- BORDER: '&7[&6&lBorder&7] '
- WORLDS:
- LOBBY: 'lobby'
- GAME: 'potsg_map'
- #IF YOU NEED TO SET SPAWN LOCATION USE DEFAULT COMMAND /setworldspawn, here you can set only yaw and pitch directions
- LOCATIONS:
- LOBBY:
- YAW: -90
- PITCH: 0
- BOOLEANS:
- PRE-LOAD-CHUNKS: true
- LOBBY-ENABLED: true
- DEATH-MATCH: true
- LOBBY-FALLBACK-SERVER: 'hub'
- DEATH-MATCH:
- FLOOR-MATERIALS:
- - 'BEDROCK'
- - 'STONE'
- WALL-MATERIALS:
- TOP:
- - 'FENCE'
- BEETWEEN:
- - 'BEDROCK'
- - 'COBBLESTONE'
- - 'STONE'
- BOTTOM:
- - 'BEDROCK'
- INFORMATIONS:
- WEB: 'www.your-web.com'
- IP: 'mc.your-ip.eu'
- TS: 'ts.your-ip.eu'
- STORE: 'store.your-store.com'
- SERVER: 'SG1'
- BORDER:
- START: 500
- SHRINK-UNTIL: 25
- SHRINK-EVERY-MINUTES: 5
- SHRINK-STREAM: '500;200;150;100;50;25'
- START-BORDER: 500
- REBOOT_COMMAND: 'restart'
- TITLES:
- TAB: ' &6&lPotSG &c(Beta)'
- SCOREBOARD: '&6&lPotSG &c(Beta])'
- JOIN-MESSAGE:
- - '&7&m------------------------'
- - '&eWelcome, &f<player> &eto &6PotSG &c[Beta]'
- - ''
- - '&c&lThis is FFA game and teaming is not allowed.'
- - '&c&lPlease play on yor own and avoid teaming.'
- - ''
- - '&7&oPlease report all bugs to our staff members!'
- - '&7&m------------------------'
- POINTS:
- PER-KILL: 5
- PER-WIN: 10
- MINIMUM-PLAYERS-TO-START-GAME: 10
- MAXIMUM-PLAYERS-PER-GAME: 30
- COUNTDOWNS:
- IN-SECONDS:
- START: 20
- PRE-MATCH: 60
- PVP-PROT: 180
- REBOOT: 20
- IN-MINUTES:
- FEASTS-SPAWN: 10
- #DEATHMATCH COUNTDOWN WILL START AFTER FEAST COUNTDOWN
- DEATH-MATCH: 3
- [/CODE]
- AVAILABLE COMMANDS
- [CODE]⇨ /color - edit colors
- ⇨ /announce - bungee announce that the game will start soon
- ⇨ /data - all commands available for data
- ⇨ /game - all commands available for in-game stuff
- ⇨ /reloadfiles - reload all files
- ⇨ /respawn - respawn player if respawn info is valid
- ⇨ /spectator add:remove <player>
- ⇨ /settings
- ⇨ /spectatorchat
- ⇨ /stats[/CODE]
- Code snippets
- Main
- [SPOILER="Reno.java"]
- [CODE]package me.activated.renosg;
- import lombok.Getter;
- import lombok.Setter;
- import me.activated.renosg.border.BorderManager;
- import me.activated.renosg.layouts.BoardLayout;
- import me.activated.renosg.utils.Utils;
- import me.activated.renosg.utils.leaderboards.LeaderboardManager;
- import me.activated.renosg.other.PlayerListener;
- import me.activated.renosg.layouts.TabLayout;
- import me.activated.renosg.managers.WorldsManager;
- import me.activated.renosg.utils.RegisterHandler;
- import me.activated.renosg.utils.board.BoardManager;
- import me.activated.renosg.utils.command.CommandFramework;
- import me.activated.renosg.utils.configurations.ConfigFile;
- import me.activated.renosg.utils.tab.TabProvider;
- import me.activated.renosg.utils.tasks.DataSaveTask;
- import me.activated.renosg.utils.tasks.LobbyTask;
- import me.activated.renosg.utils.tasks.PlayerTask;
- import org.bukkit.Bukkit;
- import org.bukkit.ChatColor;
- import org.bukkit.plugin.java.JavaPlugin;
- import java.util.ArrayList;
- import java.util.Arrays;
- import java.util.List;
- @Getter
- @Setter
- public class Reno extends JavaPlugin {
- @Getter
- public static Reno instance;
- private CommandFramework framework;
- private List<ConfigFile> files = new ArrayList<>();
- private BoardManager boardManager;
- private boolean pluginLoading;
- @Override
- public void onEnable() {
- instance = this;
- pluginLoading = true;
- framework = new CommandFramework(this);
- setBoardManager(new BoardManager(this, new BoardLayout()));
- new TabProvider(this, new TabLayout());
- registerConfigurations();
- if (!isBorderShrinksStreamValid()) {
- Bukkit.getConsoleSender().sendMessage(ChatColor.GREEN + "[Reno] Reno plugin can't be enabled. Please check your configuration for " + ChatColor.YELLOW + "Border Shrinks Stream.");
- Bukkit.getPluginManager().disablePlugin(this);
- return;
- }
- RegisterHandler.loadListenersFromPackage(this, "me.activated.renosg.listeners");
- RegisterHandler.loadListenersFromPackage(this, "me.activated.renosg.managers");
- RegisterHandler.loadCommandsFromPackage(this, "me.activated.renosg.commands");
- getServer().getPluginManager().registerEvents(new PlayerListener(), this);
- new LeaderboardManager();
- new BorderManager();
- getServer().getScheduler().scheduleAsyncRepeatingTask(this, new LobbyTask(), 20L, 20L);
- getServer().getScheduler().scheduleSyncRepeatingTask(this, new PlayerTask(), 2L, 2L);
- getServer().getScheduler().scheduleSyncRepeatingTask(this, new DataSaveTask(), 200L, 200L);
- new WorldsManager();
- Bukkit.getConsoleSender().sendMessage(ChatColor.GREEN + "[Reno] Beta version is now enabled.");
- }
- public ConfigFile getConfiguration(String name) {
- return files.stream().filter(config -> config.getName().equals(name)).findFirst().orElse(null);
- }
- public boolean isBorderShrinksStreamValid() {
- String shrinkStream = Reno.getInstance().getConfiguration("config").getString("BORDER.SHRINK-STREAM");
- String[] shrinksStream = shrinkStream.split(";");
- for (String shrink : shrinksStream) {
- if (!Utils.isInteger(shrink)) {
- return false;
- }
- }
- return true;
- }
- public void registerConfigurations() {
- files.addAll(Arrays.asList(
- new ConfigFile("config"),
- new ConfigFile("messages"),
- new ConfigFile("chests")
- ));
- }
- public void setBoardManager(BoardManager boardManager) {
- this.boardManager = boardManager;
- long interval = this.boardManager.getAdapter().getInterval();
- this.getServer().getScheduler().runTaskTimerAsynchronously(this, this.boardManager, interval, interval);
- this.getServer().getPluginManager().registerEvents(this.boardManager, this);
- }
- }
- [/CODE]
- [/SPOILER]
- MEDIA
- [SPOILER="Media"][MEDIA=imgur]a/I0IbzqY[/MEDIA][/SPOILER]
- PROOF OF OWNERSHIP
- [SPOILER="Proof of ownership"]
- [/SPOILER]
- Contact Informations
- ϟ Discord: Activated_#1539
- ϟ Telegram: Activated99
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement