Restructures the plugin and starts work on cleaning and commenting the code

This commit is contained in:
2021-02-07 03:37:25 +01:00
parent 2480a432a4
commit 6ff998ac3b
46 changed files with 4918 additions and 4690 deletions

View File

@ -0,0 +1,54 @@
# stargate Configuration File
# Main stargate config
#
# portal-folder - The folder for storing portals
# gate-folder - The folder for storing gate layouts
# default-gate-network - The default gate network
# destroyexplosion - Whether or not to destroy gates with explosions (Creeper, TNT, etc)
# maxgates - The maximum number of gates allowed on a network - 0 for unlimited
# lang - The language file to load for messages
# destMemory - Whether to remember the cursor location between uses
# ignoreEntrance - Ignore the entrance blocks of a gate when checking. Used to work around snowmen
# handleVehicles - Whether to allow vehicles through gates
# sortLists - Whether to sort network lists alphabetically
# protectEntrance - Whether to protect gate entrance material (More resource intensive. Only enable if using destroyable open/closed material)
# signColor - The color used for drawing signs (Default: BLACK).
# verifyPortals - Whether or not all the non-sign blocks are checked to match the gate layout when a stargate is loaded.
############################
# stargate economy options #
############################
# useeconomy - Whether to use an economy plugin
# createcost - The cost to create a gate
# destroycost - The cost to destroy a gate
# usecost - The cost to use a gate
# toowner - Whether the charge for using a gate goes to the gates owner
# chargefreedestination - Whether a gate whose destination is a free gate is still charged
# freegatesgreen - Whether a free gate in the destination list is drawn green
#################
# Debug options #
#################
# debug - Debug -- Only enable if you have issues, massive console output
# permdebug - This will output any and all Permissions checks to console, used for permissions debugging (Requires debug: true)
portal-folder: plugins/stargate/portals/
gate-folder: plugins/stargate/gates/
default-gate-network: central
destroyexplosion: false
maxgates: 0
lang: en
destMemory: false
ignoreEntrance: false
handleVehicles: true
sortLists: false
protectEntrance: false
signColor: BLACK
useeconomy: false
createcost: 0
destroycost: 0
usecost: 0
toowner: false
chargefreedestination: true
freegatesgreen: false
debug: false
permdebug: false
enableBungee: false
verifyPortals: false

View File

@ -0,0 +1,28 @@
author=EduardBaer
prefix=[Stargate]
teleportMsg=Du wurdest Teleportiert.
destroyMsg=Gate zerst<73>rt
invalidMsg=Ung<6E>ltiges Ziel
blockMsg=Ziel blockiert
destEmpty=Zielliste leer
denyMsg=Zugriff verweigert
ecoDeduct=%cost% abgezogen
ecoRefund=%cost% zur<75>ckerstattet
ecoObtain=%cost% von Stargate %portal% erhalten
ecoInFunds=Das kannst du dir nicht leisten.
createMsg=Gate erstellt.
createNetDeny=Du hast keinen Zugriff auf dieses Netzwerk.
createGateDeny=Du hast keinen Zugriff auf dieses Gate-Layout.
createPersonal=Gate im pers<72>nlichen Netzwerk erstellt.
createNameLength=Name zu kurz oder zu chosenLanguage.
createExists=Ein Gate mit diesem Name existiert bereits.
createFull=Dieses Netzwerk ist voll.
createWorldDeny=Du hast keinen Zugriff auf diese Welt.
createConflict=Dieses Gate steht im Konflikt mit einem bereits existierenden.
signRightClick=Right click
signToUse=to use gate
signRandom=Random
signDisconnected=Disconnected

View File

@ -0,0 +1,32 @@
prefix=[Stargate]
teleportMsg=Teleported
destroyMsg=Gate Destroyed
invalidMsg=Invalid Destination
blockMsg=Destination Blocked
destEmpty=Destination List Empty
denyMsg=Access Denied
ecoDeduct=Deducted %cost%
ecoRefund=Refunded %cost%
ecoObtain=Obtained %cost% from Stargate %portal%
ecoInFunds=Insufficient Funds
createMsg=Gate Created
createNetDeny=You do not have access to that network
createGateDeny=You do not have access to that gate layout
createPersonal=Creating gate on personal network
createNameLength=Name too short or too long.
createExists=A gate by that name already exists
createFull=This network is full
createWorldDeny=You do not have access to that world
createConflict=Gate conflicts with existing gate
signRightClick=Right click
signToUse=to use gate
signRandom=Random
signDisconnected=Disconnected
bungeeDisabled=BungeeCord support is disabled.
bungeeDeny=You do not have permission to create BungeeCord gates.
bungeeEmpty=BungeeCord gates require both a destination and network.
bungeeSign=Teleport to

View File

@ -0,0 +1,28 @@
author=Manuestaire
prefix=[Stargate]
teleportMsg=Teletransportado
destroyMsg=Portal Destru<72>do
invalidMsg=Elige Destino
blockMsg=Destino Bloqueado
destEmpty=La lista de destinos est<73> vac<61>a
denyMsg=Acceso denegado
ecoDeduct=Pagaste %cost%
ecoRefund=Reembolsado %cost%
ecoObtain=Obtenido %cost% del Portal %portal%
ecoInFunds=No tienes suficiente dinero
createMsg=Portal creado
createNetDeny=No tienes acceso a esta red
createGateDeny=No tienes acceso a este dise<73>o de portal
createPersonal=Creando el portal en una red personal
createNameLength=Nombre demasiado largo o demasiado corto
createExists=Ya existe una puerta con este nombre
createFull=Esta red est<73> llena
createWorldDeny=No tienes permisos para acceder a ese mundo
createConflict=El portal entra en conflicto con un portal ya existente
signRightClick=Click derecho
signToUse=para usar
signRandom=Aleatorio
signDisconnected=Desconectado

View File

@ -0,0 +1,28 @@
author=Dauphin14
prefix=[Stargate]
teleportMsg=Téléportation Réussie.
destroyMsg=Portail detruit.
invalidMsg=Destination invalide.
blockMsg=Destination bloquée.
destEmpty=Aucune Destination disponible.
denyMsg=Accès Refusé.
ecoDeduct=Retrait de %cost%.
ecoRefund=Remboursement de %cost%.
ecoObtain=Gain de %cost% du Portail %portal%.
ecoInFunds=Ressources insuffisantes.
createMsg=Portail Créé
createNetDeny=Vous n'avez pas accès à ce réseau.
createGateDeny=Vous n'avez pas accès à ce type de portail.
createPersonal=Portail créé sur le réseau personnel.
createNameLength=Nom trop long ou trop court.
createExists=Il existe déjà un portail avec le même nom.
createFull=Le reseau est plein.
createWorldDeny=Vous n'avez pas accès à ce monde.
createConflict=Ce portail entre en conflit avec un portail déjà existant.
signRightClick=Right click
signToUse=to use gate
signRandom=Random
signDisconnected=Disconnected

View File

@ -0,0 +1,28 @@
author=HPoltergeist
prefix=[Stargate]
teleportMsg=Teleportálás
destroyMsg=Kapu törölve
invalidMsg=Nincs ilyen cél
blockMsg=Cél blokkolva
destEmpty=A cél lista üres
denyMsg=Hozzáférés megtagadva
ecoDeduct=%cost% levonva
ecoRefund=%cost% visszatérítve
ecoObtain=%cost% bevétel a következő kapuból: %portal%
ecoInFunds=Nincs elég pénzed
createMsg=Kapu elkészült
createNetDeny=Nincs hozzáférésed ahhoz a hálózathoz
createGateDeny=Nincs hozzáférésed ahhoz a kapucsoporthoz
createPersonal=Kapu készítése magán hálózaton
createNameLength=A név túl rövid vagy túl hosszú
createExists=Már van ilyen nevű kapu
createFull=Ez a hálózat tele van
createWorldDeny=Nincs hozzáférésed ahhoz a világhoz
createConflict=Ez a kapu ütközik egy meglévö kapuval
signRightClick=Jobb katt a
signToUse=használathoz
signRandom=Random
signDisconnected=Szétkapcsolva

View File

@ -0,0 +1,28 @@
author=fr33soul
prefix=[Stargate]
teleportMsg=Teletrasporto
destroyMsg=Portale distrutto
invalidMsg=Destinazione invalida
blockMsg=Destinazione bloccata
destEmpty=Lista destinazioni vuota
denyMsg=Accesso Negato
ecoDeduct=%cost% pagato
ecoRefund=%cost% rimborsato
ecoObtain=%cost% ottenuto dal portale %portal%
ecoInFunds=Credito insufficiente
createMsg=Portale creato
createNetDeny=Non hai accesso a questa rete
createGateDeny=Non hai accesso a questo portale speciale
createPersonal=Creazione di un portale sulla rete personale
createNameLength=Nome troppo corto o troppo lungo.
createExists=Questo nome gia' esiste
createFull=Questa rete e' piena
createWorldDeny=Non hai accesso a questo mondo
createConflict=Il portale crea conflitti con uno gia' esistente
signRightClick=Right click
signToUse=to use gate
signRandom=Random
signDisconnected=Disconnected

View File

@ -0,0 +1,28 @@
author=Grovert11
prefix=[Stargate]
teleportMsg=Je bent geteleporteerd.
destroyMsg=Gate kapot gemaakt
invalidMsg=Ongeldige bestemming
blockMsg=Bestemming geblokkeerd
destEmpty=Bestemmingslijst leeg
denyMsg=Toegang geweigerd
ecoDeduct=%cost% afgeschreven
ecoRefund=%cost% terug gekregen
ecoObtain=%cost% gekregen van Stargate %portal%
ecoInFunds=Saldo niet toereikend
createMsg=Gate gemaakt
createNetDeny=Je hebt geen toegang tot dat netwerk.
createGateDeny=Je mag die Gate-Layout niet gebruiken
createPersonal=Gate op persoonlijk netwerk gemaakt.
createNameLength=Naam te chosenLanguage of te kort.
createExists=Er bestaat al een gate met die naam
createFull=Dit netwerk is vol.
createWorldDeny=Je mag niet in die wereld komen.
createConflict=Gate maakt een conflict met een bestaande gate.
signRightClick=Right click
signToUse=to use gate
signRandom=Random
signDisconnected=Disconnected

View File

@ -0,0 +1,28 @@
author=TheProbleemm
prefix=[Stargate]
teleportMsg=Voce foi teleportado.
destroyMsg=Portal destruido.
invalidMsg=Destino Nao conectado/invalido.
blockMsg=Destino bloqueado.
destEmpty=Lista de destino vazia.
denyMsg=Acesso negado. Voce nao tem permissao.
ecoDeduct=O teleporte custou: R$ %cost%.
ecoRefund=Voce foi reembolsado: R$ %cost%.
ecoObtain=Foi obtido R$ %cost% do portal %portal%.
ecoInFunds=Fundos insuficientes.
createMsg=Portal criado.
createNetDeny=Voce nao tem acesso a essa rede.
createGateDeny=Voce nao tem acesso a esse portal layout.
createPersonal=Criando portal em rede pessoal.
createNameLength=Nome muito curto ou muito grande.
createExists=J<> existe um portal com esse nome.
createFull=Esta rede esta cheia.
createWorldDeny=Voce nao tem acesso a esse mundo.
createConflict=Portal em conflito com um portal ja existente.
signRightClick=Right click
signToUse=to use gate
signRandom=Random
signDisconnected=Disconnected

View File

@ -0,0 +1,28 @@
author=ckr@jk
prefix=[Портал]
teleportMsg=Вы перемещены
destroyMsg=Портал уничтожен
invalidMsg=Недопустимый пункт назначения
blockMsg=Пункт назначения заблокирован
destEmpty=Список пунктов назначения пуст
denyMsg=Доступ запрещен
ecoDeduct=Вычтено %cost%
ecoRefund=Возвращено %cost%
ecoObtain=Получено %cost% с портала %portal%
ecoInFunds=Недостаточно средств
createMsg=Портал создан
createNetDeny=У вас нет доступа к этой сети порталов
createGateDeny=У вас нет доступа к размещению портала
createPersonal=Создание портала с персональной сетью
createNameLength=Имя слишком короткое или слишком длинное
createExists=Портал с таким именем уже существует
createFull=Эта сеть порталов заполнена
createWorldDeny=У вас нет доступа к этому миру
createConflict=Портал конфликтует с уже существующим порталом
signRightClick=Right click
signToUse=to use gate
signRandom=Random
signDisconnected=Disconnected

View File

@ -0,0 +1,30 @@
name: Stargate
main: net.knarcraft.stargate.Stargate
version: 0.8.0.0
description: Stargate mod for Bukkit
author: EpicKnarvik97
website: https://knarcraft.net
api-version: 1.16
commands:
sg:
description: Used to reload the plugin. Console use only.
usage: /<command> reload - Used to reload the plugin. Console use only.
permissions:
stargate.use:
description: Allow use of all gates linking to any world in any network
default: true
stargate.create:
description: Allow creating gates on any network
default: op
stargate.destroy:
description: Allow destruction gates on any network
default: op
stargate.free:
description: Allow free use/creation/destruction of gates
default: op
stargate.option:
description: Allow use of all options
default: op
stargate.admin:
description: Allow all admin features (Hidden/Private only so far)
default: op