Skip to content

Commit b1c4525

Browse files
committed
rename brickperms to gatepass
1 parent 806b9d7 commit b1c4525

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed
Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1+
/**
2+
* Gatepass -- A permission plugin.
3+
* This plugin is part of the bricklib project.
4+
*/
5+
6+
import * as bricklib from '../bricklib/index.js';
17
import { Player } from '@minecraft/server';
28
import { checkPerm } from './permission.js';
3-
import * as bricklib from '../bricklib/index.js';
9+
10+
411
export * from './permission.js';
512

6-
bricklib.plugin.newPlugin('brickperms', () => {
13+
/* make this plugin discoverable */
14+
bricklib.plugin.newPlugin('gatepass', () => {
715
/* no-op */
816
});
917

@@ -39,5 +47,5 @@ export function hasPermission(perm: string, plr: Player): boolean
3947
export function assertPermission(perm: string, plr: Player): void
4048
{
4149
if (!hasPermission(perm, plr))
42-
throw 'brickperms: no permission: ' + perm;
50+
throw 'gatepass: no permission: ' + perm;
4351
}

0 commit comments

Comments
 (0)