Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
L2j Server Datapack
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
L2j
L2j Server Datapack
Commits
17586541
Commit
17586541
authored
2 years ago
by
HorridoJoho
Browse files
Options
Downloads
Patches
Plain Diff
Add command to TeleporterService
Add a command to teleporterService to display any html.
parent
fdf82833
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/com/l2jserver/datapack/custom/service/teleporter/TeleporterService.java
+9
-2
9 additions, 2 deletions
...datapack/custom/service/teleporter/TeleporterService.java
with
9 additions
and
2 deletions
src/main/java/com/l2jserver/datapack/custom/service/teleporter/TeleporterService.java
+
9
−
2
View file @
17586541
/*
* Copyright © 2004-202
1
L2J DataPack
* Copyright © 2004-202
2
L2J DataPack
*
* This file is part of L2J DataPack.
*
...
...
@@ -160,6 +160,11 @@ public final class TeleporterService extends CustomServiceScript {
// ////////////////////////////////////
// HTML COMMANDS
// ////////////////////////////////////
private
boolean
_showAnyHtml
(
L2PcInstance
player
,
AbstractTeleporter
teleporter
,
L2Npc
npc
,
String
html
)
{
showAdvancedHtml
(
player
,
teleporter
,
npc
,
html
,
new
HashMap
<>());
return
true
;
}
private
boolean
_showMainHtml
(
L2PcInstance
player
,
AbstractTeleporter
teleporter
,
L2Npc
npc
)
{
_showAdvancedHtml
(
player
,
teleporter
,
npc
,
"main.html"
,
new
HashMap
<
String
,
HTMLTemplatePlaceholder
>());
return
true
;
...
...
@@ -469,7 +474,9 @@ public final class TeleporterService extends CustomServiceScript {
return
false
;
}
if
(
command
.
matchAndRemove
(
"main"
,
"m"
))
{
if
(
command
.
matchAndRemove
(
"any "
,
"a "
))
{
return
_showAnyHtml
(
player
,
teleporter
,
npc
,
command
.
getRemaining
());
}
else
if
(
command
.
matchAndRemove
(
"main"
,
"m"
))
{
return
_showMainHtml
(
player
,
teleporter
,
npc
);
}
else
if
(
command
.
matchAndRemove
(
"solo_category_list"
,
"scl"
))
{
return
_showSoloCategoryList
(
player
,
teleporter
,
npc
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment