Skip to content

Commit 074ff07

Browse files
committed
Initial commit for rewrite
1 parent f218255 commit 074ff07

35 files changed

+1428
-316
lines changed

.gitignore

+175-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,175 @@
1-
.idea
2-
nbproject
1+
# Created by .ignore support plugin (hsz.mobi)
2+
### OSX template
3+
.DS_Store
4+
.AppleDouble
5+
.LSOverride
6+
7+
# Icon must end with two \r
8+
Icon
9+
10+
# Thumbnails
11+
._*
12+
13+
# Files that might appear in the root of a volume
14+
.DocumentRevisions-V100
15+
.fseventsd
16+
.Spotlight-V100
17+
.TemporaryItems
18+
.Trashes
19+
.VolumeIcon.icns
20+
21+
# Directories potentially created on remote AFP share
22+
.AppleDB
23+
.AppleDesktop
24+
Network Trash Folder
25+
Temporary Items
26+
.apdisk
27+
### NotepadPP template
28+
# Notepad++ backups #
29+
*.bak
30+
### NetBeans template
31+
nbproject/private/
32+
build/
33+
nbbuild/
34+
dist/
35+
nbdist/
36+
nbactions.xml
37+
nb-configuration.xml
38+
.nb-gradle/
39+
### SublimeText template
40+
# cache files for sublime text
41+
*.tmlanguage.cache
42+
*.tmPreferences.cache
43+
*.stTheme.cache
44+
45+
# workspace files are user-specific
46+
*.sublime-workspace
47+
48+
# project files should be checked into the repository, unless a significant
49+
# proportion of contributors will probably not be using SublimeText
50+
# *.sublime-project
51+
52+
# sftp configuration file
53+
sftp-config.json
54+
### Linux template
55+
*~
56+
57+
# KDE directory preferences
58+
.directory
59+
60+
# Linux trash folder which might appear on any partition or disk
61+
.Trash-*
62+
### Eclipse template
63+
*.pydevproject
64+
.metadata
65+
.gradle
66+
bin/
67+
tmp/
68+
*.tmp
69+
*.bak
70+
*.swp
71+
*~.nib
72+
local.properties
73+
.settings/
74+
.loadpath
75+
76+
# Eclipse Core
77+
.project
78+
79+
# External tool builders
80+
.externalToolBuilders/
81+
82+
# Locally stored "Eclipse launch configurations"
83+
*.launch
84+
85+
# CDT-specific
86+
.cproject
87+
88+
# JDT-specific (Eclipse Java Development Tools)
89+
.classpath
90+
91+
# Java annotation processor (APT)
92+
.factorypath
93+
94+
# PDT-specific
95+
.buildpath
96+
97+
# sbteclipse plugin
98+
.target
99+
100+
# TeXlipse plugin
101+
.texlipse
102+
### Windows template
103+
# Windows image file caches
104+
Thumbs.db
105+
ehthumbs.db
106+
107+
# Folder config file
108+
Desktop.ini
109+
110+
# Recycle Bin used on file shares
111+
$RECYCLE.BIN/
112+
113+
# Windows Installer files
114+
*.cab
115+
*.msi
116+
*.msm
117+
*.msp
118+
119+
# Windows shortcuts
120+
*.lnk
121+
### Vim template
122+
[._]*.s[a-w][a-z]
123+
[._]s[a-w][a-z]
124+
*.un~
125+
Session.vim
126+
.netrwhist
127+
*~
128+
### JetBrains template
129+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio
130+
131+
*.iml
132+
133+
## Directory-based project format:
134+
.idea/
135+
# if you remove the above rule, at least ignore the following:
136+
137+
# User-specific stuff:
138+
# .idea/workspace.xml
139+
# .idea/tasks.xml
140+
# .idea/dictionaries
141+
142+
# Sensitive or high-churn files:
143+
# .idea/dataSources.ids
144+
# .idea/dataSources.xml
145+
# .idea/sqlDataSources.xml
146+
# .idea/dynamic.xml
147+
# .idea/uiDesigner.xml
148+
149+
# Gradle:
150+
# .idea/gradle.xml
151+
# .idea/libraries
152+
153+
# Mongo Explorer plugin:
154+
# .idea/mongoSettings.xml
155+
156+
## File-based project format:
157+
*.ipr
158+
*.iws
159+
160+
## Plugin-specific files:
161+
162+
# IntelliJ
163+
/out/
164+
165+
# mpeltonen/sbt-idea plugin
166+
.idea_modules/
167+
168+
# JIRA plugin
169+
atlassian-ide-plugin.xml
170+
171+
# Crashlytics plugin (for Android Studio and IntelliJ)
172+
com_crashlytics_export_strings.xml
173+
crashlytics.properties
174+
crashlytics-build.properties
175+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
3+
/*
4+
* CaptureTheFlag
5+
*
6+
* Copyright (C) 2015 LegendsOfMCPE
7+
*
8+
* This program is free software: you can redistribute it and/or modify
9+
* it under the terms of the GNU Lesser General Public License as published by
10+
* the Free Software Foundation, either version 3 of the License, or
11+
* (at your option) any later version.
12+
*
13+
* @author LegendsOfMCPE
14+
*/
15+
16+
namespace DynamicHub\CaptureTheFlag;
17+
18+
use DynamicHub\Gamer\Gamer;
19+
use DynamicHub\Module\Match\MatchBasedGame;
20+
use DynamicHub\Utils\StaticTranslatable;
21+
22+
class CTFGame extends MatchBasedGame{
23+
public function __construct(CaptureTheFlag $owner){
24+
parent::__construct($owner, new StaticTranslatable("CTF"));
25+
}
26+
27+
public function onJoin(Gamer $gamer){
28+
// TODO: Implement onJoin() method.
29+
}
30+
31+
public function onQuit(Gamer $gamer){
32+
// TODO: Implement onQuit() method.
33+
}
34+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
/*
4+
* CaptureTheFlag
5+
*
6+
* Copyright (C) 2015 LegendsOfMCPE
7+
*
8+
* This program is free software: you can redistribute it and/or modify
9+
* it under the terms of the GNU Lesser General Public License as published by
10+
* the Free Software Foundation, either version 3 of the License, or
11+
* (at your option) any later version.
12+
*
13+
* @author LegendsOfMCPE
14+
*/
15+
16+
namespace DynamicHub\CaptureTheFlag;
17+
18+
use DynamicHub\DynamicHub;
19+
use pocketmine\plugin\PluginBase;
20+
21+
class CaptureTheFlag extends PluginBase{
22+
/** @type CTFGame */
23+
private $game;
24+
25+
public function onEnable(){
26+
$hub = DynamicHub::getInstance($this->getServer());
27+
$hub->loadGame($this->game = new CTFGame($this));
28+
}
29+
}

DynamicHub/TODO List.md

-7
This file was deleted.

DynamicHub/entry/entry.php

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
/*
4+
* DynamicHub
5+
*
6+
* Copyright (C) 2015 LegendsOfMCPE
7+
*
8+
* This program is free software: you can redistribute it and/or modify
9+
* it under the terms of the GNU Lesser General Public License as published by
10+
* the Free Software Foundation, either version 3 of the License, or
11+
* (at your option) any later version.
12+
*
13+
* @author LegendsOfMCPE
14+
*/

DynamicHub/permissions.json

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"dynamichub": {
3+
"description": "Root permission node for DynamicHub permissions",
4+
"default": "false",
5+
"children": {
6+
"edit": {
7+
"description": "Permission to edit the world",
8+
"default": "op",
9+
"children": {
10+
"hub": {
11+
"description": "Permission to edit the hub world",
12+
"default": "op"
13+
}
14+
}
15+
}
16+
}
17+
}
18+
}

DynamicHub/plugin.yml

-9
This file was deleted.

DynamicHub/resources/config.yml

+69-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,70 @@
11
---
2-
# Initialize session when:
3-
# Options: "join", "auth" (requires SimpleAuth)
4-
sessionInit: auth
5-
...
2+
### configuration for everyone
3+
4+
# if set to true, only one game can be run on this server, and players automatically join that game after being authenticated.
5+
single: false
6+
7+
integrations:
8+
# available auth integrations:
9+
# nil (auth on join)
10+
# SimpleAuth (auth if logged in/registered with SimpleAuth)
11+
# ServerAuth (auth if logged in/registered with ServerAuth)
12+
auth: nil
13+
14+
### configuration for those who turned `single` off, i.e. multiple games work on this server
15+
16+
# methods to join a game
17+
joinMethods:
18+
# possible types: sign, portal, key, command
19+
20+
# sign: click a sign with certain text on a certain line
21+
- type: sign
22+
# if line 2 of a clicked sign is...
23+
matchingLine: 2
24+
# "example" (case-insensitive)
25+
matches: example
26+
# then let the player join Hub. Put name of the target game or "Hub" for going back to hub here.
27+
target: Hub
28+
29+
# portal: walk into a portal between start and end
30+
- type: portal
31+
# coordinates of one corner of the portal
32+
start: [1, 5, 9]
33+
# coordiantes of the diagonally opposite corner
34+
end: [5, 7, 2]
35+
target: ExampleGame
36+
# world to activate this method in, or delete this line for all worlds (like in the first method)
37+
world: world
38+
39+
# key: click a "key" on a "lock"
40+
- type: key
41+
# the "key", which is an item, or any items if you delete this line
42+
# in this example, item of ID 345 and damage 0 (compass) is used
43+
key: {itemId: 267, damage: 0}
44+
# the "lock", which is a block specified by coordinates, or any blocks if you delete this line
45+
# in this example, the block at 4:5:6 is used as the lock
46+
lock: [4, 5, 6]
47+
target: ExampleGame
48+
world: world
49+
50+
# command: type a command
51+
- type: command
52+
# the command name, case-insensitive and cannot contain a colon (:) or a space
53+
name: hub
54+
# aliases for the command
55+
aliases: [spawn, lobby, back]
56+
target: Hub
57+
58+
hub:
59+
defaultItems:
60+
# you can omit damage and count to let them stay at their default values of 0 and 1 respectively
61+
- itemId: 345
62+
count: 3
63+
- itemId: 267
64+
damage: 1
65+
66+
# world name of the hub world
67+
worldName: world
68+
69+
# only players with the dynamichub.edit.hub permission can edit the hub world
70+
protect: true

0 commit comments

Comments
 (0)