- Баллы
- 66
- Ник в Minecraft
- MasterCapeXD
Со временем сервер ложится из-за перенагрузки сервера, а проблема в том, что плагин с начале кода заставляет кучу одинаковых строк.Вот пример, для лучшего понимания проблемы
Там дальше код.Возможно, ошибка есть дальше, но если у других такая же проблема, другим тоже может эта тема помочь!
Вот так он засоряется, засоряется.И потом памяти все меньше и...Дальше понятны последствия.Надеюсь на помощь!
Код:
# Other settings for categories:
# - The Item in Main Menu.
# - Do you want a BackToMainMenu Arrow in it?
# Other settings for categories:
# - The Item in Main Menu.
# - Do you want a BackToMainMenu Arrow in it?
# Other settings for categories:
# - The Item in Main Menu.
# - Do you want a BackToMainMenu Arrow in it?
# Other settings for categories:
# - The Item in Main Menu.
# - Do you want a BackToMainMenu Arrow in it?
Check-For-Updates: true
Categories-Enabled:
Gadgets: true
Particle-Effects: true
Mounts: true
Pets: true
Morphs: false
Hats: true
Suits: true
Emotes: true
# Other settings for categories:
# - The Item in Main Menu.
# - Do you want a BackToMainMenu Arrow in it?
Categories:
Gadgets:
Main-Menu-Item: '409:0'
Go-Back-Arrow: true
# You wanna show the cooldown of current gadget in actionbar?
Cooldown-In-ActionBar: true
Particle-Effects:
Main-Menu-Item: '399:0'
Go-Back-Arrow: true
Mounts:
Main-Menu-Item: '329:0'
Go-Back-Arrow: true
Pets:
Main-Menu-Item: '352:0'
Go-Back-Arrow: true
Morphs:
Main-Menu-Item: '334:0'
Go-Back-Arrow: true
Hats:
Main-Menu-Item: '314:0'
Go-Back-Arrow: true
Suits:
Main-Menu-Item: '299:0'
Go-Back-Arrow: true
Emotes:
Go-Back-Arrow: true
Clear-Cosmetic-Item: '152:0'
# Previous Page Item
Previous-Page-Item: '368:0'
# Next Page Item
Next-Page-Item: '381:0'
# Back to Main Menu Item
Back-Main-Menu-Item: '262:0'
Self-View-Item:
# Item in Morphs Menu when Self View enabled.
When-Enabled: '381:0'
# Item in Morphs Menu when Self View disabled.
When-Disabled: '368:0'
Gadgets-Item:
# Item in Gadgets Menu when Gadgets enabled.
When-Enabled: '351:10'
# Item in Gadgets Menu when Gadgets disabled.
When-Disabled: '351:8'
# Item in Pets Menu to rename current pet.
Rename-Pet-Item: '421:0'
# Should GUI close after selecting a cosmetic?
Close-GUI-After-Select: true
Back-To-Main-Menu-Custom-Command:
Enabled: false
Command: cc open custommenu.yml {player}
# Treasure Chests Settings.
# /uc reload will not be enough to toggle them!
#
# NOTE: Money will be given
# to player even if disabled in case
# there is nothing to give!
#
#
# About Treasure Chests designs:
# For a list of effect: http://pastebin.com/CVKkufck
# For the chest-types: NORMAL or ENDER
# Material syntax: 'id:data'
# You CAN make more designs just copy one, paste it and modify.
# Not twice same name!
#
# Some infos:
# center-block: The block on the center.
# around-center: Blocks around the center
# third-blocks: blocks "around around" the center.
# below-chests: Block below the chests.
# barriers: the barrier.
# chest-type: The chest type (NORMAL or ENDER)
# effect: The effect (complete list: http://pastebin.com/CVKkufck)
#
# For permission command:
# Change it to correspond to your Permissions plugin!
# Default one is Pex's.
#
TreasureChests:
Enabled: true
Key-Price: 1000
Loots:
Money:
Enabled: true
Max: 500
Chance: 60
Message:
enabled: false
message: '&eГаджеты &8> &eПолучено &7%money% дикоинов'
Gadgets-Ammo:
Enabled: false
Min: 20
Max: 100
Chance: 60
Message:
enabled: false
message: '%prefix% &6&l%name% found %ammo% %gadget% ammo'
Gadgets:
Enabled: true
Chance: 10
Message:
enabled: false
message: '%prefix% &6&l%name% found gadget %gadget%'
Mounts:
Enabled: true
Chance: 10
Message:
enabled: false
message: '%prefix% &6&l%name% found rare %mount%'
Pets:
Enabled: true
Chance: 10
Message:
enabled: false
message: '%prefix% &6&l%name% found rare %pet%'
Morphs:
Enabled: false
Chance: 10
Message:
enabled: true
message: '%prefix% &6&l%name% found legendary %morph%'
Effects:
Enabled: true
Chance: 15
Message:
enabled: true
message: '%prefix% &6&l%name% found legendary %effect%'
Hats:
Enabled: true
Chance: 35
Message:
enabled: false
message: '%prefix% &6&l%name% found rare %hat%'
Suits:
Enabled: true
Chance: 10
Message:
enabled: false
message: '%prefix% &6&l%name% found rare %suit%'
Emotes:
Enabled: true
Chance: 10
Message:
enabled: false
message: '%prefix% &6&l%name% found rare %emote%'
Designs:
Classic:
center-block: '169:0'
around-center: '5:0'
third-blocks: '5:1'
below-chests: '17:0'
barriers: '85:0'
chest-type: NORMAL
effect: FLAME
Permission-Add-Command: pex user %name% add %permission%
# This option will fill the blank slots of inventories
# with a custom item!
Fill-Blank-Slots-With-Item:
Enabled: false
Item: '160:15'
# Toggle this to allow players to rename pets.
#
# Permission-Required:
# If true, the permission:
# ultracosmetics.pets.rename
# will be required to rename a pet.
#
# Requires Money:
# If true, money will be required
# to rename a pet.
Pets-Rename:
Enabled: false
Permission-Required: false
Requires-Money:
Enabled: true
Price: 100
# Do pets drop items? (not pickable up by players)
Pets-Drop-Items: true
# Are pets babies?
Pets-Are-Babies: true
# Do you want the mounts
# that normally make block trails
# to do so?
Mounts-Block-Trails: true
# This option allows to use ammo
# for gadgets, for limited uses.
# Ammo can be given with /uc give ammo
# or bought from menu when activating gadget.
#
# For the system: 'file' or 'mysql'
#
# If you set mysql, please fill the MySQL infos.
Ammo-System-For-Gadgets:
Enabled: false
System: file
MySQL:
hostname: localhost
username: root
password: password
port: '3306'
database: UltraCosmetics
# Do you want that in the gadgets menu
# each gadget item has an amount
# corresponding to your ammo.
Show-Ammo-In-Menu-As-Item-Amount: true
# The menu item settings.
#
# List for type: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html
Menu-Item:
Give-On-Join: true
Give-On-Respawn: true
Slot: 5
Type: ENDER_CHEST
Data: 0
Displayname: '&e&lГаджеты'
# Settings related to permissions.
#
# List for "Type" https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html
No-Permission:
Show-In-Lore: true
Lore-Message-Yes: '&o&7?????: &a&l????!'
Lore-Message-No: '&o&7?????: &4&l????!'
Dont-Show-Item: false
Custom-Item:
enabled: false
Type: INK_SACK
Data: 8
Name: '&c&l{cosmetic-name}'
Lore:
- ''
- ''
- ''
# If set to true, in messages the cosmetics' names
# won't be colored.
# Example:
# With true: &a&lYou activated &9&lPaintball Gun!
# With false: &a&lYou activated Paintball Gun!
Chat-Cosmetic-PlaceHolder-Color: true
# What is the slot for gadgets?
Gadget-Slot: 3
# If toggled to true,
# players will be able to remove
# their current gadget by pressing
# their drop key.
Remove-Gadget-With-Drop: false
# List of the worlds
# where cosmetics are enabled!
Enabled-Worlds:
- world
- lobby
Gadgets:
BatBlaster:
# Description of this cosmetic.
Description:
- ''
Cooldown: 8.0
# Should it affect players? (Velocity, etc.)
Affect-Players: true
# if true, the gadget will be enabled.
Enabled: true
# if true, the description of gadget will be showed.
Show-Description: true
# if true, it'll be possible to find
# it in treasure chests
Can-Be-Found-In-Treasure-Chests: true
Chickenator:
# Description of this cosmetic.
Description:
- ''
Cooldown: 6.0
# Should it affect players? (Velocity, etc.)
Affect-Players: true
# if true, the gadget will be enabled.
Enabled: true
# if true, the description of gadget will be showed.
Show-Description: true
# if true, it'll be possible to find
# it in treasure chests
Can-Be-Found-In-Treasure-Chests: true
ColorBomb:
# Description of this cosmetic.
Description:
- ''
Cooldown: 25.0
# Should it affect players? (Velocity, etc.)
Affect-Players: true
# if true, the gadget will be enabled.
Enabled: true
# if true, the description of gadget will be showed.
Show-Description: true
# if true, it'll be possible to find
# it in treasure chests
Can-Be-Found-In-Treasure-Chests: true
DiscoBall:
# Description of this cosmetic.
Description:
- ''
Cooldown: 45.0
# Should it affect players? (Velocity, etc.)
Affect-Players: true
# if true, the gadget will be enabled.
Enabled: true
# if true, the description of gadget will be showed.
Show-Description: true
# if true, it'll be possible to find
# it in treasure chests
Can-Be-Found-In-Treasure-Chests: true
EtherealPearl:
# Description of this cosmetic.
Description:
- ''
Cooldown: 2.0
# Should it affect players? (Velocity, etc.)
Affect-Players: true
# if true, the gadget will be enabled.
Enabled: true
# if true, the description of gadget will be showed.
Show-Description: true
# if true, it'll be possible to find
# it in treasure chests
Can-Be-Found-In-Treasure-Chests: true
FleshHook:
# Description of this cosmetic.
Description:
- ''
Cooldown: 5.0
# Should it affect players? (Velocity, etc.)
Affect-Players: true
# if true, the gadget will be enabled.
Enabled: true
# if true, the description of gadget will be showed.
Show-Description: true
# if true, it'll be possible to find
# it in treasure chests
Can-Be-Found-In-Treasure-Chests: true
MelonThrower:
# Description of this cosmetic.
Description:
- ''
Cooldown: 2.0
# Should it affect players? (Velocity, etc.)
Affect-Players: true
# if true, the gadget will be enabled.
Enabled: true
# if true, the description of gadget will be showed.
Show-Description: true
# if true, it'll be possible to find
# it in treasure chests
Can-Be-Found-In-Treasure-Chests: true
BlizzardBlaster:
# Description of this cosmetic.
Description:
- ''
Cooldown: 12.0
# Should it affect players? (Velocity, etc.)
Affect-Players: true
# if true, the gadget will be enabled.
Enabled: true
# if true, the description of gadget will be showed.
Show-Description: true
# if true, it'll be possible to find
# it in treasure chests
Can-Be-Found-In-Treasure-Chests: true
PortalGun:
# Description of this cosmetic.
Description:
- ''
Cooldown: 2.0
# Should it affect players? (Velocity, etc.)
Affect-Players: true
# if true, the gadget will be enabled.
Enabled: true
# if true, the description of gadget will be showed.
Show-Description: true
# if true, it'll be possible to find
# it in treasure chests
Can-Be-Found-In-Treasure-Chests: true
ExplosiveSheep:
# Description of this cosmetic.
Description:
- ''
Cooldown: 25.0
# Should it affect players? (Velocity, etc.)
Affect-Players: true
# if true, the gadget will be enabled.
Enabled: true
# if true, the description of gadget will be showed.
Show-Description: true
# if true, it'll be possible to find
# it in treasure chests
Can-Be-Found-In-Treasure-Chests: true
PaintballGun:
# Description of this cosmetic.
Description:
- ''
Cooldown: 0.5
# Should it affect players? (Velocity, etc.)
Affect-Players: true
# if true, the gadget will be enabled.
Enabled: true
# if true, the description of gadget will be showed.
Show-Description: true
# if true, it'll be possible to find
# it in treasure chests
Can-Be-Found-In-Treasure-Chests: true
# With what block will it paint?
Block-Type: STAINED_CLAY
Particle:
# Should it display particles?
Enabled: false
# what particles? (List: http://pastebin.com/CVKkufck)
Effect: FIREWORKS_SPARK
# The radius of painting.
Radius: 2
# A list of the blocks that
# can't be painted.
BlackList:
- REDSTONE_BLOCK
ThorHammer:
# Description of this cosmetic.
Description:
- ''
Cooldown: 8.0
# Should it affect players? (Velocity, etc.)
Affect-Players: true
# if true, the gadget will be enabled.
Enabled: true
# if true, the description of gadget will be showed.
Show-Description: true
# if true, it'll be possible to find
# it in treasure chests
Can-Be-Found-In-Treasure-Chests: true
AntiGravity:
# Description of this cosmetic.
Description:
- ''
Cooldown: 30.0
# Should it affect players? (Velocity, etc.)
Affect-Players: true
# if true, the gadget will be enabled.
Enabled: true
# if true, the description of gadget will be showed.
Show-Description: true
# if true, it'll be possible to find
# it in treasure chests
Can-Be-Found-In-Treasure-Chests: true
SmashDown:
# Description of this cosmetic.
Description:
- ''
Cooldown: 15.0
# Should it affect players? (Velocity, etc.)
Affect-Players: true
# if true, the gadget will be enabled.
Enabled: true
# if true, the description of gadget will be showed.
Show-Description: true
# if true, it'll be possible to find
# it in treasure chests
Can-Be-Found-In-Treasure-Chests: true
Rocket:
# Description of this cosmetic.
Description:
- ''
Cooldown: 60.0
# Should it affect players? (Velocity, etc.)
Affect-Players: true
# if true, the gadget will be enabled.
Enabled: true
# if true, the description of gadget will be showed.
Show-Description: true
# if true, it'll be possible to find
# it in treasure chests
Can-Be-Found-In-Treasure-Chests: true
Там дальше код.Возможно, ошибка есть дальше, но если у других такая же проблема, другим тоже может эта тема помочь!
Вот так он засоряется, засоряется.И потом памяти все меньше и...Дальше понятны последствия.Надеюсь на помощь!
Последнее редактирование: