`T` Terminal Gates
Pheotis opened this issue ยท 0 comments
Background
Since it's conception, a key use case for StarGate has been the Towny gamemode.
In addition to individual players' portal networks, it was common practice for towns to be linked to a server's spawn via portals.
Generally, a building was made for the exitpoints of such portals; this building was often called the 'nexus' or 'terminal'.
Traditionally, the process of operating a 'nexus' or 'terminal' systems was manual in nature, and often the responsibility of staff.
With the T
flag, we hope to automate that process and thereby create a scalable terminal system.
Pictured: part of a popular 2013 Towny Server's terminal/nexus.
Specification
The flag T
and a configurable network, by default Terminal
will be assigned to this feature.
By specifying the default network, Terminal
, or a different network and the "T" flag, the gate is included in the nexus system.
Creating a base (origin) gate (inside the terminal building)
Creating an origin gate will require a permission check of some sort.
Paid (Vault)
<Base Gate Name>
$<Price>
Terminal
<flags>
<Base Gate Name>
$<Price>
<NetworkName>
T<flags>
Free
<Base Gate Name>
Terminal
<flags>
<Base Gate Name>
<NetworkName>
T<flags>
Creating a node (exit) gate (inside the town/destination)
This will require a different node, which everyone will have by default.
Creating a gate will require that the price outlined on the base (origin) sign be paid.
<Exit Gate Name>
<Base Gate Name>
Terminal
<flags>
<Exit Gate Name>
<Base Gate Name>
<NetworkName>
T<flags>
Towny Examples
Server-Level (Network) Example
An admin creates this gate inside of a nexus building.
Nexus45
$5000
Terminal
A
A nation's king/queen buys it by building this gate inside of their nation spawn ($5000 is deducted from their vault balance).
Note that, as a town mayor would not have perms to make a portal on the Terminal network, they would be exempted from that check in this specific instance.
NationSpawn
Nexus45
Terminal
The player now has a linked gate, and has had $5000 deducted from their vault balance.
Player-Level (Flag) Example
A nation king/queen creates this gate inside of their nation spawn's nexus room.
NatNexus3
$250
nation_name
T
A town's mayor buys it by building this gate inside of their town spawn ($250 is deducted from their vault balance).
Note that, as a town mayor would not have perms to make a portal on the nation_name network, they would be exempted from that check in this specific instance.
TownSpawn
NatNexus3
nation_name
T